Jump to content

Search the Community

Showing results for tags 'smarty'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • The latest WHMCS Release
  • The Latest from the WHMCS Team
    • News, Announcements & Blogs from WHMCS
  • WHMCS.Community
    • Community Announcements
    • Introduce Yourself
  • Using WHMCS
    • Pre-Sales Questions
    • Admin & Configuration Questions
    • Installation, Upgrade, and Import Support
    • Using WHMCS
    • Troubleshooting Issues
    • Vendor Discussions
  • WHMCS Showcase
    • Showcase Your Site
    • Share Your Best Practices & Tips
  • Developing & Extending WHMCS
    • Third Party Add-ons
    • Service Offers & Requests
    • Developer Corner
    • Building Modules
    • Share Ideas for WHMCS Modules
  • Community Competitions
    • Competitions
  • General Discussions
    • General Discussion
  • General Feedback & Assistance
    • Feedback
    • WHMCS.Community Tips & Tricks
  • Third Party Developers's Topics
  • Turkish International Discussions's Topics
  • Russian International Discussions's Topics
  • Spanish International Discussions's Topics
  • Portuguese International Discussions's Topics
  • French International Discussions's Topics
  • Italian International Discussions's Topics
  • German International Discussions's Topics
  • WHMCS Brasil's Topics
  • WHMCS Brasil's Tópicos
  • ModulesGarden Club's Topics
  • Hungarian International Discussions's Segítség
  • ThemeMetro Club's Topics
  • WHMCS Services Club's Topics
  • WHMCS Global Services Club's Topics
  • Katamaze's Free Scripts
  • Katamaze's Modules
  • Zomex Club's Topics
  • 0100Dev Club's Topics

WHMCS Version

  • V8.3.x Hotfixes
  • V8.2.x Hotfixes
  • V8.1.x Hotfixes
  • V8.0.x Hotfixes
  • V7.10.x Hotfixes
  • V7.9.x Hotfixes

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



About Me

