Announcement

Collapse
No announcement yet.

How to implement a sale? Products within category will not display the sale message.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to implement a sale? Products within category will not display the sale message.

    HI Folks,
    My goal is to show a sale message for a category (SPS) and every product in that category. I was able to get the message on the Category page, but not each product page.

    We are using Levels Readytheme. I edited the CTGY page to include a sale message for products within our Soaps (SPS) category. I also included some styling in our CSS file. The message appears nicely on the page. But when I try to add it to the Product Display page, the message would not display.
    We tried some debugging to show category output of the product display page, but the result was empty. I checked to see if the product was assigned to the SPS category and it was. Not sure what's going on...

    Here is the code used:

    <!-- Sale Message - Added by -TJ -->

    <mvt:if expr="('SPS' IN l.settings:product:categories)">

    <div class="sale-message">

    <p>Buy Any 4 Soaps, get the 5th Free. Discount applied at checkout.</p>

    </div>

    </mvt:if>

    My comment line appears when I inspect element, but the rest of the code is gone. Here is a sample page:
    https://www.wiseways.com/product/herbal-aloe-soap.html

    Can anyone tell me what's going wrong with the product display page? Or is there another method of advertising a sale of a given category and all products within that category, that would be better?

    Thanks!
    Last edited by birdwaves; Yesterday, 12:31 PM.
Working...
X