VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: mrmysterious on August 25, 2016, 17:06:25 PM

Title: Manufacturer choice in product page - How to do?
Post by: mrmysterious on August 25, 2016, 17:06:25 PM
Hello,

due to my special concept I have a product which is made by a lot of manufacturers.
How to achieve that the customer can choose via drop down menu on product page from the list of manufacturers
that I have stored before in manufacturers tab?
That means: I don't want to assign the different manufacturers to that special product when I create it, but let the customer choose anyway.
Is there a solution?

cheers,
mrm 
Title: Re: Manufacturer choice in product page - How to do?
Post by: GJC Web Design on August 25, 2016, 18:02:55 PM
https://forum.virtuemart.net/index.php?topic=79799.0

if u do'nt want to assign multi mans to (why not?) then as std. it would never show up if a man is selected

you would need to hack the product model search query to do this.. look for man id + any without manid
Title: Re: Manufacturer choice in product page - How to do?
Post by: balai on August 25, 2016, 19:19:24 PM
Sounds like custom fields will do the job
Title: Re: Manufacturer choice in product page - How to do?
Post by: mrmysterious on August 26, 2016, 05:48:25 AM
Quote from: balai on August 25, 2016, 19:19:24 PM
Sounds like custom fields will do the job

Fine. Maybe it is quite simple, but however I don't get it yet.

Some pics to show the problem:

(http://www2.pic-upload.de/img/31551092/maninproduct.png) (http://www.pic-upload.de/view-31551092/maninproduct.png.html)

You see: I added manufacturers to a product. There are two of them in this case.

How do I manage to show them as a choice here in product page?

(http://www2.pic-upload.de/img/31551097/mannotinfrontend.png) (http://www.pic-upload.de/view-31551097/mannotinfrontend.png.html)

Surely I could create a custom field where I have to write those manufacturers as a value. Again! In this case, easy - they are only two. But what about 50? 100?

Why should I have to do twice the work once I assigned them to the product there had to be an easy way to show them as a choice, hadn't it?

But I just have no clue now - though it might be soooo simple.... :-[

cheers,
mrm

Title: Re: Manufacturer choice in product page - How to do?
Post by: balai on August 26, 2016, 11:07:41 AM
I don't think that the assigned manufacturers can be selectable.
They are considered product properties, hence cannot be modified by the end user.

Your solution seems to be custom fields.
If you are looking for an easy way to assign a predefined set of values to your products, have a look at this plugin.
https://breakdesigns.net/extensions/customfields-for-all
Title: Re: Manufacturer choice in product page - How to do?
Post by: GJC Web Design on August 26, 2016, 23:22:03 PM
or experiment adding the manus as cats.. there is no limit to the number and structure of cat->product mappings

E.g. when I do carparts sites etc I only use the manu as a label for the actual PART manu..  vehicle manus and models etc etc are all categories
Title: Re: Manufacturer choice in product page - How to do?
Post by: mrmysterious on August 27, 2016, 15:36:41 PM
Thanks @all for the good tips. i will try them out.
Still it's unsatisfying that the man. seem to only be of a use for internal sorting.
Maybe a task to the virtuemart programmers for a next update:
Make the man. available as a property, so they can be found in the property custom field beside product lenght, weight ect.

cheers, mrm