Jump to content

Getting Promo Codes to automatically apply and show in checkout pages


Recommended Posts

I want to offer a 1st year only discount on my shared hosting packages and get the code and it's value to show throughout the checkout process. Right now, only the last page has a place where they can manually enter the promo code.

Currently everything I've tried has failed. I tried appending "&promocode-mycode" to the end of the product URL and sometimes that will add the discount to the final page and sometimes not.

I even found this but I can't get it to work either on templates/orderforms/standard_cart/configureproduct.tpl:

{if $productinfo.type eq "hostingaccount"}<input type="hidden" name="promocode" value="YourCode" /> {/if}

to configureproduct.tpl

juste after 

<form id="frmConfigureProduct">
                <input type="hidden" name="configure" value="true" />
                <input type="hidden" name="i" value="{$i}" />

 

Is there a way to get this done, or a least a WHMCS template that allows this?

Any help appreciated.

Link to comment
Share on other sites

On 4/1/2024 at 9:37 AM, kerrya said:

I tried appending "&promocode-mycode" to the end of the product URL and sometimes that will add the discount to the final page and sometimes not.

It will work more consistently if you append

&promocode=<mypromo>

where <mypromo> is replaced by the promocode.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated