Jump to content

Display Discount on Order Form


JFSG

Recommended Posts

  • 2 months later...
On 26/03/2018 at 3:23 PM, WHMCS ChrisD said:

It looks like ModuleGardens may have a module https://marketplace.whmcs.com/product/1746

I tested it but unfortunately it doesn't exactly offer the features I'm looking for. It does allow other promotional customisations beyond WHMCS' default ability though. Great module!

On 26/03/2018 at 6:36 PM, brian! said:

or if you want to do it yourself.... :idea:

 

I checked it out and it seems like a lot of work. Is there no plug and play plugin?

Link to comment
Share on other sites

5 minutes ago, JFSG said:

I checked it out and it seems like a lot of work. Is there no plug and play plugin?

well it was a tutorial and not a ready-made solution! :)

you could do it as an action hook, it's just manipulation of the existing array... I probably originally did it in Smarty because there are so many things that you could do (output-wise), that to get a hook to do all of them would have required creating an addon.. and even then, I don't think it would be flexible enough.

what is it your trying to do - and are you using standard_cart or a custom order form ?

Link to comment
Share on other sites

35 minutes ago, brian! said:

well it was a tutorial and not a ready-made solution! :)

you could do it as an action hook, it's just manipulation of the existing array... I probably originally did it in Smarty because there are so many things that you could do (output-wise), that to get a hook to do all of them would have required creating an addon.. and even then, I don't think it would be flexible enough.

what is it your trying to do - and are you using standard_cart or a custom order form ?

Yep, it's an excellent tutorial, but it takes up too much time to set things up nicely.

I'm using the standard cart. Ideally I'd like to setup something like this for billing cycle:

$100 $70 Annually (save 30%)
$200 $140 Biennially (save 30%)
$300 $210 Triennially (save 30%)

And this for order summary:

Promo Code: ___________
Total Due Today: $70
Renewal Price: $100

Currently, the "Total Due Today" refers to the usual rate before discount. It'll be useful if clients can see the actual price they have to pay and apply a promo code without jumping to the next screen to see the result. 

I'm surprised nobody made a module for this yet! ;)

Edited by JFSG
Link to comment
Share on other sites

1 hour ago, JFSG said:

Yep, it's an excellent tutorial, but it takes up too much time to set things up nicely.

it is 4 years old - i've learnt a few more things since then!

1 hour ago, JFSG said:

I'm using the standard cart. Ideally I'd like to setup something like this for billing cycle:

$100 $70 Annually (save 30%)
$200 $140 Biennially (save 30%)
$300 $210 Triennially (save 30%)

looking at your site, it's compared against the monthly price...

1 hour ago, JFSG said:

And this for order summary:

Promo Code: ___________
Total Due Today: $70
Renewal Price: $100

Currently, the "Total Due Today" refers to the usual rate before discount. It'll be useful if clients can see the actual price they have to pay and apply a promo code without jumping to the next screen to see the result. 

what's the reference to the promo code?? I assumed your discounts are based on comparison to monthly pricing, not a flat 30% discount.. :?: are you using a promo code to generate a 30% discount, or is that on top of the monthly comparison price ??

there's no specific hook to validate a promo code, so you'd probably end up having to do it manually by querying the db and see if it applies to the current product...

1 hour ago, JFSG said:

I'm surprised nobody made a module for this yet!

possibly because you can't easily alter the order summary template (other than by editing the Smarty template) - you're more into the realms of custom orderform templates rather than hooks/addons with this.

Link to comment
Share on other sites

13 hours ago, brian! said:

looking at your site, it's compared against the monthly price...

15 hours ago, JFSG said:

I'm not sure where you are looking at, but the screenshot in my original post in this thread is how it shows up.

13 hours ago, brian! said:

what's the reference to the promo code?? I assumed your discounts are based on comparison to monthly pricing, not a flat 30% discount.. :?: are you using a promo code to generate a 30% discount, or is that on top of the monthly comparison price ??

there's no specific hook to validate a promo code, so you'd probably end up having to do it manually by querying the db and see if it applies to the current product...

This is more of a nice to have than a must have. This cart template has the exact promo code feature I described. Due to lack of reviews, I'm not sold so I passed on it.

This one-page checkout form is a great concept too but the reviews are awful...

I used 30% as an example. If I entered a 30% promo code I'd like it to show up as "$100 $70 Annually (save 30%)" instead of the regular pricing of "$100 Annually".

