WordPress.org

Ready to get started?Download WordPress

Forums

Random Product
Random Product Widget Categories Bug (6 posts)

  1. gaddoz
    Member
    Posted 3 years ago #

    I there,
    i found out a small bug on the Random Product Widget Plugin.
    the behaviour is getting wrong product urls when the product is under a category.

    in the code I found:
    $random_product_category_nice_name = $wpdb->get_var("SELECT nice-name FROM $wpsc_product_categories WHERE id = $random_product_id");

    and I fixed changing it to:
    $random_product_category_nice_name = $wpdb->get_var("SELECT nice-name FROM $wpsc_product_categories WHERE id = $random_product_category");

    hopefully it'll be included on the next release!

    http://wordpress.org/extend/plugins/random-product/

  2. MikesSite
    Member
    Posted 3 years ago #

    I am having this problem too, but this doesnt seem to fix it for me.

  3. jeroen
    Member
    Posted 3 years ago #

    @gaddoz

    i have the same problem only your solution doesn't seem to work for me either

  4. gaddoz
    Member
    Posted 3 years ago #

    Sorry guys...
    Which versions are you running (WP and Cart)?
    It worked for me with:
    WP: 3.0.1
    WP-eCommerce: 3.7.6.9

    Would be nice to see somebody from the development team here...

  5. jeroen
    Member
    Posted 3 years ago #

    Hallo Gaddoz

    i use the same versions as you do. don't understand it

    and indeed a developer would be nice

  6. MikesSite
    Member
    Posted 3 years ago #

    This is really weird. The plugin (with gaddoz correction) worked for a little while, then when I added more products it stopped working - the random plugin started to leave the category out of the URL, even with gaddoz corrections.

    Anybody have any ideas?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic