VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: titolin10 on November 20, 2017, 14:55:25 PM

Title: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: titolin10 on November 20, 2017, 14:55:25 PM
Hi again  ;D ;D ;D

VM 3.2.4
JOOMLA 3.8.2

I hope there is any solution to make duplication for the product like if I'm duplicating a topic in joomla articles manager.

Or for example if there any way to make save as a copy


because I faced a lot of cases when I have 4 or 5 products with the same details and prices ..etc. Then I just need to change one image so the problem I need to do all my work again and fill the same data.

Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: titolin10 on November 20, 2017, 14:56:44 PM
Sorry I think something went wrong when I was sending this post.
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: titolin10 on November 20, 2017, 15:01:25 PM
I did it using "clone product" button. :D

I'm sorry for repeating the post by mistake.
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Jörgen on November 20, 2017, 15:09:33 PM
Hello

If You have Products with data that should be common to more Products. Please consider using a unpublished Product as template for the Children. Price, description etc can be inherited and save some time when updating.

regards

Jörgen @ Kreativ Fotografi
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: titolin10 on November 21, 2017, 11:21:26 AM
Hello Jörgen

Thank you for your Valued response. :)
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: titolin10 on November 21, 2017, 11:26:50 AM
Mr Jörgen

In your signature you wrote "Virtuemart 3.2.5" and I don't find this version in "Download" page.

May you tell me how you downloaded this version or that was just a written mistake.

If there is a new release can you provide us a link to read about its new features ?
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: jenkinhill on November 21, 2017, 12:29:53 PM
Latest development version files for building installation packages are available in the repository  http://dev.virtuemart.net/projects/virtuemart/repository

Odd numbered versions are for testing purposes by experienced users, although some of us use them on live sites.
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: titolin10 on November 22, 2017, 03:57:39 AM
Quote from: jenkinhill on November 21, 2017, 12:29:53 PM
Latest development version files for building installation packages are available in the repository  http://dev.virtuemart.net/projects/virtuemart/repository

Odd numbered versions are for testing purposes by experienced users, although some of us use them on live sites.

That's awesome .. We hope to improve the image upload mechanism for the products because this tool lacks much improvement.
For example, if a user wants to add 1000 products to his site, each product must contain at least 10 images. Imagine how much time wasted in upload/save/upload/save/upload/save.

My sincere thanks to all great people who contribute to the work of this great project.
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: jenkinhill on November 22, 2017, 10:49:19 AM
Few people would want to add 1000 products at one time so this is unlikely to be a core feature. Of course anyone is welcome to create a plugin to add function to VM, so if this is a specific requirement you could write such a plugin or commission one from a developer, with the possibility of being able to sell the plugin to any other VM user.

