| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Message on checkout when country selected | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi There,
We require a message to appear for UK clients on the One Page Checkout when a particular country(s) is selected For example: Code:
I've been able to identify the templates where I can get the message to appear but not the variable for country or country code for the IF STATEMENT. X-Cart Version: 4.7.5 Can anyone assist? Thanks!
__________________
Shaz X-Cart Developer Sydney - Australia |
|||||||
#2
|
|||||||
|
|||||||
![]() Hi,
Which template are you using your code? ITVV
__________________
X-Cart Pro 4.6.6 Active and working great! ![]() X-Cart Pro 4.1.7 Retired after 9 years of first class service ![]() Development - X-Cart Pro 4.7.12 with the AMAZING reBOOT-reDUX template Apache: 2.4.25 PHP: 7.4.5 MariaDB: 10.1.44 Arch: x86_64 |
|||||||
#3
|
|||||||
|
|||||||
![]() Quote:
Thanks for the quick reply ![]() We are using xtreme_gear, however test edits are showing from editing the files in /skin/common_files/modules/One_Page_Checkout/
__________________
Shaz X-Cart Developer Sydney - Australia |
|||||||
#4
|
|||||||
|
|||||||
![]() 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:
FIND: - Code:
ADD THE FOLLOWING CODE ABOVE THE LINE ABOVE: - Code:
Hope that helps? Kind regards ITVV
__________________
X-Cart Pro 4.6.6 Active and working great! ![]() X-Cart Pro 4.1.7 Retired after 9 years of first class service ![]() Development - X-Cart Pro 4.7.12 with the AMAZING reBOOT-reDUX template Apache: 2.4.25 PHP: 7.4.5 MariaDB: 10.1.44 Arch: x86_64 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() Since this is for the OPC if you add it to the template file only it will trigger the message show/not on page load only. It will not work when country is selected from the dropdown or address book (depends on the template though). OPC has a lot of js code to refresh different parts of the page on request.
The country dropdown triggers onChange event to properly display states field - this is where you want to add your message too to either pop or show directly on page. I think the file to modify is skin/common_files/js/change_states.js You also have to modify skin/common_files/modules/One_Page_Checkout/ajax.checkout.js to show/hide the message if address is selected from the address book
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|