WP eCommerce
[resolved] Shortcode to display all SALE items? (6 posts)

  1. sonic1243
    Posted 2 years ago #

    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


  2. sonic1243
    Posted 2 years ago #

    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....

  3. Dan Milward
    Posted 2 years ago #

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

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

  4. sonic1243
    Posted 2 years ago #

    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?

  5. Mihai
    Plugin Author

    Posted 2 years ago #

    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 ?

  6. sonic1243
    Posted 2 years ago #

    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" ..

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.