zaviagodev / frappe

MIT License
0 stars 1 forks source link

"Get information from main item" button - website item doctype #117

Closed chomchuen closed 7 months ago

chomchuen commented 9 months ago

Objection:

Create functionality to "Get information from main item" button.


In Additional Info tab on Website item doctype, have 'Get information from Main item' button. Function of this button is "**Getting 1. Short Description

  1. Long Description
  2. Return & Refund policy title/description
  3. Shipping info title/description" from master item.**

//if website item already have it own Short Description, Long Description, Return & Refund policy title/description, Shipping info title/description, 'Get information from Main item' button will replace exists text in 6 fields.

Image

chomchuen commented 8 months ago
  1. Get data but do not save document (let users save it by themself).
  2. Short description doesn't work Screen Shot 2567-01-04 at 18 25 39 Screen Shot 2567-01-04 at 18 25 53
chomchuen commented 8 months ago

Done both✅ Screen Shot 2567-01-05 at 10 41 21

chomchuen commented 7 months ago

Can you find which function that automatically fetch Short/long description from master item to website item and disable it?

-> If users want website item to use same short/long (also policy&shipping) description as a master item, users must manually click on the "Get information from main item" button. Image


How to reproduce issue.

  1. Open master item & website item at the same time
  2. Change short and/or long description of master item
  3. Change to website item tab.
  4. Refresh the page and you will see that short and/or long description was updated automatically.
Muzmal commented 7 months ago

Fixed!! ( Pending Review )

chomchuen commented 7 months ago

Fixed✅

Master item | Website item Screen Shot 2567-01-22 at 13 49 07