Hide review form if user has left a comment
You can’t just do a simple If statement like this? … if ( count( $usercomment ) < 1 ) { comment_form(); }; I don’t know why you would have to unset it.
You can’t just do a simple If statement like this? … if ( count( $usercomment ) < 1 ) { comment_form(); }; I don’t know why you would have to unset it.
Plugin creator knows of the problem and is working on a resolution… Details here: https://wordpress.org/support/topic/replacing-media-paths-in-serialized-wpmeta-data/#post-12146774
Installed WordPress on the site directory instead, I thought this would conflict files like index.html with index.php redirects back to the indedx.html site. Turns out it works seamlessly. Shop is now at https://subdomain.example.com/shop
This should do what you need. In WP goto WooCommerce | Products | Attributes. On the right is a list of your Attributes and their Terms. Immediately below the Attribute name are two links “edit” and “delete”. Click “edit”. The next screen looks similar it lists all the Terms for the selected attribute. Click “edit” … Read more
Adding country subdomain to an existing website like www.example.com/uk
Overriding Plugin function in your child theme
Quickly, I thought about that : (but it’s not my best! Maybe I’ll come rewrite a more thoughtful code sometimes but for now, this code’ll work) add_action( ‘woocommerce_before_cart’, ‘webroom_check_if_product_category_is_in_cart’ ); function webroom_check_if_product_category_is_in_cart() { $cat1_in_cart = false; $cat2_in_cart = false; foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { if ( has_term( ‘cat1’, ‘product_cat’, $cart_item[‘product_id’] ) … Read more
You should start with standard troubleshooting protocol – check if the problem still appears with some standard theme (e.g. Storefront or TwentySeventeen) and all extra plugins disabled.
How do I make my products on the homepage responsive?
Auto set Woocommerce product ID as SKU on save