sooly Posted January 31, 2019 Share Posted January 31, 2019 Hello, im trying to make some changes in short description but i can't find which files should i edit. In long description its ProductController.php but i have no idea how short description is being processed. Anyone has idea? Thanks Link to comment Share on other sites More sharing options...
tdsoft Posted January 31, 2019 Share Posted January 31, 2019 It is field description_short in classes\Product.php Link to comment Share on other sites More sharing options...
sooly Posted February 4, 2019 Author Share Posted February 4, 2019 Thanks for help but thats probably not what im looking for. In ProductController.php im able to use code for displaying product features: if (isset($this->product)){ $features = $this->product->getFrontFeatures($this->context->language->id); $vypis = $features[0]['name']; $this->product->description=str_replace("{FEATURE_VAR}","{$vypis}","{$this->product->description}"); } but in Product.php this doesnt work. Link to comment Share on other sites More sharing options...
NemoPS Posted February 7, 2019 Share Posted February 7, 2019 Where are you doing it in product.php? Link to comment Share on other sites More sharing options...
sooly Posted February 12, 2019 Author Share Posted February 12, 2019 On 2/7/2019 at 2:39 PM, NemoPS said: Where are you doing it in product.php? In "public function validateField". Should I place it anywhere else ? Link to comment Share on other sites More sharing options...
NemoPS Posted February 13, 2019 Share Posted February 13, 2019 Can you describe what you need that for? That function is not the one you want to use, but the best one really depends on where and how you need the information to be retrieved/displayed Link to comment Share on other sites More sharing options...
sooly Posted February 18, 2019 Author Share Posted February 18, 2019 We have eshop with batteries. We have stored informations like capacity or voltage in features. I would like to take these features and put them in short description so customer can see it. Link to comment Share on other sites More sharing options...
sooly Posted February 20, 2019 Author Share Posted February 20, 2019 On 2/13/2019 at 2:49 PM, NemoPS said: Can you describe what you need that for? That function is not the one you want to use, but the best one really depends on where and how you need the information to be retrieved/displayed Would like to put features right as it is on picture . Link to comment Share on other sites More sharing options...
NemoPS Posted February 20, 2019 Share Posted February 20, 2019 You don't need anything extra, why not using the standard block prestashop has? You can style it to a table and just move it around product.tpl Link to comment Share on other sites More sharing options...
sooly Posted March 22, 2019 Author Share Posted March 22, 2019 We need it in short description because we are exporting XML to google merchant and we have short description blank. So we want to have product featrues there. Any ideas ? 😕 Link to comment Share on other sites More sharing options...
NemoPS Posted March 22, 2019 Share Posted March 22, 2019 I would re-think the strategy. Eventually what you can do is populate the xml on export by editing the module directly, grabbing the features and writing them to the description field it exports, only. That's how I would go about it. 1 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