• Resolved Halil ESEN

    (@halilesen)


    Hello,
    I want to add a “Get Offer” button from WhatsApp to products. This plugin allows it. However, prices are not entered in the store. That’s why there is no add to cart button. How can I add this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor davidlillo

    (@davidlillo)

    Hey @halilesen
    Can you send us the URL of the project so that we can take a look at it and find a solution?

    Thread Starter Halil ESEN

    (@halilesen)

    evmimari.com

    Plugin Author Creame

    (@creapuntome)

    Hi!,

    Default Joinchat hooks only are triggered if it’s showed “add to cart” form (except After “Additional information”). You can add extra hooks with a PHP filter in your theme functions.php:

    add_filter( 'joinchat_woo_btn_positions', function( $positions ) {
    	return array_merge( $positions, array(
    		'woocommerce_product_meta_start' => 'Before product meta',
    		'woocommerce_product_meta_end'   => 'After product meta',
    		'woocommerce_single_product_summary' => 'Product summary',
    	) );
    } );

    Also you can play changing the priority for the “Product summary” hook with:

    add_filter( 'joinchat_woo_btn_priority', function( $priority ) {
    	return 6; // After product title
    } );

    See default product summary hooks (note: depending on your theme the order of the hooks can change).

    Thread Starter Halil ESEN

    (@halilesen)

    It worked. Thank you very much for this information. It’s a really nice plugin.

    Plugin Contributor davidlillo

    (@davidlillo)

    Great @halilesen It would be great if you leave us a rating! Thank you very much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘If there is no Add to Cart button’ is closed to new replies.