skip to Main Content

Woocommerce – What is wrong with my or function in PHP?

This or function is not operative as the declaration is showing on all products and not just those listed here. What am I doing incorrectly? add_action( 'woocommerce_after_single_product_summary' , 'bbloomer_add_below_prod_gallery', 5 ); function bbloomer_add_below_prod_gallery() { global $product; $id = $product->id; if($id==5735…

VIEW QUESTION

Woocommerce – Notice: id is called in the wrong way. The properties of the product should not be directly accessible

Notice: id est appelée de la mauvaise manière. Les propriétés du produit ne doivent pas être accessible directement. Backtrace: require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/accesspress-parallax/page.php'), get_template_part, locate_template, load_template, require('/themes/accesspress-parallax/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, do_shortcode, preg_replace_callback, do_shortcode_tag, YITH_YWRAQ_Shortcodes->request_quote_page, wc_get_template, include('/plugins/yith-woocommerce-request-a-quote-premium/templates/request-quote.php'), wc_get_template, include('/plugins/yith-woocommerce-request-a-quote-premium/templates/request-quote-view.php'), WC_Abstract_Legacy_Product->__get, wc_doing_it_wrong Veuillez…

VIEW QUESTION
Back To Top
Search