Home › Forums › WoodMart support forum › Affiliate links on product listu (page)
Affiliate links on product listu (page)
- This topic has 9 replies, 3 voices, and was last updated 7 years, 8 months ago by
Eric Watson.
-
AuthorPosts
-
March 21, 2018 at 4:47 pm #47915
yuriixParticipantHi,
its possible to add affliate links direct on products in product list (product page)?Thank you.
March 21, 2018 at 6:31 pm #47927
Elise NoromitMemberHello,
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
March 23, 2018 at 10:15 am #48300
yuriixParticipantOk,
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.
March 23, 2018 at 11:07 am #48312
Eric WatsonParticipantHello,
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
March 26, 2018 at 9:38 am #48835
yuriixParticipantHello,
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 28Line: remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 20 )
March 26, 2018 at 10:00 am #48846
Eric WatsonParticipantHello,
Please, provide us your admin and FTP access so we can log in and check this on your side.
Kind Regards
XTemos StudioMarch 26, 2018 at 10:21 am #48850
yuriixParticipantHello,
March 26, 2018 at 11:41 am #48871
Eric WatsonParticipantAs we can see you did not completely copy the code I gave you. You need to add a semicolon
;to the last lineKind Regards
XTemos StudioMarch 26, 2018 at 11:52 am #48875
yuriixParticipant🙂 now is ok. Thank you.
March 26, 2018 at 11:53 am #48877
Eric WatsonParticipantYou are welcome!
-
AuthorPosts
Tagged: affiliate links, product page
- You must be logged in to create new topics. Login / Register
