skitom, on 17 December 2011, 18:54, said:
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
if (tep_not_null($products[$i]['products_ship_price'])) {
$products_ship_price = $products[$i]['products_ship_price'];
$products_ship_price_two = $products[$i]['products_ship_price_two'];
$products_ship_zip = $products[$i]['products_ship_zip'];
$qty = $products[$i]['quantity'];
if(tep_not_null($products_ship_price) ||tep_not_null($products_ship_price_two)){
$shiptotal += ($products_ship_price)*0.333333333;
if ($qty > 1) {
if (tep_not_null($products_ship_price_two)) {
$shiptotal += ($products_ship_price_two * ($qty-1)*0.333333333);
} else {
$shiptotal += ($products_ship_price * ($qty-1)*0.333333333);
Im not sure why this happened, however i also experienced another issue where os commerce couldnt get pages for the front of house, while the admin worked fine. I found a soluion online, which stated it could be due to a php upgrade.
So most of my problems are fixed ive not gotta figure out how to fix
Fatal error: Cannot redeclare class zones on line 97. I think while trying to fix my above problem i must have accidentally changed a zone shipping file, so looks like its more time replacing files.
You will need to configure: Admin panel > Configuration > Shipping / Packaging
#. You will need the correct Indiv Ship Home Country code
the country code are in the 4.3 doc














