Mias-Accessories Posted June 20, 2017 Share Posted June 20, 2017 Can anyone point me in the correct direction to fix this? I have been told the functionality for adding different locations for different attribute/combinations has been removed somewhere between versions 1.4.8.2 and versions 1.6.x.x I have separate locations e.g. a product with 6 colours each colour could be stored in a different location. This is no longer supported - now if I update a combination I lose my location data. I would like to as a minimum stop the location data field getting wiped out but more desirably to restore the functionality completely. I have added the attribute_location field to the relevant tpl but not sure where/what code to add I am guessing it is in the functions in the product class. Here is the closed bug report that I raised. http://forge.prestashop.com/browse/PSCSX-9149 Any help greatly appreciated thanks. Ian Link to comment Share on other sites More sharing options...
Mias-Accessories Posted June 27, 2017 Author Share Posted June 27, 2017 No ideas? I added the location field to the edit combinations tpl and can use it to add a new location but how do I populate this field with the existing location - I am not sure? Many thanks, Ian Link to comment Share on other sites More sharing options...
Mias-Accessories Posted July 19, 2017 Author Share Posted July 19, 2017 So I am looking in AdminProductsController.php.... Think I need to add something ....like ....Tools::getValue('Location') ... somewhere ??? Thanks for any help...any pointer greatly appreciated thanks Link to comment Share on other sites More sharing options...
Mias-Accessories Posted July 19, 2017 Author Share Posted July 19, 2017 Actually looks like I need to do something with Tools::getValue('attribute_combination_list') Link to comment Share on other sites More sharing options...
Mias-Accessories Posted July 19, 2017 Author Share Posted July 19, 2017 So forget that I am going with an edit to the tpl /admin/themes/defauly/template/controllers/products/combinations.tpl <div class="form-group"> <label class="control-label col-lg-3" for="attribute_location"> {l s='Location'} </label> <div class="col-lg-3"> <input maxlength="12" type="text" id="attribute_location" name="attribute_location" value="{$attribute_location}" /> </div> </div> And Product->updateAttribute ?? and product->addCombinationEntity?? Need to add attribute_location ?? Sorry too dizzy...I give up for now 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