PemBer Default Tax Country

Discussion in 'General PemBer / Paid Membership Discussions' started by Sadik, Feb 27, 2017.

  1. Sadik

    Sadik Administrator Staff Member PemBer Owner


    Hi,

    If you only want to use one country, you don't need to use VATLayer or the Auto EU Vat option.

    First just define one country, Germany.

    upload_2017-2-27_21-19-7.png

    Next, Click Taxes-> Taxes -> Add Tax

    upload_2017-2-27_21-20-9.png


    Now allow this new "Sales Tax" to be used in your product. So go to your product edit screen, click on Additional Options and scroll to the bottom,

    upload_2017-2-27_21-27-7.png


    Now your product (Gold Member Annual, in the above example) will have the Sales Tax 19% applicable to it only for people in Germany.

    But the user buying the product will still have to select "Germany" from the country list when buying it. The next version of PemBer will have the feature to AUTO SELECT your chosen country by default.

    But before the new version is out, you can do a little customization.

    First,open the attached file countries2.js

    In it find the line,

    Code:
    $('#countrylist').append($('<option>').text("Germany").attr('value', 'DE'));
    This is set for Germany. If you want any other country to be default, change the name "Germany" and the 2 letter ISO code "DE". If you want Germany to be default leave it as it is.

    Second, upload the attached file countries2.js to js/pember/ folder on your site.

    Once the file is uploaded we now have to modify two templates in your currently active style,

    pember_register_payment_methods
    pember_product_join


    In both these templates, find the line

    Code:
    <xen:require js="js/pember/countries.js" />
    And replace it with the line,

    Code:
    <xen:require js="js/pember/countries2.js" />
    ---------------

    If you did the above correctly, now when someone goes to buy your product, they will have the country auto selected and the correct tax applied.

    Next version of pember will have a new feature where you can specify the default country so the above template edits will no longer be needed.

    Hope this helps,

    - Sadik
     

    Attached Files:

    Last edited: Feb 27, 2017
    Szymme likes this.

Share This Page