| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to let Javascript popup HTML pages read $lng.lbl_xxx? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I'd like to ask how one is able to change the languages in any extra html pages we did, that opens on a new screen with javascript. We've created a few HTML info pages in English, but I'd like to replace all the text with $lng lables for the future alterations.
Would be great to be able to include {$ImagesDir} paths to the pure HTML popup pages as well! Thanks in advance everyone.
__________________
Best Regards! Alan Search is my friend |
|||||||
#2
|
|||||||
|
|||||||
![]() Yes this can be done.
The basic process is as follows: - the pop up should be a php file with an added variable that dictates what to display - the php file will call smarty and other includes as per home.php - the php file assign a template to display. See help.php for an example - create a main template (the one referred to above) that includes other templates for the content. (help/index.tpl for an example) - other templates hold the lanaguage placeholders. (see help/about.tpl)
__________________
ex x-cart guru ![]() |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks Funkydunk!
Very precise and exactly what I was looking for! You're a saint.
__________________
Best Regards! Alan Search is my friend |
|||||||
#4
|
|||||||
|
|||||||
![]() Hi,
I'm trying to do the same. I have want the send to friend section open in a popup. So I made a php file - send_to_friend_window.php and have the following in that: Code:
when the popup opens it briefly displays a message about redirection, then loads the page: error_message.php?access_denied any guidance on what I'm doing wrong would be most appreciated ![]()
__________________
-- building with v4.0.3 |
|||||||
|
|||
X-Cart forums © 2001-2020
|