| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Custom minicart in topnav | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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
__________________
X-Cart DB Version: 4.4.4 GOLD Addons:Feature Comparison (enabled);Magnifier (enabled); Product Configurator (enabled); Special Offers (enabled); Survey (enabled); XAffiliate (enabled); |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
|
#3
|
|||||||
|
|||||||
![]() Ah, ok I wasnt grabbing those classes because I thought they were style only, Ill try that thanks.
__________________
X-Cart DB Version: 4.4.4 GOLD Addons:Feature Comparison (enabled);Magnifier (enabled); Product Configurator (enabled); Special Offers (enabled); Survey (enabled); XAffiliate (enabled); |
|||||||
#4
|
|||||||
|
|||||||
![]() If you wrap the cart with an id instead of class it makes it easier to reuse the existing classes.
__________________
Xcart 4.4.? Xcart Next Litecommerce with Drupal http://www.corbywebworx.com Custom Mods, Hosting and Support for Xcart-Next and LiteCommerce |
|||||||
|
|||
X-Cart forums © 2001-2020
|