WordPress.org

Ready to get started?Download WordPress

Forums

WP e-Commerce
[resolved] Shortcode to display all SALE items? (6 posts)

  1. sonic1243
    Member
    Posted 4 months 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

    http://wordpress.org/plugins/wp-e-commerce/

  2. sonic1243
    Member
    Posted 4 months 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
    Member
    Plugin Author

    Posted 3 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:
    https://github.com/wp-e-commerce/WP-e-Commerce/

  4. sonic1243
    Member
    Posted 2 months 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
    Member
    Plugin Author

    Posted 2 months ago #

    @sonic1243
    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
    Member
    Posted 2 months 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" ..

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.