Marcus_M Posted October 20, 2021 Share Posted October 20, 2021 Hi Have problem that default quantity on product pages are 0. I want it to be 1. On products with combinations it show 1 as default. I use version 1.7.7.8 Thanks! Link to comment Share on other sites More sharing options...
ps8modules Posted October 21, 2021 Share Posted October 21, 2021 (edited) ./classses/Product.php find public function addAttribute. change quantity = 0 to 1 public function addAttribute( $price, $weight, $unit_impact, $ecotax, $id_images, $reference, $ean13, $default, $location = null, $upc = null, $minimal_quantity = 1, array $id_shop_list = [], $available_date = null, $quantity = 1, $isbn = '', $low_stock_threshold = null, $low_stock_alert = false, $mpn = null ) Edited October 21, 2021 by WebSoft (see edit history) 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