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)
-   -   Shopping Cart and Counter (https://forum.x-cart.com/showthread.php?t=68842)

mworsnop 03-12-2014 01:35 PM

Shopping Cart and Counter
 
Where can I find the Java code that shows the shopping basket icon with the # of items in the bag?

I would like to put that code on my home page if possible.

tony_sologubov 03-19-2014 04:28 AM

Re: Shopping Cart and Counter
 
There is no JavaScript code that defines the number of items in the bag. This HTML code is generated by PHP and then can be updated by JS.

Do I understand you correctly that you want to display cart widget on home page that is not a part of to X-Cart 5?

mworsnop 03-19-2014 08:19 AM

Re: Shopping Cart and Counter
 
I wanted to as I really dont have a way to design a home page in something like dreamweaver. What I have now was made in dreamweaver and the buy button goes to xcart. I will have to repeat the entries for every book both in dreamweaver and also in xcart as they are separate entities. But thats my problem. I am told there will be less than 20 items they are selling so not really a big problem. Its a little kludgy but I think it will be ok. Thank you Tony!

tony_sologubov 03-20-2014 04:15 AM

Re: Shopping Cart and Counter
 
OK, I see. In your case, you can write a mod that will create a piece of JS code that sends a request to X-Cart 5 core (via AJAX), pull customer's cart and then generate the cart widget that can be placed anywhere.

It will require some knowledge of JS and PHP as it will be quite complex task, but if you want to create it yourself, I will try to help you. Otherwise, you can order a paid modification from our techs:
http://www.x-cart.com/contact-us.html

mworsnop 03-20-2014 07:30 AM

Re: Shopping Cart and Counter
 
Actually I think figured it out about midnight last night. I just used PHP to make a SQL call and get the count.

nuvar 07-01-2017 12:26 AM

Re: Shopping Cart and Counter
 
Hi, I am also looking for same from Australia but for Magneto, Help needed!


All times are GMT -8. The time now is 08:04 PM.

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