dogpaw Posted March 30, 2005 Share Posted March 30, 2005 First of all, I'm selling shirts with different sizes. I have set up attributes for one product as "small, med, large, etc..." They are all the same price EXCEPT for the XXL size which is $2 more than the rest. I've figured out how to use the prefix as "+" and put 2.00 in the value price. That's fine but I want to just put the actual price in each value price box. But when I do, the prices don't calculate correctly. Ex. small is $8.50 (the regular price). If I put 8.50 and leave the prefix empty, the price shows up as "0" xxl is $10.50 ($2 more than regular). If I put 10.50 in the value price and leave the prefix empty, the price shows up as -$2 (that's negative 2). Is this just not possible to do? Should I go back to just using the $2 with the "+" in the prefix? thanks, Chijo Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted March 30, 2005 Share Posted March 30, 2005 There might be a contrib to deal witht his more elegantly, but you can use the prefix, and the $2 for example, but with a little code modification in product_info.php, you can get the actual price to display in the drop down box. Give me a second to find the right post for you. Jeremy Link to comment Share on other sites More sharing options...
dogpaw Posted March 30, 2005 Author Share Posted March 30, 2005 OK. Thanks Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted March 30, 2005 Share Posted March 30, 2005 http://www.oscommerce.com/forums/index.php?sho...ndpost&p=246566 This does it. Have you made any modifications to control the display order of your options yet? The out of the box logic right out of the box is kind of random I've found. Jeremy Link to comment Share on other sites More sharing options...
dogpaw Posted March 30, 2005 Author Share Posted March 30, 2005 Sure, I've made the mod to product_info.php so my options line up in the order they are listed in the Admin. I'll check out this link thanks. Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted March 30, 2005 Share Posted March 30, 2005 This is how I took control of the display order, so that it was always consistent and sensible for every product: You're looking in the file product_info.php for the line that says: tep_db_query function for $products_options.... When you find it add this to the end of the line : . "' order by products_options_values_id"); in place of the . "'"); that's there now Now all you need to do is make sure you link the attributes in the order you want them to appear, so that the id numbers are in ascending order (will display the attribute with the lowest id number first). Jeremy Link to comment Share on other sites More sharing options...
dogpaw Posted March 30, 2005 Author Share Posted March 30, 2005 I used that code from Matt in that thread. I'm still trying to figure out how to configure the Admin for the sizes and prices. If I put the actual price of the size in the value price, that price shows up as "$-8.50" in the drop down in the store and the add to cart price is actually "0" Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted March 30, 2005 Share Posted March 30, 2005 Ok, you need to have a default shirt size, that is the product, say large for example, and the product price is the price of a large shirt. Then put in the attributes for S, XL, XXL ect. and the price mod to suit. Eg S = - 2.00, XL = + 1.00, XXL = +2.00, what ever. Then it should work properly. Jeremy I almost forgot, make sure you put an attribute for large, but leave the price info blank for that attribute. And rereading above I see you use S as the default so start with it, and adjust off of it's price, so leave the price attribute for S blank, but set the product price for the S shirt. Link to comment Share on other sites More sharing options...
dogpaw Posted March 30, 2005 Author Share Posted March 30, 2005 Still confused. s, m, l, xl are all the same base price of $8.50. The XXL is $10.50. I put in $2.00 + Then I get ($2.00) in the drop down, without the "+" and then the price is correct once added to the cart. I don't get the $10.50 to show in the drop down. Link to comment Share on other sites More sharing options...
dogpaw Posted March 30, 2005 Author Share Posted March 30, 2005 If I leave the price attribute for S, M, L, and XL, the drop down is blank with no price. Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted March 30, 2005 Share Posted March 30, 2005 Sorry I'd forgotten to recheck your original post to use your example before. You want to leave it blank for all but XL, add put it to 2.00 + for XL. All should be blank except for XL which should show 10.50. Jeremy Link to comment Share on other sites More sharing options...
chijo Posted March 30, 2005 Share Posted March 30, 2005 Sorry to beat this topic to death but, if I leave all but the XXL blank. There are NO prices showing in the drop down. The price added to cart is correct though, but this is where I started in the default before I chaned the code. Adding 2.00 + for XXL shows $2.00 in the drop down but price is correct in cart. Again, this is the same as default. Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted March 30, 2005 Share Posted March 30, 2005 Not beating it to death at all, just trying to get it to work properly! So now with Matt's code in place, it still shows 2.00, but the + sign is gone? Jeremy Link to comment Share on other sites More sharing options...
dogpaw Posted March 30, 2005 Author Share Posted March 30, 2005 http://officialbeavertees.com/product_info...&products_id=30 Yes. Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted March 30, 2005 Share Posted March 30, 2005 I see. I guess all I can suggest is that you recheck the code to see that it matches Matt's completely. Also, would you prefer if the drop down displayed the product price even if the option value is zero? Jeremy Link to comment Share on other sites More sharing options...
dogpaw Posted March 30, 2005 Author Share Posted March 30, 2005 Yes, I'd like the product price to be displayed for ALL attributes, even if the price is the base price. I double, triple check Matt's code AGAIN. Link to comment Share on other sites More sharing options...
dogpaw Posted March 30, 2005 Author Share Posted March 30, 2005 I did notice that there's a note that Matt's code will not work if there is more than one option. I have two options but there is only one active for this one product that you just viewed. Could this still be a problem? Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted March 30, 2005 Share Posted March 30, 2005 Out of curiousity, what if you set the option values to the price you want for each size ($8.50 and $10.50), and set the product price to zero? Jeremy Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted March 30, 2005 Share Posted March 30, 2005 I don't think the second option is the issue, at least at this point. It seems to be treating the product price as zero as far as the drop down is concerned, but correct for the cart. Jeremy Link to comment Share on other sites More sharing options...
dogpaw Posted March 30, 2005 Author Share Posted March 30, 2005 That would leave the display price as $0 so people would think that product is free, right? Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted March 30, 2005 Share Posted March 30, 2005 Sort of, but you're not live yet are you?;) Jeremy Link to comment Share on other sites More sharing options...
dogpaw Posted March 30, 2005 Author Share Posted March 30, 2005 I think I'll just go with the default version for now. I've rechecked and uploaded that product_info.php file at least 6 times. Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted March 30, 2005 Share Posted March 30, 2005 Here's a contrib that should do the same thing, there may be more: http://www.oscommerce.com/community/contri...attribute+price Link to comment Share on other sites More sharing options...
dogpaw Posted March 30, 2005 Author Share Posted March 30, 2005 I TRULY appreciate your help with this thread. I'll check out this contrib. But for now ... dinner and sleep. I'll check back on this tomorrow. THANK YOU :sweating: Link to comment Share on other sites More sharing options...
Jeremy at oddly enough Posted March 30, 2005 Share Posted March 30, 2005 No problem, good luck, I hope you get it worked out without too much fuss. Here's another one for you to checkout, looks like it might update the price displayed on the page, not just the drop down menu: http://www.oscommerce.com/community/contri...attribute+price Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.