How can i prevent this file form resetting? so my code stays.
You shouldn’t edit any files in the cache, no. Exactly which file are you editing?
I think it’s coming from
if you can create an edited copy in
and it works, that would be great. Your customization would not only survive cache refreshes, but it would be upgrade-safe.
But if the file from “custom” dir doesn’t get picked up (not everything is customizable like that) then you will have to check after each upgrade.
ATTENTION: that’s a generic file for all modules; what you change there will affect all edit views, except if you use smarty conditionals.
hmm yeah so I did that and then reinsert my file into the cache but I won’t know if it works until a day or so goes by if it clears it out. But I wanted to see could there possibly be another way to pull in account info by re-creating this section in studio with a dropdown menu or something that populates the custom fields I want for billing and shipping? so that way I’m not doing these customization like this to the code itself?
The correct approach might be different, maybe customizing the SugarFields that handle addresses. I am not sure of this, but I think that would avoid a lot of these secondary challenges.
Thanks for the link! I was actually able to use the add on I mentioned earlier to map the fields from accounts to quotes and then I used a custom js file I created myself to include all my custom code.