Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 VP-Cart 8.00 Issues
 AJAX issue in triggering shipping methods recalcul
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jack208
VP-CART New User

Malaysia
116 Posts

Posted - November 25 2015 :  05:24:37  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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."
Go to Top of Page

jack208
VP-CART New User

Malaysia
116 Posts

Posted - November 25 2015 :  10:57:28  Show Profile  Reply with Quote
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
Go to Top of Page

support
Administrator

4679 Posts

Posted - November 26 2015 :  05:56:02  Show Profile  Visit support's Homepage  Reply with Quote
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
Go to Top of Page

jack208
VP-CART New User

Malaysia
116 Posts

Posted - November 26 2015 :  06:29:25  Show Profile  Reply with Quote
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00