My_Changes Method In 4.3.3

Hello,

I'm trying to override the product page in 4.3.3 and I read all the documents/post I found about template override using my_changes method, but when I started to work on it, I noticed that the my_changes folder doesn't exists even if the “mychanges” addon is installed and active.



Following the path I can see all the addons folders but not the my_changes.



\design\themes\responsive\templates\addons





Do I have to create it manually or there is something else I should do ?



Thanks

hi,



yes, you should create folder manually - by default the 'My changes' module has no TPL files



best regards,

WSA team

create a new file here: /design/themes/YOUR_THEME_NAME/templates/addons/my_changes/blocks/product_templates/custom_template.tpl



and copy the content of the /design/themes/YOUR_THEME_NAME/templates/blocks/product_templates/default_template.tpl file to your newly created file.



After it, go to “Settings > Appearance” page in the admin panel, and change the “Product detailed page view” to your new template. If the file not appears in the dropdown list, please check, that the my_changes add-on is turned on!

Thanks for the advice.

Before to start making massive customizations on the product page, I have tried to simply create a

in the product description and fire a custom javascript onmouseover, but it doesn't work.

I'm trying this because I want to create a collapsible description, but I prefer to start with something very simple to understand how to use hooks.

In the chrome code inspector i can see the div with the function call, but mothing happens when the mouse goes over the div.



In the product description i have a div like this:



How to use:


I have my custom script : \js\addons\my_changes\myscript.js

It contains just this super simple function

function myaddon()
{
alert("this is my addon");
}

The tpl file : \design\themes\responsive\templates\addons\my_changes\hooks\index\scripts.post.tpl

{script src="js/addons/my_changes/myscript.js"}

What is wrong ?

[quote name='lparodi' timestamp='1437564561' post='223942']

Thanks for the advice.

Before to start making massive customizations on the product page, I have tried to simply create a

in the product description and fire a custom javascript onmouseover, but it doesn't work.

I'm trying this because I want to create a collapsible description, but I prefer to start with something very simple to understand how to use hooks.

In the chrome code inspector i can see the div with the function call, but mothing happens when the mouse goes over the div.



In the product description i have a div like this:



How to use:


I have my custom script : \js\addons\my_changes\myscript.js

It contains just this super simple function

function myaddon()
{
alert("this is my addon");
}

The tpl file : \design\themes\responsive\templates\addons\my_changes\hooks\index\scripts.post.tpl

{script src="js/addons/my_changes/myscript.js"}

What is wrong ?
[/quote]

[b]SORRY ... NOW IT IS WORKING ...[/b]
The clear cache command didn't work properly, by deleting the cache folder manually the addon started working ...

Hello Guru's.

Ive a question re my_changes under the mail folders.

Im trying to override the entire invoice template but can't get it to work., so would like clarification that I'm doing it correctly.



For the invoice created in the Admin > Orders side:

/design/backend/mail/templates/orders/invoice.tpl

would be overridden by:

/design/backend/mail/templates/addons/my_changes/overrides/orders/invoice.tpl ?



Likewise for the invoice Viewed by and emailed to the Customer.

/design/themes/responsive/mail/templates/orders/invoice.tpl

would be overridden by:

/design/themes/responsive/mail/templates/addons/my_changes/overrides/orders/invoice.tpl ?



Have I got that right?

Help greatly appreciated, as It just does not override!



PS… Yes indeed, i have cleared all possible caches, and even deleted the cache folder before clearing the local cache

Im a seasoned “de-cacher”

I think you want to use:

/design/backend/mail/templates/addons/my_changes/overrides/orders/invoice.tpl

Oops … I made an error, now corrected above.

I am actually using

…mail/templates/addons/my_changes/overrides/orders/invoice.tpl as suggested.



But it just does not work. changes made do not render.

2015-08-01 15_19_34-cPanel File Manager v3 - Pale Moon.png

Sometimes it works and sometimes - not. We have faced this issue several times, but failed to find a reason of it

Possibly due to setting of addon priorities. I dont see any other addons with overrides for mail/templates/addons/my_changes/overrides/orders/invoice.tpl, so this should have priority.

Similar issue reported here: http://forum.cs-cart…_1832#entry1832

but closed without any solution.

my_changes addon.xml sets :


4294967294


Which I'm guessing is the highest it can go?

There are no other /overrides folders under any backend or theme /mail/templates/addons folders, but there are a number of /mail/templates/addons/[addon_name]/hooks/orders/ .

Is this a bug that should be reported?

[quote name='remoteone' timestamp='1438601344' post='225389']

Possibly due to setting of addon priorities. I dont see any other addons with overrides for mail/templates/addons/my_changes/overrides/orders/invoice.tpl, so this should have priority.

Similar issue reported here: http://forum.cs-cart…_1832#entry1832

but closed without any solution.

my_changes addon.xml sets :


4294967294


Which I'm guessing is the highest it can go?

There are no other /overrides folders under any backend or theme /mail/templates/addons folders, but there are a number of /mail/templates/addons/[addon_name]/hooks/orders/ .

Is this a bug that should be reported?

[/quote]



Yes, please report the issue. We will vote for it

Bug Reported: http://forum.cs-cart.com/tracker/issue-5968-my-changes-overrides-not-working-mailtemplates/page__gopid__23224#entry23224

[quote name='remoteone' timestamp='1438701336' post='225575']

Bug Reported: http://forum.cs-cart…3224#entry23224

[/quote]



Fix has been provided.

[quote name='imac' timestamp='1438853858' post='225871']

Fix has been provided.

[/quote]



Glad to hear that. Thank you.

Yes, the fix seems to work. Thank you imac.