Affiliate links on product listu (page)
-
Hi,
its possible to add affliate links direct on products in product list (product page)?
Thank you.
Hello,
This feature does not relate to our theme functions. Please find all information here in video tutorial of WooCommerce documentation: https://woocommerce.com/videos/woocommerce-external-affiliate-product-overview/
If you have any questions please feel free to contact us.
Best Regards
Ok,
can you advise me how to replace a description instead of a short description on a single product page? And delete description tabs?
Thank you.
Hello,
Try to add following code snippet to the functions.php file in your child theme
function woodmart_content_instead_excerpt() {
the_content();
}
function woodmart_remove_product_tabs( $tabs ) {
unset( $tabs['description'] ); // Remove the description tab
return $tabs;
}
add_filter( 'woocommerce_product_tabs', 'woodmart_remove_product_tabs', 98 );
add_action( 'woocommerce_single_product_summary', 'woodmart_content_instead_excerpt', 20 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
Best Regards
Hello,
error:
Parse error: syntax error, unexpected end of file in /data/www/zadnepostovne.cz/www.zadnepostovne.cz/wp-content/themes/woodmart-child/functions.php on line 28
Line: remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 20 )
Hello,
Please, provide us your admin and FTP access so we can log in and check this on your side.
Kind Regards
XTemos Studio
As we can see you did not completely copy the code I gave you. You need to add a semicolon ;
to the last line
http://prntscr.com/iwi35e
Kind Regards
XTemos Studio
🙂 now is ok. Thank you.