• 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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I am having this problem too, but this doesnt seem to fix it for me.

    jeroen

    (@jeroendahmeijer)

    @gaddoz

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

    Thread Starter gaddoz

    (@gaddoz)

    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…

    jeroen

    (@jeroendahmeijer)

    Hallo Gaddoz

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

    and indeed a developer would be nice

    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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Random Product Widget Categories Bug’ is closed to new replies.