jweltydotcom Posted December 3, 2007 Share Posted December 3, 2007 I dont want the weights being posted to the site when a customer checksout and when i print invoices etc... is there anyway to remove the (1 pkg x 11 lbs total) from the following line: United Parcel Service (XML) (1 pkg x 11 lbs total) (UPS Ground) Quote Link to comment Share on other sites More sharing options...
Guest Posted December 3, 2007 Share Posted December 3, 2007 I don't know completely but i would think it's something to do with this code in... includes ->modules -> shipping -> usps.php $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ' x ' . $shipping_weight . 'lbs)'); If i get time later on i will see if i can figure out a way to filter it out without breaking everything lol :) Let me know if you find a way to do it yourself :) Quote Link to comment Share on other sites More sharing options...
jweltydotcom Posted December 15, 2007 Author Share Posted December 15, 2007 bump up. i need this for the UPS module not the USPS Quote Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted December 15, 2007 Share Posted December 15, 2007 Substitute ups for usps in Joanne's answer and you wont go far wrong. If you wanted to remove " x " in the line that example generates you would delete ' x ' . I am sure you can work the rest out yourself. Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
jweltydotcom Posted December 18, 2007 Author Share Posted December 18, 2007 I dont want the weights being posted to the site when a customer checksout and when i print invoices etc... is there anyway to remove the (1 pkg x 11 lbs total) from the following line: United Parcel Service (XML) (1 pkg x 11 lbs total) (UPS Ground) it works!! changed this: $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $this->boxCount . ($this->boxCount > 1 ? ' pkg(s), ' : ' pkg, ') . round($totalWeight,0) . ' ' . strtolower($this->unit_weight) . ' total)'); } else { $this->quotes = array('id' => $this->code, 'module' => $this->title . ' (' . $shipping_num_boxes . ($this->boxCount > 1 ? ' pkg(s) x ' : ' pkg x ') . round($shipping_weight,0) . ' ' . strtolower($this->unit_weight) . ' total)'); to THIS: $this->quotes = array('id' => $this->code, 'module' => $this->title . ' '); } else { $this->quotes = array('id' => $this->code, 'module' => $this->title . ' '); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.