my changes addon no way to make it work

I have seen many post about this topic but none of these helped me out.

I’ve tried to clear the cache via admin and via var folder. I’ve tried everything really but styles.css is not even included in the source template code.



I am working on a local machine, perfectly running and correctly installed. I am using Cs cart ultimate latest version.



What i did:



1 - created the folder:

skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/index



2 - created a file called: styles.post.tpl containing the code:



3 - Saved this file it into
skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/index

4 - Create a file: styles.css containing my CSS changes (I've tried many, all working via firebug..)

5 - Saved it to the folder: skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes

and then NOTHING! :(

Check you are not using any other addons which use /skins/skin_name/customer/addons/addonname/hooks/index/styles.post.tpl



If there is another instance of styles.post.tpl with a lower preference, your my_changes styles.post.tpl will not be processed.

@StellarBytes, thanks so much for quick reply but no other addons are involved.



cheers

Addon my_changes is active?

Did you clear cache?





Valentin

Missed the vital point.



For Ultimate, it should be:



/stores/1/skins/skinname/customer/addons/my_changes/ (where '1' is the Store ID)



NOT



/skins/skinname/customer/addons/my_changes/

Hello, raganello.



you use CS-Cart Ultimate, so customer skins are located in the “root/stores/[storefront_num]/skins”.



Try to move all your customer changes to this dir.

Bingo! Thanks!



At this point my question is about the documentation, all the material I've found was referring to [color=#282828][font=arial, verdana, tahoma, sans-serif]skins/[CUSTOMER_ACTIVE_SKIN]/customer/addons/my_changes/hooks/index[/font][/color]



[color=#282828][font=arial, verdana, tahoma, sans-serif]Even here where appear to be correct for cs cart 3[/font][/color]

[url=“CS-Cart Documentation — CS-Cart 4.15.x documentation”]CS-Cart Documentation — CS-Cart 4.15.x documentation



Where do I should look for correct info?



Thanks again!

The documentation is correct for V3 but doesn't take into account the changes for Ultimate. All paths and file structures are the same except the /skins/skinname/customer resides in /stores/#/ where # is the Store ID.

@StellarBytes



Lovely.



Thanks again!

Just one additonal tid-bit… You can get rid of the {$config.skin_path}/ variable and just use addons/my_changes… The template engine will find the right location for you.



Of course, the easiest way would be to make your changes in the var/skins_repository/basic/customer/addons/my_changes directory tree, then just uninstall and install the my_changes addon This will place the template files in the proper locations for your type of product (PRO, Ultimate, MVE)… Then you can always reset to a known state.



But if you have developers working on your site, ensure they know to have their changes in the skins_repository (which is not normal developer practice).

Ok I got it, thanks for best practice suggestion!