Found 25 results

  1. Hello I have a variable that is printed with {debug} in the tpl template. however I want to get the result in php of this variable. I need to get $customfields from a hook. how could you access $customfields that is printed inside a product @brian! could you help me?
  2. Hello! I'm using Lang::trans within a php hook for EMailPreSend. I set 'credited' in each language override file: $_LANG['locale'] = "en_GB"; $_LANG['credited'] = "has been credited"; and $_LANG['locale'] = "ro_RO"; $_LANG['credited'] = ": tranzacția a fost creditată"; Then, in the hook: $merge_fields = []; $paymentMethodTitle = "Bank Transfer"; $newSubject = $paymentMethodTitle.' '.Lang::trans('credited'); $merge_fields['custom_subject'] = $newSubject; $vars = array_merge( $vars, $merge_fields ); return $vars; In the Email Template, the subject is {$custom_subject}, which shows $newSubject variable just fine. But I guess Lang::trans doesn't use the client's language. The email template (body) uses the client's language without issue, but ... how in the world do I get Lang::trans in EMailPreSend to use the client's language? I just want the client's language to be used when sending the client an email (call me silly!). Thanks for any clues!
  3. debugging with Smarty debug Console I notice that $currency Smarty object is no more present on v8 on v7 this is accessible on any output hook as $params['currency'] array. WHMCS 8 is manipulating the current currency in another way?
  4. Hello, I made a Square Gateway, which is in the Marketplace. The issue right now, is it's coded with PHP, and has to rely on allowing it to run with the php smarty tags, which aren't recommended. Is there an alternative way to avoid Smarty PHP tags? Thanks!
  5. can anyone help with this code. I want to be able to show and image between a certain date set. but I can't seem to get this to work. can anyone help? in the header.tpl file THANK YOU! THANK YOU! THANK YOU!! {include file="$template/includes/navbar.tpl" navbar=$secondaryNavbar} </ul> </div><!-- /.navbar-collapse --> </div> </nav> </section> {if $templatefile == 'homepage'} <section id="home-banner"> #### MY CODE IS HERE {php} $sb = date("z"); if ($sb <= 90 and $sb >= 61) { $m_subbanner ="<a href=\"https://XXXXX.COM/site-lock.php/\"><img src=\"subbanner/sl.jpg\"></a>" ;} else { if ($sb <= 120 and $sb >= 91) { $m_subbanner ="<a href=\"https://XXXXX.COM/video-conf.php\"><img src=\"subbanner/videoconf.jpg\"></a>" ;} else { if ($sb <= 120 and $sb >= 91) { $m_subbanner ="<a href=\"https://XXXXX.COM/seo-marketing.php\"><img src=\"subbanner/seo.jpg\"></a>" ;} else { $m_subbanner ="<img src=\"subbanner/default.jpg\">" ; } }} <div class="container text-center"> echo $m_subbanner; {/php} #### MY CODE ENDS </div> </section> <div class="home-shortcuts"> <div class="container"> <div class="row"> <div class="col-md-4 hidden-sm hidden-xs text-center"> <p class="lead"> {$LANG.howcanwehelp} </p>
  6. Hello All, I am trying to following part of code within the viewinvoice page but the paymentbutton is not updated. Is the smarty->assign option still supported? <?php function custom($vars) { global $smarty; if ($vars['filename'] == 'viewinvoice' && $vars['status'] == 'Unpaid') { $smarty->assign('paymentbutton', "BG"); } } add_hook('ClientAreaPage', 1, 'custom'); ?> The hook seems to run but the paymentbutton is not updated. Does anyone have the same issue? How can we update the paymentbutton?
  7. Hello, I'm trying to build an email template that will use a custom field date that is already created with this format (DD/MM/YY) and will add 1 day or 1 month depending of our needs as follow. We are working on something like that but need help for the syntax {$service_custom_fields.0 + 1 } ( will give 31 on a custom field value of 30/06/2018 - we are expecting 01/07/2018 Do we need to convert that value into number and than add +1 than reconverting ? many thanks again guys
  8. ModulesGarden already feels the unrestrained thrill of Halloween, giving a special treat to everyone! You will be enchanted to discover how little stands between you and our breathtaking bargain featuring 75% and 25% discounts. Take part in our Spooktacular Contest and your tenacity will be handsomely rewarded! cPanel Dispatcher ushers in the future of custom software development! This standalone, tailor-made system built for XXL Webhosting to facilitate their reselling business is a grand project completed by ModulesGarden with the help of an ultramodern platform - Antares Project. Delve into the brainstorming discussion held with XXL Webhosting Founder, Sander Cruiming, to see with your own eyes how spectacular the results of this groundbreaking venture turned out to be! We have just sparked off a new Client Area Designer For WHMCS era with its 1.1.0 version! If you put the satisfaction of your customers first, just like us, a pretty bundle of the new additions will surely prove a useful tool for giving them the best treatment they deserve. These are the features ready to aid you in fully customizing your client area: Benefit greatly from WHMCS 7.3 compatibility. Take advantage of Smarty template engine to modify the body and footer content of sidebar components and widgets. Enhance your client area with fully adjustable slideshows of images or HTML bodies. Lay down even more detailed conditions of displaying particular features than before! Satisfy the innermost desires of your customers with Client Area Designer For WHMCS! Learn All About Client Area Designer For WHMCS! 31st October is already upon us which means our Fall Promotion for custom software development services is nearly at its closure. If you have not submitted your project request yet, it is strongly advised that you comply with all formalities by the end of the month. You surely wouldn’t like to see the phenomenal 50% discount slip down the drain, would you? Need Custom Software Development For Your Business? Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
  9. Hello, BACKGROUND in WHMCS 6, i have issue with premium domains (domain is shown as available for purchase for standard price even it is premium, high priced domain) Maybe WHMCS 7 solves the problem, but because of v. 6 plugins incompatibility with WHMCS v. 7 i want to stay with v. 6. So as a work around i wanted to show users some notice (example if they lookup/add to cart an domain tld which may be premium) and link them to page like https://who.is/whois/theirdomain.tld to check whether it is premium (i do not know better way to prevent them ordering premium domain for standard price). I am not interested in modulesg@rden expensive modules. WHAT I DID I found /templates/orderforms/verticalsteps/configureproductdomain.tpl file to be responsible what is visible on the domain availability checking page: cart.php?a=add&pid=1 So i added there: {if $smarty.session.adminid gt 0} {* THIS IS TRIGGERED IF ADMIN X IS LOGGED IN. *} {debug} .. {/if} to show various variables, i found following ones to look related to the user submitted domain name: {$LANG.domainname} {$result.domain} {$incartdomain} {$domain} but it somehow do not print domain name. QUESTIONS 1) Please what is right variable to print domain name on domain availability checking page (/templates/orderforms/verticalsteps/configureproductdomain.tpl ---> cart.php?a=add&pid=1)? 2) How would you solve this issue without upgrading WHMCS and cause incompatibility of v.6 plugins/modules? Thank You
  10. Latest WHMCS using stock six template. When I add {debug} to the top of clientareahome.tpl a new popout displays TONS of great things... I just want to recycle some of these smarty objects. For example, I wish to display client balance that someone would see in the notification area.. more or less.. The $LANG smarty objects seem to work, mostly. The other ones that display %s do not. I just don't understand. {$totalbalance} {$LANG.availcreditbaldesc} {availcreditbaldesc} {$availcreditbal} availcreditbaldesc => "You have a credit balance of %s and this will be automatically applied to any..." youhaveoverdueinvoices => "You have %s Overdue Invoice(s) etc..etc.. --- Here is a snippet of some example code, that I snagged from the debug popup window. clientAlerts => Array (5) creditCardExpiring => "Your credit card :creditCardType-:creditCardLastFourDigits expires within :da..." domainsExpiringSoon => "You have :numberOfDomains domain(s) expiring within the next :days days." invoicesUnpaid => "You have :numberOfInvoices unpaid invoice(s). Pay them early for peace of mind." invoicesOverdue => "You have :numberOfInvoices overdue invoice(s) with a total balance due of :ba..." creditBalance => "You have a credit balance of :creditBalance." - - - Updated - - - Do I really need a hook, to display an already existing smarty object that is being loaded? Just seems redundant and inefficient. If the data is already being display...I should just be able to recycle the same {fancy.tag}. - - - Updated - - - I did a global search for the one tag, and found something helpful in five template. {if $clientsstats.incredit} <div class="alert alert-success"> <p><strong>{$LANG.availcreditbal}:</strong> {$LANG.availcreditbaldesc|sprintf2:$clientsstats.creditbalance}</p> </div> {/if} I mean, it delivers results.. that's always good! A step into the right direction. So basically, I'm using {$clientsstats.creditbalance} to get the results I desire. --- OOOOO I think it just hit me... the period symbol extends the smarty object! That's actually brilliant...
  11. Hi, I am needing to update my email template Smarty Security Policy. I've had a look around the forum and it seems to be the source of some frustration. I have an email template I'm implementing which requires the modifier 'strpos'. The daily cron is throwing an error, stating that this modifier is not allowed. My question is: there is a list of stated "default" modifiers (http://docs.whmcs.com/Smarty_Security_Policy), but according to the wording on the page, setting the policy as per below would... " ... restrict the use of variable modifiers so that strpos was the only variable modifier permitted ..." $smarty_security_policy = array( 'mail' => array( 'php_modifiers' => array('strpos') ) ); ... which means if the WHCMCS Smarty Security Policy page is to be taken literally I would need to include the default modifiers as well, in order to retain the defaults and add 'strpos'. $smarty_security_policy = array( 'mail' => array( 'php_modifiers' => array('strpos','escape','count','urlencode','ucfirst','date_format') ) ); I realise with a bit of messing about I could figure out which is the required method, but thought I'd ask if anyone knows the answer? Thanks in advance for your help!
  12. This is what I get: Smarty Error: Unable to load template file '_DIR_/includes/alert.tpl' in 'FULL_PATH_TO_WHMCS/modules/servers/cpanel/templates/overview.tpl' I am using verticalsteps with some custom styles. I don't have any directory called includes under template's home dir. Can somebody help me?
  13. I want to check if my currenty URL contains some value. Therefore I use the following code, but that does not work. {if $smarty.server.HTTP_REFERER|strstr:'domain=transfer&sld='} The full URL; https://example.com/cart.php?a=add&domain=transfer&sld=value&tld=.com What am I missing?
  14. Some dude quoted this, but obviously, when I copy / paste this doesn't work. Might you have any ideas? Do I have to create a smarty variable first? Than insert using php include? {selectRandom(1, 2, 3, ...)} source #1 http://stackoverflow.com/questions/2619216/smarty-display-a-random-sentence-from-array source #2 http://www.smarty.net/forums/viewtopic.php?t=16348&view=previous&sid=d44618a0f23c1dcdff67072c4e263004
  15. I am upgrading our template to Smart 3.x and WHMCS 6.x. I have an issue with adding PHP to Smarty. I originally had this: {php} $userid = $this->_tpl_vars['clientsdetails']['id']; $result = mysql_query("SELECT *,tblhosting.id as serviceid FROM tblhosting,tblproducts WHERE userid =$userid AND tblhosting.packageid= tblproducts.id AND tblhosting.domainstatus='Active'"); $services = array(); while ($data = mysql_fetch_array($result)) { array_push($services, $data); } $this->_tpl_vars['services'] = $services; {/php} And then changed it to this, which I think is correct Smarty: {php} $userid = $template->getTemplateVars('clientsdetails', 'id'); $result = mysql_query("SELECT *,tblhosting.id as serviceid FROM tblhosting,tblproducts WHERE userid =$userid AND tblhosting.packageid= tblproducts.id AND tblhosting.domainstatus='Active'"); $services = array(); while ($data = mysql_fetch_array($result)) { array_push($services, $data); } $template->getVariable('services') = $services; {/php} That looks correct, right? I'm getting a blank page when I load the tpl with this code on it. Any idea why?
  16. Hi, We have some custom made smarty modifiers/plugins. Before (prior to whmcs6.*) we put them in /includes/classes/Smarty/plugins, but now they don't seem to get picked up by Smarty. It feels wrong to put them in /vendor/smarty/smarty/libs/plugins because vendor is something that is handled by composer. Are there another directory configured for custom made smarty plugins? Or are there any way to configure smarty via whmcs to add another directory for plugins? //Mattias (I have created a ticket and will update when I get feedback from there)
  17. I am modifying my primary and secondary menu, as suggested in the Editing Client Area Menus documentation. I Want to move the View Cart link down in to the secondary navbar, along with a cart icon and a badge with the number of items. It's that last part I'm stuck with. So far I have this: $secondaryNavbar->addChild('View Cart')->setLabel(Lang::trans('viewcart'))->setUri('/cart.php?a=view')->setOrder(20)->setIcon('fa-shopping-cart')->setBadge('X'); Where 'X' is, I wish to put the cart items count. I see in header.tpl there is $cartitemcount, but I can't seem to find out a way, or even if it's possible, to access this information? I saw in the documentation the use of Lang::trans, so I can only hope there are more available to me. If so, I'd really appreciate a link to the documentation for this - even if it's just general smarty stuff. Many thanks
  18. Hi all, recently i have added set of custom fields to a support group. All the the additional fields work just fine and located on the side bar in the support ticket which is nicely placed. My questions is, what is the recommended and safest way to modify the title of the "Custom Fields" itself to something else (dynamically or fix)? Thank you gang.
  19. I'm currently working on a custom template using dataTables for the invoice page. Which means I require all invoice items to be loaded by default. As a workaround I've set the invoice page nav link to 'clientarea.php?action=invoices&itemlimit=all' But I'm wondering if there is another way to set $itemlimit to 'all' by default ?
  20. Is there a mobile detection smarty variable I can use conduct if/else checks for browsing device? {if $agent = "computer"} or {if isTablet($agent)}
  21. Hello, I'm trying to use custom pages for my gateway template but I'm not sure I'm following the right way todo this, does anyone know of a better way todo this. <?php // template.php function template_config() { $configarray = array ( ); return $configarray; } function template_storeremote($params) { global $smarty; $smarty->assign('foo', 'bar'); return $smarty->display('orderforms/{template}/{gateway}/{file}.tpl'); } function template_3dsecure($params) { global $smarty; $smarty->assign('foo', 'bar'); return $smarty->display('orderforms/{template}/{gateway}/{file}.tpl'); } ?> <?php // callback/template.php include("../../../dbconnect.php"); include("../../../includes/functions.php"); include("../../../includes/gatewayfunctions.php"); include("../../../includes/invoicefunctions.php"); $gatewaymodule = "template"; # Enter your gateway module name here replacing template $GATEWAY = getGatewayVariables($gatewaymodule); if ( ! $GATEWAY["type"]) { $smarty = new Smarty(); $smarty->assign('foo', 'bar'); echo $smarty->display('orderforms/{template}/{gateway}/{file}.tpl'); exit; } // do some staff $smarty = new Smarty(); $smarty->assign('foo', 'bar'); echo $smarty->display('orderforms/{template}/{gateway}/{file}.tpl'); exit; ?> Really hope someone can help.
  22. I am trying to modify a template using code that always worked in version 5 and before but doesn't work in 6. This sample from the documentation doesn't work, it crashes. {php} $userid = $this->_tpl_vars['clientsdetails']['userid']; echo 'User ID is '. $userid ; {/php} This code is working now in 5.3.13 but crashes in 6.0 {php} $cldetails=$this->get_template_vars("clientsdetails"); echo 'Users ID is '. $cldetails['userid']; {/php} What am I doing wrong? This is in /templates/mytemplate/clientareaproductdetails.tpl
  23. This is a Smarty question for WHMCS, but I could not find the good answer on Smarty's website. I want to manually create Language Selection buttons on my WHMCS template. My current code looks like this: <a href="$_SERVER[REQUEST_URI]?language=french"><img src="templates/{$template}/img/flag-fr.png"></a> | <img src="templates/{$template}/img/flag-uk.png"> The code above works great if the WHMCS URL that the user is on does not have any ?something=anything attached to it. For example, if the URL is this: http://domain.com/whmcs/clientarea.php Then the code above will correctly display the link here: http://domain.com/whmcs/clientarea.php?language=french But if the WHMCS URL is this: http://domain.com/whmcs/clientarea.php?action=details then the code above will show a bad URL because it uses 2 "?" like this: http://domain.com/whmcs/clientarea.php?action=details?language=french So I am trying to figure a way to change the 2nd "?" to "&" so the URL looks correct like this: http://domain.com/whmcs/clientarea.php?action=details&language=french Any ideas or methods for doing that?
  24. Hi Everyone I am trying to hide the shopping cart and the complete order button on viewcart.tpl page when you first enter this page. Also to add a continue button that loops back to the same page. When the page loops back to itself you be able to then see the cart and complete order button and the continue button will be hidden. I am trying to achieve this by using javascript and oninput and onchange to track changes. I have implemented it but it is not working. Can someone help me to troubleshoot what is wrong please? I will paste the modified code of the viewcart and products files in the slider order form which is the order form template I am using. Hope someone can help cause this is an urgent issue. I want to get it resolved as quickly as possible. products.tpl (slider order form) <script type="text/javascript" src="includes/jscript/jqueryui.js"></script> <script type="text/javascript" src="templates/orderforms/{$carttpl}/js/main.js"></script> <link rel="stylesheet" type="text/css" href="templates/orderforms/{$carttpl}/style.css" /> <link rel="stylesheet" type="text/css" href="templates/orderforms/{$carttpl}/uistyle.css" /> <script type="text/javascript"> var productscount = {$productscount}; var productsNums = new Array(); {foreach from=$products key=num item=product} productsNums[{$product.pid}] = {$num}; {/foreach} {literal} jQuery(document).ready(function(){ jQuery( "#productslider" ).slider({ min: 0, max: productscount-1, value: 0, range: "min", slide: function( event, ui ) { selproduct(ui.value); } }); var width = jQuery("#productslider").width()/productscount; jQuery("#productslider").width(width*(productscount-1)+'px'); jQuery(".sliderlabel").width(width+'px'); selproduct(0); {/literal} {if $pid} selproduct(productsNums[{$pid}]); {/if} {literal} }); {/literal} </script> <div id="order-slider"> {if !$smarty.get.gid && !$smarty.post.pid && !$smarty.get.pid && !$smarty.post.pid} <h1>{$LANG.cartproductselection}</h1> <br /><br /> {foreach key=num item=productgroup from=$productgroups} <div class="prodcats"><div><a href="cart.php?gid={$productgroup.gid}">{$productgroup.name}</a></div></div> {/foreach} {if $loggedin} {if $gid neq "addons"}<div class="prodcats"><div><a href="cart.php?gid=addons">{$LANG.cartproductaddons}</a></div></div>{/if} {if $renewalsenabled && $gid neq "renewals"}<div class="prodcats"><div><a href="cart.php?gid=renewals">{$LANG.domainrenewals}</a></div></div>{/if} {/if} {if $registerdomainenabled && $domain neq "register"}<div class="prodcats"><div><a href="cart.php?a=add&domain=register">{$LANG.registerdomain}</a></div></div>{/if} {if $transferdomainenabled && $domain neq "transfer"}<div class="prodcats"><div><a href="cart.php?a=add&domain=transfer">{$LANG.transferdomain}</a></div></div>{/if} <div class="clear"></div> <br /> {else} <h1>{$groupname}</h1> <div align="center"><input type="button" value="{$LANG.cartchooseanothercategory}" onclick="window.location='cart.php'"></div> <div id="categories"> {foreach key=num item=productgroup from=$productgroups} {if $productgroup.gid neq $gid}<a href="cart.php?gid={$productgroup.gid}">{$productgroup.name}</a>{/if} {/foreach} {if $loggedin} {if $gid neq "addons"}<a href="cart.php?gid=addons">{$LANG.cartproductaddons}</a>{/if} {if $renewalsenabled && $gid neq "renewals"}<a href="cart.php?gid=renewals">{$LANG.domainrenewals}</a>{/if} {/if} {if $registerdomainenabled && $domain neq "register"}<a href="cart.php?a=add&domain=register">{$LANG.registerdomain}</a>{/if} {if $transferdomainenabled && $domain neq "transfer"}<a href="cart.php?a=add&domain=transfer">{$LANG.transferdomain}</a>{/if} <a href="cart.php?a=view">{$LANG.viewcart}</a> </div> <div class="clear"></div> {if !$loggedin && $currencies} <div class="clear"></div> {else} <br /> {/if} <div class="cartslider"> <div align="center"> <div id="productslider"></div> </div> {foreach from=$products key=num item=product} <div class="sliderlabel" id="prodlabel{$num}" onclick="selproduct('{$num}')">{$product.name}</div> {/foreach} <div class="clear"></div> </div> <div class="cartprods"> {foreach from=$products key=num item=product} <div class="product" id="product{$num}"> <table width="100%"><tr><td> <div class="name">{$product.name}{if $product.qty!=""} <span class="qty">({$product.qty} {$LANG.orderavailable})</span>{/if}</div> {foreach from=$product.features key=feature item=value} <span class="prodfeature"><span class="feature">{$feature}</span><br />{$value}</span> {/foreach} <div class="clear"></div> </td><td valign="top" class="textright" nowrap> {if $product.bid} {if $product.displayprice}<span class="pricing">{$product.displayprice}</span><br />{/if} {$LANG.bundledeal} {else} {if $product.pricing.hasconfigoptions}{$LANG.startingfrom}<br />{/if} <span class="pricing">{$product.pricing.minprice.price}</span><br /> {if $product.pricing.minprice.cycle eq "monthly"} {$LANG.orderpaymenttermmonthly} {elseif $product.pricing.minprice.cycle eq "quarterly"} {$LANG.orderpaymenttermquarterly} {elseif $product.pricing.minprice.cycle eq "semiannually"} {$LANG.orderpaymenttermsemiannually} {elseif $product.pricing.minprice.cycle eq "annually"} {$LANG.orderpaymenttermannually} {elseif $product.pricing.minprice.cycle eq "biennially"} {$LANG.orderpaymenttermbiennially} {elseif $product.pricing.minprice.cycle eq "triennially"} {$LANG.orderpaymenttermtriennially} {/if} {/if} </td></tr></table> <div class="description">{$product.featuresdesc}</div> <form method="post" action="cart.php?a=add&{if $product.bid}bid={$product.bid}{else}pid={$product.pid}{/if}"> <div class="ordernowbox"><input type="submit" onclick="check(); return false;" value="{$LANG.ordernowbutton} »" class="ordernow" /></div> </form> </div> {/foreach} </div> {if !$loggedin && $currencies} <div class="clear"></div> {/if} {/if} <br /> <p align="center"><input type="button" value="{$LANG.viewcart}" onclick="window.location='cart.php?a=view'" /></p> <br /> </div> viewcart.tpl (slider order form) <link rel="stylesheet" type="text/css" href="templates/orderforms/{$carttpl}/style.css" /> <script language="javascript">var statesTab=10;</script> <script type="text/javascript" src="templates/orderforms/{$carttpl}/js/main.js"></script> <script type="text/javascript" src="includes/jscript/statesdropdown.js"></script> <script type="text/javascript" src="includes/jscript/pwstrength.js"></script> <script type="text/javascript" src="includes/jscript/creditcard.js"></script> {literal}<script language="javascript"> function removeItem(type,num) { var response = confirm("{/literal}{$LANG.cartremoveitemconfirm}{literal}"); if (response) { window.location = 'cart.php?a=remove&r='+type+'&i='+num; } } function emptyCart(type,num) { var response = confirm("{/literal}{$LANG.cartemptyconfirm}{literal}"); if (response) { window.location = 'cart.php?a=empty'; } } </script>{/literal} <script> var langPasswordStrength = "{$LANG.passwordstrength}"; var langPasswordWeak = "{$LANG.weak}"; var langPasswordModerate = "{$LANG.moderate}"; var langPasswordStrong = "{$LANG.strong}"; </script> <div id="order-slider"> <h1>{$LANG.cartreviewcheckout}</h1> {if $errormessage}<div class="errorbox" style="display:block;">{$errormessage|replace:'<li>':' # '} # </div>{elseif $promotioncode && $rawdiscount eq "0.00"}<div class="errorbox" style="display:block;">{$LANG.promoappliedbutnodiscount}</div>{/if} {if $bundlewarnings} <div class="cartwarningbox"> <strong>{$LANG.bundlereqsnotmet}</strong><br /> {foreach from=$bundlewarnings item=warning} {$warning}<br /> {/foreach} </div> {/if} {if !$loggedin && $currencies} <div class="clear"></div> {else} <br /> {/if} <form method="post" action="{$smarty.server.PHP_SELF}?a=view"> <table class="cart" cellspacing="1"> <tr class="textcenter"><th width="60%">{$LANG.orderdesc}</th><th width="40%">{$LANG.orderprice}</th></tr> {foreach key=num item=product from=$products} <tr class="carttableproduct"><td> <strong><em>{$product.productinfo.groupname}</em> - {$product.productinfo.name}</strong>{if $product.domain} ({$product.domain}){/if}<br /> {if $product.configoptions} {foreach key=confnum item=configoption from=$product.configoptions} » {$configoption.name}: {if $configoption.type eq 1 || $configoption.type eq 2}{$configoption.option}{elseif $configoption.type eq 3}{if $configoption.qty}{$LANG.yes}{else}{$LANG.no}{/if}{elseif $configoption.type eq 4}{$configoption.qty} x {$configoption.option}{/if}<br />{/foreach} {/if} <a href="{$smarty.server.PHP_SELF}?a=confproduct&i={$num}" class="cartedit">[{$LANG.carteditproductconfig}]</a> <a href="#" onclick="removeItem('p','{$num}');return false" class="cartremove">[{$LANG.cartremove}]</a> {if $product.allowqty} <br /><br /> <div align="right">{$LANG.cartqtyenterquantity} <input type="text" name="qty[{$num}]" size="3" value="{$product.qty}" /> <input type="submit" value="{$LANG.cartqtyupdate}" /></div> {/if} </td><td class="textcenter"><strong>{$product.pricingtext}{if $product.proratadate}<br />({$LANG.orderprorata} {$product.proratadate}){/if}</strong></td></tr> {foreach key=addonnum item=addon from=$product.addons} <tr class="carttableproduct"><td><strong>{$LANG.orderaddon}</strong> - {$addon.name}</td><td class="textcenter"><strong>{$addon.pricingtext}</strong></td></tr> {/foreach} {/foreach} {foreach key=num item=addon from=$addons} <tr class="carttableproduct"><td> <strong>{$addon.name}</strong><br /> {$addon.productname}{if $addon.domainname} - {$addon.domainname}<br />{/if} <a href="#" onclick="removeItem('a','{$num}');return false" class="cartremove">[{$LANG.cartremove}]</a> </td><td class="textcenter"><strong>{$addon.pricingtext}</strong></td></tr> {/foreach} {foreach key=num item=domain from=$domains} <tr class="carttableproduct"><td> <strong>{if $domain.type eq "register"}{$LANG.orderdomainregistration}{else}{$LANG.orderdomaintransfer}{/if}</strong> - {$domain.domain} - {$domain.regperiod} {$LANG.orderyears}<br /> {if $domain.dnsmanagement} » {$LANG.domaindnsmanagement}<br />{/if} {if $domain.emailforwarding} » {$LANG.domainemailforwarding}<br />{/if} {if $domain.idprotection} » {$LANG.domainidprotection}<br />{/if} <a href="{$smarty.server.PHP_SELF}?a=confdomains" class="cartedit">[{$LANG.cartconfigdomainextras}]</a> <a href="#" onclick="removeItem('d','{$num}');return false" class="cartremove">[{$LANG.cartremove}]</a> </td><td class="textcenter"><strong>{$domain.price}</strong></td></tr> {/foreach} {foreach key=num item=domain from=$renewals} <tr class="carttableproduct"><td> <strong>{$LANG.domainrenewal}</strong> - {$domain.domain} - {$domain.regperiod} {$LANG.orderyears}<br /> {if $domain.dnsmanagement} » {$LANG.domaindnsmanagement}<br />{/if} {if $domain.emailforwarding} » {$LANG.domainemailforwarding}<br />{/if} {if $domain.idprotection} » {$LANG.domainidprotection}<br />{/if} <a href="#" onclick="removeItem('r','{$num}');return false" class="cartremove">[{$LANG.cartremove}]</a> </td><td class="textcenter"><strong>{$domain.price}</strong></td></tr> {/foreach} {if $cartitems==0} <tr class="clientareatableactive"><td colspan="2" class="textcenter"> <br /> {$LANG.cartempty} <br /><br /> </td></tr> {/if} <tr class="subtotal"><td class="textright">{$LANG.ordersubtotal}: </td><td class="textcenter">{$subtotal}</td></tr> {if $promotioncode} <tr class="promotion"><td class="textright">{$promotiondescription}: </td><td class="textcenter">{$discount}</td></tr> {/if} {if $taxrate} <tr class="subtotal"><td class="textright">{$taxname} @ {$taxrate}%: </td><td class="textcenter">{$taxtotal}</td></tr> {/if} {if $taxrate2} <tr class="subtotal"><td class="textright">{$taxname2} @ {$taxrate2}%: </td><td class="textcenter">{$taxtotal2}</td></tr> {/if} <tr class="total"><td class="textright">{$LANG.ordertotalduetoday}: </td><td class="textcenter">{$total}</td></tr> {if $totalrecurringmonthly || $totalrecurringquarterly || $totalrecurringsemiannually || $totalrecurringannually || $totalrecurringbiennially || $totalrecurringtriennially} <tr class="recurring"><td class="textright">{$LANG.ordertotalrecurring}: </td><td class="textcenter"> {if $totalrecurringmonthly}{$totalrecurringmonthly} {$LANG.orderpaymenttermmonthly}<br />{/if} {if $totalrecurringquarterly}{$totalrecurringquarterly} {$LANG.orderpaymenttermquarterly}<br />{/if} {if $totalrecurringsemiannually}{$totalrecurringsemiannually} {$LANG.orderpaymenttermsemiannually}<br />{/if} {if $totalrecurringannually}{$totalrecurringannually} {$LANG.orderpaymenttermannually}<br />{/if} {if $totalrecurringbiennially}{$totalrecurringbiennially} {$LANG.orderpaymenttermbiennially}<br />{/if} {if $totalrecurringtriennially}{$totalrecurringtriennially} {$LANG.orderpaymenttermtriennially}<br />{/if} </td></tr> {/if} </table> </form> <div class="cartbuttons"><input type="button" value="{$LANG.emptycart}" onclick="emptyCart();return false" /> <input type="button" value="{$LANG.continueshopping}" onclick="window.location='cart.php'" /></div> {foreach from=$gatewaysoutput item=gatewayoutput} <div class="clear"></div> <div class="cartbuttons">{$gatewayoutput}</div> {/foreach} {if $cartitems!=0} <form method="post" action="{$smarty.server.PHP_SELF}?a=checkout" id="mainfrm"> <input type="hidden" name="submit" value="true" /> <input type="hidden" name="custtype" id="custtype" value="{$custtype}" /> <br /><br /> <h2>{$LANG.yourdetails}</h2> <div style="float:left;width:20px;"> </div><div class="signuptype{if !$loggedin && $custtype neq "existing"} active{/if}"{if !$loggedin} id="newcust"{/if}>{$LANG.newcustomer}</div><div class="signuptype{if $custtype eq "existing" && !$loggedin || $loggedin} active{/if}" id="existingcust">{$LANG.existingcustomer}</div> <div class="clear"></div> <div class="signupfields{if $custtype eq "existing" && !$loggedin}{else} hidden{/if}" id="loginfrm"> <table width="100%" cellspacing="0" cellpadding="0" class="configtable"> <tr><td class="fieldlabel">{$LANG.clientareaemail}</td><td class="fieldarea"><input type="text" name="loginemail" size="40" /></td></tr> <tr><td class="fieldlabel">{$LANG.clientareapassword}</td><td class="fieldarea"><input type="password" name="loginpw" size="25" /></td></tr> </table> </div> <div class="signupfields{if $custtype eq "existing" && !$loggedin} hidden{/if}" id="signupfrm"> <table width="100%" cellspacing="0" cellpadding="0" class="configtable"> <tr><td class="fieldlabel">{$LANG.clientareafirstname}</td><td class="fieldarea">{if $loggedin}{$clientsdetails.firstname}{else}<input type="text" name="firstname" id="firstname" oninput="check()" onchange="check()" tabindex="1" style="width:80%;" value="{$clientsdetails.firstname}" />{/if}</td><td class="fieldlabel">{$LANG.clientareaaddress1}</td><td class="fieldarea">{if $loggedin}{$clientsdetails.address1}{else}<input type="text" name="address1" id="address1" oninput="check()" onchange="check()" tabindex="7" style="width:80%;" value="{$clientsdetails.address1}" />{/if}</td></tr> <tr><td class="fieldlabel">{$LANG.clientarealastname}</td><td class="fieldarea">{if $loggedin}{$clientsdetails.lastname}{else}<input type="text" name="lastname" id="lastname" oninput="check()" onchange="check()" tabindex="2" style="width:80%;" value="{$clientsdetails.lastname}" />{/if}</td><td class="fieldlabel">{$LANG.clientareaaddress2}</td><td class="fieldarea">{if $loggedin}{$clientsdetails.address2}{else}<input type="text" name="address2" id="address2" oninput="check()" onchange="check()" tabindex="8" style="width:80%;" value="{$clientsdetails.address2}" />{/if}</td></tr> <tr><td class="fieldlabel">{$LANG.clientareacompanyname}</td><td class="fieldarea">{if $loggedin}{$clientsdetails.companyname}{else}<input type="text" name="companyname" id="companyname" oninput="check()" onchange="check()" tabindex="3" style="width:80%;" value="{$clientsdetails.companyname}" />{/if}</td><td class="fieldlabel">{$LANG.clientareacity}</td><td class="fieldarea">{if $loggedin}{$clientsdetails.city}{else}<input type="text" name="city" id="city" oninput="check()" onchange="check()" tabindex="9" style="width:80%;" value="{$clientsdetails.city}" />{/if}</td></tr> <tr><td class="fieldlabel">{$LANG.clientareaemail}</td><td class="fieldarea">{if $loggedin}{$clientsdetails.email}{else}<input type="text" name="email" id="email" oninput="check()" onchange="check()" tabindex="4" style="width:90%;" value="{$clientsdetails.email}" />{/if}</td><td class="fieldlabel">{$LANG.clientareastate}</td><td class="fieldarea">{if $loggedin}{$clientsdetails.state}{else}<input type="text" name="state" id="state" onchange="check()"tabindex="10" style="width:80%;" value="{$clientsdetails.state}" />{/if}</td></tr> <tr>{if !$loggedin}<td class="fieldlabel">{$LANG.clientareapassword}</td><td class="fieldarea"><input type="password" name="password" tabindex="5" id="newpw" oninput="check()" onchange="check()" size="20" value="{$password}" /></td>{else}<td class="fieldlabel"></td><td class="fieldarea"></td>{/if}<td class="fieldlabel">{$LANG.clientareapostcode}</td><td class="fieldarea">{if $loggedin}{$clientsdetails.postcode}{else}<input type="text" name="postcode" id="postcode" oninput="check()" onchange="check()" tabindex="11" size="15" value="{$clientsdetails.postcode}" />{/if}</td></tr> <tr>{if !$loggedin}<td class="fieldlabel">{$LANG.clientareaconfirmpassword}</td><td class="fieldarea"><input type="password" name="password2" id="password2" oninput="check()" onchange="check()" tabindex="6" size="20" value="{$password2}" /></td>{else}<td class="fieldlabel"></td><td class="fieldarea"></td>{/if}<td class="fieldlabel">{$LANG.clientareacountry}</td><td class="fieldarea">{if $loggedin}{$clientsdetails.country}{else}{$clientcountrydropdown|replace:'<select':'<select tabindex="12"'}{/if}</td></tr> <tr><td colspan="2" class="fieldarea">{if !$loggedin}<script language="javascript">showStrengthBar();</script>{/if}</td><td class="fieldlabel">{$LANG.clientareaphonenumber}</td><td class="fieldarea">{if $loggedin}{$clientsdetails.phonenumber}{else}<input type="text" name="phonenumber" id="phonenumber" oninput="check()" onchange="check()" tabindex="13" size="20" value="{$clientsdetails.phonenumber}" />{/if}</td></tr> {if $customfields || $securityquestions} {if $securityquestions && !$loggedin} <tr><td class="fieldlabel">{$LANG.clientareasecurityquestion}</td><td class="fieldarea" colspan="3"><select name="securityqid" tabindex="14"> {foreach key=num item=question from=$securityquestions} <option value={$question.id}>{$question.question}</option> {/foreach} </select></td></tr> <tr><td class="fieldlabel">{$LANG.clientareasecurityanswer}</td><td class="fieldarea" colspan="3"><input type="password" name="securityqans" value="{$securityqans}" tabindex="15" size="30"></td></tr> {/if} {foreach key=num item=customfield from=$customfields} <tr><td class="fieldlabel">{$customfield.name}</td><td class="fieldarea" colspan="3">{$customfield.input} oninput="check()" onchange="check()" {$customfield.description}</td></tr> {/foreach} {/if} </table> </div> {if $taxenabled && !$loggedin} <div class="carttaxwarning">{$LANG.carttaxupdateselections} <input type="submit" value="{$LANG.carttaxupdateselectionsupdate}" name="updateonly" /></div> {/if} {if $domainsinorder} <h2>{$LANG.domainregistrantinfo}</h2> <select name="contact" id="domaincontact" onchange="domaincontactchange()"> <option value="">{$LANG.usedefaultcontact}</option> {foreach from=$domaincontacts item=domcontact} <option value="{$domcontact.id}"{if $contact==$domcontact.id} selected{/if}>{$domcontact.name}</option> {/foreach} <option value="addingnew"{if $contact eq "addingnew"} selected{/if}>{$LANG.clientareanavaddcontact}...</option> </select><br /><br /> <div class="signupfields{if $contact neq "addingnew"} hidden{/if}" id="domaincontactfields"> <table width="100%" cellspacing="0" cellpadding="0" class="configtable"> <tr><td class="fieldlabel">{$LANG.clientareafirstname}</td><td class="fieldarea"><input type="text" name="domaincontactfirstname" style="width:80%;" value="{$domaincontact.firstname}" /></td><td class="fieldlabel">{$LANG.clientareaaddress1}</td><td class="fieldarea"><input type="text" name="domaincontactaddress1" style="width:80%;" value="{$domaincontact.address1}" /></td></tr> <tr><td class="fieldlabel">{$LANG.clientarealastname}</td><td class="fieldarea"><input type="text" name="domaincontactlastname" style="width:80%;" value="{$domaincontact.lastname}" /></td><td class="fieldlabel">{$LANG.clientareaaddress2}</td><td class="fieldarea"><input type="text" name="domaincontactaddress2" style="width:80%;" value="{$domaincontact.address2}" /></td></tr> <tr><td class="fieldlabel">{$LANG.clientareacompanyname}</td><td class="fieldarea"><input type="text" name="domaincontactcompanyname" style="width:80%;" value="{$domaincontact.companyname}" /></td><td class="fieldlabel">{$LANG.clientareacity}</td><td class="fieldarea"><input type="text" name="domaincontactcity" style="width:80%;" value="{$domaincontact.city}" /></td></tr> <tr><td class="fieldlabel">{$LANG.clientareaemail}</td><td class="fieldarea"><input type="text" name="domaincontactemail" style="width:90%;" value="{$domaincontact.email}" /></td><td class="fieldlabel">{$LANG.clientareastate}</td><td class="fieldarea"><input type="text" name="domaincontactstate" style="width:80%;" value="{$domaincontact.state}" /></td></tr> <tr><td class="fieldlabel">{$LANG.clientareaphonenumber}</td><td class="fieldarea"><input type="text" name="domaincontactphonenumber" size="20" value="{$domaincontact.phonenumber}" /></td><td class="fieldlabel">{$LANG.clientareapostcode}</td><td class="fieldarea"><input type="text" name="domaincontactpostcode" size="15" value="{$domaincontact.postcode}" /></td></tr> <tr><td class="fieldlabel"></td><td class="fieldarea"></td><td class="fieldlabel">{$LANG.clientareacountry}</td><td class="fieldarea">{$domaincontactcountrydropdown}</td></tr> </table> </div> {/if} <div class="checkoutcol1"> <div class="signupfields padded"> <h2>{$LANG.orderpromotioncode}</h2> {if $promotioncode}{$promotioncode} - {$promotiondescription}<br /><a href="{$smarty.server.PHP_SELF}?a=removepromo">{$LANG.orderdontusepromo}</a>{else}<input type="text" name="promocode" size="20" value="" /> <input type="submit" name="validatepromo" value="{$LANG.orderpromovalidatebutton}" />{/if} </div> {if $shownotesfield} <div class="signupfields padded"> <h2>{$LANG.ordernotes}</h2> <textarea name="notes" rows="2" style="width:100%" onFocus="if(this.value=='{$LANG.ordernotesdescription}'){ldelim}this.value='';{rdelim}" onBlur="if (this.value==''){ldelim}this.value='{$LANG.ordernotesdescription}';{rdelim}">{$notes}</textarea> </div> {/if} </div> <div class="checkoutcol2"> <div class="signupfields padded"> <h2>{$LANG.orderpaymentmethod}</h2> {foreach key=num item=gateway from=$gateways}<label><input type="radio" name="paymentmethod" value="{$gateway.sysname}" onclick="{if $gateway.type eq "CC"}showCCForm(){else}hideCCForm(){/if}"{if $selectedgateway eq $gateway.sysname} checked{/if} />{$gateway.name}</label> {/foreach} <br /><br /> <div id="ccinputform" class="signupfields{if $selectedgatewaytype neq "CC"} hidden{/if}"> <table width="100%" cellspacing="0" cellpadding="0" class="configtable"> {if $clientsdetails.cclastfour}<tr><td class="fieldlabel"></td><td class="fieldarea"><label><input type="radio" name="ccinfo" value="useexisting" id="useexisting" onclick="useExistingCC()"{if $clientsdetails.cclastfour} checked{else} disabled{/if} /> {$LANG.creditcarduseexisting}{if $clientsdetails.cclastfour} ({$clientsdetails.cclastfour}){/if}</label><br /> <label><input type="radio" name="ccinfo" value="new" id="new" onclick="enterNewCC()"{if !$clientsdetails.cclastfour || $ccinfo eq "new"} checked{/if} /> {$LANG.creditcardenternewcard}</label></td></tr>{else}<input type="hidden" name="ccinfo" value="new" />{/if} <tr class="newccinfo"{if $clientsdetails.cclastfour && $ccinfo neq "new"} style="display:none;"{/if}><td class="fieldlabel">{$LANG.creditcardcardtype}</td><td class="fieldarea"><select name="cctype" id="cctype"> {foreach key=num item=cardtype from=$acceptedcctypes} <option{if $cctype eq $cardtype} selected{/if}>{$cardtype}</option> {/foreach} </select></td></tr> <tr class="newccinfo"{if $clientsdetails.cclastfour && $ccinfo neq "new"} style="display:none;"{/if}><td class="fieldlabel">{$LANG.creditcardcardnumber}</td><td class="fieldarea"><input type="text" name="ccnumber" size="30" value="{$ccnumber}" autocomplete="off" /></td></tr> <tr class="newccinfo"{if $clientsdetails.cclastfour && $ccinfo neq "new"} style="display:none;"{/if}><td class="fieldlabel">{$LANG.creditcardcardexpires}</td><td class="fieldarea"><select name="ccexpirymonth" id="ccexpirymonth" class="newccinfo"> {foreach from=$months item=month} <option{if $ccexpirymonth eq $month} selected{/if}>{$month}</option> {/foreach}</select> / <select name="ccexpiryyear" class="newccinfo"> {foreach from=$expiryyears item=year} <option{if $ccexpiryyear eq $year} selected{/if}>{$year}</option> {/foreach} </select></td></tr> {if $showccissuestart} <tr class="newccinfo"{if $clientsdetails.cclastfour && $ccinfo neq "new"} style="display:none;"{/if}><td class="fieldlabel">{$LANG.creditcardcardstart}</td><td class="fieldarea"><select name="ccstartmonth" id="ccstartmonth" class="newccinfo"> {foreach from=$months item=month} <option{if $ccstartmonth eq $month} selected{/if}>{$month}</option> {/foreach}</select> / <select name="ccstartyear" class="newccinfo"> {foreach from=$startyears item=year} <option{if $ccstartyear eq $year} selected{/if}>{$year}</option> {/foreach} </select></td></tr> <tr class="newccinfo"{if $clientsdetails.cclastfour && $ccinfo neq "new"} style="display:none;"{/if}><td class="fieldlabel">{$LANG.creditcardcardissuenum}</td><td class="fieldarea"><input type="text" name="ccissuenum" value="{$ccissuenum}" size="5" maxlength="3" /></td></tr> {/if} <tr><td class="fieldlabel">{$LANG.creditcardcvvnumber}</td><td class="fieldarea"><input type="text" name="cccvv" id="cccvv" value="{$cccvv}" size="5" autocomplete="off" /> <a href="#" onclick="window.open('images/ccv.gif','','width=280,height=200,scrollbars=no,top=100,left=100');return false">{$LANG.creditcardcvvwhere}</a></td></tr> {if $shownostore}<tr><td class="fieldlabel"><input type="checkbox" name="nostore" id="nostore" /></td><td><label for="nostore">{$LANG.creditcardnostore}</label></td></tr>{/if} </table> </div> </div> </div> <div class="clear"></div> {if $accepttos} <div align="center"><label><input type="checkbox" name="accepttos" id="accepttos" /> {$LANG.ordertosagreement} <a href="{$tosurl}" target="_blank">{$LANG.ordertos}</a></label></div> <br /> {/if} <div align="center"><input type="submit" value="Continue" id="Continue" onclick="cart.php?a=view; check()" class="ordernow" /></div> <div align="center"><input type="submit" value="{$LANG.completeorder}" id="completeorder"{if $cartitems==0} disabled{/if} onclick="this.value='{$LANG.pleasewait}'; check()" class="ordernow" /></div> </form> {else} <br /><br /> {/if} <div class="cartwarningbox"><img src="images/padlock.gif" align="absmiddle" border="0" alt="Secure Transaction" /> {$LANG.ordersecure} (<strong>{$ipaddress}</strong>) {$LANG.ordersecure2}</div> </div> main.js extra function (slider order form) function check() { var text=document.getElementById("firstname").value.trim(); var text2=document.getElementById("lastname").value.trim(); var text3=document.getElementById("companyname").value.trim(); var text4=document.getElementById("address1").value.trim(); var text5=document.getElementById("address2").value.trim(); var text6=document.getElementById("city").value.trim(); var text8=document.getElementById("postcode").value.trim(); var text9=document.getElementById("phonenumber").value.trim(); var text0=document.getElementById("email").value.trim(); var Conpwd=document.getElementById("password2").value.trim(); var pwd=document.getElementById("newpw").value.trim(); var text11=document.getElementById("customfield2").value.trim(); var text12=document.getElementById("customfield3").value.trim(); var text13=document.getElementById("customfield4").value.trim(); var text14=document.getElementById("customfield5").value.trim(); var text15=document.getElementById("customfield6").value.trim(); var text16=document.getElementById("customfield8").value.trim(); var option=document.getElementById("country"); var option2=document.getElementById("state"); option2=option2.options[option2.selectedIndex].value option=option.options[option.selectedIndex].value if (text !='' && option !=0 && option2 !=0) { document.getElementById("completeorder").style.display = 'block'; document.getElementById("continue").style.display= 'block'; } else { document.getElementById("completeorder").style.display= 'none'; document.getElementById("continue").style.display= 'none'; document.getElementByClassName("cart").style.display= 'none'; } }
  25. Hi, I'm trying to use the smarty modifier 'lower' in clientareaproductdetails.tpl like this: {$status|lower} as mentioned in the smarty docs here: http://www.smarty.net/docsv2/en/language.modifier.lower.tpl But all i get is a blank page if I put |lower in. Why doesn't this work?
  • 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