I want to add a body class "custom-options" to the product page, when the product got some custom options.

How can I achieve that?


Admin -> catalog -> Product -> Design -> Layout Update XML

Add following code :

    <attribute name="class" value="custom-options" />
  • Thanks! But I want this an all product pages with custom options, how can I achieve that?
    – JGeer
    May 1 '20 at 18:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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