0

I have a store with Commerce 2 and Drupal 8.

In my store I created a reminder of 20% on the whole site.

I want a message to be posted on my site with the conditions, the percentage, the end date and the description of the discount.

A bit like this :

enter image description here

How can I do this ?

Thank you

0

There is no tool for general messages like this, because every site will construct its front-end differently. If this is only an occasional matter, you'd be best just creating the content manually. If it's going to happen with some regularity, you may just be best using custom code to define a template that can load a promotion entity and fill in the offer details from its fields.

  • I created a discounted view. Can not display the amount of the discount, there is nothing in the view. How to do ? – user91452 Jan 11 at 17:47
  • My recommendation was for custom code b/c I wasn't sure how integrated into Views all the parameters of a promotion are. How in control of the theme layer are you? – Ryan Szrama Jan 11 at 21:12
  • I finally found a solution using the description field of the discount in my view. – user91452 Jan 11 at 21:59

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.