WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • count items
  • Print
Pages: [1]   Go Down

Author Topic: count items  (Read 7329 times)

Offline patje8

  • Posts: 28
count items
« 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.

Logged

Offline nibz

  • Posts: 684
  • Gender: Male
Re: count items
« Reply #1 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.
Logged

Offline patje8

  • Posts: 28
Re: count items
« Reply #2 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>
Logged

Offline nibz

  • Posts: 684
  • Gender: Male
Re: count items
« Reply #3 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
Logged

Offline nibz

  • Posts: 684
  • Gender: Male
Re: count items
« Reply #4 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.
Logged

Offline patje8

  • Posts: 28
Re: count items
« Reply #5 on: May 07, 2014, 12:09:02 PM »
bedankt
Logged

Offline nibz

  • Posts: 684
  • Gender: Male
Re: count items
« Reply #6 on: May 07, 2014, 12:12:18 PM »
Quote from: patje8 on May 07, 2014, 12:09:02 PM
bedankt

You're welcome! / Graag gedaan!
Logged

Offline patje8

  • Posts: 28
Re: count items
« Reply #7 on: June 12, 2014, 05:45:10 PM »
Heb een paar dingen veranderd maar helaas werkt het niet meer.
Kan er me iemand helpen?
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • count items
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2