WebsiteBaker Support (2.8.x) > Bakery Shop

Multiple Bakery Sections on same Page

<< < (2/3) > >>

jacobi22:

--- Quote from: sky writer on August 23, 2015, 07:26:08 AM ---When you click "continue shopping" it only goes back to the single "hidden" bakery page for the items you are looking at.  I would like it to go back to the "Products" page with the section picker of both bakery sections.

--- End quote ---
go into the bakery page settings and search in the template code for a link like this

--- Code: ---<a href="[BACK]">[TXT_BACK]</a>
--- End code ---
replace [BACK] with a wblink from your overview on the Products-Page - its needed in every bakery section
Example-code

--- Code: ---<a href="[wblink123]">[TXT_BACK]</a>
--- End code ---


--- Quote from: sky writer on August 23, 2015, 07:26:08 AM ---Also, if you are on the section picker page and you click the "view cart" button, it doesn't take you to the cart.  It takes you to the overview page of that particular bakery section.  You then have to click the "view cart" button on this page to actually view the cart.

--- End quote ---

i remove the view-cart-link and use the Minicart-Droplet (see also here -> http://www.bakery-shop.ch/#modbakeryminicart)
its also possible to use the view-cart-Link in a sidebar with a code like this

somewhere in your template-index.php inside of a PHP-part - the Basket-definition (define a redirect-link to your overview)

--- Code: ---<?php
define('BASKET', 'http://yourDomain/pages/products.php');
?>
--- End code ---

and in the sidebar or a place, where you need the basket-link (needs a image for the basket and a translation)


--- 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 ---

sky writer:
Thank you for your continued help.  More food for thought and possible options for the "View Cart" work-flow.

This code only seems to affect the "Back" button functionality:

--- Quote ---<a href="[wblink123]">[TXT_BACK]</a>
--- End quote ---

I had that functionality worked out.  It's the functionality when you click the "Continue Shopping" button which I want to go to the Products page overview.  I'm assuming I will have to go into the core Bakery files to change this, but am not sure.

jacobi22:

--- Quote from: sky writer on August 23, 2015, 04:14:44 PM ---It's the functionality when you click the "Continue Shopping"

--- End quote ---

its difficult and the best way is, to say, thats not possible..
bakery use a variable called shop_url or continue_shopping_url or $setting_continue_url for the continue-button and! for all intern links, for add a article into the basket, for a link from the overview to a article and back and also for the continue-button
and bakery use also the section_id from the selected shop to ask the database for the correct continue- btw shop_url. for example: from a sub-shop AAAA you can only navigate to pages from the same shop AAAA

with a lot of code changes maybe its possible to build a new database field for the continue-button extra

not testet is a hard-coded version with a "new" fix URL as $setting_continue_url in file view_cart.php // Line 206 (Bakery 1.72)
maybe its work, but its looks not "clean" for me

the best and clean version is for me at this point a good text with a back-link to your product-page, maybe as a small wysiwyg-section over every bakery section
or somewhere in every needed bakery-template

sky writer:
I can totally accept that it is more effort and difficulty than it would be worth to try to change the "continue shopping" button functionality.

I like you idea of placing a "go back to Products page" type text link on all bakery pages.  But to lesson confusion, would it be easily possible to hide the "continue shopping" button, so that customers only see this new "go back to Products page" link.  That way they would always end up back on the Products page.

I've also noticed that if I put something in the cart from shop AAA and then something from shot BBB, then view the cart, both items are in the cart.  I was very happy to see this happen, vs having to check out separately for each shop, BUT, I just wanted to make sure this was the way bakery should operate and that this setup wouldn't cause possible problems moving forward.

sky writer:
I just noticed another issue.

When you click the "add to cart" button on the Products (overview) page, the item is NOT added to the cart.  You are taken to the overview page for the associated shop.  You then have to click on the "add to cart" button again to actually add the item to the cart.

I think I am going to have to go back to the drawing board with this one.  Maybe I am missing the usefulness and usability of the Bakery module.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version