Woocommerce Shortcode does not work - by sociality

This topic has 5 replies, 2 voices, and was last updated 6 years, 10 months ago ago by Rose Tyler

  • Avatar: sociality
    sociality
    Participant
    June 21, 2017 at 08:30

    Hello,

    Something pretty weird happens. I use in one page this woocommerce shortcode [product_category category="accessories,sales" per_page="24" columns="4" orderby="date" order="desc" operator="AND"]. Instead of showing two products which are on sale (two are the products that fulfill the requirements), it shows 24 products which are not on sale.

    The page is here: http://update.dantemen.com/accessories-sales/

    I am not sure if this is a cause by your theme, I changed to parent and it remains.

    Thank you.

    Please, contact administrator
    for this information.
    4 Answers
    Avatar: sociality
    sociality
    Participant
    June 21, 2017 at 08:56

    The pretty weird thing is that when I change a parameter in the shortcode it fixes, but when I change it back it breaks.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 22, 2017 at 09:35

    Hello,

    Sorry for the delay.
    The same result you can see with Storefront theme – official WC theme so works of this shortcode are not related to our theme.
    You can use our Products element https://prnt.sc/fmr2l1 to show sale products on the page.

    Regards,
    Rose Tyler.

    Avatar: sociality
    sociality
    Participant
    June 27, 2017 at 13:11

    Hello,

    Thank you for your answer. Is there another way to achieve this. We have a “Sales” product category, so we need the “AND” operator to work. For example we have an “Outerwear” product Category and we want one page to show the Sales Outerwear products.

    Another solution would be to build our own shortcode, but we would like to avoid that!

    Thank you.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 27, 2017 at 14:31

    Hello,

    I suggest to use our Products element and set Categories IDs, also please check other options of this element.

    Regards,
    Rose Tyler.

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

You must be logged in to reply to this topic.Log in/Sign up

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