Beispiel #1
0
$grandTotal = $cart->getOrderTotal();
if (!$cart->isFreeshipping()) {
    $remain = product_entity::decoratePrice(configuration::item('SHIPPING', 'SHIPPING_FREE_PRICE') - $grandTotal, true);
    echo " <p style='margin-top: 3px; display: inline;'>Remaining amount to be added to your cart in order to obtain free shipping: <span class='green'>{$remain}</span></p>";
    if ($cart->cart_carrier_ID && $cart->cart_address_ID) {
        $shippingFee = product_entity::decoratePrice($cart->getOrderTotal(5), true);
        echo " <strong class='t_c1'>Total Shipping:<span class='red'>{$shippingFee}</span></strong>";
    }
} else {
    echo "<p style='margin-top: 3px; display: inline;'>You have obtain free shipping</p>";
}
?>
                    </div>

                    <div class="ar t_count">
                        <?php 
echo CHtml::dropDownList('currency', Yii::app()->user->getState('currency_ID'), currency::getCurrencies());
?>
                       
                        <strong class="t_c1">GrandTotal:<span class="red"><?php 
echo product_entity::decoratePrice($grandTotal, true);
?>
</span></strong>
            </div>
            <div class="fl mt_10"><a href="/">&laquo; continue to shopping</a></div>
            <p class="ar"><input  type="button"  value="" id="check_btn" class="button ubutton button_checkstep " /></p>
        </div>
        <div class="fix"></div>
    </div>
</div>