Jump to content

What controller is used to display SHORT DESCRIPTION ?


Recommended Posts

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

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

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 .

Bez-názvu-1.jpg

Link to comment
Share on other sites

  • 1 month later...

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.

  • Like 1
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...