Abernee Posted September 12, 2018 Share Posted September 12, 2018 I have a product set up, for that product I can limit the available payment gateways by editing the product group that the it belongs to. I have a configurable option set up which is available for that product. When this configurable option is purchased by a customer who already subscribes to the product all the payment gateways I have set up are available as options. I'd like to be able to limit the available payment gateways when the configurable option is purchased just like I can with the product itself. Is this possible? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted September 15, 2018 Share Posted September 15, 2018 @Abernee there is not a way to do this with configurable options at this time, you may be able to find a third party addon at marketplace.whmcs.com 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 16, 2018 Share Posted September 16, 2018 Hi @Abernee, On 12/09/2018 at 14:00, Abernee said: I have a configurable option set up which is available for that product. When this configurable option is purchased by a customer who already subscribes to the product all the payment gateways I have set up are available as options. so in other words, the client is upgrading configurable options... On 12/09/2018 at 14:00, Abernee said: I'd like to be able to limit the available payment gateways when the configurable option is purchased just like I can with the product itself. Is this possible? yes it is - either by modifying the template, or preferably by using a ClientAreaPageUpgrade action hook. effectively, all you're doing is manipulating the values in the gateway dropdown based upon whether a specific configurable option has been upgraded/ordered. now, it could theoretically get very complicated if you wanted multiple configurable options each require specific gateways (e.g priorities and conflicts etc), but if all you want you want to do if specify one gateway, e.g PayPal, when a certain configurable option has been ordered during a product/service upgrade, then that will be possible. 0 Quote Link to comment Share on other sites More sharing options...
Abernee Posted September 17, 2018 Author Share Posted September 17, 2018 Hi, thanks to both of you for your replies. I'm just trying to specify a single gateway and it will be the same for all configurable options so shouldn't be to much off a problem. I'll try to create a ClientAreaPageUpgrade action hook as suggested by Brian!. Thanks again for both your suggestions. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.