1

In Magento2. How do you set all configurable products in the front-end to only show the description and short description of the main configurable product. Not the descriptions of the simple products?

It seems by default, that when you toggle and change between colours and sizes, it pulls the description content from the simple product that has been selected. Not the main configurable product.

We have a store with circa 10,000 products, where the simple products have description fields empty. So want to pull from the main configurable product where the descriptions are completed for main description and short description.

13
  • 1
    are you able to make your question clearer? maybe give example as I am at lost to what you are trying to achieve Commented May 13, 2020 at 13:32
  • Done. Updated the question now. Thanks.
    – MagentoMac
    Commented May 13, 2020 at 13:58
  • thanks, will look into this Commented May 13, 2020 at 14:00
  • ok, I have a basic Magento instance with luma theme sample data.. and whilst changing the parent description does change my main description on the frontend indeed... at no point, selecting size/colour does change my description.. hinting me you have a module doing the swap for you.. Commented May 13, 2020 at 14:07
  • 1
    Might be time for bounty Commented Jun 4, 2020 at 10:59

1 Answer 1

2

As per my comment, looks to me like you have a module doing some logic for you in your Magento store.

--> the solution may be to find what is the customisation that does this and alter it with a config for instance?

Having said that, if you really need a fix, I can either recommend a command that would assign the descriptions of your main products to all its simple

Or you may prefer a plugin that takes over getDescription method of the product model; if the product is a simple without description, it would pull its description from the parent: using the registry to pull the description, this does not give any overhead on your store.

11
  • Thanks for the help. Will look into integrations overriding Magento2 default then. Not looking for updating the product data, as when new products are fed in from the EPOS system, the problem will re-occur. So looking to change the code making this change. We have some plugins from Amasty enabled, but can't see any affecting the product page content. Will disable 1 by 1 and try to work out what is happening. Thanks.
    – MagentoMac
    Commented May 13, 2020 at 17:09
  • Still working on a solution for this. Are you sure this is default Magento2 to have only the configurable descriptions show? Our testing suggest it's the opposite, in that it will pull the simple description as the description to show on selection of the colour or size for that simple product while on the configurable in frontend. Surprised nobody else has hit this issue. Can't find any other posts about?
    – MagentoMac
    Commented May 19, 2020 at 14:31
  • I admit it could make sense but I also can't see this as a default feature by intuition. As previously mentioned, on my local (default magento 2.3.3 with sample data, I do not have this behaviour). Now, the fix is simple and I can provide you with the code for it Commented May 19, 2020 at 16:02
  • Do the simple products in your sample data have blank short descriptions? Or data in each?
    – MagentoMac
    Commented May 19, 2020 at 19:49
  • 2
    You mentioned Amasty - Are you using Colour Swatches for example, to get the pretty matrixes? Look at the Reloadable Information Settings options
    – iphigenie
    Commented Jun 6, 2020 at 12:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.