Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

v4 Documentation? Rate Topic   - - - - -

 
  • Galactica
  • Advanced Member
  • Members
  • Join Date: 20-Jun 13
  • 50 posts

Posted 28 June 2013 - 03:57 PM #1

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

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11249 posts

Posted 29 June 2013 - 04:09 AM #2

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.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Galactica
  • Advanced Member
  • Members
  • Join Date: 20-Jun 13
  • 50 posts

Posted 30 June 2013 - 02:49 AM #3

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.


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

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11249 posts

Posted 30 June 2013 - 05:39 AM #4

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.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Galactica
  • Advanced Member
  • Members
  • Join Date: 20-Jun 13
  • 50 posts

Posted 01 July 2013 - 01:32 AM #5

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.


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?

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11249 posts

Posted 01 July 2013 - 04:20 AM #6

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.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Galactica
  • Advanced Member
  • Members
  • Join Date: 20-Jun 13
  • 50 posts

Posted 01 July 2013 - 03:46 PM #7

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.


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

 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11249 posts

Posted 01 July 2013 - 03:50 PM #8

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.

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • ronaeg
  • Newbie
  • Trial users
  • Join Date: 11-Aug 13
  • 1 posts

Posted 24 August 2013 - 06:12 PM #9

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.

thanks for explanation :)