Ejemplo n.º 1
0
			<input type='submit' name='submit_zipcode' value='Calculate Shipping' />
			</form>
			<?php 
if (isset($_SESSION['zipcode_error'])) {
    echo '<div class="warning">Error: ' . $_SESSION['zipcode_error'] . '</div>';
    unset($_SESSION['zipcode_error']);
} else {
    if (count($cart->getShippingQuotes()) > 0 and $cart->getZipcode() != "") {
        echo "<p style='margin-left: 110px;font-weight: bold; display:inline;'>Current shipping location: <span style='font-weight: normal'>" . $cart->getZipcode() . " (" . $cart->getLocation() . ")</span></p>";
    } else {
        echo "<p style='font-weight: bold;color:#ff4100;display:inline;'><img src='/sfCartPlugin/images/arrow.gif' alt='arrow' style='padding-right: 20px;' />To continue, enter your zipcode</p>";
    }
}
echo "</div>";
echo "<div style='clear:both'></div>";
cart::display_summary();
//checkout form
if ($cart->getZipcode() != "" and $cart->getSelectedQuote() != 0 and count($cart->getShippingQuotes()) > 0) {
    ?>
			<form method='post' action='/checkout'>
      
			<?php 
    if ($cart->agreeshown == false) {
        ?>
				<input type="hidden" id="agreeshown" name="agreeshown" value="no">				  
				<?php 
        $cart->agreeshown = true;
    } else {
        ?>
				<input type="hidden" id="agreeshown" name="agreeshown" value="yes">	  
				<?php