Hi,
for a customer who uses the quotes module a lot we want to be able to copy an existing quote and update the products on the copy with new data from the producttemplate ( they change prices etc on the producttemplate, they don't create new templates..). I got it working so far that when I click the duplicate button the lines are copied and the data is being updated using a ajax request for the various templates. This does work by validating in the create.js if we have a copy context and if so we copy all the data needed from the producttemplates.
I currently have two issues left:
- When I copy a quote the productbundle items are copied but the calculated fields are not updated until I save the quote
- Certain fields are readonly.
Could someone point me into the right direction so I can solve both issues?