Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Change FORM Direction ?

Change FORM Direction ?

Locked

Views: 8,604

Results 21 to 40 of 45
This thread is locked. New replies are disabled.
3 Dec 2007, 10:46 AM
#21
yabora avatar

yabora

New Zenner

Join Date:
May 2006
Posts:
64
Plugin Contributions:
2

Change FORM Direction ?

web broswers are not the same when they read html and php and css, there are diferences.

however, if Internet Explorer is not smart enough, you must tell him using rtl template, use the template I attached before in the thread.

chech the demo site I made using different broswers, IE, FireFox, Opera, what do you see?

3 Dec 2007, 7:49 PM
#22
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Change FORM Direction ?

yabora:

web broswers are not the same when they read html and php and css, there are diferences.

however, if Internet Explorer is not smart enough, you must tell him using rtl template, use the template I attached before in the thread.

chech the demo site I made using different broswers, IE, FireFox, Opera, what do you see?

OK, I downloaded the Arabic language pack and uploaded it to my website server but I'm countering a few problems with the Arabic fonts and the rtl code as it doesn't work by me! I presume that you set the language incoding to" Arabic windows " instead of the utf-8! may I know why ?I have the same problem with both sides " admin & frontside ", on the folowing link you can see a live demo for your Arabic pack on my website:

http://www.arab-broker.com/orientals :huh:

3 Dec 2007, 9:16 PM
#23
yabora avatar

yabora

New Zenner

Join Date:
May 2006
Posts:
64
Plugin Contributions:
2

Re: Change FORM Direction ?

alhakeem2001,

if your db is utf-8 then you should use utf-8 charset in arabic.php in both store side, and admin side, do not use windows-1256

but, I m still not sure your db format is utf-8.

open your db using phpmyadmin, check db default coolect type? , open the table "category descriptions", and click structure, what is the collection types, is it utf-8 general?

yet one more point, I am not sure, but I think this might has an effect:

the language files are saved in ASNI encoding, not in utf-8 encoding, do the following for both:

  1. open new blank txt file.

  2. File -> save as.. , chang encoding type to utf-8

  3. save this blank txt document.

  4. rename this text file to arabic.php, are you sure (yes)

  5. in the arabic language pack, open includes/languages/arabic.php

  6. select all text, then copy.

  7. paste it in the blank utf-8 encoding arabic.php file, and then save.

  8. do the same thing for admin/includes/languages/arabic.php file

  9. in both files, open, chang

    define('CHARSET', 'windows-1256');
    to
    define('CHARSET', 'utf-8');

and save

uplaod these 2 files to their right locations (overwrite existing)

I have prepared the 2 files for you, they are attached.

after upload, do the following:

  1. login to your admin area.
  2. select arabic language from language selection drop-down menu.
  3. go to catalog -> Categories/Products
  4. click e sign and re-type category name, and save.

check your store now?

4 Dec 2007, 7:42 AM
#24
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Change FORM Direction ?

OK, I think now is much better although I think there are a few glitches from my side that need to be tuned !

if your db is utf-8 then you should use utf-8 charset in arabic.php in both store side, and admin side, do not use windows-1256
I checked the db, it's utf8_unicode_C and I can change it to utf8_bin if you say so !! I don't know what's the difference though!

but, I m still not sure your db format is utf-8.
open your db using phpmyadmin, check db default coolect type? , open the table "category descriptions", and click structure, what is the collection types, is it utf-8 general?
well, I changed it to utf8_unicode_C , it was utf_swedish_ci

yet one more point, I am not sure, but I think this might has an effect:

the language files are saved in ASNI encoding, not in utf-8 encoding, do the following for both:

  1. open new blank txt file.

  2. File -> save as.. , chang encoding type to utf-8

  3. save this blank txt document.

  4. rename this text file to arabic.php, are you sure (yes)

  5. in the arabic language pack, open includes/languages/arabic.php

  6. select all text, then copy.

  7. paste it in the blank utf-8 encoding arabic.php file, and then save.

  8. do the same thing for admin/includes/languages/arabic.php file

  9. in both files, open, chang

    define('CHARSET', 'windows-1256');
    to
    define('CHARSET', 'utf-8');

and save

uplaod these 2 files to their right locations (overwrite existing)

I have prepared the 2 files for you, they are attached.

after upload, do the following:

  1. login to your admin area.
  2. select arabic language from language selection drop-down menu.
  3. go to catalog -> Categories/Products
  4. click e sign and re-type category name, and save.

check your store now? I didn't do this as I am on my work now, I will do this later today, but would that fix the writing direction and will flip around the boxes for the Arabic language?

One more remark here, is the Arabic fonts look ok in the admin side when I use the Arabic language, but when I use any other language English… the fonts turn to funny symbols ! how can I avoid that ?

4 Dec 2007, 6:36 PM
#25
yabora avatar

yabora

New Zenner

