News:

Support the VirtueMart project and become a member

Main Menu

some minor problems in shop.savedcart.tpl.php

Started by patrik60, March 16, 2008, 12:17:05 PM

Previous topic - Next topic

patrik60

<?php
if( !defined( '_VALID_MOS' ) && !defined( '_JEXEC' ) ) die( 'Direct Access to '.basename(__FILE__).' is not allowed.' );
/**
*
* @version $Id: shop.cart.tpl.php 663 2007-02-06 13:52:29 +0000 (Tue, 06 Feb 2007) soeren_nb $
* @package VirtueMart
* @subpackage themes
* @copyright Copyright (C) 2004-2006 Soeren Eberhardt. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See /administrator/components/com_virtuemart/COPYRIGHT.php for copyright notices and details.
*
* http://virtuemart.net
*/
mm_showMyFileName( __FILE__ );

echo '<h2>Saved '. $VM_LANG->_('PHPSHOP_CART_TITLE') .'</h2> hardcoded
<!-- Cart Begins here -->
';
include(PAGEPATH. 'savedbasket.php');
echo $basket_html;
echo '<!-- End Cart --><br />
';

if ($cart["idx"]) {
   ?><div align="center">
      <div style="float:left;width: 33%;"><?php echo $replaceSaved ?></div>
      <div style="float:left;width: 33%;"><?php echo $mergeSaved ?></div>
      <div style="float:left;width: 33%;"><?php echo $deleteSaved ?></div>
   
    <br style="clear:both;"><br /><hr /><div align="center">'; should be deleted
    <?php
    if( $continue_link != '') {
      ?>
       <a href="<?php echo $continue_link ?>" class="continue_link">
          <?php echo $VM_LANG->_('still hard coded') ?>
       </a>
      <?php
    }
     ?>
   </div>
   
   <?php
   // End if statement
}

patrik60

My suggestion:

echo '<h2> '. $VM_LANG->_('PHPSHOP_SAVED_CART_TITLE') .'</h2>

...

<?php echo $VM_LANG->_('PHPSHOP_SAVED_CART_BACK') ?>

Adding the following in languages/common:

'PHPSHOP_SAVED_CART_TITLE' => 'Saved Cart',
'PHPSHOP_SAVED_CART_BACK' => 'Back',