Random Product
Random Product Widget Categories Bug (6 posts)

  1. gaddoz
    Posted 4 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!


  2. MikesSite
    Posted 4 years ago #

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

  3. jeroen
    Posted 4 years ago #


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

  4. gaddoz
    Posted 4 years ago #

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

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

  5. jeroen
    Posted 4 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
    Posted 4 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

  • Random Product
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic