• Resolved MSTannu

    (@mstannu)


    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 file admin/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)
  • Plugin Author The Rite Sites

    (@theritesites)

    Hey MSTannu!

    Thanks for reaching out!

    Originally, as many plugins start, this plugin was designed for someone who does not allow guest checkouts, so this definitely slipped through the cracks.

    Thanks for the catch! Be on the look out for new version that fixes this problem.

    Cheers,
    The Rite Sites

Viewing 1 replies (of 1 total)
  • The topic ‘Enable for guest visitors’ is closed to new replies.