Webbart Posted August 20, 2017 Share Posted August 20, 2017 (edited) Hi, I already searched but couldn't find how I can increase or decrease the quantity in the shopcard with 0.2 instead of 1 Is there any possibility? I use prestashop 1.6 Thanks a lot Edited August 20, 2017 by Webbart (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted August 20, 2017 Share Posted August 20, 2017 Prestashop can deal only with whole numbers. There are a lot of commercial modules available that can deal with fractions. Link to comment Share on other sites More sharing options...
Webbart Posted August 20, 2017 Author Share Posted August 20, 2017 I'm sure it can be done with the code somehow. But I don't know how and where exactly Link to comment Share on other sites More sharing options...
Scully Posted August 20, 2017 Share Posted August 20, 2017 If you are sure it can be done - your are correct. If you don't know where - let it be as it is. You had to change approximately 10 to 15 files to achieve that. I would never do that work if a modules is available which does it good. Link to comment Share on other sites More sharing options...
Webbart Posted August 20, 2017 Author Share Posted August 20, 2017 I've no problem to make changes to files and database tables I'm a programmer But I have to know what and where Can somebody help me please Link to comment Share on other sites More sharing options...
Scully Posted August 20, 2017 Share Posted August 20, 2017 (edited) If you are a programmer - do a recursive full text search on all PHP and TPL files with the search term "quantity". But I am willing to assist with a little help. Database tables to change (might be more than i found in quick search) - ps_discount- ps_orders- ps_order_detail- ps_order_return_detail- ps_order_slip_detail- ps_pack- ps_product- ps_product_shop- ps_product_attribute- ps_product_sale- ps_specific_price- ps_stock_mvt Core Files: - prestashop/classes/Attribute.php- prestashop/classes/Cart.php- prestashop/classes/Customization.php- prestashop/classes/Discount.php- prestashop/classes/Order.php- prestashop/classes/OrderDetail.php- prestashop/classes/OrderHistory.php- prestashop/classes/OrderReturn.php- prestashop/classes/Product.php- prestashop/classes/ProductSale.php- prestashop/classes/QuantityDiscount.php- prestashop/classes/StockMvt.php- prestashop/controllers/CartController.php- prestashop/controllers/OrderController.php- prestashop/order.php- prestashop/cart.php TPL Files product.tpl product-list.tpl eventually And don't forget to tell us how much time it needed to change all. Edited August 20, 2017 by Scully (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted August 20, 2017 Share Posted August 20, 2017 You might spend some time searching the forum. I remember vaguely that someone was busy with this some time ago but I am not sure how far he came. Link to comment Share on other sites More sharing options...
prestahero.com Posted August 21, 2017 Share Posted August 21, 2017 it might be possible it it would be very difficult (and it will change alot in Prestashop core files + database) to have quantity like 0.2 My recommendation is to keep the quantity as it is (an int value) but try to change the unit that you are using to measure your product quantity (eg: instead of 0.2m, say it 20cm) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now