Manual Payment Method only for specific Customers

countcasper
New Member
3 0 4

Hi there,

 

I'm wondering if anyone has succeeded at adding the manual payment option to be accessible only by customers with a specific tag. We have some existing clients that pay by manual payment methods; however, I do not want these options to be available to the general public.

 

Any thoughts?

Thank you for your time,

AwareWare
Excursionist
30 0 8

You can put something like this, with a hidden div in each product description:

 

<div id="manual" style="display:none">
Your manual payment form or iframe goes here.
</div>

 

and then check for the tag you want to make the div visible:

 

if (manualTag=="yes") document.getElementById('manual').style.display='block';

0 Likes
rgonzalez
New Member
2 0 0

Is this looking for a tag in the product or the customer?  Id like for it to check for a tag in the customer.


@AwareWare wrote:

You can put something like this, with a hidden div in each product description:

 

<div id="manual" style="display:none">
Your manual payment form or iframe goes here.
</div>

 

and then check for the tag you want to make the div visible:

 

if (manualTag=="yes") document.getElementById('manual').style.display='block';


 

0 Likes
JulianMTE
New Member
2 0 2

Facing the same problem - were you able to fix it, yet?

0 Likes
Layali
Tourist
9 0 2

looking for a solution for this as well!!

0 Likes
andyhobday
Tourist
4 0 0

Me too, does anyone have a solution for this?  Happy to go with an app.

0 Likes
Hoch1
Tourist
3 0 5

Has anyone found a solution for this challenge?

0 Likes
garyrgilbert
Excursionist
34 3 6

The only way I can see this working (without an app) is if you have shopify plus and have access to the checkout.liquid.

You would need to have some javascript listening for the payment_method step, first hide the pay by invoice possibility, then set a couple js variables indicating whether the customer is logged in AND has a specific tag (B2B or something) and then if both are ok then unhide the pay-by-invoice option.. if the customer is not logged in or logged in and doesnt have the special tag you should remove the pay-by-invoice method from the DOM completely otherwise you could have someone who has a little knowlege of js unhide the option.. which means more work on your end to vet all the orders.