jack208
VP-CART New User

Malaysia
116 Posts |
Posted - November 25 2015 : 05:24:37
|
This is in the shopcustomer form (ie the customer form during checkout stage).
When this form loads, the shipping methods is calculated properly for eg it''ll pick up either the Shipping Country (or if empty, refers to the Customer County) and picks up the appropriate shipping options to display in the Shipping Method dropdown for me to pick.
When I make changes to the Shipping Country (selecting from the dropdown), it''ll also trigger a refresh of the Shipping Methods listbox. So far so good.
However when I make a change to the Shipping State, it does not trigger the Shipping Methods refresh. I''ve both xShippingByCountries and xShippingByStates set to Yes.
anyone knows which ASP codes I need to change to make this work? I''ve looked around shopshippingcalc.asp but couldn''t seem to find where to put the change.
Thanks. |
|
jack208
VP-CART New User

Malaysia
116 Posts |
Posted - November 25 2015 : 08:14:25
|
I just read this from the user guide. Does this mean it''s not possible to have changes in the State field trigger a refresh of the shipping methods?
"Note: This method will not automatically change the shipping options displayed on shopcustomer.asp based on the state chosen – if the customer chooses a method not supported by their state, they will be alerted." |
 |
|
jack208
VP-CART New User

Malaysia
116 Posts |
Posted - November 25 2015 : 10:57:28
|
Does this session variable GetSess("shipstate") give me the value of what''s currently selected in the Shipping State dropdown list in the Customer Shopping form (during checkout)?
Even tho I''ve selected a state, my trace is showing an empty (or null) value returned by the GetSesscall. The GetSess("shipcountry") however does return me the correct value of the country selected. |
Edited by - jack208 on November 25 2015 10:58:57 |
 |
|
support
Administrator
    
4679 Posts |
Posted - November 26 2015 : 05:56:02
|
Hello Jack208,
For your information, the Ajax Shipping only triggered if you changed either country or zip code, as most of the shipping modules are not requiring state so far.
Hope this helps.
Thank you Wilson VPCart Support |
 |
|
jack208
VP-CART New User

Malaysia
116 Posts |
Posted - November 26 2015 : 06:29:25
|
Thanks Wilson for the reply. The info is useful but not helpful for me. haha.
In my case, we have shipping charges differentiated by states rather than zipcodes. Since the Ajax shipping can be triggered by country and zipcode changes, I suppose it''s possible for me to make changes to the code to also trigger when there''s a change to the state field. If you can point me to which file or sub is handling this event trigger, I should be able to make/test out the changes. Much appreciated. |
 |
|
|
Topic  |
|