Hello, I am trying to run a script at the shopping cart (tpl_shopping_cart_default)
Basically, I wans to load a php if the order sub total is below $50 and make it load a different one if the subtotal is above $50
What I currently have is:
PHP Code:<?php
if ($order->info['subtotal'] < 50.00) {
require($template->get_template_dir('tpl_modules_cart_products1.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_cart_products1.php');
} else {
require($template->get_template_dir('tpl_modules_cart_products2.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_cart_products2.php');
?>
This would only work fine if I leave the firtst part of the If without the "else", meaning, it will load only if under $50, but when the else is added, the else script will always run first.


Reply With Quote