13 hours ago, brian! said:

possibly because you can't easily alter the order summary template (other than by editing the Smarty template) - you're more into the realms of custom orderform templates rather than hooks/addons with this.

I researched on the templates in WHMCS marketplace but unfortunately none of them met my specific criteria... :(

Link to comment
Share on other sites

3 hours ago, JFSG said:

I'm not sure where you are looking at, but the screenshot in my original post in this thread is how it shows up.

well you must have an imitator, because the site i'm looking at is the same as your screenshot (including the prices!) - except it has monthly pricing breakdown enabled... :idea:

KvbHXX4.png

3 hours ago, JFSG said:

This is more of a nice to have than a must have. This cart template has the exact promo code feature I described. Due to lack of reviews, I'm not sold so I passed on it.

there's only one review on his CodeCanyon page too - I think it's the same reviewer... *coughs*.. but there are a few additional positive comments there too...

@RactStudio has another cart template coming out next week too - Supercart - that might be worth giving it a look... especially as his ajax cart isn't v7.5 compatible yet, so I assume both will be next week.

3 hours ago, JFSG said:

This one-page checkout form is a great concept too but the reviews are awful...

it would have to be one hell of a template to be worth $200. :o

3 hours ago, JFSG said:

I used 30% as an example. If I entered a 30% promo code I'd like it to show up as "$100 $70 Annually (save 30%)" instead of the regular pricing of "$100 Annually".

the problem is that the configureproduct template doesn't have easy access to the promo code... if memory serves, you can access it in the session, but then you'd probably have to code a validation function.... if you were just comparing other billingcycles against the lowest cycle, that's simple enough (as shown in the tutorial which could be converted to a hook), but to do it with a promo code is likely going to require a custom cart.

3 hours ago, JFSG said:

I researched on the templates in WHMCS marketplace but unfortunately none of them met my specific criteria...

then you may need to pay someone to do some specific coding for you - though I doubt you could get what you want from a developer for less than the current price of the ajax template you linked to.

if you do go down the custom orderform route, the best bit of advice I can give is to not update WHMCS until the developer confirms it's been updated.

i'd also view any such purchase as a short-term investment because there is no knowing what WHMCS v8 will be like and whether it would break anything that could be coded today... ironically, if it didn't, then that might mean few changes made to the cart - which would be hugely disappointing.

Link to comment
Share on other sites

1 hour ago, brian! said:

well you must have an imitator, because the site i'm looking at is the same as your screenshot (including the prices!) - except it has monthly pricing breakdown enabled... :idea:

Oops I forgotten about this... 

1 hour ago, brian! said:

there's only one review on his CodeCanyon page too - I think it's the same reviewer... *coughs*.. but there are a few additional positive comments there too...

@RactStudio has another cart template coming out next week too - Supercart - that might be worth giving it a look... especially as his ajax cart isn't v7.5 compatible yet, so I assume both will be next week.

Lack of 7.5 compatibility rings an alarm bell for me... Nobody likes to purchase an item that is not actively updated...

1 hour ago, brian! said:

it would have to be one hell of a template to be worth $200. :o

I wouldn't mind paying $100 (their discounted price) if it was actually good...

1 hour ago, brian! said:

the problem is that the configureproduct template doesn't have easy access to the promo code... if memory serves, you can access it in the session, but then you'd probably have to code a validation function.... if you were just comparing other billingcycles against the lowest cycle, that's simple enough (as shown in the tutorial which could be converted to a hook), but to do it with a promo code is likely going to require a custom cart.

This is exactly what I'm looking for but I'm surprised there are very few options available in the market, and none by well-known developers. Worse of all, shouldn't this be a default functionality built into WHMCS in the first place? I'm amazed that after all these years, there has been no effort by the WHMCS team to develop something this useful and logical to have. They seems to be focused on adding more useless features nobody really want or need...

1 hour ago, brian! said:

then you may need to pay someone to do some specific coding for you - though I doubt you could get what you want from a developer for less than the current price of the ajax template you linked to.

if you do go down the custom orderform route, the best bit of advice I can give is to not update WHMCS until the developer confirms it's been updated.

i'd also view any such purchase as a short-term investment because there is no knowing what WHMCS v8 will be like and whether it would break anything that could be coded today... ironically, if it didn't, then that might mean few changes made to the cart - which would be hugely disappointing.

Honestly speaking, I don't feel that this is worth paying someone for a custom job, especially taking the risks into consideration. This is more of a convenience feature for customers that is good to have than need to have.

I really hope WHMCS can look into improving their software by fixing bugs and adding useful features that have been asked for years... 

Link to comment
Share on other sites

4 minutes ago, JFSG said:

Lack of 7.5 compatibility rings an alarm bell for me... Nobody likes to purchase an item that is not actively updated...

it wouldn't necessarily ring alarms for me... which is why I said not to update WHMCS until a custom orderform has been updated.

not to let daylight in upon magic, but whenever WHMCS release an update, the documentation published beside it is very limited and so I have a lot of sympathy for the developer in this case.... during a beta, you won't get a lot of documentation (thus you can't really test the new features); when a beta goes to GA, you get a potential double whammy of unannounced new features and still not a lot of technical detail... a case in point being that the Class docs for v7.5 haven't yet been published, two months after v7.5 was released - there is certainly undocumented new code in some of the Marketplace templates, which I had to try to figure out, with blind testing, to answer a previous question here.

