• Resolved 14beesnaveed

    (@14beesnaveed)


    Hi,

    I have a logic by which I enable a custom text field on the Single Product Page (condition is based on a Product Tag). The Add to Cart button works fine but when I try to click the Buy Now button on a product where that custom field is enabled, it throws an error “Checkout is not available whilst your cart is empty.” along with the custom error I configured via WC Fields Factory which I set to “The custom text is required for this product.”.

    Looks like the WC Fields Factory is not compatible with Buy Now button. I am using Woostify theme (if this detail is important).

    Please help me out!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Sark

    (@sarkware)

    Hi,

    Buy Now Button is it plugin.?
    Send me the plugin URL, I will download and test it for the compatibility.

    Thread Starter 14beesnaveed

    (@14beesnaveed)

    Hi,

    It is not a plug-in. It is just a widget by the theme Woostify. It is just a simple button “Buy Now” in addition to the normal Add to Card button on Single Product Page.

    Screenshot:
    https://ibb.co/WxLngcX

    Plugin Contributor Sark

    (@sarkware)

    Hi, I don’t have woostify theme, but tested with the following plugin which provide By Now functionality. and it seems to be working.

    Pls let me know.

    Thread Starter 14beesnaveed

    (@14beesnaveed)

    Can we please have compatibility with the Woostify theme? Adding another plugin just for Buy Now button will mess up things on my website.

    Plugin Contributor Sark

    (@sarkware)

    Just tested with woostify pro theme with buy now enabled.

    Woostrify use there own ajax add to cart implementation, in this theme supposed to give oppertunities for other modules to add additional data during this event, Usually by triggering adding_to_cart custom js event, which is what woocommerce itself doing.

    But here woostify dosn’t do anything like that, so we have two options.
    1. Disable Ajax Add to Cart feature of woostify
    2. Edit woostify/assets/js/woocommerce/ajax-single-add-to-cart.js file and add support for triggering adding_to_cart event.

    To disable ajax add to cart option, in your wp-admin go to Appearance -> Customize -> Woocmmerce -> Product Single -> GENERAL there you will see option called Ajax Single Add To Cart just disable it and click on the Publish button

    Plugin Contributor Sark

    (@sarkware)

    Since no reply, assuming this as resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Buy Now Button Not Working when a WC Fields Factory field is Added’ is closed to new replies.