you'd only need to use that if you wanted the step size of a configurable option slider to be different from 1 - if you could live with steps of 1, then it would work fine out of the box (assuming base price is the price of your product, and your gigabyte option is the configurable addon.

also, I wrote that code 3 years ago, and so if you're trying it on the latest version of WHMCS, remember that you shouldn't need to use the {literal} tags now.

If I go to my package, it asks user to use existing domain, without showing the package (billing cycle, configurable options, order summary etc).

Package info will come if domain is entered.

Now, is it possible to show package info without entering domain? And don't let user "Continue" without entering domain?

It's important for me, because I want to display package info with configurable options (storage slider) on main page, not just domain box.

I see that package info is loaded with jquery post (checkdomain() function), maybe it could be automatically loaded via that. I'll see into it. Feel free to point me into right direction if you already have solution

EDIT: Managed to get to "fool" WHMCS with automatically loading checkdomain() function with sld "yourdomain" and tld "com" and package info loads correctly, but a user can hit "Continue" with "yourdomain" and "com" values.

Where are those values stored? I can't find any HTML element or javascript variable. I want to delete them when page is loaded so a user cannot press "Continue" without setting domain.

What I'm basically trying to do is a user setting package first, then domain. It's not logical that user needs to set domain first. Why? Because package is independent of the domain. No matter what domain a user sets, package is still the same.

Share this post

Link to post

Share on other sites

If I go to my package, it asks user to use existing domain, without showing the package (billing cycle, configurable options, order summary etc).

Package info will come if domain is entered.

Now, is it possible to show package info without entering domain? And don't let user "Continue" without entering domain?

generally speaking, the order process is fixed to run in a set order...

1. choose product

2. choose domain (optional)

3. configure domain (optional depending on settings)

4. configure product (optional depending on settings)

5. checkout

out of the box, you can't easily change that order, e.g configure product before choosing domain... what you should probably look into is either creating a custom order form (though you would likely need to pay a developer for that), or perhaps seeing if a commercial template exists that you can buy via Marketplace.

you can either setup specific packages in WHM first and then if your WHMCS is linked to the WHM server, you should be able to assign them to specific products in WHMCS.... or you can create custom packages in WHMCS with specific diskspace, bandwidth etc.

if you want the ordering to be dynamic in the way you describe, then that's where Chris' suggestion of buying the Configurable Options Addon comes in - that addon can provision packages based on specific configurable options settings... out of the box, WHMCS can't do that.

Share this post

Link to post

Share on other sites

you can either setup specific packages in WHM first and then if your WHMCS is linked to the WHM server, you should be able to assign them to specific products in WHMCS.... or you can create custom packages in WHMCS with specific diskspace, bandwidth etc.

if you want the ordering to be dynamic in the way you describe, then that's where Chris' suggestion of buying the Configurable Options Addon comes in - that addon can provision packages based on specific configurable options settings... out of the box, WHMCS can't do that.

Ah nice! At least I know Configurable Options Addon is able to do that - thank you!

I wonder if it has trial version so I can test it's functionality before implementing. I don't like to buy "pig in the bag" - have had tens of bad solutions built on bad stuff.

Share this post

Link to post

Share on other sites

Ah nice! At least I know Configurable Options Addon is able to do that - thank you!

I wonder if it has trial version so I can test it's functionality before implementing. I don't like to buy "pig in the bag" - have had tens of bad solutions built on bad stuff.

Anyways, I'll contact developer and see if trial is possible.

it's written by WHMCS themselves and while I don't think there'll be a trial version, it's possibly covered by their 30-day money back guarantee (e.g you buy it, if it doesn't suit your needs, you open a ticket and get a refund) - but i'm sure one of their sales guys will let you know either way.