In woocommerce product details not showing

I figured it out! The problem is woocommerce.php file. This file overwrite the other directory. In my case, I’m developing a custom theme that’s why I need to create a directory inside my ../themes/my-theme nameed- /woocommerce/archive-product.php and delete the previous one woocommerce.php form ../themes/my-theme So, moral of the topic is- If your theme has a … Read more

Changing Title Tag on Shop Archive Page (current solution reverting to Title of First Product in Loop)

Seems like the solution I was looking for was !in_the_loop() Full: add_filter( ‘the_title’, ‘custom_account_endpoint_titles’, 10, 2 ); function custom_account_endpoint_titles( $title ) { if (is_shop() && !in_the_loop() && ! is_admin() && ( ! defined( ‘DOING_AJAX’ ) || ! DOING_AJAX )) { return ‘Shop – Parure.co’; } } Note: the !is_admin and !DOING_AJAX functions are to prevent … Read more

Search doesn’t return anything

Might not be the real cause, but you have a JS error due to badly formatted JS – the following lines: <script type=”text/javascript”> jQuery(document).ready(function( $ ){ jQuery(“a[href=’#aiwoosearch#’]”).attr(‘onclick’, ‘parentNode.submit();’); jQuery(“a[href=’#aiwoosearch#’]”).attr(“href”, “javascript:;”); }); </script> Those quote marks are wrong “ & ‘ try ” & ‘ instead and test again with your JS console open in inspector.

Return product list based on current product attribute

So as @shanebp suggested you have to use tax_query it would also help if you use operator in tax_query. following is your code after make some minor changes; <ul class=”products-newo”> <?php $attributes = $product->get_attributes(); $pa_brand = $attributes[“pa_brand”]; $args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 4, ‘tax_query’ => array( array( ‘taxonomy’ => ‘pa_brand’, ‘field’ => … Read more