Jump to content
Sign in to follow this  
yazawa

USPS module adding 5 Lbs to all product weights

Recommended Posts

All products have 5 Lbs added to their weight during the checkout process. Does anyone know what is causing this?

 

Thanks

Share this post


Link to post
Share on other sites

Hi

 

what have you got in this box?

 

Categories/Products >> New Product >> Products Weight ( the last box at the bottom of page)?


Thanks Simon

 

osCommerce Version: Online Merchant v2.2 RC 2a - Test Site with: oscommerce-2.2ms2-060817

cPanel Version: 11.23.4-RELEASE - Apache version: 2.0.63 - PHP version: 5.2.5 - MySQL version: 5.0.51a-community - Operating system: Linux

========================================================================

Share this post


Link to post
Share on other sites

It doesn't matter what weight I put in to each product. 0 Lbs to whatever, OSC is adding 5 Lbs to each.

 

Hi

 

what have you got in this box?

 

Categories/Products >> New Product >> Products Weight ( the last box at the bottom of page)?

Share this post


Link to post
Share on other sites

Hi

 

then it is not the core osC but the USPS module so look over the file it uses and the sql has it must be h/code in some where?

 

also try putting on this

 

Configuration >> Product Listing >> Display Product Weight

 

then look at Categories Product Listing in the front end and see if it is showing 5 or not if not then it is the USPS module adding it in s/cart

Edited by West One Hosting

Thanks Simon

 

osCommerce Version: Online Merchant v2.2 RC 2a - Test Site with: oscommerce-2.2ms2-060817

cPanel Version: 11.23.4-RELEASE - Apache version: 2.0.63 - PHP version: 5.2.5 - MySQL version: 5.0.51a-community - Operating system: Linux

========================================================================

Share this post


Link to post
Share on other sites
Hi

 

then it is not the core osC but the USPS module so look over the file it uses and the sql has it must be h/code in some where?

 

also try putting on this

 

Configuration >> Product Listing >> Display Product Weight

 

then look at Categories Product Listing in the front end and see if it is showing 5 or not if not then it is the USPS module adding it in s/cart

 

Added Display weight. It does show the correct weight on the site. Which files and in which folders are for the USPS module that I should be looking at? Sorry, I'm a noob at this. Thanks.

Edited by yazawa

Share this post


Link to post
Share on other sites

Might be more useful to look at the tare wt setting in Configuration >> Shipping / Packaging

 

 

 

West One, have I spotted a bit of hypocrisy or was it that the other guy wanted to charge for passing on free advice?

 

http://forums.oscommerce.com/index.php?sho...0&p=1303175

 

Boy, am I going to have egg on my face if this is not it.


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 ======>>>>>.

Share this post


Link to post
Share on other sites
Might be more useful to look at the tare wt setting in Configuration >> Shipping / Packaging

 

It was the setting TARE weight that added 5 lbs. Set that to 0, now it is only adding .01 lbs. This is still a problem, though. I have items that have to be shipped by freight, and I put that as individual product options. I need USPS to ignore 0 weight products. What do I need to do now?

Share this post


Link to post
Share on other sites
It was the setting TARE weight that added 5 lbs. Set that to 0, now it is only adding .01 lbs. This is still a problem, though. I have items that have to be shipped by freight, and I put that as individual product options. I need USPS to ignore 0 weight products. What do I need to do now?

 

Have a look in the database using phpmyadmin and see what the tare wt is in the configuration table.

 

Then check what wt is held against each product or use the display product wt idea from West One.

 

Is either of these 0.01?

 

No?

 

Then go to \includes\modules\shipping\usps.php

 

// usps doesnt accept zero weight

$shipping_weight = ($shipping_weight < 0.1 ? 0.1 : $shipping_weight);

$shipping_pounds = floor ($shipping_weight);


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 ======>>>>>.

Share this post


Link to post
Share on other sites
West One, have I spotted a bit of hypocrisy or was it that the other guy wanted to charge for passing on free advice?

 

