Support WHMCS Variable $carttpl
Closed this issue · 9 comments
Describe the bug
$carttpl was not supported which was used in whmcs orderforms.
To Reproduce
Not with an default WHMCS Installation. It´s an custom Theme with mulltiple header / footer parts. Header / Footer were differently set on each template.
Expected behavior
Support the output of WHMCS Standard Variable $carttpl which is the orderform name.
Version
ISPAPI HP DomainChecker: 12.0.5
WHMCS: 7.10.2
🎉 This issue has been resolved in version 12.0.6 🎉
The release is available on:
Your semantic-release bot 📦🚀
Let me know if that helped @scysys
Sorry, but this is not working. Same empty // activity log output.
I tried a little bit myself and dont found an way for now.
The only way that is possible with our theme is to update the orderform templates in this way
{if empty($carttpl)}
{include file="orderforms/$template/header/header-part1.tpl"}
{else}
{include file="orderforms/$carttpl/header/header-part1.tpl"}
{/if}
Not an big deal if you dont find a way.
I'll continue working on this, but first I'll have to continue with project in work/queued. I'll keep you posted.
Just an question - you're checking with "empty" for the existance. Can you tell me if that var is just empty or really not existing? isset
vs empty
.
carttpl is really not exist. I checked it over the smarty {debug} output.
Leave time, i dont think there are much users with such an problem / request.
Until you have an solution i found that this should be the best for my scenario
{assign var='carttpl' value='templatename'}
Give 12.0.7 a try, will be out in short. release process is running.
🎉 This issue has been resolved in version 12.0.7 🎉
The release is available on:
Your semantic-release bot 📦🚀