jimdunn Posted May 1, 2008 Share Posted May 1, 2008 Loving PrestaShop so far Have already configured our shop to do almost everything we want. We are almost ready to go live with our shop, but we have one sticky problem. There is a particular product - a Pole - for which we need the client to enter an exact length before ordering. This can be any length from 180 to 300 cm. We MUST know the length when they order, because we cut the product to length. How can I add this as a mandatory field for them to complete ? As far as I can tell I would need to set up 120 options in an attribute, and even then I couldn't make it compulsory to make a selection different to the default. I need to be sure they have actively selected a length. And, just for fun, how can I make it affect the order weight once entered ? (because this will affect shipping) (Hoping I'm just missing something obvious here...) thanks Jim Link to comment Share on other sites More sharing options...
Peter Wilson Posted May 13, 2008 Share Posted May 13, 2008 Hi Jim, Did you figure out an easy solution to your problem? Indeed, at this point with PrestaShop you would have to create 120 different length attributes in an attribute group (e.g., "pole length") and then assign a price and weight difference to each one. I certainly wouldn't envy the person who has to set this up, but the second part of the task, assigning price and weight differences, can be done quickly using the Product combinations generator at Back Office >> Catalog >> Attributes >> Product combinations generator. Link to comment Share on other sites More sharing options...
jimdunn Posted May 14, 2008 Author Share Posted May 14, 2008 No, Peter, no easy solution, I'm afraid... It was actually a bigger problem than I thought - because there were 2 products needing this treatment. I couldn't possibly expect the lady for whom I had created the shop to do this - but, fortunately, I am a programmer, so managed to do it for her by adding records to the relevant tables for the attribute and combinations directly with some SQL queries. Not perfect, even then, because I still couldn't make this a mandatory selection - the buyer can just leave it at default - and it's a 120 item combo box on the product page instead of the better solution, a validated text box. I set the default attribute to a value of "Please Select" instead of a length, and told her if she gets any orders with that value she'll need to get back to the buyer to confirm the length. I could have coded something as an extra purchase step, but it needed to be done in a hurry, and I'm trying to limit the number of code modifications so as not to make the upgrade path too messy (I already have several modifications which will need to be redone at upgrade time). Jim Link to comment Share on other sites More sharing options...
kacrut Posted December 19, 2008 Share Posted December 19, 2008 how to change it? Link to comment Share on other sites More sharing options...
Recommended Posts