Answers.Body: <p>The easy - non-code - way to handle this is to create a Drupal node (page) with a select Province - and then based on Province selected popup a button with a link to a Contribution page that is configured with a Priceset that sells that Membership at that Province's General Sales Tax. </p>
  
  <p>Edit: this is the only sustainable way to do this right now (see comment below).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-01-19T22:57:38.007Z
Answers.LastActivityDate: 2017-10-18T12:35:06.163Z
Answers.LastEditDate: 2017-10-18T12:35:06.163Z
Answers.UserDisplayName: KarinG - Semper IT
Answers.Body: <p>One way of Doing this:
  First of all you need to create priceset for the membership 
  and you need to create an Extension for handling this calculation and you can use hook_civicrm_buildAmount() and please put all you code in the extension </p>
  
  <p>Please refer to the below link for hooks </p>
  
  <p><a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Hook+Reference" rel="nofollow">https://wiki.civicrm.org/confluence/display/CRMDOC/Hook+Reference</a> </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-28T07:09:56.030Z
Answers.Text: I am trying to get province working with tax for membership, is there any extension for that, or this is a pretty hard hook for it?
Answers.UserDisplayName: Boby
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-18T12:27:36.123Z
Answers.Text: I did look at this w/ Mathieu Lufty recently and yes it’s easy to add a buildAmount hook to override the default tax rate - however - you can’t edit (which includes emailing a receipt; adding a note) such Contributions as on Save sales tax gets recalculated on every single save. And you end up with a Tax refund in your financial items.
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-02-24T12:42:24.477Z
Answers.LastActivityDate: 2016-02-24T12:42:24.477Z
Answers.UserDisplayName: Ramesh - ARTECH Consultancy
Body: <p>I am trying to setup conditional tax based on province for one membership in payment page. is there any reference I can use? is this hook needed and also custom code?</p>
  
  <p>I am using drupal 7 with civi crm 4.7.1 version</p>
  
  <p>some references would be great.</p>
  
  <p>thank you</p>
  
Tags: <taxes><financial-accounts>
Title: conditional tax in financial payment page for membership
ThreadText: # conditional tax in financial payment page for membership
  
  (Asked by: username_0 on 2016-02-24)
  
  I am trying to setup conditional tax based on province for one membership in payment page. is there any reference I can use? is this hook needed and also custom code?
  
  I am using drupal 7 with civi crm 4.7.1 version
  
  some references would be great.
  
  thank you
  
  **Tags:** taxes, financial-accounts
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-01-19. Score: 1
  
  The easy - non-code - way to handle this is to create a Drupal node (page) with a select Province - and then based on Province selected popup a button with a link to a Contribution page that is configured with a Priceset that sells that Membership at that Province's General Sales Tax.
  
  Edit: this is the only sustainable way to do this right now (see comment below).
  
  
  ---
  
  ### Answer by username_2 on 2016-02-24. Score: -1
  
  One way of Doing this:
  First of all you need to create priceset for the membership
  and you need to create an Extension for handling this calculation and you can use hook\_civicrm\_buildAmount() and please put all you code in the extension
  
  Please refer to the below link for hooks
  
  <https://wiki.civicrm.org/confluence/display/CRMDOC/Hook+Reference>
  
  > **Comments:**
  > **username_0**: I am trying to get province working with tax for membership, is there any extension for that, or this is a pretty hard hook for it?  
  > **username_1**: I did look at this w/ Mathieu Lufty recently and yes it’s easy to add a buildAmount hook to override the default tax rate - however - you can’t edit (which includes emailing a receipt; adding a note) such Contributions as on Save sales tax gets recalculated on every single save. And you end up with a Tax refund in your financial items.  
  
  ---
  
  