Jump to content

Quantity upgrade with 0.2 instead of 1


Webbart

Recommended Posts

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

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 by Scully (see edit history)
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...