nay27uk Posted February 28, 2011 Share Posted February 28, 2011 I have been intergrating viecart.tpl but dont seem to be able to get it to load. Can someone in the know maybe an admin or an intergrator please take a look at my bellow code and tell me where the problem lies, THANKS {if $checkout} <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <td colspan='2'><strong>{if $checkout}{$LANG.step} 4 - {$LANG.orderconfirmorder} {$LANG.step} 5 - {$LANG.ordercheckout}{else}{$LANG.step} 4 - {$LANG.orderconfirmorder} {$LANG.step} 5 - {$LANG.ordercheckout}{/if}</strong></td> </tr> {if $errormessage} <tr class='error'> <td colspan='2'>{$errormessage|replace:'<li>':' # '} # </td> </tr> {elseif $promotioncode && $rawdiscount eq "0.00"} <tr class='error'> <td colspan='2'>{$LANG.promoappliedbutnodiscount}</td> </tr> {/if} </table> {foreach key=num item=product from=$products} <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <th colspan='2'><strong>{$product.productinfo.groupname} - {$product.productinfo.name}</strong>{if $product.domain} ({$product.domain}){/if}</th> </tr> <tr class='rowa'> <td width="20%">{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><br /> <strong>{$product.pricingtext}{if $product.proratadate}<br />({$LANG.orderprorata} {$product.proratadate}){/if}</strong></td> </tr> </table> <br /> {/foreach} {foreach key=addonnum item=addon from=$product.addons} <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <th colspan='2'><strong>{$LANG.orderaddon}</strong> - {$addon.name}</th> </tr> <tr class='rowa'> <td width="20%">{$addon.pricingtext}</td> </tr> </table> <br /> {/foreach} {foreach key=num item=addon from=$addons} <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <th colspan='2'><strong>{$addon.name}</strong> {$addon.productname}{if $addon.domainname} - {$addon.domainname}{/if}</th> </tr> <tr class='rowa'> <td width="20%">{$addon.pricingtext}</td> </tr> </table> <br /> {/foreach} {foreach key=num item=domain from=$domains} <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <th colspan='2'><strong>{if $domain.type eq "register"}{$LANG.orderdomainregistration}{else}{$LANG.orderdomaintransfer}{/if}</strong> - {$domain.domain} - {$domain.regperiod} {$LANG.orderyears}</th> </tr> <tr class='rowa'> <td width="20%">{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><br /> <strong>{$domain.price}</strong></td> </tr> </table> <br /> {/foreach} {foreach key=num item=domain from=$renewals} <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <th colspan='2'><strong>{$LANG.domainrenewal}</strong> - {$domain.domain} - {$domain.regperiod} {$LANG.orderyears}</th> </tr> <tr class='rowa'> <td width="20%">{if $domain.dnsmanagement} » {$LANG.domaindnsmanagement}<br />{/if} {if $domain.emailforwarding} » {$LANG.domainemailforwarding}<br />{/if} {if $domain.idprotection} » {$LANG.domainidprotection}<br />{/if} <strong>{$domain.price}</strong></td> </tr> </table> <br /> {/foreach} <form method="post" action="{$smarty.server.PHP_SELF}?a=view"> <input type="hidden" name="validatepromo" value="true" /> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <th colspan='2'>Promation Code</th> </tr> <tr class='rowa'> <td width="18%">{$LANG.orderpromotioncode}:</td> <td width="82%">{if $promotioncode}{$promotioncode} - {$promotiondescription}<br /><a href="{$smarty.server.PHP_SELF}?a=removepromo">{$LANG.orderdontusepromo}</a>{else}<input type="text" name="promocode" size="20" /> <input type="submit" value="{$LANG.orderpromovalidatebutton}" class="button" />{/if}</td> </tr> </table> </form> <br /> <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr> <th colspan='2'>Order Pricing</th> </tr> <tr class='rowb'> <td width="18%">{$LANG.ordersubtotal}:</td> <td width="82%">{$subtotal}</td> </tr> {if $promotioncode} <tr class='rowa'> <td width="18%">{$promotiondescription}:</td> <td width="82%">{$discount}</td> </tr> {/if} {if $taxrate} <tr class='rowb'> <td width="18%">{$taxname} @ {$taxrate}%:</td> <td width="82%">{$taxtotal}</td> </tr> {/if} {if $taxrate2} <tr class='rowa'> <td width="18%">{$taxname2} @ {$taxrate2}%:</td> <td width="82%">{$taxtotal2}</td> </tr> {/if} {if $totalrecurringmonthly || $totalrecurringquarterly || $totalrecurringsemiannually || $totalrecurringannually || $totalrecurringbiennially || $totalrecurringtriennially} <tr class='rowb'> <td width="18%">{$LANG.ordertotalrecurring}:</td> <td width="82%">{if $totalrecurringmonthly}{$totalrecurringmonthly} {$LANG.orderpaymenttermmonthly}{/if} {if $totalrecurringquarterly}{$totalrecurringquarterly} {$LANG.orderpaymenttermquarterly}{/if} {if $totalrecurringsemiannually}{$totalrecurringsemiannually} {$LANG.orderpaymenttermsemiannually}{/if} {if $totalrecurringannually}{$totalrecurringannually} {$LANG.orderpaymenttermannually}{/if} {if $totalrecurringbiennially}{$totalrecurringbiennially} {$LANG.orderpaymenttermbiennially}{/if} {if $totalrecurringtriennially}{$totalrecurringtriennially} {$LANG.orderpaymenttermtriennially}{/if}</td> </tr> {/if} </table> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td align='center'><input type="button" value="« {$LANG.orderstartover}" onclick="window.location='cart.php?a=startover'" class="buttonwarn" /> <input type="button" value="{$LANG.checkout} »" onclick="window.location='cart.php?a=checkout'"{if $cartitems==0} disabled{/if} class="buttongo" /></td> </tr> </table> {else} {literal}<script language="javascript"> function showCCForm() { jQuery("#ccinputform").slideDown(); } function hideCCForm() { jQuery("#ccinputform").slideUp(); } function useExistingCC() { jQuery(".newccinfo").hide(); } function enterNewCC() { jQuery(".newccinfo").show(); } </script>{/literal} <form method="post" action="{$smarty.server.PHP_SELF}?a=checkout"> <input type="hidden" name="submit" value="true" /> <table border="0" cellspacing="0" cellpadding="0" width="100%"> {if !$loggedin} <tr class='rowa'> <td colspan='2' align='center'>{$LANG.alreadyregistered} <a href="{$smarty.server.PHP_SELF}?a=login">{$LANG.clickheretologin}</a></td> </tr> {/if} <tr> <th colspan='2'>{$LANG.yourdetails}</th> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareafirstname}</td> <td width="75%">{if $loggedin}{$clientsdetails.firstname}{else}<input type="text" name="firstname" style="width:80%;" value="{$clientsdetails.firstname}" />{/if}</td> </tr> <tr class='rowa'> <td width="25%">{$LANG.clientarealastname}</td> <td width="75%">{if $loggedin}{$clientsdetails.lastname}{else}<input type="text" name="lastname" style="width:80%;" value="{$clientsdetails.lastname}" />{/if}</td> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareacompanyname}</td> <td width="75%">{if $loggedin}{$clientsdetails.companyname}{else}<input type="text" name="companyname" style="width:80%;" value="{$clientsdetails.companyname}" />{/if}</td> </tr> <tr class='rowa'> <td width="25%">{$LANG.clientareaaddress1}</td> <td width="75%">{if $loggedin}{$clientsdetails.address1}{else}<input type="text" name="address1" style="width:80%;" value="{$clientsdetails.address1}" />{/if}</td> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareaaddress2}</td> <td width="75%">{if $loggedin}{$clientsdetails.address2}{else}<input type="text" name="address2" style="width:80%;" value="{$clientsdetails.address2}" />{/if}</td> </tr> <tr class='rowa'> <td width="25%">{$LANG.clientareacity}</td> <td width="75%">{if $loggedin}{$clientsdetails.city}{else}<input type="text" name="city" style="width:80%;" value="{$clientsdetails.city}" />{/if}</td> </tr> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareastate}</td> <td width="75%">{if $loggedin}{$clientsdetails.state}{else}<input type="text" name="state" style="width:80%;" value="{$clientsdetails.state}" />{/if}</td> </tr> </tr> <tr class='rowa'> <td width="25%">{$LANG.clientareapostcode}</td> <td width="75%">{if $loggedin}{$clientsdetails.postcode}{else}<input type="text" name="postcode" size="15" value="{$clientsdetails.postcode}" />{/if}</td> </tr> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareacountry}</td> <td width="75%">{if $loggedin}{$clientsdetails.country}{else}{$clientcountrydropdown}{/if}</td> </tr> </tr> <tr class='rowa'> <td width="25%">{$LANG.clientareaphonenumber}</td> <td width="75%">{if $loggedin}{$clientsdetails.phonenumber}{else}<input type="text" name="phonenumber" size="20" value="{$clientsdetails.phonenumber}" />{/if}</td> </tr> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareaemail}</td> <td width="75%">{if $loggedin}{$clientsdetails.email}{else}<input type="text" name="email" style="width:90%;" value="{$clientsdetails.email}" />{/if}</td> </tr> {if $loggedin} </tr> <tr class='rowa'> <td width="25%"></td> <td width="75%"></td> </tr> </tr> <tr class='rowb'> <td width="25%"></td> <td width="75%"></td> </tr> {else} </tr> <tr class='rowa'> <td width="25%">{$LANG.clientareapassword}</td> <td width="75%"><input type="password" name="password" id="newpw" size="20" value="{$password}" /></td> </tr> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareaconfirmpassword}</td> <td width="75%"><input type="password" name="password2" size="20" value="{$password2}" /></td> </tr> {/if} </table> <br /> {if $customfields || $securityquestions} <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <th colspan='2'>Other Required Information</th> </tr> {if $securityquestions && !$loggedin} <tr> <td width="25%">{$LANG.clientareasecurityquestion}</td> <td width="75%"><select name="securityqid">{foreach key=num item=question from=$securityquestions}{foreach key=num item=question from=$securityquestions}<option value={$question.id}>{$question.question}</option>{/foreach}</select></td> </tr> <tr> <td width="25%">{$LANG.clientareasecurityanswer}</td> <td width="75%"><input type="password" name="securityqans" size="30"></td> </tr> {/if} {foreach key=num item=customfield from=$customfields} <tr> <td width="25%">{$customfield.name}</td> <td width="75%">{$customfield.input} {$customfield.description}</td> </tr> {/foreach} </table> {/if} <br /> {if $domainsinorder} {if $addcontact} <table border="0" width="100%" cellspacing="0" cellpadding="0" id="table1"> <tr> <th colspan='2'>{$LANG.domainregistrantinfo}</th> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareafirstname}</td> <td width="75%"><input type="text" name="domaincontactfirstname" style="width:80%;" value="{$domaincontact.firstname}" /></td> </tr> <tr class='rowa'> <td width="25%">{$LANG.clientarealastname}</td> <td width="75%"><input type="text" name="domaincontactlastname" style="width:80%;" value="{$domaincontact.lastname}" /></td> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareacompanyname}</td> <td width="75%"><input type="text" name="domaincontactcompanyname" style="width:80%;" value="{$domaincontact.companyname}" /></td> </tr> <tr class='rowa'> <td width="25%">{$LANG.clientareaaddress1}</td> <td width="75%"><input type="text" name="domaincontactaddress1" style="width:80%;" value="{$domaincontact.address1}" /></td> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareaaddress2}</td> <td width="75%"><input type="text" name="domaincontactaddress2" style="width:80%;" value="{$domaincontact.address2}" /></td> </tr> <tr class='rowa'> <td width="25%">{$LANG.clientareacity}</td> <td width="75%"><input type="text" name="domaincontactcity" style="width:80%;" value="{$domaincontact.city}" /></td> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareastate}</td> <td width="75%"><input type="text" name="domaincontactstate" style="width:80%;" value="{$domaincontact.state}" /></td> </tr> <tr class='rowa'> <td width="25%">{$LANG.clientareapostcode}</td> <td width="75%"><input type="text" name="domaincontactpostcode" size="15" value="{$domaincontact.postcode}" /></td> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareacountry}</td> <td width="75%">{$domaincontactcountrydropdown}</td> </tr> <tr class='rowa'> <td width="25%">{$LANG.clientareaphonenumber}</td> <td width="75%"><input type="text" name="domaincontactphonenumber" size="20" value="{$domaincontact.phonenumber}" /></td> </tr> <tr class='rowb'> <td width="25%">{$LANG.clientareaemail}</td> <td width="75%"><input type="text" name="domaincontactemail" style="width:90%;" value="{$domaincontact.email}" /></td> </tr> </table> {else} <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <th colspan='2'>{$LANG.domainregistrantinfo}</th> </tr> <tr class='rowa'> <td width="25%">{$LANG.domainregistrantchoose}:</td> <td width="75%">{$LANG.usedefaultcontact}</option> {foreach key=num item=domaincontact from=$domaincontacts} <option value="{$domaincontact.id}">{$domaincontact.name}</option> {/foreach} <option value="new">{$LANG.clientareanavaddcontact}...</option> </select></td> </tr> </table> {/if} <br /> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <th colspan='2'>{$LANG.orderpaymentmethod}</td> </tr> <tr class='rowb'> <td colspan='2'>{foreach key=num item=gateway from=$gateways}<input type="radio" name="paymentmethod" value="{$gateway.sysname}" id="pgbtn{$num}" onclick="{if $gateway.type eq "CC"}showCCForm(){else}hideCCForm(){/if}"{if $selectedgateway eq $gateway.sysname} checked{/if} /><label for="pgbtn{$num}">{$gateway.name}</label> {/foreach}</td> </tr> <div id="ccinputform"{if $selectedgatewaytype neq "CC"} style="display:none;"{/if}> {if $clientsdetails.cclastfour} <tr class='rowa'> <td> </td> <td><input type="radio" name="ccinfo" value="useexisting" id="useexisting" onclick="useExistingCC()"{if $clientsdetails.cclastfour} checked{else} disabled{/if} /> <label for="useexisting">{$LANG.creditcarduseexisting}{if $clientsdetails.cclastfour} ({$clientsdetails.cclastfour}){/if}</label><br /> <input type="radio" name="ccinfo" value="new" id="new" onclick="enterNewCC()"{if !$clientsdetails.cclastfour || $ccinfo eq "new"} checked{/if} /> <label for="new">{$LANG.creditcardenternewcard}</label></td></tr>{else}<input type="hidden" name="ccinfo" value="new" /></td> </tr> {/if} <tr class='rowb' {if $clientsdetails.cclastfour && $ccinfo neq "new"} style="display:none;"{/if}> <td>{$LANG.creditcardcardtype}</td> <td><select name="cctype"> {foreach key=num item=cardtype from=$acceptedcctypes} <option{if $cctype eq $cardtype} selected{/if}>{$cardtype}</option> {/foreach} </select></td> </tr> <trclass= 'rowb' {if $clientsdetails.cclastfour && $ccinfo neq "new"} style="display:none;"{/if}> <td>{$LANG.creditcardcardnumber}</td> <td><input type="text" name="ccnumber" size="30" value="{$ccnumber}" autocomplete="off" /></td> </tr> <tr class='rowa' {if $clientsdetails.cclastfour && $ccinfo neq "new"} style="display:none;"{/if}> <td>{$LANG.creditcardcardexpires}</td> <td>input type="text" name="ccexpirymonth" size="2" maxlength="2" value="{$ccexpirymonth}" />/<input type="text" name="ccexpiryyear" size="2" maxlength="2" value="{$ccexpiryyear}" /> (MM/YY)</td> </tr> {if $showccissuestart} <tr class='rowb' {if $clientsdetails.cclastfour && $ccinfo neq "new"} style="display:none;"{/if}> <td>{$LANG.creditcardcardstart}</td> <td><input type="text" name="ccstartmonth" size="2" maxlength="2" value="{$ccstartmonth}">/<input type="text" name="ccstartyear" size="2" maxlength="2" value="{$ccstartyear}" /> (MM/YY)</td> </tr> <tr class='rowa' {if $clientsdetails.cclastfour && $ccinfo neq "new"} style="display:none;"{/if}> <td>{$LANG.creditcardcardissuenum}</td> <td><input type="text" name="ccissuenum" value="{$ccissuenum}" size="5" maxlength="3" /></td> </tr> {/if} <tr class='rowb'> <td>{$LANG.creditcardcvvnumber}</td> <td><input type="text" name="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>{$LANG.creditcardnostore}</td> <td><input type="checkbox" name="nostore" id="nostore" /></td> </tr> {/if} </table> </div> <br /> {if $shownotesfield} <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <th>{$LANG.ordernotes}</th> </tr> <tr class='rowa'> <td><textarea name="notes" rows="4" style="width:75%" onFocus="if(this.value=='{$LANG.ordernotesdescription}'){ldelim}this.value='';{rdelim}" onBlur="if (this.value==''){ldelim}this.value='{$LANG.ordernotesdescription}';{rdelim}">{$notes}</textarea></td> </tr> </table> <br /> {/if} <table border="0" width="100%" cellspacing="1" cellpadding="0"> {if $accepttos} <tr> <td><input type="checkbox" name="accepttos" id="accepttos" /> <label for="accepttos">{$LANG.ordertosagreement} <a href="{$tosurl}" target="_blank">{$LANG.ordertos}</a></td> </tr> <tr> {/if} <td align='center'><input type="submit" value="{$LANG.completeorder}"{if $cartitems==0} disabled{/if} onclick="this.value='{$LANG.pleasewait}'" class="buttongo" /></td> </tr> <tr> <td><img align="left" src="images/padlock.gif" border="0" vspace="5" alt="Secure Transaction" style="padding-right: 10px;" /> {$LANG.ordersecure} (<strong>{$ipaddress}</strong>) {$LANG.ordersecure2}</td> </tr> </table> </form> {/if} 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted February 28, 2011 WHMCS Support Manager Share Posted February 28, 2011 If a syntax error is causing the problem Utilities > Activity Log should help you narrow down the error. Otherwise: http://forum.whmcs.com/showthread.php?t=21317 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 28, 2011 Share Posted February 28, 2011 Lines 189 and 221 have spaces where there shouldn't be any. No idea if that's the issue, but correct those and see: {else}<inpu t type="text" Row 375 has: <trclass= 'rowb' should be <tr class= There might be others. 0 Quote Link to comment Share on other sites More sharing options...
nay27uk Posted March 1, 2011 Author Share Posted March 1, 2011 (edited) Thanks both for your replies it helped a lot. I have now managed to get that page fully working thanks to John for pointing out the smartyu error thing in the admin back end, it came in very useful. and thanks to Bear for pointing out the HTML mistakes although I think the first one is the quote system on this forum adding spaces because they did not exist in my actual file, however the later one did Edited March 1, 2011 by nay27uk 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.