Forums / General Questions / Creating shipping tool. How is the shipping calculated in a zone with NO geo_zone_id?

Creating shipping tool. How is the shipping calculated in a zone with NO geo_zone_id?

Locked

Views: 1,408

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
1 Dec 2010, 10:15 PM
#1
corey1388 avatar

corey1388

New Zenner

Join Date:
Dec 2010
Posts:
3
Plugin Contributions:
0

Creating shipping tool. How is the shipping calculated in a zone with NO geo_zone_id?

I am creating a module that allows the customer to select their country / zone which auto-populates the total of Shipping + Tax to give an estimated total on the product_info_display.php page.

I was able to successfully create this information through basic database queries but have gotten stuck on countries with NULL zones.

How is the shipping calculated in a zone with NO geo_zone_id?

Currently I am going through step by step:
zen_countries -> zen_zones -> shipping:
SELECT
c.configuration_value
FROM zen_zones_to_geo_zones z
LEFT JOIN
zen_configuration c ON configuration_key=CONCAT("MODULE_SHIPPING_ZONETABLE_COST_",z.geo_zone_id)
WHERE
z.zone_id="'.$zoneid.'"

7 Dec 2010, 8:29 PM
#2
corey1388 avatar

corey1388

New Zenner

Join Date:
Dec 2010
Posts:
3
Plugin Contributions:
0

Re: Creating shipping tool. How is the shipping calculated in a zone with NO geo_zone_id?

No one can help me???

8 Dec 2010, 2:21 AM
#3
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Creating shipping tool. How is the shipping calculated in a zone with NO geo_zone_id?

Corey1388:

I am creating a module that allows the customer to select their country / zone which auto-populates the total of Shipping + Tax to give an estimated total on the product_info_display.php page.

What's the point of this exercise... ? What if I want to add SEVERAL products to the cart? What do I gain by getting a total "per product"? The information is of no value to the customer.

Are you aware that the shipping estimator can be set to display on the shopping cart page, not just as a popup?

20 years a Zencart User

8 Dec 2010, 2:27 AM
#4
corey1388 avatar

corey1388

New Zenner

Join Date:
Dec 2010
Posts:
3
Plugin Contributions:
0

Re: Creating shipping tool. How is the shipping calculated in a zone with NO geo_zone_id?

It is just to show shipping costs for the single current item on the product page.

See: http://www.amiontrack.ca/devkms/index.php?main_page=product_info&cPath=29000001&products_id=738

(Total Tab)

Also, about your other statement. I have little knowledge of Zen Cart itself. If there is a better way apply what I am doing to that page I am all ears!:clap:

8 Dec 2010, 8:51 PM
#5
nathant avatar

nathant

New Zenner

Join Date:
Jun 2009
Posts:
31
Plugin Contributions:
0

Re: Creating shipping tool. How is the shipping calculated in a zone with NO geo_zone_id?

Corey1388:

It is just to show shipping costs for the single current item on the product page.

See: http://www.amiontrack.ca/devkms/index.php?main_page=product_info&cPath=29000001&products_id=738

(Total Tab)

Also, about your other statement. I have little knowledge of Zen Cart itself. If there is a better way apply what I am doing to that page I am all ears!:clap:

Interesting Corey, I'm trying to do the same thing :) having all of the associated expenses / taxes listed on the page should give the customer the feeling that he knows exactly what the item is going to cost, right to his doorstep, which should improve conversion rate.

To me it seems like I could just put the code from the popup into the product page... or maybe even have the code from the shopping cart in that same "totals" tab.