VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: pm4698 on August 10, 2014, 19:44:52 PM

Title: One product with different price per weight
Post by: pm4698 on August 10, 2014, 19:44:52 PM
Hello there,

I have no huge experience on virtuemart but i need to do something like this:
linkl1: http://www.pet4u.gr/skiloi/ksira-trofi-skilou/royal-canin-size/

or this:

link2: http://www.fressnapf.de/shop/acana-grasslands-cat-6_8kg

At first link, it seems that there is one item with many weights. For example i have the same item at 2kg and 5kg (actually 2 different sku codes but same product, different weight). And the guy shows this like its one product and he sees all weight options.

At second link, at product page, he has a select weight option and when you select different weight, then price is changed automatically.

I don't know if there are ready plugins for this or you can do this directly through virtuemart.

Also, i don't know if for example its like creating one product (parent) and then child products (because i have never worked with parent-child product technique)

Any ideas of how this can be done in virtuemart?

Thank you in advance
Title: Re: One product with different price per weight
Post by: GJC Web Design on August 10, 2014, 23:43:41 PM
just google virtuemart custom fields
there's a good tut by https://www.spiralscripts.co.uk/Joomla-Tips/custom-fields-with-virtuemart-2.html etc
Title: Re: One product with different price per weight
Post by: Milbo on August 16, 2014, 12:01:13 PM
Different weights can only be done with VM 3 and our customsize http://extensions.virtuemart.net/products/custom-size-detail

The reason is that VM2 cannot manipulate/change the weight of a product. So if you want that, you should use vm3, buy our customsize and write a ticket (cause I did not add yet this feature, but it wont take longer than a day)
Title: Re: One product with different price per weight
Post by: pm4698 on August 18, 2014, 12:34:43 PM
As the read the link at first reply, it can be done in VM2, by creating Cart variant (set cart attribute and is a list to YES) and then call custom field in each product and define for each value a different price.

This way, you can have this inside each product.

This is like the 2nd link i have attached to my original post.

What if i wanted to do this like the page at 1st link?

There he presents like 3 products in one, but if you see its like this:
One product: dog food, description and below he has like 3 different products (same product, different weight) and you can add each of the products to cart.

Does it anything to do with parent - child products? (i am not quite familiar with those terms - how to use them). Can i for example, create a parent product and then child products and make them show like this? (first parent and below child products?)

Thank you in advance
Title: Re: One product with different price per weight
Post by: GJC Web Design on August 18, 2014, 16:03:12 PM
If you have e.g. "Dog Food Pigs Noses - sehr lecker" available in 3 different weight sized bags then they would be 3 different child products of the parent "Dog Food Pigs Noses - sehr lecker"
each with their own price

I think your confusing weights etc - it is the same as if u had red/blue/black "Stupid T.Shirt" - they are children (cart variants) of the parent "Stupid T.Shirt"

set it up and experiment - you'll find the 3 possible weight pig noses bags will appear in a dropdown and the client can choose 3 small and 2 large  - what ever
Title: Re: One product with different price per weight
Post by: pm4698 on August 18, 2014, 17:16:43 PM
So, if i got this right.

1) I create a custom field for example size.
2) I go to product and add this custom field and for each value of custom field i add a price

Now, if i go and see the product at frontpage then if i select for example medium size the price will change.

With this procedure, i have for example the main product and 3 child products, one for each size?

If yes, is there any tutorial of how to show those child products, as they were separate products?

Thank you in advance and sorry if i become annoying!
Title: Re: One product with different price per weight
Post by: Jörgen on August 18, 2014, 20:31:45 PM
Hello

If I don´t remember wrong, You simply assign a category to the child product and it will be visible. As long as it only inherits the parents category it will not be invisible in searches e.t.c

regards

Jörgen @ Kreativ Fotografi

Title: Re: One product with different price per weight
Post by: GJC Web Design on August 18, 2014, 23:48:31 PM
http://www.flexiblewebdesign.com/forum-virtuemart-2-template-puremart-support/152-tutorial-custom-field-with-stockable-variants

or the one I already showed you

https://www.spiralscripts.co.uk/Joomla-Tips/custom-fields-with-virtuemart-2.html