Hello,
Does somebody know if it is possible to let VM2 automaticly determine the customer group.
I have two additional customer groups:
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
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