Join Date:
May 2006
Posts:
64
Plugin Contributions:
2

Re: Change FORM Direction ?

alhakeem2001,

your db is utf-8 swedish_ca , I have asked you to check, I did't ask you to change it.

if you change the general db collection type, that will not change your db collection type., it will change it for future created tables only, you will have to go table by table, and field by field in each existing table and change the collection type, our use SQL commands to do this.

this maybe not cause damages with english data characters, but for sure it will corrupt your arabic inserted data, so you have to be carfull when do this things and you must know what you are doing, it might look easy to you to change the collection type, and hit go, but sometimes, it has many unexpected consequnces.

I think you need to leave your db collection type as it is, utf-8 swedish ca for everything table feilds and the db default collection type, and change other things accordingly.

or ( do not do this now )


delete your db, create new db, set the defalut db collection type to utf-8_general_ca before the installation.

re-install zen-cart, with option of inserting sample data.

didn't do this as I am on my work now, I will do this later today, but would that fix the writing direction and will flip around the boxes for the Arabic language?

no it will not, language pack got thing to do with page layout direction, you Must use rtl template, use the one i sent to you before.

One more remark here, is the Arabic fonts look ok in the admin side when I use the Arabic language, but when I use any other language English… the fonts turn to funny symbols ! how can I avoid that ?

becuase when you choose english in admin area, charset reading is getting changed according to the admin/includes/languages/english.php

check charset parameter in admin/includes/languages/english.php file, and make sure it is the same charset as admin/includes/languages/arabic.php.

4 Dec 2007, 8:23 PM
#26
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Change FORM Direction ?

yabora,

I did a few changes to my zen cart, but still there are things need to be re-configured..
http://www.arab-broker.com/orientals/

your db is utf-8 swedish_ca , I have asked you to check, I did't ask you to change it.
Well, I think it's different, please check attachment.

if you change the general db collection type, that will not change your db collection type., it will change it for future created tables only, you will have to go table by table, and field by field in each existing table and change the collection type, our use SQL commands to do this.

this maybe not cause damages with english data characters, but for sure it will corrupt your arabic inserted data, so you have to be carfull when do this things and you must know what you are doing, it might look easy to you to change the collection type, and hit go, but sometimes, it has many unexpected consequnces.

I think you need to leave your db collection type as it is, utf-8 swedish ca for everything table feilds and the db default collection type, and change other things accordingly.

or ( do not do this now )


delete your db, create new db, set the defalut db collection type to utf-8_general_ca before the installation.

re-install zen-cart, with option of inserting sample data.

I'm not sure if I'm ready for that, as I'm far behind now !

no it will not, language pack got thing to do with page layout direction, you Must use rtl template, use the one i sent to you before.
I used from the begining and nothing changed .

becuase when you choose english in admin area, charset reading is getting changed according to the admin/includes/languages/english.php

check charset parameter in admin/includes/languages/english.php file, and make sure it is the same charset as admin/includes/languages/arabic.php.
I fixed it.

can you just please viste my zin cart and tell me what needs to be done!
http://www.arab-broker.com/orientals/

4 Dec 2007, 10:15 PM
#27
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Change FORM Direction ?

I think I fixed the arabic language pack ! by changing all *.php to utf8.. but the Arabic template doesn't work with me yet, I don't know why! and there are few things I may need your help to fix like having the text like that :
تقييم المنتجات [المزيد]
العروض الخاصة [المزيد]
المنتجات الجديدة [المزيد]
المنتجات الجديدة لشهر December

Would that be reset correctly in the right order whenever the arabic template works ? and how ?

5 Dec 2007, 7:42 AM
#28
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Change FORM Direction ?

Hi yabora,

I know you are too busy these days, but I hope you will have time to visit my webesite to see how things worked out with me as the revised version of the zc “Arabic language” vary when I view it in different browsers like IE . & Opera , the template looks almost fine in Opera while in IE. not! Do you have any clue ?

Many thanks again:bigups:

5 Dec 2007, 9:49 AM
#29
yabora avatar

yabora

New Zenner

Join Date:
May 2006
Posts:
64
Plugin Contributions:
2

Re: Change FORM Direction ?

I don't know how come my arabic template did not work for you, it should work for all browers, However, maybe I have attached a wrong one, let me download the one I am currently using.

I am at work now, when I go home, I will download it and attach it for you, it should work perfectly for you.

and solve the text direction problem for you.

take care.

5 Dec 2007, 1:47 PM
#30
yabora avatar

yabora

New Zenner

Join Date:
May 2006
Posts:
64
Plugin Contributions:
2

Re: Change FORM Direction ?

as promissed, this is my beta classic green arabic template version 1.0

there are some minor problems which I m working on, I will solve them and release my final one later on.

but you can use this template as a GOOD starting point.

now,

  1. upload the whole classic_arabic folder to your templates folder
  2. assign this template to the arabic language

I assume you know how to do these 2 steps.

