Jump to content

Must click button 2 times


jamin1317

Recommended Posts

I'm working on a direct link promo that requires the user to buy or transfer a domain and select a Semi-Annually billing cycle.

 

I was able to get the code to work and display the options perfectly, however on the Product Configuration page where the user selects the billing term they have to click the Add to Cart button twice.

 

Here is my current code. This is in configureproduct.tpl

{elseif $productinfo.pid eq "7"}
<select name="billingcycle" onchange="submit()">
<option value="semiannually" selected="selected"> My promo billing cycle description </option></select>
{else}
... rest of normal select code ...

 

I've tried it as type=hidden and as a selected item. No matter what I do it requires the user to press the Add button two times. 1st time just refreshes the screen, second time it moves on to domain options and puts it in the cart. Its driving me nuts.

 

Yes I can make the product only allow semi-annual billing and leave the default select code, but I want to display a better description then the full price of the item.

 

Any suggestions?

WHMCS 3.7.2

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