hey Kaushik,
tnx for your reply, your solution seems good, but what im looking for is to hook “Recently Viewed Products list” into my account dashboard, i already succeed with “on sale” with this code :
add_action( ‘woocommerce_account_dashboard’,’on_sale_dashboard_shortcode’ );
function on_sale_dashboard_shortcode () {
echo do_shortcode(“[sale_products limit=’10’ row=’1′ columns=’5′ visibility=’new’ orderby=’rand’]”);
}
but it doesn’t seem to work with “Recently Viewed Products list”, the code im trying to use is :
add_action( ‘woocommerce_account_dashboard’,’recently_viewed_products_dashboard_shortcode’ );
function recently_viewed_products_dashboard_shortcode () {
echo do_shortcode(“[recently_viewed_products limit=’10’ row=’1′ columns=’5′ visibility=’new’ orderby=’rand’]”);
}
maybe i’m messing something or doing it wrong, i’m not good.
thank you.