Jump to content


Corporate Sponsors


Latest News: (loading..)

Template Engine Functionality Proposal


54 replies to this topic

#41 Foayiid

  • Community Member
  • 49 posts
  • Real Name:fred
  • Gender:Male

Posted 19 March 2012, 18:05

Sorry !!!!
Clean the cache, Clean the cache and clean the cache ...

#42 Harald Ponce de Leon

  • Manager
  • 3,266 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 20 March 2012, 08:48

Hi Fred..

View Postlorem_ipsum, on 16 March 2012, 08:59, said:

if I'm not mistaken, i think @harald sometimes you confused some ppl when you used the term "folder" and "namespace" about Custom...
The "custom" namespace don't exist at all. Maybe peoples need to understand that "custom" folder is just here for overwrite some classes or app (if they need) or to developpe their own application other than a shop... like a forum, cms... around the oscom framework.

The folder structure follows the namespace structure, so when the Custom namespace is being referred to it means:

Folder: osCommerce/OM/Custom
Namespace: osCommerce\OM\Custom

and when the Core namespace is being referred to it means:

Folder: osCommerce/OM/Core
Namespace: osCommerce\OM\Core

The Custom namespace is there for any kind of customizations including overriding core classes and introducing new classes (for add-ons).

An AddOns namespace can be introduced in the future when add-ons can be managed via the Dashboard (one click installations and updates).

Kind regards,
Harald Ponce de Leon
osCommerce, Sell With Emotion

#43 Harald Ponce de Leon

  • Manager
  • 3,266 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 20 March 2012, 08:48

Hi Fred..

View PostFoayiid, on 19 March 2012, 18:05, said:

Sorry !!!!
Clean the cache, Clean the cache and clean the cache ...

What cache are you referring to?

Kind regards,
Harald Ponce de Leon
osCommerce, Sell With Emotion

#44 Foayiid

  • Community Member
  • 49 posts
  • Real Name:fred
  • Gender:Male

Posted 20 March 2012, 10:00

Too much Fred ... Lol

Hi Harald,
I am referring to the osCommerce/OM/Work/Cache
After cleaning this, all is ok !
Sorry for the disturb.
Fred II

#45 Harald Ponce de Leon

  • Manager
  • 3,266 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 20 March 2012, 10:01

Hi Fred..

What was being cached that was causing a problem?

Kind regards,
Harald Ponce de Leon
osCommerce, Sell With Emotion

#46 Foayiid

  • Community Member
  • 49 posts
  • Real Name:fred
  • Gender:Male

Posted 20 March 2012, 10:31

There is no problem, but when I put my add-on in the custom folder without cleaning the cache I doesn't appear in the Admin.
Why it is not possible that the cache troubleshooting this situation ?

#47 Harald Ponce de Leon

  • Manager
  • 3,266 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 20 March 2012, 10:51

Hi Fred..

What are you working on? What type of Add-On is it? :)

Kind regards,
Harald Ponce de Leon
osCommerce, Sell With Emotion

#48 Foayiid

  • Community Member
  • 49 posts
  • Real Name:fred
  • Gender:Male

Posted 20 March 2012, 12:01

This is an add-on made to work with professional customers. :ph34r:
It is close to be ready ... :-

#49 Harald Ponce de Leon

  • Manager
  • 3,266 posts
  • Real Name:Harald Ponce de Leon
  • Gender:Male
  • Location:Solingen, Germany

Posted 20 March 2012, 12:47

Hi Fred..

Looking forward to seeing it in action! I'll look into the cache issue as soon as it's available.

Kind regards,
Harald Ponce de Leon
osCommerce, Sell With Emotion

#50 Foayiid

  • Community Member
  • 49 posts
  • Real Name:fred
  • Gender:Male

Posted 20 March 2012, 17:44

I'll keep you informed ...
About the stats, Did you choose an api ?

#51 Foayiid

  • Community Member
  • 49 posts
  • Real Name:fred
  • Gender:Male

Posted 21 March 2012, 18:08

Hi Harald,

Sorry to disturd but this time it's not the cache.
When I put my new file in the OM/Custom/Site/Admin/Module/Dashboard/newFile.php the module not appear in the admin.
But when I put it in the OM/Core/Site/Admin/Module/Dashboard/newFile.php it's ok and the Custom's file is the master.

Thank you, Fred

#52 foxp2

  • Community Sponsor
  • 168 posts
  • Real Name:Laurent
  • Gender:Male
  • Location:France

Posted 21 March 2012, 18:24

@Foayiid:
fred, mets ton code à disposition (sur github).
c'est le seul moyen de te guider efficacement. (je pense que tu as mal définis ton namespace)
jettes un oeil à la class getModules de l'application Dashboard.
n'oublies pas de préciser sur quelle BRANCH tu bosses. il y a des modifications majeures entre les BRANCH master/cfg/template (issues du dépôt d'Harald)
Laurent AKA Fox P two
osCommerce, Code With Passion
My Tools for Agile software development : About Me

#53 Foayiid

  • Community Member
  • 49 posts
  • Real Name:fred
  • Gender:Male

Posted 22 March 2012, 09:06

My namespace is ok and I'am working on the Master Branch.
Weah I already look the getModules app.

My work is in the Custom folder (OM/Custom/Site/Admin/Module/Dashboard/newFile.php) and it doesn't work,
when I create an empty File in the Core (OM/Core/Site/Admin/Module/Dashboard/newFile.php) so it works.
A little bit strange, isn't it ?

#54 foxp2

  • Community Sponsor
  • 168 posts
  • Real Name:Laurent
  • Gender:Male
  • Location:France

Posted 22 March 2012, 19:40

@Foayiid
sauf que tu es sur un sujet traitant de la BRANCH template.
cette BRANCH a été créé spécifiquement codée pour apporter des VIEW dynamiques au sein du framework osCommerce.

Je t'ai demandé de publier ton code.
à priori, pour des raisons qui t'appartiennent , tu ne le fais pas.
tout code publié sur le framework demeure sous licence BSD.
la paternité t'échappera si tu le livres.
si tu souhaites en faire un futur add-on payant, il va falloir t'habituer à développer FROM SCRATCH, sans aucun support.

Pars sur un truc basique, avec aucune visée commerciale, ouvres ton propre sujet pour comprendre comment ce framework fonctionne.

à titre personnel, je ne fais plus de support, ni de débogage pour osCommerce 3.
Le projet est grand, le management petit. (mais ça, ça dure depuis le départ, en 2000, et en 12 ans, rien n'a changé)
Laurent AKA Fox P two
osCommerce, Code With Passion
My Tools for Agile software development : About Me

#55 xinirnix

  • Community Member
  • 9 posts
  • Real Name:Xinirnix
  • Gender:Male

Posted 23 March 2012, 20:52

View Postfoxp2, on 22 March 2012, 19:40, said:

Le projet est grand, le management petit. (mais ça, ça dure depuis le départ, en 2000, et en 12 ans, rien n'a changé)

I agree. Oscommerce can learn from the recent TomatoCart approach, as it seems to work. They start moving again some months ago and in no time they introduced and motivated forum moderators, test teams, ...
I think both OscommerceV3 and TomatoCart are too nice and too good to not make it. Love them both.