For managing large sites I have used FTP combined with CSVi (https://csvimproved.com/).

Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Studio 42 on November 22, 2017, 15:49:22 PM
You can use my tool https://shop.st42.fr/en/tools/multi-upload-images.htm.
see screenshot https://drive.google.com/file/d/1kvin93YUJFQZuQbETBPj0CHsjQXh7_5M/view
This add an upload button in the main bar and a drag and drop button on the bottom (and confirm button+ preview if you prefer upload one by one)
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Jörgen on November 22, 2017, 17:03:56 PM
@studio 42

I use this structure to more easisly manage more than 10 000 images;
product/directory-for-each-category
for example:

product/lensadapter/kf-m42-em-a.jpg
product/lensadapter/kf-m42-em-b.jpg
product/lensadapter/kf-m42-em-c.jpg

product/straps/kf-neck-strap-100-cm-a.jpg
product/straps/kf-neck-strap-100-cm-b.jpg
product/straps/kf-neck-strap-100-cm-c.jpg
product/straps/kf-neck-strap-100-cm-d.jpg

Is Your plugin capable to manage this ?

regards

Jörgen @ Kreativ Fotografi
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Studio 42 on November 22, 2017, 17:14:31 PM
Quote from: Jörgen on November 22, 2017, 17:03:56 PM
@studio 42

I use this structure to more easisly manage more than 10 000 images;
product/directory-for-each-category
for example:

product/lensadapter/kf-m42-em-a.jpg
product/lensadapter/kf-m42-em-b.jpg
product/lensadapter/kf-m42-em-c.jpg

product/straps/kf-neck-strap-100-cm-a.jpg
product/straps/kf-neck-strap-100-cm-b.jpg
product/straps/kf-neck-strap-100-cm-c.jpg
product/straps/kf-neck-strap-100-cm-d.jpg

Is Your plugin capable to manage this ?

regards

Jörgen @ Kreativ Fotografi

No, i never had this request.
Problem is to know the right category, if you have more then 1 category set in the product ? But it's possible add it in one hour, if you explain me how you manage it currently(i can for eg, get the first selected category from the category list and add this as saving folder)
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Jörgen on November 22, 2017, 17:25:29 PM
Hello Studio 42
It is actually not following the categories that strict. I use a directory to store the images in that usually has the same name as the category for the product. I never thought of connecting them together this way.
Today I upload the images via ftp or Joomla media manager. Then I either use empty already created media or duplicate medias in myphpadmin. Not so elegant, speeding this up would be great.
Just changing the directory product in the productview when loading the image would be great. Assigning image works, but not uploading, then it always uses the "product" directory.

regards

Jörgen @ Kreativ Fotografi
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: jenkinhill on November 22, 2017, 17:51:41 PM
Quote from: Studio 42 on November 22, 2017, 15:49:22 PM
You can use my tool https://shop.st42.fr/en/tools/multi-upload-images.htm

Patrick, I did not know you had developed that plugin. As it resizes images too I may have a (non-VM) client site that could use it.
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Studio 42 on November 22, 2017, 18:19:11 PM
Quote from: jenkinhill on November 22, 2017, 17:51:41 PM
Quote from: Studio 42 on November 22, 2017, 15:49:22 PM
You can use my tool https://shop.st42.fr/en/tools/multi-upload-images.htm

Patrick, I did not know you had developed that plugin. As it resizes images too I may have a (non-VM) client site that could use it.
I have to check, but i think that you can add a resize plugin on com media, if your client use com media to upload.
You have a tirgger $dispatcher->trigger('onContentAfterSave', array('com_media.file', &$object_file, true)); that can resize any images and if needed remove the original uploaded file(or not).
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Studio 42 on November 22, 2017, 18:25:08 PM
Quote from: Jörgen on November 22, 2017, 17:25:29 PM

Today I upload the images via ftp or Joomla media manager. Then I either use empty already created media or duplicate medias in myphpadmin. Not so elegant, speeding this up would be great.
Just changing the directory product in the productview when loading the image would be great. Assigning image works, but not uploading, then it always uses the "product" directory.
Do you mean that you manually set the name each time ?

Perhaps a right solution, is to use first select category alias to pre-fill a text input, so if you need, you change it manually?

Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Jörgen on November 22, 2017, 20:47:27 PM
Hello Patrick

If I have a media item i can assign an already uploaded image to tha media item. This is all good. But if I instead decide to upload an image on the product editing page it is going to be uploaded to the url that is set under the VM configuration. I can understand that VM uses a "standard" directory, but I dont really get why an assignment to another directory works and not uploading writing the same url. Maybe it could easily be fixed in VM, but I don' t have the time no to suggest a fix for this.

Naming the file is not the issue, deciding in which directory it will be stored is the goal.

It would be nice to have some fields filled in from the product and if I change the URL to products/mydirectory it would be nice to have the file uploaded to that location. This maybe is to much work to implement right now, but it would be essential for me. I am surprised that no one else has experienced difficulties with directories that have more than 10 000 files. Are they using remote URL for the images ? I only have about 2500 products but some of the products have up to 10 images and this caused problems when handling the files in the directory. My solution will not give me an unlimited amount of files to upload, but this way I have moved the limit a bit. I hope it will take some time before I get into a 10 000 file limitation again.

I hope I was clear enough  :)

Jörgen @ Kreativ Fotografi

Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Studio 42 on November 22, 2017, 21:44:36 PM
I have many user having same problem.
In ftp most time you are limited to 1000 files, so you cannot manage using FTP.
Using sftp, it work, but it's damn slow when you update the directory.
So yes, using subfolder cood be a nice feature.
What i can do in  my plugin, is to check the current sub-directories and a dropdown, so you can select the right directory for uploads.
In your case for eg. you have the choice tu uplaod to to a subdirectory using a select list :
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: titolin10 on November 23, 2017, 05:50:27 AM
Dear Studio 42

from my understanding to your plugin. It can upload multi files "images" then I need to fill the images in to the product using "Search for images" tool.

It will also take some time for adding images one..  only with avoiding reload page every time.. that's all

Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Jörgen on November 23, 2017, 07:55:29 AM
Hello Studio 42

This sounds great. A dropdown minimizes the room for error. I will get your plugin and I think this plugin will be great feature to have.

regards

Jörgen @ Kreativ Fotografi
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Studio 42 on November 23, 2017, 12:16:30 PM
Quote from: titolin10 on November 23, 2017, 05:50:27 AM
Dear Studio 42

from my understanding to your plugin. It can upload multi files "images" then I need to fill the images in to the product using "Search for images" tool.

It will also take some time for adding images one..  only with avoiding reload page every time.. that's all


You dont have to add the images manually, this get uploaded and added directly in the product you are in(if you selected to auto add images in the plugin config).
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Studio 42 on November 23, 2017, 17:39:48 PM
Jorgen,
i added your request.
See http://pro.st42.fr/fr/multi-upload-in-folder.html the3 files get uploaded in 2 folders.
And you can change or add folder at anytime, directly in the product.
https://shop.st42.fr/en/tools/multi-upload-images.htm have already the update
Title: Re: How do I duplicate the product (Save as copy) or (Duplicate)
Post by: Jörgen on December 07, 2017, 09:18:12 AM
Hello Patrick

I have bought, installed and used Your plugin. Works great. It makes upload of images much easier. Thanks for adding support for subcategories :)

regards

Joergen @ Kreativ Fotografi