View Single Post
  #4  
Old 01-20-2021, 02:11 AM
 
ITVV ITVV is online now
 

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

Default Re: Message on checkout when country selected

Hi Shaz,

Couple of points here: -

1/ United Kingdom is referenced as GB not UK

2/ No data available for $c.country_code???

Try this to give you a pointer: -

PLEASE NOTE I used Ideal Responsive as the skin because I do not have xtreme_gear

Open

Code:
skin/common_files/modules/One_Page_Checkout/opc_main.tpl

FIND: -

Code:
<h1>{$lng.lbl_checkout}</h1>

ADD THE FOLLOWING CODE ABOVE THE LINE ABOVE: -

Code:
<h1 style="background-color:powderblue;">SHAZ START <br> $userinfo.b_country = {$userinfo.b_country} <br> $userinfo.s_country = {$userinfo.s_country} <br> $userinfo.b_countryname = {$userinfo.b_countryname} <br> Here is your code: - <br><br> if $userinfo.b_country eq "GB"<br> MESSAGE HERE<br> /if <br><br> {if $userinfo.b_country eq "GB"} MESSAGE HERE<br> {/if} <br> SHAZ END</h1>

Hope that helps?

Kind regards

ITVV
__________________
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