VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: cas on November 24, 2011, 08:13:43 AM

Title: When cloning a product with custom field img it does not clone the custom fields
Post by: cas on November 24, 2011, 08:13:43 AM
When I clone a product that has custom fields of type image, the custom fields are not cloned into the new product.  I have to reenter all the custom fields of type images in the new product.

Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: PRO on November 27, 2011, 17:39:42 PM
does it clone other custom fields?
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: cas on December 18, 2011, 22:25:53 PM
Hi Banquet,

I tested with my two must common custom fields...  Cart Variant and Image types, and neither of these custom fields were cloned.   This is a major problem for me since I have so many products with so many custom fields that I really need the custom fields to be cloned along with the product. 

Thanks,
Chuck
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: Milbo on December 21, 2011, 02:32:29 AM
okey thanks, we will priorise this, maybe even before new year
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: cas on December 21, 2011, 02:44:10 AM
Thanks Milbo.
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: mrmug on January 21, 2012, 16:43:06 PM
Is there allready a solution for this problem?
I have to add more than 300 products, each of them with more than 20 options - I'm screwed if this doesn't work :/
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: hatschi-don on January 21, 2012, 23:31:16 PM
Same for me, all my products have variant. Iam urgently waiting for a solution.
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: Milbo on January 22, 2012, 12:13:42 PM
I works in the svn, we release soon a version for the forum 2.0.1. You should try then. Next days.
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: mrmug on January 23, 2012, 14:20:30 PM
what is the 'svn'?
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: jenkinhill on January 23, 2012, 16:18:29 PM
svn = subversion - http://en.wikipedia.org/wiki/Apache_Subversion

http://dev.virtuemart.net/projects/virtuemart/wiki/Setting_up_a_Development_Environment
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: mrmug on January 27, 2012, 19:18:16 PM
the update to v. 2.01 gives me following error by cloning a product with custom fields:

Fatal error: Call to a member function toFormat() on a non-object in ...\administrator\components\com_virtuemart\helpers\vmtable.php on line 452
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: mrmug on January 28, 2012, 12:05:46 PM
also the custom field type 'cart variant' has disappeared in 2.01 :(
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: Milbo on January 28, 2012, 18:10:41 PM
That was a typo, will come back, the "cart variant". Thanks for the hint with the slug
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: Milbo on January 29, 2012, 18:18:32 PM
Also the other typo should be fixed now.
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: mrmug on January 30, 2012, 15:40:46 PM
and where can I download it?
thanks in advance!
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: mrmug on January 30, 2012, 19:56:16 PM
It is not working AGAIN!
First of all, I get following error in the custom fields: "vmError: The field with id 9 and title Size is not longer valid, please delete it from the list"

The I clone a product with custom fields - the new product lost all his custom fields!
I thought this was the purpose of the update?

Also the plugin is not working like it should and no clear manual can be found.
I have a simple thing to make, a color list with drop down ... can you explain in a couple of words how to do this? Stockable Variants is not doing it ...
I'm very disappointed, like some other users here :(
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: mrmug on January 30, 2012, 20:06:07 PM
And the plugin 'stockable variants' is cleaning the variants list when applying or saving it :/
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: mrmug on January 30, 2012, 22:16:22 PM
I just tested version com_virtuemart.2.0.1.b

- Cloning a product with custom fields is still not working.
- Plugin 'stockable variants' still cannot save its variants ... list is empty each time I save or apply
- Option 'cart variant' is back, but unusable since you cannot clone products ...


Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: Milbo on January 30, 2012, 22:23:29 PM
Thanks for the note.
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: mrmug on January 31, 2012, 16:16:50 PM
any idea when this could be fixed?
looks like I'm impatiented, but I need it urgently ... if not soon I'll have to use version1, but I'll have problems with the update later.
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: cas on February 05, 2012, 01:14:03 AM
Updated to VM2.0.1.d and it still does not clone custom fields when cloning the product. 
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: Milbo on February 05, 2012, 21:43:22 PM
I must admit, I thought we fixed it even before releasing 2.0.1, but seems only for the childs.

I prefer to use childs, they make it much more pattern like.
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: cas on February 05, 2012, 22:03:41 PM
Hi Milbo,

Patterns are good, but if you don't need inventory control and all the extra complexity around setting up and maintaining children, custom fields are a simple way to handle lots of product attributes, especially attributes with images.  Take a look at my products and tell me how using product children for all these hair color options would work as easy as it does with custom fields: https://www.hairextensionsfair.com/shop/full-head-clip-in/pp-straight-16-in-detail

Anyway, the new VM2 custom fields with images are a great improvement over VM1, so thanks for all the great work!  Now please just get them to clone and we're all good. :)

Thanks,
Chuck
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: Milbo on February 05, 2012, 23:07:22 PM
:-)

So funny, we repaired the clone,... then we made it so that childs inherit the customfields from the parent and added for that an extra checkbox, which defines if the child is overwriting the displayed customfields. This checkbox is was not set in the cloning process. One line fixed it.

But I hear in your answer, that you missunderstand what I mean with child concept.

You create one product as the pattern, with the customs you need, like dropdown for size,.. images or so.... Then when you create a child, you see the stuff of the parent and you can overwrite it. You shoud try it.

Because when you want to change something later, you must change all products, in my model a lot can done via the parent.
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: cas on February 05, 2012, 23:28:48 PM
Interesting... I'll give that a try and see how easy it is.  Thanks for the tip!

Will the custom field clone fix be in the next release 2.0.1.e?
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: Milbo on February 05, 2012, 23:32:45 PM
of course
Title: Re: When cloning a product with custom field img it does not clone the custom fields
Post by: meriturva on February 24, 2012, 17:07:57 PM
Hi!
i'm develop new custom plugins but i have a problem with cloning product function (com_virtuemart.2.0.1.N).
The custom fiels is duplicated on _virtuemart_product_customfields table but values are not duplicated on my custom table.
Any approach to do that? so also custom field "data" are duplicated? i don't see any function to implement to do that on vmCustomPlugin

Thanks.
Meriturva