Bluemoon08 Posted December 18, 2008 Share Posted December 18, 2008 I'm working on an art gallery and would like for people to order frames and mats in addition to the artwork.I'd like to be able to set it up as drop-down options for each print.But the frame costs extra and I don't want the extra amount to automatically be added to the order. The default order would be just the print and not a frame or mat. However, if they want a frame or mat, they can select the color and then the price would be adjusted accordingly.How can I set it up so that:1. The price adjusts accordingly2. The default is no mat or frameIf I have the drop-down menu as: Select: Glass Frame Mat and the default setting is Select, then I'd like that to equal 0 (neither option). Is this possible? Link to comment Share on other sites More sharing options...
rocky Posted December 19, 2008 Share Posted December 19, 2008 Yes, I think this is possible, if I've understood you correctly. You could create one attribute group called Frame with a default attribute called No Frame and another attribute group called Mat with a default attribute called No Mat, both with price impacts of 0. You can then add Frame and Mat options with a price impact greater than 0 and they will only be added if the customer selects them from the combo boxes. Link to comment Share on other sites More sharing options...
Bluemoon08 Posted December 19, 2008 Author Share Posted December 19, 2008 Thanks for your reply! So, if I understand you correctly, I can create an attribute group called Frame and have a default attribute called No Frame with a price impact of 0 and the other attributes would have a price impact greater than 0.Then I could do the same with a Frame attribute. That's nifty if I can get it to work. I'll see.One thing that seems to be getting in my way is the pesky Quantity setting for attributes which apparently keeps track of the supply (which I turned off because I don't want to monitor the stock on here). I seem to be forced to put in a really high number like 9999 just to keep it from generating a "This item is not in stock" error. Link to comment Share on other sites More sharing options...
rocky Posted December 19, 2008 Share Posted December 19, 2008 Yes, I've come across the same quantity issue. I ended up fixing it by editing the updateQuantity function in Product.php. I commented out everything in the function except the first if statement and then added return true; to the end of the function, so now the quantity is not subtracted when a product is ordered. Link to comment Share on other sites More sharing options...
Bluemoon08 Posted December 19, 2008 Author Share Posted December 19, 2008 Thanks, Rocky. I figured that I'd have to get my 'hands dirty' with the code to resolve this issue. I don't mind doing that and have done stuff like that before.I'll see if I can figure it out. I'm not sure what you mean by adding "return true;" to the end of the function but it might be obvious when I look at the Product.php code. I might ask for your help if I run into a snag. Link to comment Share on other sites More sharing options...
Recommended Posts