Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

USPS module adding 5 Lbs to all product weights


yazawa

Recommended Posts

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)?

Link to comment
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
Link to comment
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
Link to comment
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://www.oscommerce.com/forums/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 ======>>>>>.

Link to comment
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?

Link to comment
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 ======>>>>>.

Link to comment
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://www.oscommerce.com/forums/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
Link to comment
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.

Link to comment
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

Link to comment
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://www.oscommerce.com/forums/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 ======>>>>>.

Link to comment
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

Link to comment
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.

Link to comment
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 ======>>>>>.

Link to comment
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...