amy purple Posted September 24, 2006 Posted September 24, 2006 I'm looking to find out how i can remove the shipping weight calculations that show up next to POSTAGE costs. It says "shipping to united states 0.12 lbs" for example on the shipping calculator in the shopping cart, on the checkout_shipping.php, checkout_confirmation.php and on the invoice. Basically, it shows up anywhere there is a calculation of the postage, but I actually don't want the weight to be shown. Is there a way to remove it? Any help is appreciated. thanks.
stevel Posted September 24, 2006 Posted September 24, 2006 The standard osC doesn't have a shipping calculator in the cart, so you must have installed a contribution to add this. Simply find the code that displays the weight and remove or comment out the past that displays the weight. Since I don't know what you installed, I can't give more details than that. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
amy purple Posted September 24, 2006 Author Posted September 24, 2006 I couldn't find the code. Regardless of the shopping cart contrib, the weight was showing up on the other pages prior and I'm looking on information on what code I need to remove to get rid of it on all the places it is showing up. Thanks.
stevel Posted September 24, 2006 Posted September 24, 2006 Well, during checkout, you'll find the code in each shipping module - for example, in includes/modules/shipping/usps/php at around line 90 is this: $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)'); You could change this to: $this->quotes = array('id' => $this->code, 'module' => $this->title ); to remove the number of boxes and weight. It's possible that if you do this then it will go away from the other places as well, but I don't know how the contribution you're using works. Steve Contributions: Country-State Selector Login Page a la Amazon Protection of Configuration Updated spiders.txt Embed Links with SID in Description
amy purple Posted September 24, 2006 Author Posted September 24, 2006 I ended up finding it, i had to remove some code in the zone file. The weight showing up wasn't associated with the contrib as I tried to explain before, it was just one of the many places it was showing. Thanks for taking the time to help.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.