Latest News: (loading..)


  • Content count

  • Joined

  • Last visited

About Bloged

  • Birthday 10/20/1981

Profile Information

  • Real Name
    Arjan Gelderblom
  • Gender
  • Location
    Bergschenhoek, The Netherlands
  • Website
  1. Simple; one rule applies in this case: Grtz, Arjan Gelderblom
  2. I'm currently developing a shop with the svn version of osC3 it can been seen running at, sorry page is in Dutch only at the moment. This is still in development... but it uses a lot of CSS and DIVS for the layout. Grtz, Arjan Gelderblom
  3. This is a custom demand... so probably will need a custom solution. What you want is that if user logs in/creates an account that it uses the database from the other site... osC doens't support split databases or anything like that. Grtz, Arjan Gelderblom
  4. Ok... if you keep in mind that it is has it limitations with being modified, in the framework/core code), you are free to try and build it but I think that because of it's limitations not a lot of users will use this... Maybe it is easier to create a install script to install each version of osC... if necessary this script can then be extended to keep in mind those file altered by the user! Grtz, Arjan Gelderblom
  5. In my opinion this isn't easy to construct because most users will install the package and then do so custom work in it, be it installing a contribution or code it themself, which will be undone by a next upgrade from the package mangager! And the install isn't that hard to complete.. simply unpack, go to your osC store and the install will be shown! Grtz, Arjan Gelderblom
  6. I've kept quite for a time now in this thread, but kept reading it... Maybe you could upload your version of the doc right now and the rest can comment on that! I think it's better that way then creating multiple documents with more or less the same content (and thus doing things, almost, twice)! Grtz, Bloged
  7. :thumbsup: I agree with cannuck1964 start going trough this thread and start with defining what the framework should be able to do. That is a good starting point... What would the framework do by itself and what should still be done by the user!? Maybe Frank or Harald could check this post out and help out with the outlines of the 'current' framework so that the contribution framework can be kept up to date with the overall framework! Grtz, Bloged
  8. Ok so that problem is solved but now you won't get redirected.... I'm relatively new to osC(3) but if nobody is able to help you out I will try to check if I can find something... After the installation hangs, could you check the source (HTML-source) for errors?! Grtz, Bloged
  9. But most of the times those who know how to code started by tinkering around :blush: ! I think it is time to have someone create an extensive doc/explanation about what this function should do and why. Put some requirements down. So that it can get more structured and can possible be added to the roadmap or to a wished functions list! Otherwise this might get lost in the other topics that eventually will get started! And because of the major changes from osC2 to osC3 the mods will need to be rewritten anyway so better to have them follow some guidelines from the start so that it fits into this framework! Someone can pick that (doc/explanation) up and start implementing it locally and distribute some patches around so that it can be tested! And when found stable and workable by most of the testers we can try to get it into the SVN repo's! Is it a good idea? Grtz, Bloged
  10. This problem isn't direct a problem of osC but has to do with PHP settings. Try setting this code near the top of the script that gives the error! ini_set("memory_limit","20M"); And please post back that page... so that we could try to track what's gobbling up that memory! For those intrested in the nature of this error: Default PHP allocates around 8Mb (8388608 bytes) of memory for a script to execute, seems that this script exceedes that limit! This could be solved by changing the php.ini or by using the ini_set() function. Grtz, Bloged
  11. First let me say I know that it was just an example but by my reply I would like to show to you that tightly interactual functions are most of the time one function that consist of two parts. But I agree that if possible it would be the best to have a way to combine two functions into one more complex one! The logic is what you hide from but the module (it will get a &$this object) and from the original function (it will have a updated &$this object without even knowing it :thumbsup: ! Therefore the logic should be known to any of the objects. (Few lines below this I go into a possible sollution to let object know what changed and what is about to change). If the frameworks looks like functions already incorparated in osC it wouldn't be to hard to get used to it by users. And to stop an function/framework from implemtation because it could be unfamiliar to users would be a strange thing. :blush: And when having a stable/good framework it should be hard to break things (no real code changes) so they could even expiriment before they put there shop into Live-mode ;) If contributions are able to keep track of what they change in a simple style, that could be compared... For example something added like $this->_contributions[<dataname>]. So if they change the price it would look like $this->_contributions['price']; (contributions can be called modifications or anything). All data not named in _contribution could be reset by the original starting point of the modifcation caller so that authors of mods are required to do this. But that would put an extra weight on the contribution author's shoulders. It can all be done... But I think we also need to keep in mind that we don't scare away possible mod authors and/or keep the speedloss to a absolute minimum! Grtz, Bloged
  12. Which mod you want to run first can be set in the admin using some kind of priority. And when developing mods they need to keep in mind that the data probably will be reused. The example you make is (in my humble opinion) just one mod that incorporates customer/quantity discount... Of course it could be done in one mod even when changing the codebase to incorporate this feature you will only build one function that will give quantity discount based on customer information. When creating two functions customer discount and quantity discount you incorporate two functions that in working always would differ from customer quantity discount! (Hope you get this :blush: )! I didn't implement it already :lol: Discussing is the stage this is in now... And hopefully something implementable will come out! Grtz, Bloged
  13. Some extra information.... The extendFunction itself will not have any code in it except to call the custom function and give them a reference to the $this object! Grtz, Bloged
  14. As I'm relatively new to osCommerce(3.0) I think it could be done if those data are stored in a object (like it's done with customers) and functions are needed for datamanipulation example a class: class osC_Example { function exampleFunction() { <..code..> changing some data } } Now we add a extra function to this class: function extendFunction($functionCaller) { // Get functions from db dat change data... for $functionCaller // Change the data (all available via $this-> } In the original function we now need to add the extendFunction call so in total it would look something like this: class osC_Example { function exampleFunction() { <..code..> changing some data // Calling function to extend this function $this->extendFunction('exampleFunction'); } function extendFunction($functionCaller) { // Get functions from db dat change data... for $functionCaller // Change the data (all available via $this-> } } Should be possible in this way?! Or do you guys forsee any big troubles ahead? If so... just shoot B) Grtz, Bloged
  15. Hi everyone, For the newletter tool I'm currently developing I need to have some customer information (like firstname, lastname) what's the best way to do this? Update the current get* (for example getID) functions to accept an optional (customers_)ID so that the admin can use this? Is it already implemented? Or a third option!? Grtz, Bloged