WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Bakery Shop => Topic started by: patje8 on May 07, 2014, 11:11:34 AM

Title: count items
Post by: patje8 on May 07, 2014, 11:11:34 AM
When I put an items in the shoppingcart, he won't count this.
It is still 0 items.

Title: Re: count items
Post by: nibz on May 07, 2014, 11:30:07 AM
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.
Title: Re: count items
Post by: patje8 on May 07, 2014, 11:45:51 AM
<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>
Title: Re: count items
Post by: nibz on May 07, 2014, 12:01:33 PM
Just like i said, the 0 is hardcoded see:
Code: [Select]
<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>
and especially the part:
Code: [Select]
<span>0</span>

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
Title: Re: count items
Post by: nibz on May 07, 2014, 12:08:31 PM
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.
Title: Re: count items
Post by: patje8 on May 07, 2014, 12:09:02 PM
bedankt
Title: Re: count items
Post by: nibz on May 07, 2014, 12:12:18 PM
bedankt

You're welcome! / Graag gedaan!
Title: Re: count items
Post by: patje8 on June 12, 2014, 05:45:10 PM
Heb een paar dingen veranderd maar helaas werkt het niet meer.
Kan er me iemand helpen?