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 »
  • [BAKERY] How to move the "VIEW CART" button to the bottom?
  • Print
Pages: [1]   Go Down

Author Topic: [BAKERY] How to move the "VIEW CART" button to the bottom?  (Read 4052 times)

Offline svsanchez

  • Posts: 589
[BAKERY] How to move the "VIEW CART" button to the bottom?
« on: October 10, 2012, 08:41:58 AM »
Hello community, I am trying to move the VIEW CART button in the catalog overview to the bottom intead of the top of the page. I copied the following "header" code fom the overview and pasted it in the "footer" field:

<div class="mod_bakery_main_div _cart_bt_f">
<form action="[SHOP_URL]" method="post">
<input type="submit" name="view_cart" class="mod_bakery_bt_cart_ f" value="[VIEW_CART]" />
</form>
</div>

However, when I go to the page the resulting button doesn't work, what am I doing wrong?

If someone could take a looke at my page http://vinoslatenuta.com/pages/nuestros-vinos/tenuta-sanna.php and tell me how to fix this I would greatly appreciate!
Logged

jacobi22

  • Guest
Re: [BAKERY] How to move the "VIEW CART" button to the bottom?
« Reply #1 on: October 10, 2012, 09:14:48 AM »
here a german HOW-TO -> https://forum.WebsiteBaker.org/index.php/topic,22917.msg154636.html#msg154636
Logged

Offline svsanchez

  • Posts: 589
Re: [BAKERY] How to move the "VIEW CART" button to the bottom?
« Reply #2 on: October 11, 2012, 04:01:18 PM »
Hello Jacobi22, I don't speak german but fortunately I was able to figure out what they were saying, which I am copying here in order for all of us non german speakers to know how to add the VIEW CART button below the overview page, hope this helps:

You will have to edit the file view_overview.php in the modules/bakery/ directory and put this code instead of the one that appears after the // Print footer line (circa line 315):

// Print footer
if ($display_previous_next_links == 'none') {
        echo  str_replace(array('[PAGE_TITLE]','[NEXT_PAGE_LINK]','[NEXT_LINK]','[PREVIOUS_PAGE_LINK]','[PREVIOUS_LINK]','[OUT_OF]','[OF]','[DISPLAY_PREVIOUS_NEXT_LINKS]','[TXT_ITEM]','[VIEW_CART]','[SHOP_URL]'), array(PAGE_TITLE,'','','','','','', $display_previous_next_links, $MOD_BAKERY['TXT_ITEM'],$MOD_BAKERY['TXT_VIEW_CART'],$setting_continue_url), $setting_footer);
} else {
        echo str_replace(array('[PAGE_TITLE]','[NEXT_PAGE_LINK]','[NEXT_LINK]','[PREVIOUS_PAGE_LINK]','[PREVIOUS_LINK]','[OUT_OF]','[OF]','[DISPLAY_PREVIOUS_NEXT_LINKS]','[TXT_ITEM]','[VIEW_CART]','[SHOP_URL]'), array(PAGE_TITLE,$next_page_link, $next_link, $previous_page_link, $previous_link, $out_of, $of, $display_previous_next_links, $MOD_BAKERY['TXT_ITEM'],$MOD_BAKERY['TXT_VIEW_CART'],$setting_continue_url), $setting_footer);
}

This did work for me!
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • [BAKERY] How to move the "VIEW CART" button to the bottom?
 

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