News:

Support the VirtueMart project and become a member

Main Menu

Automatic determine the customer group

Started by jschuurkes, April 04, 2013, 16:15:12 PM

Previous topic - Next topic

jschuurkes

Hello,

Does somebody know if it is possible to let VM2 automaticly determine the customer group.
I have two additional customer groups:

  • Company
  • Private customers

Is it possible that, when a company makes a registration (filles in the company name), that this customer gets automaticly the customer group "company" and
when a non-company customer registrates, that it gets the customer group "Private customer".

I have different delivery methods for Companies and Private customers.

Thanks for any help

Regards,

Jack

John2400

Hi self determining customer access or groups?

This sounds good in theory except without control you will just have everyone pick the cheapest group or keep changing back and forth their access group. later you might want to give product to a special group then all customers can move around your site looking that things maybe you may not want them to.

* Really the option is shipping options. - you want customers to buy make but shipping is different.
maybe have a look here : http://extensions.virtuemart.net/shipments/shipping-by-rules-detail

jschuurkes

Hello John2400,

Thanks for your reaction, but I think you misunderstood my question.

The case is as follows, I have a Bakery website, where normal customers can order goods and collect them in different shops.
Companies can also order goods, bur we will deliver tehm to their company.

If a normal customer orders goods they get the following "shipping" options:

  • Collect at shop 1
  • Collect at shop 2

If a company orders goods, they get the "shipping" option:

  • Deliverd by us at a certain date and time

All the customers have to registrate through the registration form.

What I would like to have, is when they are ready, taht the Java script looks if the company name is filled in
and when filled in that the VIRTUEMART_SHOPPERGROUP_id is set to the value "Company,
otherwise
to the value "Normal Customer"

Something like:

if company = true then
   VIRTUEMART_SHOPPERGROUP_ID = '3'
else
    VIRTUEMART_SHOPPERGROUP_ID = '4'
endif

but then in Java script instructions I think.

Maybe somewhere out there in Viruemart land a Java GURU knows how to do this.

Regards,

Jack

John2400

http://extensions.virtuemart.net/promotions/shopper-group-changer-detail

jschuurkes, hi I just saw this extension - Might not be your answer but here is a good palace to start maybe.

Infact I think it is brand new extension