Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

translation


Dominator69

Recommended Posts

In the shopping_cart.php there are 2 words that they are not in the translation files is there a way to define them in one of the translation files

$products_name .= '<br /><br />' . tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']) . tep_draw_button(IMAGE_BUTTON_UPDATE, 'refresh') . '   or <a href="' . tep_href_link(FILENAME_SHOPPING_CART, 'products_id=' . $products[$i]['id'] . '&action=remove_product') . '">remove</a>';

 

words are "or" and "remove" thanks in advance !

Link to comment
Share on other sites

in file catalog/includes/languages/your_language/shopping_cart.php add before the lasr closing ?>

define('TEXT_CART_REMOVE', 'remove');
define('TEXT_CART_OR', 'or');

 

Then change the line you posted in file catalog/shopping_cart.php to be

$products_name .= '<br /><br />' . tep_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . tep_draw_hidden_field('products_id[]', $products[$i]['id']) . tep_draw_button(IMAGE_BUTTON_UPDATE, 'refresh') . ' ' . TEXT_CART_OR . ' <a href="' . tep_href_link(FILENAME_SHOPPING_CART, 'products_id=' . $products[$i]['id'] . '&action=remove_product') . '">' . TEXT_CART_REMOVE . '</a>';

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...