WebsiteBaker Support (2.8.x) > Bakery Shop

Bakery: Small Shop Module (ORIGINAL TOPIC)

<< < (22/167) > >>

gillweb:
So far this is a great add on to the CMS!  Does anyone know of a snippet I could put in my template to show cart contents throughout my site on each page?  The way most bigger websites would have Like:

--- Code: ---Cart: 1 item(s) for $25.00

--- End code ---
I'm not sure if there are session variables that are not given until they visit the "bakery" page that would make this not possible?  Any help would be appreciated.

erikp01:
Gillweb,

You are right, this should be a nice snippet. I have been asking for this snippet a few posts ago.
Must be difficult to make I think.

erik

dhdesign:
Have either of you tried this option that is listed in the author's instructions in the first post in this thread?


ANYITEMS
You can use a snippet called Anyitems by Jan (Seagull) to display a few products of a specified section on another page than a Bakery page, e.g. your home page.
http://forum.WebsiteBaker.org/index.php/topic,7834.msg47464.html#msg47464
Please note:
Download Anyitems from the download section at the bottom of this post.
Bakery ≤ v0.6.1 requires Anyitems v0.1
Bakery ≥ v0.7 requires Anyitems v0.2

freeSbee:
@ gillweb


--- Quote from: gillweb on February 08, 2008, 02:33:27 AM ---Does anyone know of a snippet I could put in my template to show cart contents throughout my site on each page? 

--- End quote ---
No, there is nothing like that yet. Anyitems makes it possible to display a few products on another page than a Bakery page but NOT the cart.


--- Quote from: gillweb on February 08, 2008, 02:33:27 AM ---I'm not sure if there are session variables that are not given until they visit the "bakery" page that would make this not possible?  Any help would be appreciated.

--- End quote ---
Yes, there are. The session is initalized first time the cart is shown to the customer. But the content of the cart is saved in the DB.

Best,
Christoph


gillweb:
Ok thanks.  I'm thinking that maybe there could be some code to place in the template that if the session for the Cart is not valid then it would automatically show the $0.00 and 0 items but if the session IS valid then it would show the total of items in the DB.  I'm not the best in code but i'll try and see if I can do something.   :?   :roll:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version