Hi,
I've read all the posts in this thread and can't seem to find the answer.
I've installed the Shipping Rates in Cart contribution on a clean install of Zen Cart v. 1.3.8a (no modifications) and got a bunch of code displaying on the shopping cart page (see pic). I am running Zen Cart on a local server (Wamp)and unfortunately don't have a link to the live website. Any ideas what might be causing this?
The code displayed on the shopping cart page is coming from includes/templates/template_default/templates/tpl_shopping_cart_default.php The code shown is:
PHP Code:
format(zen_add_tax($quotes[$i]['methods'][0]['cost'], $quotes[$i]['tax'])); //Without currency symbol $sric_shipping_simple = $currencies->format(zen_add_tax($quotes[$i]['methods'][0]['cost'], $quotes[$i]['tax'])); } } } //Display currency code in cart if (SRIC_DISPLAY_CURRENCY_CODE == 'Yes, before price') { $currency_code_opt_before = $_SESSION['currency'] . " "; $currency_code_opt_after = ''; $currency_code_opt_total_before = $_SESSION['currency'] . " "; $currency_code_opt_total_after = ''; } else if (SRIC_DISPLAY_CURRENCY_CODE == 'Yes, after price') { $currency_code_opt_before = ''; $currency_code_opt_after = " " . $_SESSION['currency']; $currency_code_opt_total_before = ''; $currency_code_opt_total_after = " " . $_SESSION['currency']; } else if (SRIC_DISPLAY_CURRENCY_CODE == 'Yes, before price, for total only') { $currency_code_opt_before = ''; $currency_code_opt_after = ''; $currency_code_opt_total_before = $_SESSION['currency'] . " "; $currency_code_opt_total_after = ''; } else if (SRIC_DISPLAY_CURRENCY_CODE == 'Yes, after price, for total only') { $currency_code_opt_before = ''; $currency_code_opt_after = ''; $currency_code_opt_total_before = ''; $currency_code_opt_total_after = " " . $_SESSION['currency']; } else { $currency_code_opt_before = ''; $currency_code_opt_after = ''; $currency_code_opt_total_before = ''; $currency_code_opt_total_after = ''; } //Calculate total $cartSricTotal = preg_replace ( '#\D*?(\d+(\.\d+)?)\D*#', '$1', $cartShowTotal ); $sric_shipping_simple = preg_replace ( '#\D*?(\d+(\.\d+)?)\D*#', '$1', $sric_shipping_simple ); $sric_total = $cartSricTotal + $sric_shipping_simple; $sric_total = number_format($sric_total,2); //If no shipping charge if ( ($sric_shipping == '') && (SRIC_NO_SHIP == 'Display zero shipping price') ) { $sric_shipping = $currency_symbol . "0.00"; ?>
Thanks in advance for any ideas/solutions
Bookmarks