Post by eghambob » Mon May 10, 2010 3:23 am

Hi Guys,

I would like to add a field to the registration form for a site that sells disabled mobility products, but was wondering if its possible for that field, when entered by the customer, to update the database? For example - someone registers who is VAT exempt (through a disability) - and when they submit the form, they automatically get put in a customer group (which I've called 'VAT exempt').

At the moment they would have to wait for the admin to assign them to a group which would disrupt the flow if they then wanted to purchase something. I'm hoping to work in a VAT exempt part in the system/library/cart.php (thanks for the code Q!) to not add VAT to the 'VAT exempt' cutomer group.

I'm a big fan of OC (best cart I've seen), well done to all in helping its evolution!

Thanks,
Rob

New member

Posts

Joined
Thu Jan 21, 2010 2:36 am

Post by Qphoria » Tue May 11, 2010 12:02 am

Not sure if this should be a customer group or per-customer option.

Customer groups by design were meant for pricing purposes. But could also be used for tax exemptions. But then you have multiple groups:
default
default taxexempt
wholesale
wholesale taxexempt

So it might just make more sense to add a field to the customer for tax_exempt status. Then it will apply for any customer group that the customer is in and they can choose that field during registration.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by eghambob » Tue May 11, 2010 12:41 am

Thanks for the reply Qphoria,

The problem I have is that some customers will be vat exempt (in fact most prob will) but a declaration must be made. There's also the problem that not all products will be vat exemptible. I can set different tax classes in the back-end but I'll never know who is eligible for vat exemption on vat exemptible products.

Ideally I'd like registered (and guests eventually) customers to declare they are vat exempt in the account create, then if they login to buy something , to be able to get vat exemption (on vat exemptible poducts only).

I've put extra fields in the create form (under Choose Password) here:
http://pmtest.rb-webdesign.net

It would be great if this somehow logged their status as vat exempt (which is why I thought of using the groups), then in the library/cart.php some code could exclude customers with 'vat exempt' status from having vat added (if the product is vat exemptible), if no declaration then vat is added as normal.

Basically, in a nutshell I have two things going on - two different customer types, and two product types. The form needs to make the distinction.

Sorry if long-winded, hope that makes sense!

New member

Posts

Joined
Thu Jan 21, 2010 2:36 am

Post by deeve » Thu Oct 21, 2010 10:36 pm

I have the same scenario as eghambob & wondered whether anyone has any ideas as must be a feature others could use? I'd need it to work on 1.3.4 though ;)

Thanks.

Active Member

Posts

Joined
Tue Oct 20, 2009 4:31 pm

Post by madimar » Thu May 26, 2011 6:08 am

Dear guys, I just released two contributions to properly manage taxes (one specific for US taxation system, another more general for EU VAT), introducing the new concept of customer tax groups (separate and different from standard customer groups) in registration forms.
For each customer tax group, specific IDs are requested dynamically in registration forms and, when is applicable, tax exemption is applied.
At the moment, tax exemption is global on all products, but I could adapt and improve things in order to apply it only on specific tax classes for specific customer tax groups.

Please have a look at:
http://www.opencart.com/index.php?route ... on_id=2107
or
http://www.opencart.com/index.php?route ... on_id=2004
for more details.

You will find also live demo sites where you can check everything. I'm also available to collect further requirements for next versions.

Please let me know for any comment or clarification,

regards

M

-----------------------------------------------------------------------
My last mods: Partita IVA e CF | Pro EU VAT Number | Sales Agents | Pricelist Pro
-----------------------------------------------------------------------


User avatar
Active Member

Posts

Joined
Thu Sep 24, 2009 6:27 pm

Who is online

Users browsing this forum: No registered users and 113 guests