X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   "Items in Cart" Widget on non-X-Cart site -- possible? (https://forum.x-cart.com/showthread.php?t=75188)

Miriable 04-10-2017 01:33 PM

"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?


All times are GMT -8. The time now is 06:59 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.