Select Page

Product Filtering

Home Forums Support Product Filtering

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • Helpful
    Up
    0
    Down
    Not Helpful

    Howdy!

    Am getting this error message when I try to filter anything in the shop:

    2019/04/22 18:32:26 [error] 1696#1696: *93257 FastCGI sent in stderr: “ld not be accessed directly. Backtrace: do_action(‘wp_ajax_prdctfltr_respond_550’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Prdctfltr_Shortcodes::prdctfltr_respond_550, WC_Prdctfltr_Shortcodes::get_products, wc_get_template, include(‘/plugins/woocommerce/templates/content-product.php’), do_action(‘woocommerce_before_shop_loop_item_title’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_show_product_loop_sale_flash, wc_get_template, include(‘/plugins/divi-bodycommerce/includes/templates/woocommerce/loop/sale-flash.php’), apply_filters(‘woocommerce_sale_flash’), WP_Hook->apply_filters, bodycommerce_woocommerce_savings_on_sales_flash, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: sale_price was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_prdctfltr_respond_550’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Prdctfltr_Shortcodes::prdctfltr_respond_550, WC_Prdctfltr_Shortcodes::get_products, wc_get_template, include(‘/plugins/woocommerce/templates/content-product.php’), do_action(‘woocommerce_before_shop_loop_item_title’), WP_Hook->do_action, WP_Hook->apply_filters, woocommerce_show_product_loop_sale_flash, wc_get_template, include(‘/plugins/divi-bodycommerce/includes/templates/woocommerce/loop/sale-flash.php’), apply_filters(‘woocommerce_sale_flash’), WP_Hook->apply_filters, bodycommerce_woocommerce_savings_on_sales_flash, WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong. This message was added in version 3.0.PHP message: id was called incorrectly. Product properties should not be accessed directly. Backtrace: do_action(‘wp_ajax_prdctfltr_respond_550’), WP_Hook->do_action, WP_Hook->apply_filters, WC_Prdctfltr_Shortcodes::prdctfltr_respond_550, WC_Prdctfltr_Shortcodes::get_products, wc_get_template, include(‘/plugins/woocommerce/templates/content-product.php’), do_action(‘woocommerce_before_shop_loop_item_title’

    The filter does work, but shortcodes are not working properly any more.

    This is on BC 3.3.

    Thank you

    Helpful
    Up
    0
    Down
    Not Helpful

    What plugin are you using for filtering?

    Helpful
    Up
    1
    Down
    Not Helpful

    This is the particular program I am using currently: https://mihajlovicnenad.com/product-filter/

    However, what I did find out is that after updating to the latest woocommerce 3.6, the database did not finish updating and it was stuck on version 3.5.7 (or whatever it was). After hopping into WPCLI and manually updating the database to 3.6, the filtering seemed to start working again, and that error code stopped being thrown, at least from my last check on the sites logs.

    Thank you! This is no longer an issue!

    Helpful
    Up
    0
    Down
    Not Helpful

    Hey @wellspring,

    Did you manage to get this product filter working with body commerce? I want to edit how the shop products are displayed : eg we need the add to cart button the shop page. How did you set up your achieve, page with the shortcode?

    I’d really appreciate any feedback as we have the same product filter and have it perfectly customised for our needs.

    Thanking you in advance.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.