WebsiteBaker Support (2.8.x) > Bakery Shop
[Bakery] Link to cart contents
svsanchez:
Hello Community
I would like to add a "MY SHOPPING CART" link and would like to know which URL I should use. I have the shopping cart buttons appearing in my bakery but I need to add a link to the shopping cart contents on each page of the site I am building, even if it's not part of the bakery. When I click the shopping cart buttons which appear on the bakery pages I get the same URL so this doesn't work for me.
Thank you!
Ruud:
The bakery checkout is a virtual state any bakery page can have. So there is no real "checkout page".
What you can do is identify (one of your) bakery page(s) and create a link with the parameter ?view_cart=true
I.e.: www-yoursite-com/pages/bakery.php?view_cart=true
You could also use the minicart funtion built in Bakery:
http://www.bakery-shop.ch/#minicart
svsanchez:
Hello Ruud, as always thank you for your kind assistance. I will give that droplet a try!
jacobi22:
i use a image button with a hardcoded direct link to the shop-url (see the link in the bakery settings)
the hardcoded part, somewhere in the top of the template-index.php (change the url with your shopping-url)
--- Code: ---<?php
define('BASKET', 'http://cms/CMS_WB/wb_reform/pages/artikeluebersicht.php');
?>
--- End code ---
and the image-button, where ever you want in your template
--- Code: ---<div id="basket"><a href='<?php echo BASKET; ?>?view_cart=yes'><img src='<?php echo TEMPLATE_DIR; ?>/img/warenkorb.gif' alt='Warenkorb' title='Warenkorb' style='border:0px' /><br />Zum Warenkorb</a></div>
--- End code ---
rumen:
Nice and elegant workaround, but what we do with the second language in 2 languages site? When I point to http://......./pages/sample.php - this is for one language - if customer comes from the second language and click on that link will go to the other (the first one). Otherwise - yes it works!
Navigation
[0] Message Index
[#] Next page
Go to full version