Support » Plugin: WP eCommerce » Shortcode to display all SALE items?

  • Resolved sonic1243


    Hello .. I’m after a shortcode to display all the SALE items we have, within a post.

    [wpsc_products category_id=’19’ price=’sale’]
    This works well to display SALE items within a category, but how about ALL sale items in ALL categories? I’ve tried a few things but no joy yet, any ideas? TY

Viewing 5 replies - 1 through 5 (of 5 total)
  • Actually it looks like price=’sale’ has stopped working, or stopped working properly, it’s showing all products within the category; sale or not-sale .. I’m sure that was working when I set it up some months ago….

    @ sonic1243 – thanks for the post. did you manage to get this resolved?

    If you coded a fix please submit a pull request here:

    Hi Dan, sorry for the late reply ..
    No I have not looked into this since, and have no solution.

    Surely this would be a popular feature, a shortcode to list all sale items..? I’m not a PHP coder so I can’t help, but are we considering this a feature request?

    Plugin Author Mihai Joldis


    I just tested the following shortcode inside a Page and it is working.
    [wpsc_products price='sale']

    it shows all products on sale.

    What WPEC version you running ?

    Cheers misulicus ..
    I’ve just tried this on a basic test site and it is working – except that it doesn’t show sale products with variants? So I’m seeing simple sale items, but not sale items that have variants..? I’ve tried POST and PAGE and both seam to act the same.

    I’m trying this on two test sites; both fully up to date, one works and one doesn’t; the broken one just defaults to showing the shortcode as if it was [productspage]. It’s not the theme’s fault. And this is the same reason why it doesn’t work on the live shop site which led me to post in the first place. No idea what’s goin on there…

    EDIT: Something to do with this message I’ve not seen before: “Combination of product variants is not available” ..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shortcode to display all SALE items?’ is closed to new replies.