flmag
Forum Replies Created
-
Actually I figured out last night it is just the following line in woo-ajax-add-to-cart.php that checks if the origin is a single product:
if ( function_exists( ‘is_product’ ) && is_product() ) {
When is_product_category is included it works from product archives as well.
if ( is_product() || is_product_category() ) {
this works for both simple and variable products.Extending further to try and get it working from the Uncode Quickview modal from a non-product page it works if you comment the following product related checks to enable the woo-ajax-add-to-cart script to enqueue on non-product post types:
if ( is_product() || is_product_category() || is_singular(‘custom_post_type’) ) {
// $product = wc_get_product( $post->ID );
// $enabled = apply_filters( ‘qlwcajax_product_enabled’, ‘__return_true’, $product );
// if ( ! $product->is_type( ‘external’ ) && $enabled ) {
wp_enqueue_script( ‘woo-ajax-add-to-cart’ );
// }
}Obviously a bit hacky just to test concept and needs reinstating your checks for broader post types.
The only thing remaining to make it more friendly is to tweak the js to close the modal window on add to cart so it is not still open after the user closes the mini-cart.
Would you be willing to look at incorporating any of this into a future version?
I know from contacting Uncode support that add-to-cart for variable products is not on their immediate roadmap.
I’m sure there’d be other Uncode sites that would find this useful, along with other theme users.Oh that’s weird, I’m sure I clicked the support link from Quadlayers WordPress plugin page.
Bizzare, apologies for the confusion.Oh sorry I thought you were running Uncode theme on your http://quadlayers.com site.
My suspicion is it will be a conflict with Uncode’s inbuilt Ajax add to cart.
Tried disabling in theme but no change on admin menu.
Does your test install work with Uncode theme active?
We are having the same problem where the sub-tab WC Ajax for Variable Products is not showing under woocommerce>settings>Products.
https://snipboard.io/9ocCf1.jpg
We’re using WC v6.8.2 and also Uncode theme v2.6.2 (notice you use Uncode too on your site).
The plugin is installed and active.Basically just trying to get ajax add to cart working for variable products with your plugin.
Single products were working OK already using Uncode’s product content block builder.Forum: Plugins
In reply to: [Related Posts for WordPress] Support request responseThanks messaged you.
Forum: Plugins
In reply to: [Add-on WooCommerce - MailPoet 3] plugin breaks checkoutSame for us since moving to latest MailPoet Premium Version 3.78.0
The below errors started appearing in WC fatal logs:
2022-02-03T09:02:09+00:00 CRITICAL Uncaught TypeError: Argument 3 passed to MailPoet\API\MP\v1\Subscribers::subscribeToLists() must be of the type array, bool given, called in /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/mailpoet/lib/API/MP/v1/API.php on line 66 and defined in /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/mailpoet/lib/API/MP/v1/Subscribers.php:71 Stack trace: #0 /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/mailpoet/lib/API/MP/v1/API.php(66): MailPoet\API\MP\v1\Subscribers->subscribeToLists('49025', Array, false) #1 /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php(150): MailPoet\API\MP\v1\API->subscribeToLists('49025', Array, false) #2 /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/add-on-woocommerce-mailpoet/includes/class-mpwa-place-order.php(37): MPWA_Place_Order::save_subscriber_record(Array, Array) #3 /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/add in /home/customer/www/ourwebsite.com.au/public_html/wp-content/plugins/mailpoet/lib/API/MP/v1/Subscribers.php on line 71