WebsiteBaker Support (2.8.x) > Bakery Shop

[Bakery] Link to cart contents

<< < (2/3) > >>

jacobi22:
only a idea...
with different languages, you can use the LANGUAGE-constant in a simple PHP-Question like

--- Code: ---<?php
if (LANGUAGE == 'EN')
    {define('BASKET', 'your_link_to_the_english_overview_page');}
elseif [LANGUAGE =='ES')
    {define('BASKET', 'your_link_to_the_spanish_overview_page');}
else {define('BASKET', 'your_link_to_the_default_overview_page_in_your_systemlanguage');}
--- End code ---

also possible to write this in a different format

rumen:
I put the code with the links, but I got completely white screen. Maybe I did any mistake. http://apokalypsabg.org/

jacobi22:
sorry for that, a little typofix - using [ instead of ( in line 4 -> elseif (LANGUAGE =='ES')


--- Code: ---<?php
if (LANGUAGE == 'EN')
    {define('BASKET', 'your_link_to_the_english_overview_page');}
elseif (LANGUAGE =='ES')
    {define('BASKET', 'your_link_to_the_spanish_overview_page');}
else {define('BASKET', 'your_link_to_the_default_overview_page_in_your_systemlanguage');}
--- End code ---

rumen:
I put on the same place where was the old code which worked for 1 language:


--- Code: ---<?php
if (LANGUAGE == 'BG')
    {define('BASKET', 'http://apokalypsabg.org/pages/knigi.php');}
elseif [LANGUAGE =='EN')
    {define('BASKET', 'http://apokalypsabg.org/pages/books.php');} 
else {define('BASKET', 'http://apokalypsabg.org/pages/knigi.php');}
?>
--- End code ---

But the result is white screen.

jacobi22:

--- Quote from: rumen on May 30, 2016, 01:41:54 PM ---I put on the same place where was the old code which worked for 1 language:


--- Code: ---<?php
if (LANGUAGE == 'BG')
    {define('BASKET', 'http://apokalypsabg.org/pages/knigi.php');}
elseif [LANGUAGE =='EN')
    {define('BASKET', 'http://apokalypsabg.org/pages/books.php');} 
else {define('BASKET', 'http://apokalypsabg.org/pages/knigi.php');}
?>
--- End code ---

--- End quote ---

look here (red marked)


--- Quote ---elseif [LANGUAGE =='EN')
--- End quote ---

must be an (

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version