Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PHP masters only


Guest

Recommended Posts

Hey can someone show me how to properly remove $dest_country and $shipping_weight . without messing up the script?

 

 

       }

     if ($dest_zone == 0) {
       $error = true;
     } else {
       $shipping = -1;
       $zones_cost = constant('MODULE_SHIPPING_ZONES_COST_' . $i);

       $zones_table = split("[:,]" , $zones_cost);
       $size = sizeof($zones_table);
       for ($i=0; $i<$size; $i+=2) {
         if ($shipping_weight <= $zones_table[$i]) {
           $shipping = $zones_table[$i+1];
           $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country . ' : ' . $shipping_weight . ' ' . 

MODULE_SHIPPING_ZONES_TEXT_UNITS;
           break;
         }

Link to comment
Share on other sites

that is hard to say. you will effect the script if you do take it out no matter what. i think the better question is what has to be done to accompish what i need. so you need to provide an idea of what you need. and why you need to remove those to vars

Link to comment
Share on other sites

that is hard to say. you will effect the script if you do take it out no matter what. i think the better question is what has to be done to accompish what i need. so you need to provide an idea of what you need. and why you need to remove those to vars

my mistake:

 

I need to remove the '$shipping_weight and MODULE_SHIPPING_ZONES_TEXT_UNITS

 

 

I dont want shipping weight or measerment units to show on the "Delivery Information" page.

 

Thank you for responding

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...