Disable Line Item adjustment based on Payment Gateway

Shopify Partner
1 0 0

Hello all,

I'm looking to disable a line item adjustment based on the currently selected payment gateway. This adjustment is currently being applied inside of a line item script.

The use case I have is that we offer a financing option and discounts are not eligible when that financing option is used.

I see that during the payment scripts I can read the entire gateway list, but I'm not seeing how to determine which one is currently selected by the user.

Can someone please help me understand how I might accomplish this task?

 

0 Likes
Highlighted
Shopify Partner
221 0 13

Hey Jack, 

As far as I know this is not possible, you can not disbale or remove a line item from scripts. What you would be able to do is filter out payment methods based on the coupon and/or discounts the cart has on the payment method Scripts. I hope Im making sence here haha. If not ask :P 

Cheers!

Entrepreneur, Developer, Geek, Gamer and very passionate about WEB development! :P

Need help with your Shopify Store? Contact me: jfeuchter@gmail.com :D
0 Likes