"Duplicate Product" button

Currently I manually duplicate products as we get the same products replenished in the warehouse but the stock number reference changes…

Currently I…

  1. Go to Products menu in InvoicePlane.
  2. Find the product you want to duplicate.
  3. Open it by clicking Edit.
  4. Manually create a new product by:
  • Clicking Create Product.
  • Copy-paste the existing product fields into the new product form.
  1. Save.
    :red_circle: 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:

  1. application/modules/products/controllers/Products.php
  • Add a new function duplicate($product_id) that copies a product.
  1. 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 )