Hello!
I still have this problem!
I display recently viewed products using HTML block, via function.php – This is exactly what I need!
What should I do?
I use code:
add_action('woodmart_woocommerce_after_sidebar', 'recived_prod', 30);
function recived_prod() {
$recived_products = do_shortcode( '[html_block id="11364"]' );
if (strpos($recived_products, 'grid-columns-4') !== false) {
echo $recived_products;
}
}
I need it this way because I don’t want to use the mockup for the product! It’s raw!
-
This topic was modified 5 months, 1 week ago by FreeRiderNSK.
-
This topic was modified 5 months, 1 week ago by FreeRiderNSK.
-
This topic was modified 5 months, 1 week ago by Artem Temos.