Add sale label to products in a specific category with a custom product builder layout

This topic has 3 replies, 2 voices, and was last updated 1 years, 1 months ago ago by Niddy

  • Avatar: Niddy
    Niddy
    Participant
    October 18, 2023 at 12:34

    Hi

    Is it possible to have the sale label assigned to products in a clearance category – without actually putting a sale / standard price in the general product data field?

    Essentially, we want to utilise the sale label feature on a category, showing only the actual sale price. The label auto-appears when you add a sale price, but then the product shows both prices and we do not want this – we only want to show the price – not the old / crossed out price.

    Is this possible?

    So there are two options to consider –

    1. Use the sale label without adding two prices – setting it by category only within the product builder;
    or
    2. Add both prices, but then a function to hide the original price (crossed out one) so it only shows the actual sales price?

    Please advise as this would be really useful.

    Thanks

    2 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 18, 2023 at 13:29

    Hello, Niddy,

    Thank you for contacting us and for using XStore.

    1/ There is no such possibility.
    2/ Try to use the next custom CSS code:

    .content-product .price del {
        display: none; 
    }
    .content-product .price ins {
        display: block;
    }

    Kind Regards,
    8theme team

    Avatar: Niddy
    Niddy
    Participant
    October 18, 2023 at 13:49

    Thanks for the css – this hides it in shop / category pages but not the specific product itself.

    I managed to do it using dynamic price content and using the feature to show sale price only. Nice one 🙂

    Thanks as always 🙂

  • Viewing 3 results - 1 through 3 (of 3 total)

The issue related to '‘Add sale label to products in a specific category with a custom product builder layout’' has been successfully resolved, and the topic is now closed for further responses

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.