PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Tax Calculations and Pro forms

s2Member Plugin. A Membership plugin for WordPress®.

Tax Calculations and Pro forms

Postby ffemtkl » August 17th, 2011, 5:01 am

I have S2Member Pro and I am using the section "Tax Rate Calculations for PayPal® Pro Forms (optional)". I have setup tax rates for one country that we are required to collect tax. According to the documentation S2Member Pro does the calculations. If so, my question is...

How does S2Member know which country the potential purchaser is located?
Am I required to create a custom registration field of "country" in order to "tell" S2member to apply the tax?

The question is true for all the tax calculation options like zip, state, province .etc.

If I am required to create these custom fields then it should be mentioned in the documentation (maybe even add a check system to make sure the required fields exist and if not show a warning) :mrgreen:

Please let me know,

Kalman
User avatar
ffemtkl
Registered User
Registered User
 
Posts: 20
Joined: June 13, 2011
Location: Jerusalem, Israel

Re: Tax Calculations and Pro forms

Postby Bruce C » August 17th, 2011, 8:04 pm

I believe that is calculated by PayPal automatically. In the code that option is just changed from 0 to 1.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: Tax Calculations and Pro forms

Postby Cristián Lávaque » August 18th, 2011, 2:29 am

WP Admin -> s2Member -> PayPal Options -> Tax Rate Calculations (Pro-Form)
With PayPal® Pro, your software ( s2Member Pro ) is solely responsible for calculating Tax Rates.
The Tax Rate will be displayed to a Customer during checkout, after they've supplied a Billing Address.

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Tax Calculations and Pro forms

Postby ffemtkl » August 29th, 2011, 3:52 am

Cristian,

Thanks for pointing me to that help. However, my basic question still stands...

How does S2Member know which country the potential purchaser is located?

Thanks,

Kalman
User avatar
ffemtkl
Registered User
Registered User
 
Posts: 20
Joined: June 13, 2011
Location: Jerusalem, Israel

Re: Tax Calculations and Pro forms

Postby Cristián Lávaque » August 29th, 2011, 5:03 pm

Because the tax rate gets calculated after they supply the billing address, which will include the country from a dropdown menu. In your taxes panel you'd have to define the taxes for each country using the two-charater country codes. WP Admin -> s2member -> PayPal Options -> Tax

I hope that helps. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Tax Calculations and Pro forms

Postby ffemtkl » September 1st, 2011, 9:33 am

Cristian,

Thanks, that cleared up everything. I am now in test mode, but the tax calculator keeps getting hung up. Not 100% what it is, but I will give you a screenshot and some error stuff. Please help me figure this out.

WP 3.2.1 with MU (not allowing people to create blogs, just using multiple blogs for our company)
Latest version of S2Member +Pro

tax calculator hanging.png
This is what keeps showing once country, zip and state have been inputted
tax calculator hanging.png (5.72 KiB) Viewed 225 times


Here is some errors:

XMLHttpRequest cannot load https://XXXXXXXX.com/wp-admin/admin-ajax.php. Origin http://XXXXXXXXX.com is not allowed by Access-Control-Allow-Origin.

This seems to be a permission issue, but not understanding how this could be.

Any help would be greatly appreciated.

Kalman
User avatar
ffemtkl
Registered User
Registered User
 
Posts: 20
Joined: June 13, 2011
Location: Jerusalem, Israel

Re: Tax Calculations and Pro forms

Postby Cristián Lávaque » September 1st, 2011, 9:44 pm

I'm glad that cleared it up. :)

I'll email Jason about that error, I'm not sure what it is.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Tax Calculations and Pro forms

Postby Jason Caldwell » September 2nd, 2011, 7:18 pm

Thanks for reporting this important issue.
ffemtkl wrote:XMLHttpRequest cannot load https://XXXXXXXX.com/wp-admin/admin-ajax.php. Origin http://XXXXXXXXX.com is not allowed by Access-Control-Allow-Origin.
Are you running your installation of WordPress on different domains, and/or with some type of domain mapping? This error is usually caused by a cross-domain HTTP request:
https://developer.mozilla.org/En/HTTP_access_control
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Tax Calculations and Pro forms

Postby ffemtkl » September 4th, 2011, 3:53 am

Jason,

It is the same subdomain testing.XXXX.com but if you notice the first is HTTPS and the second is plan HTTP. Could this be the issue? If so, any recommendations to fixing it?

UPDATE: I would like to force my "Membership Options Page" to be ssl and see if this solves the problem. I reread about ssl and S2Member, but need some help. In the FAQs it mention that
... Once you're live, you can add the Custom Field s2member_force_ssl -> yes to any Post/Page.
Where do I add this Custom Field? Within the Pro forms as hidden? Within the WordPress admin section where you have the section "Require Custom Capabilities"?

Please Help.

Thanks,

Kalman
User avatar
ffemtkl
Registered User
Registered User
 
Posts: 20
Joined: June 13, 2011
Location: Jerusalem, Israel

Re: Tax Calculations and Pro forms

Postby Cristián Lávaque » September 4th, 2011, 11:45 pm

You'd add the custom field in the edit page. After the editor area there should be a Custom Fields panel, if it isn't there, activate it from the Screen Options tab in the top-right.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Tax Calculations and Pro forms

Postby ffemtkl » September 5th, 2011, 3:41 am

Cristian and Jason,

Cristian - Thank you for point that out. Found it and set the page to ssl.

Jason - That was the issue! I have WP set automatically for ssl on login and wp-admin pages, but the page with the Pro forms was not secure (which after rereading you FAQs I realized was wrong because it is required by PayPal and Authorize.net TOS), therefore I was getting that error. Once I secured that page, the tax calculator worked perfectly.

Thanks again for your help.

Kalman
User avatar
ffemtkl
Registered User
Registered User
 
Posts: 20
Joined: June 13, 2011
Location: Jerusalem, Israel

Re: Tax Calculations and Pro forms

Postby Jason Caldwell » September 6th, 2011, 1:40 pm

Gotchya. Thanks for reporting back on this.
~ MUCH appreciated!
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Tax Calculations and Pro forms

Postby ffemtkl » September 27th, 2011, 8:55 am

New problem. It is hanging again, but it cannot be the https/http issue.

This time the tax calculator works when you are logged in, but not when logged out.

Using FireBug, it shows an error https://www.XXXXXXXX.com/wp-admin/admin-ajax.php 302 Found 440ms

Any ideas?

Kalman
User avatar
ffemtkl
Registered User
Registered User
 
Posts: 20
Joined: June 13, 2011
Location: Jerusalem, Israel

Re: Tax Calculations and Pro forms

Postby Jason Caldwell » September 27th, 2011, 9:40 pm

I believe this bug was corrected in the release of s2Member v110927 last night.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Tax Calculations and Pro forms

Postby ffemtkl » October 4th, 2011, 8:41 am

Updated and everything is working correctly. Thanks.
User avatar
ffemtkl
Registered User
Registered User
 
Posts: 20
Joined: June 13, 2011
Location: Jerusalem, Israel


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron