View Single Post
  #1  
Old 04-10-2017, 01:33 PM
 
Miriable Miriable is offline
    
Join Date: Apr 2017
Posts: 1
 

Question "Items in Cart" Widget on non-X-Cart site -- possible?

I'm trying to do something that seems like it should be simple. This is of course a dangerous thing to think.

Say we have two sites: an X-Cart 5 site at store.example.com and one using a regular CMS at www.example.com. What was want to do is put a tiny widget on the non-X-Cart site that alerts people if they still have unpurchased items in their shopping cart, and tells them how many items they have. When they click the widget, it sends them to store.example.com/cart.php. No need for a full-fledged mini-cart.

I figure the simplest method would use an iframe to make cross-site authentication easier, though if anyone can think of a RESTful solution (either server- or browser-based) I'd prefer that instead. But first off, I need to figure out how/where to find the correct data. All I need is one integer, but I haven't been able to find it yet.

Anyone have any ideas on this one?
__________________
Wot wot
Reply With Quote