X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Custom minicart in topnav (https://forum.x-cart.com/showthread.php?t=62736)

aitek 02-22-2012 09:45 PM

Custom minicart in topnav
 
Hey guys Im creating a top nav that will be used throughout the site not just in the cart pages and I want to incorporate a mini-mini-cart in the header, just something that says "view cart" and "#" which shows how many items are in the cart, I got the number working using {$minicart_total_items} but when I click add to cart it doesnt automatically update the cart# like the minicart does, it does not show until I refresh the page.

Anyone know which part of the code I need to insert to make it update realtime? Thanks

cflsystems 02-22-2012 10:31 PM

Re: Custom minicart in topnav
 
All this works with the ajax, you need to get a lot from the minicart css as the ajax is looking for specific css id's and classes

aitek 02-22-2012 10:39 PM

Re: Custom minicart in topnav
 
Ah, ok I wasnt grabbing those classes because I thought they were style only, Ill try that thanks.

Cpt.Crashtastic 02-23-2012 10:27 AM

Re: Custom minicart in topnav
 
If you wrap the cart with an id instead of class it makes it easier to reuse the existing classes.


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

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