Zen Cart Logo
Forums / Bug Reports / [Done v2.0] Shipping Estimator error in multilanguage site

[Done v2.0] Shipping Estimator error in multilanguage site

Locked

Views: 1,313

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
2 Jul 2008, 2:19 PM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,869
Plugin Contributions:
7

[Done v2.0] Shipping Estimator error in multilanguage site

Hi,
I am developing a dual spanish/english site.
When a client is not logged in and has chosen some products, the shipping estimator should ask for a postcode to determine the correct tariffs.
It works correctly in english, but not in spanish.

I found in

shop\includes\languages\mytemplate\spanish.php

this define

 define('CART_SHIPPING_METHOD_ZIP_REQUIRED','verdad');

which had been translated along with all the other original english text, as one would expect. (verdad=true)

However in
shop\includes\templates\mytemplate\templates\tpl_modules_shipping_estimator.php

there is code which requires the original english word “true”.

<?php
        if(CART_SHIPPING_METHOD_ZIP_REQUIRED == "true"){
?>

Hence the shipping estimator did not ask for the postcode when the chosen language was Spanish and therefore the spanish.php defines were in use.

This would of course apply to all translations of english.php.
As I don’t think this “variable” should be in a language define, I’m posting it in the bug section,

Regards
Steve