818 pointsLike some sort of WPMU DEV God"Mindblowingly helpful member
nickd32
Member
—
5th April 2011
Having a problem with International orders in MarketPress -- seems the plugin is not charging shipping on international orders when the Provice/State/Region box is left blank.
WP Multisite 3.0.5
MarketPress 1.3.1
In the example in the attached images, we're selling a DVD for $12.99 with an international shipping price of $4 US.
When I go to check out and choose Switzerland for my country, there is no shipping charge if I leave the "state" box blank. On the other hand, if I put something in the "state" box, it will charge shipping. http://thebutterflycircus.com/store/
Having a problem with International orders in MarketPress -- seems the plugin is not charging shipping on international orders when the Provice/State/Region box is left blank.
WP Multisite 3.0.5
MarketPress 1.3.1
In the example in the attached images, we're selling a DVD for $12.99 with an international shipping price of $4 US.
When I go to check out and choose Switzerland for my country, there is no shipping charge if I leave the "state" box blank. On the other hand, if I put something in the "state" box, it will charge shipping. http://thebutterflycircus.com/store/
Ok, seems that when state was not set shipping always returned 0; State is only required when country is usa or canada on checkout. I've adjusted the function for next version.
Thanks Aaron. My base country is U.S. in all cases so far.
I've got clients with live stores, and I need to fix this issue that int'l customers get charged shipping. Can you release a patch or tell me where in the code to add your fixes?
Also, it would REALLY be helpful if the state field was a dropdown box, rather than a text box.
I know it's difficult when there are multiple countries involved, but this single issue has caused me (and others too) more grief than anything else over the past few months.
Responses (6)
WPMU DEV Fanatic — 6th April 2011 #
Hi nickd32,
Thank you for your feedback on this one, especially the helpful screenshots. We're looking into this one and the developers have been alerted.
Thanks for your patience!
Lead Developer — 6th April 2011 #
Hmmm, can't see an issue in the code. What is your setting for base country?
Lead Developer — 6th April 2011 #
Ok, seems that when state was not set shipping always returned 0; State is only required when country is usa or canada on checkout. I've adjusted the function for next version.
Member — 6th April 2011 #
Thanks Aaron. My base country is U.S. in all cases so far.
I've got clients with live stores, and I need to fix this issue that int'l customers get charged shipping. Can you release a patch or tell me where in the code to add your fixes?
Also, it would REALLY be helpful if the state field was a dropdown box, rather than a text box.
I know it's difficult when there are multiple countries involved, but this single issue has caused me (and others too) more grief than anything else over the past few months.
Thanks,
Nick
Lead Developer — 6th April 2011 #
In the shipping_price() method in the main plugin file change
to
I'll look into the dropdown. Problem is it would only work for USA, I guess I would have to put the country above state?
Member — 6th April 2011 #
Thanks.
Yes. That's how Paypal forms work now.
See this post:
http://premium.wpmudev.org/forums/topic/marketpress-entering-full-state-name-causes-errors#post-81257
Become a member