|Multiply order template(s)|
|Multiply order template(s)|
Author Marcel Emmen on 03-12-2001 at 14:22 (EST)
My site has 2 language dutch and english. There for i want to have 2 different checkout form's
one in dutch and one in english. In release 2.x this was easy, but in version 3.x i can't find the place where i can define the name other then the standard name for the template- and display.html files.
Can i use different names for these files or are the names define inside the code of the applet? and can't this not be change?
|Messages In This Discussion|
| 1. RE: Multiply order template(s)|
Author Bill Weiner on 03-13-2001 at 06:30 (EST)
|Actually, if you are setting up two different language versions of uShop, you should create two different directories for each different language version.... each with it's own "classes" directory. (It is important that you keep the ".class" files of the different language versions in separate "classes" directories). This will, by default, keep your "template_cart.html" and "display_cart.html" pages separate.|
With that in mind, if you still want to change the name of the "template_cart.html" page and the "display_cart.html" page, then you can do so via the following parameters of your uShopOrderButton applet:
< PARAM NAME="cart_template" VALUE="template_cart.html" >
< PARAM NAME="link" VALUE="display_cart.html" >
| 2. RE: Multiply order template(s)|
Author marcel emmen on 03-13-2001 at 11:31 (EST)
is it not enough if i put the scripts and template files on the secure surver in different directories? And define one orderbutton to the dutch directorie and the other to the english?
I'm asking this because if visitors switch for one to the other language and back again with two different directorie for the class files this give sometimes problems. If both language use the same class directorie then swithing gives no problem.
If this is possible is it then enough to put the
in the orderbutton? and what about the template_product.html
p.s. in version 2.x i have done it the same way and it's working fine! but with version 2.x the checkout form was a class applet which i have put in two different pages: one for dutch, one for english. All class files are in one directory and used by the dutch and english version
| 3. RE: Multiply order template(s)|
Author Bill Weiner on 03-14-2001 at 07:28 (EST)
|In uShop 3.x, the "class" files from all language versions have the same names... so obviously, you can't put them all in the same directory (they would just overwrite the other class files with the same names).|
So if you want to support different languages, then you would basically have to setup your website with a directory structure like this:
... and so on.
However, if you don't want to have your applets in different languages - and just want the final order steps to be in different languages - then you can use separate "uShopOrderButton" applets to link users to different language versions of the uShop CGI scripts. And in that case, you can use the "cart_template" and "link" parameters (described above) to specify different names for shopping cart templates and display cart pages.
| 4. Multiply order template(s)|
Author Marcel Emmen on 03-14-2001 at 11:58 (EST)
|Yep, this is exactly what i want. One directory for the class files and two different directory's for the checkout. I have already found the solution my self but thanks for your quick respons. |