• Resolved ardoyne12

    (@ardoyne12)


    Thanks for reading this,

    Im a bit befuddled. I have stripe and afterpay enabled, checked the “hide ineligble items” on main setting for items I dont want paid via afterpay.

    Checked everything properly on the product page (stripe only for lower cost products) and for those who can choose (stripe and afterpay higher cost items) however the ineligible items are still showing afterpay on product page, and gives the ability to pay via afterpay. I dont want that

    Can someone please advise?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @ardoyne12

    The hide if ineligible option is for hiding the Afterpay messaging when a product or the cart doesn’t meet the Afterpay requirements for amount. If you want to control the Afterpay messaging on individual product pages, you can do that via the Edit Product page.

    There is a Stripe Settings tab on each product page where you can toggle Afterpay on/off. That controls the messaging on a per product basis.

    Kind Regards

    Thread Starter ardoyne12

    (@ardoyne12)

    Yes I know I have edited each product and it does not matter the afterpay is toggled off, yet it still shows on the cart/checkout page

    Plugin Author Payment Plugins

    (@mrclayton)

    That product level setting is just for the product page. It doesn’t control the visibility of Afterpay messaging on the cart or checkout page.

    Is your expectation that if the cart contains one of the products that you have disabled Afterpay for then the messaging should not be visible on the cart and checkout page?

    Thread Starter ardoyne12

    (@ardoyne12)

    Yes I mean I dont think if a product is say 31.50 it should be available as an afterpay – items over 200 ok, but I just think its silly to offer afterpay or affirm for something of little monetary value

    Does everything have to be afterpay eligible?

    Is there no way to set it to be a maximum spend in order to use afterpay or affirm?

    Plugin Author Payment Plugins

    (@mrclayton)

    Yes I mean I dont think if a product is say 31.50 it should be available as an afterpay – items over 200 ok, but I just think its silly to offer afterpay or affirm for something of little monetary value

    Afterpay is eligible from $1 – $2000 for most currencies so we’re just following the guidelines set by Afterpay. If you want to modify that behavior, we provide the filter wc_stripe_afterpay_get_required_parameters which gives you the ability to customize the minimum and maximum amounts that will affect when Afterpay is shown on your site.

    If you need an example of how to use that filter let us know.

    Kind Regards,

    Thread Starter ardoyne12

    (@ardoyne12)

    That would be fantastic if I you get an example for me thanks so much

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @ardoyne12

    Here is an example using currency USD where the minimum amounts of the product or cart must be $100 in order for Afterpay to show. Make sure you have the option “Hide if ineligible” checked in the Afterpay Settings.

    add_filter('wc_stripe_afterpay_get_required_parameters', function($args){
    	$args['USD'][1] = 100;
    	return $args;
    });
    Thread Starter ardoyne12

    (@ardoyne12)

    Thank you so much – could you lead me towards where I would insert this string – sorry Im doing 20 things here and not getting anything done

    Plugin Author Payment Plugins

    (@mrclayton)

    You would add that snippet of code to either your theme’s functions.php file or using a plugin like the Code Snippets plugin.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Afterpay Is Showing for Items Not eligible for it’ is closed to new replies.