View Single Post
  #3  
Old 07-09-2007, 03:03 AM
 
ITVV ITVV is online now
 

X-Wizard
  
Join Date: Nov 2006
Location: UK
Posts: 1,164
 

Default Re: Payment methods - Special instructions - HTML - call .tpl coding help

Quote:
Originally Posted by chamberinternet
You mean something like this:
Code:
{if $payment_data.paymentid eq 16} {include file="some_template.tpl"} {/if}

(paymentid 16 is for cheque)

Regards

:sK

Hi,

Thanks for that.

The variable that we are using (have used it in other pages so I know that it is there) is $ruby_store_currency which can be either "GBP" or "USD".

So using your above example I change your code to: -


{if $ruby_store_currency eq GBP} {include file="skin1/modules/Fast_Lane_Checkout/itvv_pay.tpl"} {/if}
If I paste your code into the Payment method : Special instructions : Cheques in Admin and then view the checkout page as a customer it just displays that whole code section i.e.


{if $ruby_store_currency eq GBP} {include file="skin1/modules/Fast_Lane_Checkout/itvv_pay.tpl"} {/if}
Is this because I have changed the page to display HTML?

Many thanks and kind regards

Nick
__________________
X-Cart Pro 4.7.12 Active and working great with reBOOT-reDUX
X-Cart Pro 4.6.6 Retired after 6 years of first class service
X-Cart Pro 4.1.7 Retired after 9 years of first class service

Apache: 2.4.25
PHP: 7.4.5
MariaDB: 10.1.44
Arch: x86_64
Reply With Quote