Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Shipping, per item, usps not working


Recommended Posts

First time setup of OScommerce for me. I'm stuck on shipping.


I'd be fine with "per item" however, it seems that cart contents have no effect on this. For example, if I say $1 per item, and 3 of the same items are in the cart, I would presume that the shipping would be $3. However, shipping shows up as $1. No matter how many items are in the cart - it's stuck at the single unit price.


Is this problem rooted in my DB settings? Is it in the module itself?


This appears to be the relevant line from the module and it looks like it ought to work:


$shipping_item_cost = SHIPPING_HANDLING + (SHIPPING_ITEM_COST * $total_count);


Unless $total_count is the number of unique products ordered, rather than the total number of units ordered (even if the same product).


Second question relates to the USPS module. It just doesn't work for me - I end up with a repeating string of this:


Warning: fopen(NONE?API=Rate&XML=Priority982253124550NoneREGULARFalse): failed to open stream: No such file or directory in /xxxx/xxxxxxx/public_html/ecommerce/os/catalog/includes/classes/usps.php on line 109


Warning: feof(): supplied argument is not a valid stream resource in /xxxx/xxxxxxx/public_html/ecommerce/os/catalog/includes/classes/usps.php on line 110


Warning: fgets(): supplied argument is not a valid stream resource in /xxxx/xxxxxxx/public_html/ecommerce/os/catalog/includes/classes/usps.php on line 111


(the "...on line 110" and "... on line 111" then repeat forever)


So first question will "per item" will do what I want as described above? If so, I can forget about USPS module. If not, what is going on? It seems that OScomerce stores some values as text files, some in the database. Is there an easy way to go about modifying the information so it works ok? Am I barking up the wrong tree?


Any guidance much appreciated.

Link to comment
Share on other sites

Eventually I figured out "item" shipping - it is a flat cost per "product" without reference to the number of units. So if a person orders 100 copies of Product X, the item.php module does not multiply shipping_cost x 100. Rather it multiplies shipping_cost x 1 because it doesn't look at the total number of things in the cart - just the number of different TYPES of things in the cart. <sigh> ... usps.php still not working for me.

Link to comment
Share on other sites


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

  • Create New...