Currently I manually duplicate products as we get the same products replenished in the warehouse but the stock number reference changes…
Currently I…
- Go to Products menu in InvoicePlane.
- Find the product you want to duplicate.
- Open it by clicking Edit.
- Manually create a new product by:
- Clicking Create Product.
- Copy-paste the existing product fields into the new product form.
- Save.
Con: Tedious if you have lots of products.
I would like to…
Add Duplicate Button
If you want a button in the InvoicePlane admin panel like “Duplicate Product” next to each product,
you can modify these files:
- application/modules/products/controllers/Products.php
- Add a new function
duplicate($product_id)
that copies a product.
- application/modules/products/views/partial_product_table.php
- Add a “Duplicate” button/link next to Edit/Delete in the product list.
Then i could edit the sku or name a little when new stock comes in with a different reference number in the edscription etc… And save it.
(ideally this would also duplicate product images I made in this request… Product image or attachment )