Hola, quiero modificar una "frase" del carrito de virtuemart en php para que aparezca en varios idiomas segun cual este seleccionado.
Originalmente el trozo de codigo está así:
Código PHP:
Ver original<?php if($empty_cart) { ?>
<?php echo $VM_LANG->_('PHPSHOP_CART_EMPTY'); ?>. <a href="index.php?page=shop.cart&option=com_virtuemart"><?php echo $VM_LANG->_('PHPSHOP_CART_SHOW'); ?></a><?php
} else {
echo $VM_LANG->_('PHPSHOP_CART_FULL') .$total[0].$items.'.<a href="index.php?page=shop.cart&option=com_virtuemart"> Show Cart</a>';
} ?>
I quiero que quede así, subtituyendo Show Cart por una variable[<?php echo $VM_LANG->_('PHPSHOP_CART_SHOW'); ?>], que contenga el texto según el idioma seleccionado:
Código PHP:
Ver original<?php if($empty_cart) { ?>
<?php echo $VM_LANG->_('PHPSHOP_CART_EMPTY'); ?>. <a href="index.php?page=shop.cart&option=com_virtuemart"><?php echo $VM_LANG->_('PHPSHOP_CART_SHOW'); ?></a><?php
} else {
echo $VM_LANG->_('PHPSHOP_CART_FULL') .$total[0].$items. ;?> <a href="index.php?page=shop.cart&option=com_virtuemart"><?php echo $VM_LANG->_('PHPSHOP_CART_SHOW'); ?></a>';
<?php } ?>
Pero Dreamweaver me detecta un error en la línea despues del "else" (línia 4). He mirado durante rato pero no veo donde esta el error. ¿Me dejo algo?
Gracias a todos por la ayuda!!