Home Forums WoodMart support forum Affiliate links on product listu (page)

Affiliate links on product listu (page)

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #47915

    yuriix
    Participant

    Hi,
    its possible to add affliate links direct on products in product list (product page)?

    Thank you.

    #47927

    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

    #48300

    yuriix
    Participant

    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.

    #48312

    Eric Watson
    Participant

    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

    #48835

    yuriix
    Participant

    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 )

    #48846

    Eric Watson
    Participant

    Hello,

    Please, provide us your admin and FTP access so we can log in and check this on your side.

    Kind Regards
    XTemos Studio

    #48850

    yuriix
    Participant

    Hello,

    #48871

    Eric Watson
    Participant

    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

    #48875

    yuriix
    Participant

    🙂 now is ok. Thank you.

    #48877

    Eric Watson
    Participant

    You are welcome!

Viewing 10 posts - 1 through 10 (of 10 total)