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 pleaseIf 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.
Quote from mark.jackson@gpkgroup.com.au on June 5, 2023, 03:16Hi, 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?
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?
Quote from Pablo Borysenco on June 5, 2023, 09:19Hello
This is an incompatibility with a third party plugin.
YITH WooCommerce Request a Quote - Is it possible to add “Add to Quote” button manually?
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?
Quote from mark.jackson@gpkgroup.com.au on June 5, 2023, 11:21Hi 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 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
Quote from mark.jackson@gpkgroup.com.au on June 5, 2023, 11:45Hi 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
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
Quote from Pablo Borysenco on June 5, 2023, 12:05Please 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);
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);
Quote from mark.jackson@gpkgroup.com.au on June 5, 2023, 12:33Hi 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!!!
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!!!

Quote from Pablo Borysenco on June 6, 2023, 09:51Hello
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.
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.