Jump to content

[kind of solved ][product duplication] how to pass an array with multiple products and images?


fernandokerber

Recommended Posts

Hi!

 

In Admin/AdminTabs/AdminProducts.php we can find the Duplicate Products function.

 

(To see search for "Product duplication" in AdminProducts.php)

 

first point: I need to run a loop that turn the duplicate function automatic and duplicates (creates from one product) about 20 new products.

 

 

second point: To duplicate the products image it calls "duplicateProductImages" function in classes/Images.php. Here I want to pass another array with sequencial images:

 

Like: 1.jpg, 2.jpg, 3.jpg, 4.jpg............. 20.jpg

 

 

Each duplicated product would have one of these sequencial images passed by the array....

 

 

I'm lost.... Any tips?

 

 

 

 

In other words: I want to make multiple copies from one product and assign one predefined image to each one respectively.

 

Automatically.

 

(These images would be uploaded to an directory.)

 

I Can't start.......

Edited by fernandokerber (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...