Guest kies76 Posted November 10, 2012 Share Posted November 10, 2012 Hello We sell fabrics through our site Using CC5. I want that the customers could also buy 0.5 metre (50cm), 0.75 or 1.33 whatever length they want. But If they enter 2.5 quantity the system will round it down to 2. If a customer want to order 0.5 the system will roun dit up to 1. Is there any way to change that? Also it would be great if the customers could use 2.5 and 2,5 to do an order. We live in Luxembourg and most people in Europe here write 2,5 with a comma. Any help is much appreciated Christian Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted November 10, 2012 Share Posted November 10, 2012 The comma instead of decimal point has been discussed on the forum somewhere, and the rounding sounds like something fixable, too. But someone who can help would like to know what version you are using and other setup info. Please create your sig. Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 10, 2012 Share Posted November 10, 2012 I did this for CC3/4 and should be easy enough for CC5. I'll get back to this shortly. Quote Link to comment Share on other sites More sharing options...
Guest kies76 Posted November 10, 2012 Share Posted November 10, 2012 Added my signature Quote Link to comment Share on other sites More sharing options...
bsmither Posted November 10, 2012 Share Posted November 10, 2012 In exploring the code, I've discovered that when clicking Add to Basket from the View Category page, one is able to place in the basket partial units (but must be one or greater), yet, when clicking Add to Basket from the View Product page, only integer values can be placed in the basket. This proves that once we get past the point of getting the product in the basket, partial units will probably stay that way (but one or greater). So, there is a disparity. (I'll submit a bug report.) In the meantime, in the file /classes/cart.class.php at around line 170, find just this part at the end of the statement: (int)$_POST['quantity']); Substitute (float) for (int). Experiment and report your results. This does not solve the less than one situation, nor the comma/period situation. I can work on that later. We will also need to add some special handlers for Gift Certificates. I suppose you wouldn't want to sell 2.5 Certificates. Quote Link to comment Share on other sites More sharing options...
vidmarc Posted October 4, 2013 Share Posted October 4, 2013 Did you manage to figure a fix out for this? We need to be able to sell fabric in half metre increments. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted October 4, 2013 Share Posted October 4, 2013 This has been discussed before. If you search for fabric here, and on the 3rd party forum, you may find an answer that works for you. There is a reference to a paid solution someone created for another fabric seller. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.