it's ridiculous - I didn't even bother to test the v7.5 beta - you can only put up with this nonsense for so long before you find better things to do with your time... if we're not going to get relevant and up-to-date docs, then I sometimes think life would be simpler if WHMCS wasn't encrypted and we could see the code - at least then we could reverse engineer how a feature works... but sometimes your only clue is the output and trying to work back from that. :wall1:

also, release dates are unannounced... literally, v7.5.2 could be released as i'm typing this, it could be August - or any time between or later... any new code in that release could break any solution you find now... hence my sympathy, and understanding, for the developer.

it drives me nuts when users update immediately, and then complain that x, y and z addons no longer work.... they should have waited... there is hardly ever any WHMCS update, probably not even security updates, that are so critical that you need to rush to install them.

28 minutes ago, JFSG said:

This is exactly what I'm looking for but I'm surprised there are very few options available in the market, and none by well-known developers.

there are usually two types of custom carts available... either those that are just design/css tweaks, but basically follow the usual cart path process; or carts where they've started with a clean sheet of paper... the latter take time, and sometimes the cost users are prepared to pay doesn't justify the time (both initially and update-wise too) that a developer would need to dedicate.

the ajax cart, for example, doesn't work with WHMCS Bridge - so that immediately rules out a lot of potential WHMCS customers from buying it.

35 minutes ago, JFSG said:

Worse of all, shouldn't this be a default functionality built into WHMCS in the first place?

of course - I can give you threads from 3-4 years ago about people wanting to do exactly this...

36 minutes ago, JFSG said:

I'm amazed that after all these years, there has been no effort by the WHMCS team to develop something this useful and logical to have. They seems to be focused on adding more useless features nobody really want or need...

absolutely agree... development is too slow and heading in the wrong directions... have said it for years... would say it more often if I thought it would do any good, but WHMCS is sponsored by apathy... they removed bulk domain features without consultation - they even removed the domain pricing table from one release (again without asking)... then had to put it back again a year or two later... they changed how invoices were calculated without consulting us... and the only reason we found out they did was because their code was bugged and causing inconsistencies.... I could go on. 9_9

45 minutes ago, JFSG said:

Honestly speaking, I don't feel that this is worth paying someone for a custom job, especially taking the risks into consideration. This is more of a convenience feature for customers that is good to have than need to have.

maybe i'll make that tutorial into a hook, not for promocodes, but savings based on the lowest cycle... but generally yes, it would be good for the cart to show savings by default... it's simple enough to do, but to do the hook in a way that is flexible takes time and whatever you do, it won't be ideal for everyone... hence the tutorial and let the user figure out their own output. :)

as an aside, I always thought it bizarre that you can now tag TLDs as being on "sale", but you then can't define a sale date-range for the discount to be applied to a TLD; or TLDs being assigned to multiple categories, but not being given an admin area method to determine for ourselves where they belong.

54 minutes ago, JFSG said:

I really hope WHMCS can look into improving their software by fixing bugs and adding useful features that have been asked for years... 

I had that hope for years too... i've (almost) given up on that occurring now... I genuinely hope that i'm wowed by what's in v8, but I doubt that I will be... been there too many times with major releases... it's got to the stage now, where my expectations in WHMCS are so low, i'm just grateful if it installs first time without issue.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • 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