Maybe this could be adjusted later or maybe a simpler fix. This only supports and tested Tebex + PayPal, I have not modify the Other Gateways maybe later or maybe find a new method.
Lines 204 in /var/www/wemx/resources/themes/client/"tailwind"(or some custom client theme)/store/packages/view.blade.php
you can replace the placeholder text with this: placeholder="Enter a Coupon OR Affiliate Code here." name="coupon" value="{{ session('coupon_code') }}"
This changes the default "coupon" text in the box when at the checkout.
Some notes this changes. This has only tested on Default Balance, TebexGatewaySubscription and TebexGateway and have seemed to work for me.
The affiliate commission doesn't and never has worked for me. However this does seem to ACTUALLY give the affiliate the "commission" but does not add it to the "Purchase" nor there was ANY CODE to add a "Purchase" the only code in the affiliates are stuff like Clicks and Impressions but no "Purchases". This could be the fault of Affiliate Dashboard or the code being actually broken since the very beginning.
That would be super useful, people wonder how to use affiliate code. The same with addtional input box when registering a new account, and an option to change this later in account settings.
Describe the solution you'd like
Coupons "textbox" to accept Affiliate Codes as well.
Describe alternatives you've considered
Modifying the following to allow the coupon text box allow affiliate codes:
Maybe this could be adjusted later or maybe a simpler fix. This only supports and tested Tebex + PayPal, I have not modify the Other Gateways maybe later or maybe find a new method.
Prototype_Affiliate+Coupon_Support.zip
Additional context
Lines 204 in /var/www/wemx/resources/themes/client/"tailwind"(or some custom client theme)/store/packages/view.blade.php you can replace the placeholder text with this: placeholder="Enter a Coupon OR Affiliate Code here." name="coupon" value="{{ session('coupon_code') }}"
This changes the default "coupon" text in the box when at the checkout.
Some notes this changes. This has only tested on Default Balance, TebexGatewaySubscription and TebexGateway and have seemed to work for me.
The affiliate commission doesn't and never has worked for me. However this does seem to ACTUALLY give the affiliate the "commission" but does not add it to the "Purchase" nor there was ANY CODE to add a "Purchase" the only code in the affiliates are stuff like Clicks and Impressions but no "Purchases". This could be the fault of Affiliate Dashboard or the code being actually broken since the very beginning.