it show solve your arabic direction problem.

5 Dec 2007, 2:37 PM
#31
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Change FORM Direction ?

but you can use this template as a GOOD starting point.

now,

  1. upload the whole classic_arabic folder to your templates folder
  2. assign this template to the arabic language

I assume you know how to do these 2 steps.
I think it's possible for me to do the first step, but the second one I never did, this is important stage, I may need you help to do that, I know it's not difficult but I don't want to go through problems anymore.

it show solve your arabic direction problem.
But where are the Arabic buttons, I can't see any !! if you don't have them I can create them my self and add them to the Arabic language pack ! what do you say ?

5 Dec 2007, 9:39 PM
#32
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Change FORM Direction ?

OK, I set the Arabic template, but can you please take a look at the template as I can see few boxes within the Arabic template which still show the contents from letf to right.

http://www.arab-broker.com/orientals/index.php?main_page=index&language=or

  • like the box " التصانيف" in my template doesn't show the (no. of product) at the left side of the product name! and text go from left to right.
  • I have two search box and one of them is without borders?
  • "المصنعون" also ltr dir.
  • the samething with the Currencies .
    -indexing for the bestsellers should be in the right side!

Is there any files that need to be configured to fix that ?

Thank again:cool:

6 Dec 2007, 1:56 PM
#33
yabora avatar

yabora

New Zenner

Join Date:
May 2006
Posts:
64
Plugin Contributions:
2

Re: Change FORM Direction ?

the arabic stylesheet is not getting applied at all when using Internet Explorer.

but it is getting applied when using FireFox, you must've done something wrong, but I can not find out.

I don't know how did you add the template, I dont know how your folder structure look like, I don't know how did you assign the arabic template to the arabic language..... it is hard for me to tell why.

and about the category product count, it is an option in the admin area, search forum.

6 Dec 2007, 5:48 PM
#34
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Change FORM Direction ?

the arabic stylesheet is not getting applied at all when using Internet Explorer. by me it worked except for a few boxes

but it is getting applied when using FireFox, you must've done something wrong, but I can not find out. The same with me when I use Opera.

I don't know how did you add the template, I dont know how your folder structure look like, I don't know how did you assign the arabic template to the arabic language..... it is hard for me to tell why. If you just open the attched file which contane two print screens with highlighted line around the location where I put the arabic template and the other one for the admin side where from I assigned the arabic template to the Arabic language, I hope that will give you a better illustration .

7 Dec 2007, 10:09 AM
#35
yabora avatar

yabora

New Zenner

Join Date:
May 2006
Posts:
64
Plugin Contributions:
2

Re: Change FORM Direction ?

not only side boxes, look at the seach box at the top, font it is not bold, mine is bold,

I don't see the dutch language name in your template selection, the second line has no language name, I have never tried 3 languages, but make sure you are doing it right)

make sure you have done add language for all languages, and template selction as per instructiions given in this forum, (I don't recommand the way of finding it out things your self - guessing) some times I try to find out how to do something and I think I was doing it right. and when I search the forum I find out I was doing it wrong.

make sure you have ONLY 3 main folders under templates, template_defualt, classic, and classic_arabic

you are the only one who knows what files have been changed in all zen-cart folders, if you have edit it some files any where, re-uplaod the original files.

troubleshooting: I think it is all about css

If I were you, I will do the following:

  1. in the admin (under localization-> languages, and tool->template selection) remove english and dutch langauge ( for testing purpose only temp. only), and leave only arabic langugae as default

  2. FTP backup, and then delete includes/template/classic folder, and leave only classic_arabic , template_default folders.

let see what we get.

7 Dec 2007, 11:05 PM
#36
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Change FORM Direction ?

OK, now I did everything that you asked me to do and still nothing changed, I'm afraid that I have to give up now:(

8 Dec 2007, 11:06 AM
#37
yabora avatar

yabora

New Zenner

Join Date:
May 2006
Posts:
64
Plugin Contributions:
2

Re: Change FORM Direction ?

never give up, you can always delete everything and start over, it wont take time!

but remember, do not use the same files in your PC, you will be copying the problem again, and you will be looping .... download fresh zen-cart files, and up load them.

and then start uploading language files again.

8 Dec 2007, 10:33 PM
#38
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Change FORM Direction ?

I don't know what to delete and what to replace ! because I'm sure I'll get the same result, as I did that already twice, hmmm, how about setting the Arabic template together ?

10 Dec 2007, 10:31 AM
#40
alhakeem2001 avatar

alhakeem2001

Zen Follower

Join Date:
Nov 2007
Posts:
434
Plugin Contributions:
1

Re: Change FORM Direction ?

Hey yabora ,

I'm back again, with a fresh version of ZC 1.3.7, so what should be the next step for me? and would your language and template pack work fine on ZC 1.3.8 as well in case if I want to upgrade before I start to make any modification to my webstore ?

Thanks,