WebsiteBaker Support (2.8.x) > Bakery Shop
count items
patje8:
When I put an items in the shoppingcart, he won't count this.
It is still 0 items.
nibz:
Probably because i just added 0 instead of a script to display total items in the cart.
Will have a look if there is one, and implement it.
patje8:
<a href=http://www.basero.be/pages/nl/webshop/all.php?view_cart=yes"><img src="<?php echo TEMPLATE_DIR; ?>/img/cart.png" alt="shoppingcart" /><span>0</span></a></div>
nibz:
Just like i said, the 0 is hardcoded see:
--- Code: ---<a href=http://www.basero.be/pages/nl/webshop/all.php?view_cart=yes"><img src="<?php echo TEMPLATE_DIR; ?>/img/cart.png" alt="shoppingcart" /><span>0</span></a></div>
--- End code ---
and especially the part:
--- Code: ---<span>0</span>
--- End code ---
But i just made a new droplet in your website ModBakeryItemsInCar t and made some files in the modules>bakery>templates for it and now the code [[ModBakeryItemsInCart]] displays a span with the amouth of items in the cart.
I allready added it to your template, so it should work now.
Regards Robin
nibz:
And since i was on it i also added a way to make the link of the cart go to the right language.
But since you didn't allready made your English pages the link to the cart in the Englisch language part of your site is currently not working.
But if you make the webshop just like the dutch pages then it should all work.
Navigation
[0] Message Index
[#] Next page
Go to full version