News:

Looking for documentation? Take a look on our wiki

Main Menu

Is it possible to add attributes to products in Virtuemart 3

Started by jimleeder123, February 06, 2015, 17:24:02 PM

Previous topic - Next topic

jimleeder123

Is it possible to add attributes to products in Virtuemart 3? You could do it in Virtuemart 1 easily but in 3 I cannot find the option. I've seen in VM2 you could create a custom field but the custom field type used in the examples isn't given in VM3.

An example of an attribute would be "extra toppings" on a pizza product, and values would be like "cheese", "peppers" or "pepperoni".

So how can I do this on VM3?
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

jenkinhill

Custom fields. Install VM3 with default products on a test site & see how it is done. Or look at http://demo.virtuemart.net/
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jimleeder123

I've seen a post that says about custom fields and I got it to work. But is there a way to add a lot of attributes at once? I will be needing to add 30 attributes per product. Using VM1 I used to copy and paste them in the database. However it looks like in the VM3 database it can't be done that way. Is there a quicker way?
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

jenkinhill

You can use Groups for custom fields and apply each group to a product with just a couple of clicks.

Or clone a product which makes a duplicate of that product together with its custom fields and field settings.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

AH

Regards
A

Joomla 3.10.11
php 8.0

jimleeder123

Hi Hutson, thanks again for your great advice on this forum. The plugin works but the only thing is that in the drop down box the letter "A" appears with a weird sign above it, where the "@" sign is in the code. How can this be removed?
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

AH

jimleeder123

Post more details - e.g. you exact parameter setting and do this on the plugin page pleae
Regards
A

Joomla 3.10.11
php 8.0

jimleeder123

Its done whenever I type the "@" symbol. I only need to be adding costs with the attributes. I have attached a picture showing what I'm talking about.
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

AH

Regards
A

Joomla 3.10.11
php 8.0

jimleeder123

I've got this in "drop options" - Cheese@+2,Peppers@+2,Pepperoni@+2
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

jimleeder123

Also is it possible that when the user leaves the drop down boxes as they are in the default option (for example "none" or "nothing") the options aren't shown on the order confirmation e-mail sent to the admin?

A client requested this, so is it possible?
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

jenkinhill

Quote from: jimleeder123 on February 09, 2015, 11:18:36 AM
the letter "A" appears with a weird sign above it, where the "@" sign is in the code.

Are you using UTF-8 encoding in your template? - eg <meta charset="utf-8"> for HTML5
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jimleeder123

Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk

jenkinhill

Well you are a web developer so you should be able to work out the encoding? Strange characters are often related to carachter encoding.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

jimleeder123

I only started in 2014, and haven't encountered any encoding issue before.
Web Developer and blogger

Joomla 3.4.8  (2.5 on some)
VM 3.0.12
PHP 5.6 (5.4 on websites with Joomla 2.5)

http://jimleeder.co.uk