PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

Add to cart function not working (in conjunction with YITH WooCommerce Request a Quote)

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

Hi, I am using WOOT - WooCommerce Active Products Tables in conjunction with YITH WooCommerce Request a Quote (no online sales, just takes over the add to cart and turns it into a product enquiry).
I have created a table and added ‘cart’ as the last function.

Like so;

 

 

However, the display shows like this;

Any ideas on how to fix?

Hello

This is an incompatibility with a third party plugin.

YITH WooCommerce Request a Quote - Is it possible to add “Add to Quote” button manually?

Hi and thank you for the reply.
I have created a ticket with Yith to see if this is possible.

Any help is greatly appreciated.

regards

Mark

Hi Pabloo

Yith have come back with this;

Hi there,
thank you for contacting us!

The two plugins are not integrated so the table cannot show the button automatically.
Quote plugin has a shortcode you can see here https://docs.yithemes.com/yith-woocommerce-request-a-quote/premium-version-settings/shortcodes/add-to-quote-button/

to know how you can add it to the table you will need to get in touch with the plugin developers.

Best Regards,

--//--

Is it possible to integrate the shortcode?

Regards

Mark

Please  read  this  - https://products-tables.com/how-to-add-custom-column-to-the-tables

An  example:

 

add_action('woot_profile_extend', function($profile, $action_name) {

if ($action_name === 'woot_woocommerce_tables') {

$profile['my_new_column'] = [
'title' => WOOT_Vocabulary::get('My new column'),
'order' => FALSE,
'action' => function($post_id) {
return  do_shortcode('[yith_ywraq_button_quote product="'. $post_id .'"]');
}
];
}

return $profile;
}, 10, 2);

Hi and thank you for you very prompt support.

I added the code above and it almost worked.
However it is just showing that shortcode (and is unclickable).
I very much appreciated your help, would you have an ideas on how I can fix this?
So close!!!

Hello

The reason may be that this shortcode is not registered in the ajax request. This is logical because the ajax request has the address wp-admin.

But this is the code of YITH WooCommerce Request a Quote.  I understand that this may look bad. But unfortunately it does not depend on our plugin.  In YITH, they are good guys, and they should help you with this.