http://forums.oscommerce.com/index.php?sho...0&p=1303175

 

Boy, am I going to have egg on my face if this is not it.

 

Yes, it appears that he has stumbled across OScomerce and realised if was free, without any knowledge or reading up on it, started paid work on it. I am, personally, getting fed up with people who are happy to charge people for work without even having a basic knowledge of OS to support that client.

 

No you haven't got egg on your face and I obviously wasn't charging him for free advise, I mearly pointed him to the documentation which he appeared not to like, not only did he post in the way he did but also posted a very rude pm to me !

Edited by West One Hosting

Thanks Simon

 

osCommerce Version: Online Merchant v2.2 RC 2a - Test Site with: oscommerce-2.2ms2-060817

cPanel Version: 11.23.4-RELEASE - Apache version: 2.0.63 - PHP version: 5.2.5 - MySQL version: 5.0.51a-community - Operating system: Linux

========================================================================

Share this post


Link to post
Share on other sites
Have a look in the database using phpmyadmin and see what the tare wt is in the configuration table.

 

Then check what wt is held against each product or use the display product wt idea from West One.

 

Is either of these 0.01?

 

No?

 

Then go to \includes\modules\shipping\usps.php

 

// usps doesnt accept zero weight

$shipping_weight = ($shipping_weight < 0.1 ? 0.1 : $shipping_weight);

$shipping_pounds = floor ($shipping_weight);

 

Sorry, as stated above, I'm a noob at this. Never dealt with online databases. Where do I find phpmyadmin and how do I use it? Is there an access in OSC that I'm missing?

 

Do you have a link to West One's idea for product wt display that you referred to?

 

Lastly, not sure what you wanted me to do with the code you listed above. Found the file and code easily enough. Do I need to change it somehow? Strange that OSC opens the shipping module with a 0 weight product. How come it doesn't do this to downloaded files?

 

Thanks.

Share this post


Link to post
Share on other sites
Sorry, as stated above, I'm a noob at this. Never dealt with online databases. Where do I find phpmyadmin and how do I use it? Is there an access in OSC that I'm missing?

 

Do you have a link to West One's idea for product wt display that you referred to?

 

Lastly, not sure what you wanted me to do with the code you listed above. Found the file and code easily enough. Do I need to change it somehow? Strange that OSC opens the shipping module with a 0 weight product. How come it doesn't do this to downloaded files?

 

Thanks.

 

Hi

 

1) "Where do I find phpmyadmin and how do I use it?" it will be in you hosting panel on the server.

 

do you have cPanel?

 

if so look under DATABASES >> phpmyadmin >> got to you osC database then configuration table.

then follow geoffreywalton post


Thanks Simon

 

osCommerce Version: Online Merchant v2.2 RC 2a - Test Site with: oscommerce-2.2ms2-060817

cPanel Version: 11.23.4-RELEASE - Apache version: 2.0.63 - PHP version: 5.2.5 - MySQL version: 5.0.51a-community - Operating system: Linux

========================================================================

Share this post


Link to post
Share on other sites
Sorry, as stated above, I'm a noob at this. Never dealt with online databases. Where do I find phpmyadmin and how do I use it? Is there an access in OSC that I'm missing?

 

********* You ISP's control panel usually has a link to phpmyadmin and you can "browse" your data using this option

 

Do you have a link to West One's idea for product wt display that you referred to?

 

******** http://forums.oscommerce.com/index.php?s=&...t&p=1303251

 

Lastly, not sure what you wanted me to do with the code you listed above. Found the file and code easily enough. Do I need to change it somehow? Strange that OSC opens the shipping module with a 0 weight product. How come it doesn't do this to downloaded files?

 

********** Thought you might want to comment out the line that says if the shipping wt is less than 0.1 change it to 0.1 otherwise leave it at its' original value.

 

What I posted was a logical investigation of the problem. You can skip to the last step, see above, but by going into the db tables you will see what is stored there which will make it easier to understand osc.

 

