• Resolved jewelsbytrish

    (@jewelsbytrish)


    I am creating a password protected page to display sale items for my VIP customers. I want to display the sale items only on this page and hide them from my regular shop page. I figured out I needed to set my Products to “search” only in the visibility section so that they do not show up on my Shop Page. Now how do I get the on sale products to show up on the new page?

    I’ve tried this shortcode: [products limit=”12″ columns=”3″ visibility=”on_sale” ]
    but it is showing all kinds of products that aren’t actually on sale.

    Thanks in advance.

    Trish

    *I hope I am posting this in the correct spot for WooCommerce.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter jewelsbytrish

    (@jewelsbytrish)

    So I figured out the shortcode to get the sale products on the password protected page. I used [sale_products per_page=”12″ columns=”4″ orderby=”date” order=”ASC”]
    and it works.

    Now I just can’t figure out how to keep the sale product from showing up on my main shop page. Does anyone have any ideas? TIA

    Plugin Support RK a11n

    (@riaanknoetze)

    Hi there!

    You could create a second shop page that uses a shortcode instead of being auto-populated by WooCommerce.

    That way you could make use of the IN and NOT IN shortcode parameter as mentioned here: https://docs.woocommerce.com/document/woocommerce-shortcodes/#content-product-attributes. Note that you’ll want to make sure the products are in different categories (e.g. “On Sale” and “Regular”)

    Thread Starter jewelsbytrish

    (@jewelsbytrish)

    Hi,

    Thanks for your response. I’ve already created the 2nd shop page. What I don’t understand is how to use those shortcodes mentioned above on that page to get them to work.

    Thread Starter jewelsbytrish

    (@jewelsbytrish)

    For example, if I try this shortcode on the new page, a bunch of products that are NOT on sale show up. [products limit=”12″ columns=”3″ visibility=”on_sale” ]

    Hi @jewelsbytrish,

    If you’re wanting to show the products that are on sale, you can use a shortcode like this:

    
    [products limit=”12″ columns=”3″ on_sale=”true”]
    

    That should give you a grid of twelve on sale products in rows of three.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How To Post Sale Items on One Page in WooCommerce’ is closed to new replies.