v4 Documentation?

Just installed CS-Cart v4 and was trying to locate docs on the proper way for editing the theme, hooks etc… for this version. The ONLY new documentation I have found is for add on development.



I keep reading snippets here and there that the approach to desinging themes and modifing the basic theme is completely different in v4 but can't find any references or documentation that isn't 3x.



Any help would be greatly appreciated!



Thanks,

Paul

The add on docs are it. All info you need is there, its just not really explained or well thought out. I.e. images in a completely separate tree and other bogus expectations about file locations. Otherwise, all previous methods for using hooks still applies.

[quote name='tbirnseth' timestamp='1372478949' post='164590']

The add on docs are it. All info you need is there, its just not really explained or well thought out. I.e. images in a completely separate tree and other bogus expectations about file locations. Otherwise, all previous methods for using hooks still applies.

[/quote]



I will give it a read then, but it's strange as their blog stated that it was going to be different. Maybe I missunderstood… I will read that add on documenation tonight.



Thanks

The php code side of things is radically different and so are the locations of the template files and the expectations surrounding files like css files, addon images, etc.



But the mechanism of the hooks directory structure within the addon template directories and naming remains the same (though the put 'mail' in a separate tree too). I'm sure they removed some hooks they felt were unnecessary and renamed others just to confuse people and break compatibility. But in general, the mechanism/method is still the same.

[quote name='tbirnseth' timestamp='1372570747' post='164633']

The php code side of things is radically different and so are the locations of the template files and the expectations surrounding files like css files, addon images, etc.



But the mechanism of the hooks directory structure within the addon template directories and naming remains the same (though the put 'mail' in a separate tree too). I'm sure they removed some hooks they felt were unnecessary and renamed others just to confuse people and break compatibility. But in general, the mechanism/method is still the same.

[/quote]



I think what's throwing me are the new directory paths and the serious lack of docs for v4 or even docs that are well written for that matter… The My Changes description would be laughable if I didn't feel like putting my head through my desk… I am new to CS-Cart and the lack of docs/examples to get new designers and developers up to speed has me extremely frustrated.



Take the template editor clone theme option for example, should I clone the “basic” theme and work on that, and skip hooks altogether or should I only use my changes to modify a theme?

Depends on extent of change. Larger changes, use the theme editor. Smaller tweaks, use the my_changes hook for index/styles.post.tpl.



But you're in a world where no one has really done anything yet (or published it anyway) so consider yourself an early adopter and publish what you learn so others don't have to go through the experimenting process. That's basically how it works here.



Your turn.

[quote name='tbirnseth' timestamp='1372652458' post='164663']

Depends on extent of change. Larger changes, use the theme editor. Smaller tweaks, use the my_changes hook for index/styles.post.tpl.



But you're in a world where no one has really done anything yet (or published it anyway) so consider yourself an early adopter and publish what you learn so others don't have to go through the experimenting process. That's basically how it works here.



Your turn.

[/quote]



Thank you for explaining that tbirnseth, that does point me in the right direction. If I use the theme editor, will those styles I alter and or add be wiped if there is a cart/theme upgrade or are the changes permanent?



Also, I love me a good forum, so I will most definitely post any adventures/solutions I come up with…



Thanks,

Paul

I haven't used the theme editor, but I would imagine they would upgrade. Otherwise, what's the point? My guess is that the data is stored in the db and then applied to the filesystem when saved. But as I said, I haven't looked.



You're lucky, you don't have any history you are trying to bring forward. Starting from scratch in cs-cart is always easiest because that's how they test so most of the basics work.

[quote name=‘tbirnseth’ timestamp=‘1372652458’ post=‘164663’]

Depends on extent of change. Larger changes, use the theme editor. Smaller tweaks, use the my_changes hook for index/styles.post.tpl.



But you’re in a world where no one has really done anything yet (or published it anyway) so consider yourself an early adopter and publish what you learn so others don’t have to go through the experimenting process. That’s basically how it works here.



Your turn.

[/quote]

thanks for explanation :)