Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Shipping Estimator Sidebox

Shipping Estimator Sidebox

Locked

Views: 2,242

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
20 Jan 2010, 10:13 PM
#1
perkiekat avatar

perkiekat

Zen Follower

Join Date:
Aug 2009
Location:
Carmi, IL
Posts:
354
Plugin Contributions:
0

Shipping Estimator Sidebox

I have searched the forum, but cannot find where I need to re-size the shipping estimator sidebox drop-down for states/countries. Right now it is extending past my page size. I can make it smaller if I knew where to locate the thing.

Thanks

21 Jan 2010, 1:53 PM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Shipping Estimator Sidebox

perkiekat:

I have searched the forum, but cannot find where I need to re-size the shipping estimator sidebox drop-down for states/countries. Right now it is extending past my page size. I can make it smaller if I knew where to locate the thing.

Thanks

The dropdown menu is created in the tpl_modules_shipping_estimator.php file.

This probably isn't going to help you though, because to the best of my knowledge the width of the dropdown is determined by the longest name in the list, so to make it narrower you'll need to edit the country name(s) so that they are no longer than is acceptable for your page. (Does that make sense?)

Cheers
Rod

27 Jan 2010, 8:46 PM
#3
growlight avatar

growlight

New Zenner

Join Date:
Oct 2008
Posts:
32
Plugin Contributions:
0

Re: Shipping Estimator Sidebox

I'm looking for an answer to this problem too!

Rod, I only have one country (United States) and mine is too long as well - way longer than what is required for "United States" to fit. It was a great idea to check that first.

I hope someone has the answer as I am not using the sidebox right now...but would like to.

Thanks everyone,
-Christopher

28 Jan 2010, 2:26 PM
#4
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Shipping Estimator Sidebox

growlight:

I'm looking for an answer to this problem too!

Rod, I only have one country (United States) and mine is too long as well - way longer than what is required for "United States" to fit. It was a great idea to check that first.

I hope someone has the answer as I am not using the sidebox right now...but would like to.

Thanks everyone,
-Christopher

I have an answer, but it probably isn't the best solution.

Use phpMyadmin or similar to access your zencart database.
Locate the 'countries' table
then under the tables structure locate countries_name

The default length of this field is 64 characters - change it to around 20 or 25 (depending on your needs),
Save the changes.

WARNING: This will PERMANENTLY truncate all country names to the length you set. Use with caution.

Cheers
Rod.

30 Jan 2010, 12:09 AM
#5
andotherstuff avatar

andotherstuff

New Zenner

Join Date:
Jan 2010
Location:
Long Island, NY
Posts:
1
Plugin Contributions:
0

Re: Shipping Estimator Sidebox

I'm so happy I think I have a solution to contribute!

I abbreviated several of the countries on the list but in the end it turned out I had to go into the file:

/includes/languages/english.php
(or /includes/languages/YOUR_TEMPLATE/english.php)

to shorten the text "Please Choose Your Country" -- which I changed to "Select Your Country".

Doing both got the drop down to fit inside my Estimator box correctly.

Hope that helps ...

... and since this is my first post since activating Zen a week or so ago, big thanks to everyone in these forums for saving me more times than you'll know as I build this thing!

10 May 2010, 3:45 AM
#6
routerswholesale avatar

routerswholesale

New Zenner

Join Date:
Apr 2010
Location:
SAN DIEGO
Posts:
25
Plugin Contributions:
0

Re: Shipping Estimator Sidebox

RodG:

The dropdown menu is created in the tpl_modules_shipping_estimator.php file.

This probably isn't going to help you though, because to the best of my knowledge the width of the dropdown is determined by the longest name in the list, so to make it narrower you'll need to edit the country name(s) so that they are no longer than is acceptable for your page. (Does that make sense?)

Cheers
Rod

Would it be then possible to insert in that drop down just the country code as opposed to the full name ? I think the ISO_2 is two std country code and the ISO_3 are the 3 characters.
Otherwise the drop down is way too big for the size of the sidebox.
Where can I find that zen_get_country... module ? Or is it the wrong choice to make ?
I am just a newbie at Zen and it is painfully slow to get it all down
Thanks for anyone who can help