syntax error – woocommerce

Your copy of archive-product.php is incomplete, notice the PHP comment at the end that talks about something, but the comment is cut off and never gets closed, and the thing it talks about never appears? Deleting the copied file will unbreak your site. Then copy it again in full. Ideally, do it via filesystem copy, … Read more

Removing storefront-sorting div from the before section of Shop page

storefront theme has its own file where you can find all hooks and filters its adding for woocommerce. you can find it at this path: storefront/inc/woocommerce/storefront-woocommerce-template-hooks.php To remove storefront-sorting div, you can add the following in your child theme’s functions.php: remove_action( ‘woocommerce_after_shop_loop’,’storefront_sorting_wrapper’,9 ); //.storefront-sorting opening after products loop remove_action( ‘woocommerce_after_shop_loop’,’storefront_sorting_wrapper_close’,31 ); //.storefront-sorting closing after products … Read more

Woocommerce change tag_id to name

You can use get_term() to get the full term objects which contain the name. If you do this in array_map() you can convert the IDs in the array to the name: $lob = $values[data]->tag_ids; $names = array_map( function( $term_id ) { $term = get_term( $term_id ); return $term->name; }, $lob );