Enable for guest visitors
-
Hello!
A very useful plugin, thank you for sharing it.
Unfortunately adding products only works for logged in users.
I was able to fix it by adding the line
add_action( 'wp_ajax_nopriv_simple_add_to_cart', 'simple_add_to_cart_callback' );
in the fileadmin/class-enhanced-ajax-add-to-cart-wc-admin.php
(notice the “nopriv” part, this is necessary for any ajax call to work when not logged in).
I imagine a similar line would be needed for variable product ajax handler.The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Enable for guest visitors’ is closed to new replies.