Re: Cooool...
carrerarod <[email protected]> 13 Sep 2003 15:28:45 -0000
| Newsgroups | gmane.comp.web.oscommerce.contributions |
|---|---|
| Message-ID | <76fa267cdcbac38fceec1d4389052690@osCommerce-Forums> |
This message was sent from: Contributions http://forums.oscommerce.com/viewtopic.php?p=228899#228899 ---------------------------------------------------------------- [quote="dmGremlin"]Genius also brought up an interesting point in a private message I have neglected to look at in any detail until now... as it stands now, if you have two different products in the cart, it will use the first price for the first one of each item then the second price for any quantity beyond one for each item, but say you wanted to use the second price on every item after the first item in the cart, regardless of if they are different products... this opens up a small can of worms in that you'd have to figure out how to specify which item came first - so that the first price would be accurate. Beyond that, I think you'd just have to replace one line... well I'm not entirely sure what to replace it to, but there's a function in the shopping_cart.php called 'count_contents' that seems to count the total number of things in the cart. You'd need to put an if statement that if the contents were more than 1, use the second price... I can't think of the proper 'sp elling' for this offhand but if someone were to start tinkering with it, that would be a good place to start. [/quote] So I have been using this contrib for about 2 weeks now in production. My sales have really jumped and I think it's partially because of this contrib. This contrib allowed me to let my customers know what the shipping cost would be regardless of their location for any given product. I tested this theory out on a few products with positive results. I would however like some ideas on how to deal with the above. I have customers that purchase several products and their shipping turns out to be too high with this contrib. Let's say they purchase 3 different products @ $8 ea for shipping, their total would be $24.... I would love to simply "average it out". Just not sure which script does that math. If customer buys 3 products at $8, $9 and $10 shipping for ea. I would love to see the total shipping for that order average to $9..... Ideas? Thoughts?