Now you only problem is to identify the line to comment out and how to make a line a comment. (Mean aren't I)

 

Just had a thought, how can you ship zero wt items by usps?

Edited by geoffreywalton

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 ======>>>>>.

Share this post


Link to post
Share on other sites
What I posted was a logical investigation of the problem. You can skip to the last step, see above, but by going into the db tables you will see what is stored there which will make it easier to understand osc.

 

Now you only problem is to identify the line to comment out and how to make a line a comment. (Mean aren't I)

 

Just had a thought, how can you ship zero wt items by usps?

 

OK, my problem just keeps getting more complicated. Went directly to my hosting company control panel and used their mysqladmin to try and look at the database. The problem is, it lists three of them, none of which has anything in them. Can't even find the working one (I know it's there, because OSC would not be working, otherwise.) And as far as I know, I don't have cPanel.

 

I know enough PHP to know how to comment out, so you're not that mean. :-)

 

As for shipping zero with usps, I'm not. The zero weight products need to be shipped flat-rate freight. Since flat rate options in shipping are not set up for my needs, I put the shipping charge in a product attribute, instead. I DO NOT want usps shipping to even come up as an option for these products, but they do anyway.

 

I'll try commenting out the .01 line and see what happens. I'll let you know if that works.

 

Thanks

Share this post


Link to post
Share on other sites
OK, my problem just keeps getting more complicated. Went directly to my hosting company control panel and used their mysqladmin to try and look at the database. The problem is, it lists three of them, none of which has anything in them. Can't even find the working one (I know it's there, because OSC would not be working, otherwise.) And as far as I know, I don't have cPanel.

 

I know enough PHP to know how to comment out, so you're not that mean. :-)

 

As for shipping zero with usps, I'm not. The zero weight products need to be shipped flat-rate freight. Since flat rate options in shipping are not set up for my needs, I put the shipping charge in a product attribute, instead. I DO NOT want usps shipping to even come up as an option for these products, but they do anyway.

 

I'll try commenting out the .01 line and see what happens. I'll let you know if that works.

 

Thanks

 

Now I get an error for USPS during checkout. It won't let me bypass it. Isn't there a way to tell OSC not to use any shipping on certain products? That would be far simpler.

Share this post


Link to post
Share on other sites

So what you are really saying is that you want to charge delivery on certain product on a per item basis and then add the wt of all the other products together and charge those by wt bands.

 

Your best bet is to search the contributions.


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 ======>>>>>.

Share this post


Link to post
Share on other sites

HI

 

Can you give a e.g list of say 5-10 items and what you what to charge for del?

 

also have a look at http://addons.oscommerce.com/info/1333

Edited by West One Hosting

Thanks Simon

 

osCommerce Version: Online Merchant v2.2 RC 2a - Test Site with: oscommerce-2.2ms2-060817

cPanel Version: 11.23.4-RELEASE - Apache version: 2.0.63 - PHP version: 5.2.5 - MySQL version: 5.0.51a-community - Operating system: Linux

========================================================================

Share this post


Link to post
Share on other sites
HI

 

Can you give a e.g list of say 5-10 items and what you what to charge for del?

 

Hi. Not sure what you are asking, here. To clarify what I need, I carry small items that will be shipped via USPS, and I also carry large items (Table Tennis Tables as an example) that require freight. I put the price of freight shipping into the items themselves using product attributes. I need these freight shipped products to NOT include any other shipping charges. I've posted a new thread asking specifically about how to do this. Thread here.

Share this post


Link to post
Share on other sites

You will not get as much of a mix on shipping as you are looking for.

 

so give up trying and just use

 

Individual Product Shipping Prices - v1.0

 

http://addons.oscommerce.com/info/1333


Thanks Simon

 

osCommerce Version: Online Merchant v2.2 RC 2a - Test Site with: oscommerce-2.2ms2-060817

cPanel Version: 11.23.4-RELEASE - Apache version: 2.0.63 - PHP version: 5.2.5 - MySQL version: 5.0.51a-community - Operating system: Linux

========================================================================

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×