WooCommerce single products images doesn’t zoom on hover and doesn’t change clicking on gallery

my solution works for who makes a theme from zero (not using WordPress ready themes) make a Backup from your WordPress theme go to wp-content/plugins/woocommerce and find and copy a directory which name is templates into wp-content/themes/your-theme and rename it to woocommerce in your theme directory, create a file and name it woocommerce.php and add … Read more

Display File Types For Woocommerce Downloadable Products On Product Page

Place the following code in your meta.php template file immediately after the lines where it prints the categories and tags. Please note, the standard practice is that you shall copy the meta.php template file to your theme folder. So to override meta.php, copy: woocommerce/templates/single-product/meta.php from plugin folder to yourtheme/woocommerce/templates/single-product/meta.php <?php global $product; $downloads = $product->get_files(); … Read more

Display list of categories that contain products with a specific tag

There’s probably a few ways to do this. The key will be cutting down on the number of loops you need to make it more efficient. I think this will work: $query = new WP_Query( array( ‘post_type’ => ‘product’, ‘posts_per_page’ => ‘-1’, // unlimited posts ‘tax_query’ => array( array( ‘taxonomy’ => ‘product_tag’, ‘field’ => ‘slug’, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)