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,
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';
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';
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.