Forums / General Questions / Where are the code that handle the shipping estimator POST data

Where are the code that handle the shipping estimator POST data

Views: 795

Results 1 to 3 of 3
31 Jan 2014, 8:40 PM
#1
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

Where are the code that handle the shipping estimator POST data

I set to show the estimate on shopping cart. When the country was changed, the form POST the data to ...?main_page=shopping_cart. But I was failed to find the codes that handle the POST data. Need help, thanks

31 Jan 2014, 8:46 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,114
Plugin Contributions:
56

Re: Where are the code that handle the shipping estimator POST data

If you're using the shipping estimator in-line on the shopping_cart page, that processing is provided by /includes/modules/shipping_estimator.php (or, if you've made template-specific changes, /includes/modules/YOUR_TEMPLATE/shipping_estimator.php).

31 Jan 2014, 9:05 PM
#3
su35 avatar

su35

Zen Follower

Join Date:
Oct 2011
Posts:
168
Plugin Contributions:
0

Re: Where are the code that handle the shipping estimator POST data

Thanks, I think it means that handle process is independent from shipping cart. Why I was shown the 404 error when I call this function from other pages? For example. in tpl_product_info_display.php => <?php require(DIR_WS_MODULES . zen_get_module_directory('shipping_estimator.php')); ?>
I had change the $show_in = FILENAME_SHOPPING_CART; to $show_in = FILENAME_PRODUCT_INFO; in shipping_estimator.php