Skip to content

Tag: woocommerce

Multiple IDs rule in php code WooCommerce

I’m simply trying to make this php code work with multiple IDs Trying this doesn’t work – What’s the correct formatting? Answer Try this. Learn about in_array here : https://www.w3schools.com/php/func_array_in_array.asp Keep adding items in $ids as required.

Woocommerce replace category image with AFC image

I have the following code that works and need to Replace the existing category with AFC images this scrolls but now the default images are in their place first screenshot of admin panel frontend screenshot how can I remove the default once Answer Just remove default one Add this in to your theme functions.php

WooCommerce Related Products: Rows

How can I display the Related Products output as 4 rows? Answer try this one If you want to divide into 4 rows you have to do few CSS. Basically it all depends on how much number of products you want to display, its no relation of number of rows and columns. Like I have added the 12 products in