• Resolved Darko G.

    (@darkog)


    Why limit this functionality by is_shop()? For example we are using the default Woocommerce loops on at least 4-5 pages and they look different than the designated shop because of this limitation.

    You can see it in the file class-one-click-checkout-for-woocommerce.php

    Line 84: comment out if ( is_shop() ) – and voila. it works.

    I suggest removing this check, but if you intend to limit by is_shop() condition, can you please add a filter to allow developers to hook into it and enable the button on the other product loops. As simple as:

    Line 84: repplace

    if ( is_shop() ) {

    with

    if ( apply_filters( 'mwb_occfw_checkout_button_enable', is_shop() ) ) {

    • This topic was modified 2 years, 9 months ago by Darko G.. Reason: add more info
    • This topic was modified 2 years, 9 months ago by Darko G..
    • This topic was modified 2 years, 9 months ago by Darko G..
Viewing 1 replies (of 1 total)
  • Plugin Author MakeWebBetter

    (@makewebbetter)

    Hello,

    Thanks for the suggestion we will surely look into it and add this into our upcoming updates.

    Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Possibility to use the checkout button in product loops other than shop page’ is closed to new replies.