Hi,
That's interesting. I just checked the select_shipment.php file on my localhost and there shouldn't be any syntax error on line 46.
i am copy-pasting the select_shipment.php source below. Copy the lines below and paste them to yours:
<?php
/*------------------------------------------------------------------------
# Virtuemart Template - CleanMart
# ------------------------------------------------------------------------
# Copyright (C) 2009-2014 Flexible Web Design. All Rights Reserved.
# @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3
# Author: Flexible Web Design
# Website: http://www.flexiblewebdesign.com
# Email: [email protected]
-------------------------------------------------------------------------*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
include_once dirname(__FILE__) . '/../assets/includes/flexibleMartGlobal.php';
?>
<form method="post" id="userForm" target="_parent" name="chooseShipmentRate" action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=cart'); ?>" class="form-validate">
<?php
echo "<div class=\"checkout-content-inner\">";
$buttonclass = 'default';
?>
<? echo "<div id=\"checkoutbarInner\" class=\"active\">".JText::_('COM_VIRTUEMART_CART_SELECT_SHIPMENT')."</div>";
if ($this->found_shipment_method) { ?>
<div class="floatright">
<button class="<?php echo $buttonclass ?>" type="submit" ><?php echo JText::_('COM_VIRTUEMART_SAVE'); ?></button>
<button class="<?php echo $buttonclass ?>" type="reset" onClick="window.location.href='<?php echo JRoute::_('index.php?option=com_virtuemart&view=cart'); ?>'" ><?php echo JText::_('COM_VIRTUEMART_CANCEL'); ?></button>
</div>
<?php echo "<fieldset>\n";
// if only one Shipment , should be checked by default
foreach ($this->shipments_shipment_rates as $shipment_shipment_rates) {
if (is_array($shipment_shipment_rates)) {
foreach ($shipment_shipment_rates as $shipment_shipment_rate) {
echo $shipment_shipment_rate."<br />\n";
}
}
}
echo "</fieldset>\n";
} else {
echo '<dl id="system-message">
<dd class="info message">
<ul>
<li>'.JTEXT::_('PLG_FLEXIBLE_REGISTER_FOR_SHIPPING_RATES').'</li>
</ul>
</dd>
</dl>';
}
?>
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="view" value="cart" />
<input type="hidden" name="task" value="setshipment" />
<input type="hidden" name="controller" value="cart" />
</div>
</form>