Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Nov 2008
    Location
    Slovenija
    Posts
    119
    Plugin Contributions
    0

    Default CartSideboxWithButtonandFreeShipping - Multi language support?

    I' want to add multi language support to that addons.

    The file is templates-> sidebox-> tpl_shopping_cart.php


    Where is the english texst for shipping qualifayer I need to translate also to other language.

    PHP Code:
    <?php
    /**
     * Side Box Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cartt Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_shopping_cart.php 4821 2006-10-23 10:54:15Z drbyte $
     * @installation instructions file provided by Judy Gunderson at http://zencart-ecommerce-website-design.com
     */
      
    $content ="";

      
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent">';
      if (
    $_SESSION['cart']->count_contents() > 0) {
      
    $content .= '<div id="cartBoxListWrapper">' "\n" '<ul>' "\n";
        
    $products $_SESSION['cart']->get_products();
        for (
    $i=0$n=sizeof($products); $i<$n$i++) {
          
    $content .= '<li>';

          if ((
    $_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
            
    $content .= '<span class="cartNewItem">';
          } else {
            
    $content .= '<span class="cartOldItem">';
          }

          
    $content .= $products[$i]['quantity'] . BOX_SHOPPING_CART_DIVIDER '</span><a href="' zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' $products[$i]['id']) . '">';

          if ((
    $_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
            
    $content .= '<span class="cartNewItem">';
          } else {
            
    $content .= '<span class="cartOldItem">';
          }

          
    $content .= $products[$i]['name'] . '</span></a></li>' "\n";

          if ((
    $_SESSION['new_products_id_in_cart']) && ($_SESSION['new_products_id_in_cart'] == $products[$i]['id'])) {
            
    $_SESSION['new_products_id_in_cart'] = '';
          }
        }
        
    $content .= '</ul>' "\n" '</div>';
      } else {
        
    $content .= '<div id="cartBoxEmpty">' BOX_SHOPPING_CART_EMPTY '</div>';
      }

      if (
    $_SESSION['cart']->count_contents() > 0) {
        
    $content .= '<hr />';
        
    $content .= '<div class="cartBoxTotal">' $currencies->format($_SESSION['cart']->show_total()) . '</div>';
        
       
    $content .= '<div class="cartSidebox" />';
        
      }

    $free_ship_on MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING;

    if (
    $free_ship_on == 'false') {
      
    $free_limit MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER;
      if (
    $_SESSION['cart']->count_contents() > 0) { 
         
    $_SESSION['cart']->get_products(); 
         
    $basket_total $_SESSION['cart']->show_total(); 
         if (
    $basket_total $free_limit) { 
            
    $diff_to_free = ($free_limit $basket_total); 
            
    $content .= 'Add '$currencies->format($diff_to_free) .' to your order to qualify for<br />Free Shipping!'
         } else { 
            
    $content .='Your order qualifies for<br />Free Shipping!'
         } 
      } else { 
            
    $content .= 'Free Shipping for orders of<br />' $currencies->format($free_limit) . ' or more.'
      }
      }
        
    $content .= '</div>';  

      if (isset(
    $_SESSION['customer_id'])) {
        
    $gv_query "select amount
                     from " 
    TABLE_COUPON_GV_CUSTOMER "
                     where customer_id = '" 
    $_SESSION['customer_id'] . "'";
       
    $gv_result $db->Execute($gv_query);

        if (
    $gv_result->RecordCount() && $gv_result->fields['amount'] > ) {
          
    $content .= '<div id="cartBoxGVButton"><a href="' zen_href_link(FILENAME_GV_SEND'''SSL') . '">' zen_image_button(BUTTON_IMAGE_SEND_A_GIFT_CERT BUTTON_SEND_A_GIFT_CERT_ALT) . '</a></div>';
          
    $content .= '<div id="cartBoxVoucherBalance">' VOUCHER_BALANCE $currencies->format($gv_result->fields['amount']) . '</div>';
        }
      }
      
    $content .= '<br class="clearBoth" />';
      
    $content .= '<div class="cartSidebox"><a href="' zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL') . '">' zen_image_button(BUTTON_IMAGE_CHECKOUTBUTTON_CHECKOUT_ALT) . '</a></div>';
      
    $content .= '</div>';
    ?>
    Can someone help me?


    Thank's!
    I love internet and the power of information... Best Wishes!!

  2. #2
    Join Date
    Nov 2008
    Location
    Slovenija
    Posts
    119
    Plugin Contributions
    0

    red flag Re: CartSideboxWithButtonandFreeShipping - Multi language support

    Anybody?
    I love internet and the power of information... Best Wishes!!

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: CartSideboxWithButtonandFreeShipping - Multi language support

    I didn't see this when you first posted it. This mod has hard-coded English text in parts, and will need to have more text constants created to allow it to be multilingual.

    Search in Tools > Developers Toolkit for BOX_SHOPPING_CART_EMPTY to find the file where some text is correctly defined; other defines can be added there.

    The Shoppingcart/Freeship in Header mod has done those define tasks already, and it may serve as a guide for you. It is not yet active in Free Addons, but you can get the zip from the support thread.

  4. #4
    Join Date
    Nov 2008
    Location
    Slovenija
    Posts
    119
    Plugin Contributions
    0

    Default Re: CartSideboxWithButtonandFreeShipping - Multi language support

    Sweet!

    I will use this addon.

    How can I change the table position in css?

    Now it' is on the top of the page in the right corner.
    I love internet and the power of information... Best Wishes!!

  5. #5
    Join Date
    Nov 2008
    Location
    Slovenija
    Posts
    119
    Plugin Contributions
    0

    Default Re: CartSideboxWithButtonandFreeShipping - Multi language support

    I finded.

    Position must be set to fixed.


    I love internet and the power of information... Best Wishes!!

  6. #6
    Join Date
    Nov 2008
    Location
    Slovenija
    Posts
    119
    Plugin Contributions
    0

    Default Re: CartSideboxWithButtonandFreeShipping - Multi language support

    I mean to: absolute


    I love internet and the power of information... Best Wishes!!

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: CartSideboxWithButtonandFreeShipping - Multi language support

    Since everybody will want the header cart box in a different place or different shape, I didn't try to make it fit any particular place. Post a link to your site and I will help you position and style it as you like.

  8. #8
    Join Date
    Nov 2008
    Location
    Slovenija
    Posts
    119
    Plugin Contributions
    0

    Default Re: CartSideboxWithButtonandFreeShipping - Multi language support

    Thank you so much! I really appreciated.

    I sended the link to pm.
    I love internet and the power of information... Best Wishes!!

  9. #9
    Join Date
    Nov 2008
    Location
    Slovenija
    Posts
    119
    Plugin Contributions
    0

    Default Re: CartSideboxWithButtonandFreeShipping - Multi language support

    I notice when I select different languages the table move a little bit.
    For english is in one position, for italian it's more to the right.

    I need that the table don't move.

    I really appreciate your help!
    I love internet and the power of information... Best Wishes!!

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: CartSideboxWithButtonandFreeShipping - Multi language support

    The  is called the "byte order marker" or BOM. It happens when there is incorrect translation between an English-type character set and bigger character sets like UTF-8. I don't know myself how to get rid of it, but the question has been asked and answered many times here - just search.

    You are still using the stock shopping cart header box, except that the Template Monster template has put it in a whole tangle of custom table code. I don't know how right now to fix that, and am not interested in trying. Can you install the Shoppingcart/Freeship in Header? You will need to delete the tpl_header.php that comes with the mod, because the TM one is very customized. Just add the call to the mod to the existing tpl_header.php, as described in the readme.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Multi-Language Support for EZ-Pages
    By bunyip in forum All Other Contributions/Addons
    Replies: 297
    Last Post: 8 Jun 2018, 05:24 AM
  2. How to support multi-language display?
    By wilsonshen in forum General Questions
    Replies: 0
    Last Post: 15 Jun 2010, 12:19 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