Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2013
    Location
    Montreal
    Posts
    4
    Plugin Contributions
    0

    cart error tpl_shopping_cart_default.php - Set Link for buttonRow Multi Language Site

    I read this post:
    http://www.zen-cart.com/showthread.p...hopping-button

    What my boss want to have is as follow:
    1. When user on the english checking out and then click continue shopping = it goes to http://vllusion.com/products
    2. When user change the checking out language to fr and then click continue shopping = it goes to http://vllusion.com/estore/index.php...ex&language=fr

    Changing the on tpl_shopping_cart_default.php:
    <div class="buttonRow back"><?php echo '<a href="http://vllusion.com/products">'

    This only works for the English.

    How can I set the link whenever user changes it to "language=fr"

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: tpl_shopping_cart_default.php - Set Link for buttonRow Multi Language Site

    PHP Code:
    if ($_SESSION['language'] == 'french') {
     echo 
    'french-button-link-here';
    } else {
     echo 
    'english button link here';

    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v139h tpl_header.php how to set different logos for each language?
    By ilmarchez in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Mar 2013, 11:11 PM
  2. multi language button image in header, links to multi language pages
    By bluesky2008 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 31 Jul 2008, 04:14 PM
  3. buttonRow forward/buttonRow backward IE Problem
    By mattmf1286 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Apr 2007, 03:44 PM
  4. How to set a default country per language for multi language sites
    By lacabessa in forum Addon Language Packs
    Replies: 2
    Last Post: 18 Nov 2006, 11:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR