Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Customizing the skin: the second webinar for X-Cart 5 developers on April, 10th

 
Reply
   X-Cart forums > News and Announcements
 
Thread Tools
  #21  
Old 04-10-2014, 05:30 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Customizing the skin: the second webinar for X-Cart 5 developers on April, 10th

I know this is the design webinar thread and I'm derailing it slightly: But in addition to prefixing our controller names, we also need to ensure we prefix our table names. I just realized that the table name is not automatically prefixed with the developer code. So that is another major way modules could conflict. Though most devs do this anyway...
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #22  
Old 04-11-2014, 06:36 AM
 
xim xim is offline
 

X-Cart team
  
Join Date: Nov 2004
Posts: 677
 

Default Re: Customizing the skin: the second webinar for X-Cart 5 developers on April, 10th

Quote:
Originally Posted by totaltec
I know this is the design webinar thread and I'm derailing it slightly: But in addition to prefixing our controller names, we also need to ensure we prefix our table names. I just realized that the table name is not automatically prefixed with the developer code. So that is another major way modules could conflict. Though most devs do this anyway...

Yes, your right. If you want to be insure that your table will not overwrite by other modules you need to use your own prefix for new tables.

We will add it to our devs guide
__________________
Sincerely yours, Max Vydrin
Reply With Quote
  #23  
Old 04-11-2014, 09:12 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Customizing the skin: the second webinar for X-Cart 5 developers on April, 10th

Quote:
Originally Posted by totaltec
I know this is the design webinar thread and I'm derailing it slightly: But in addition to prefixing our controller names, we also need to ensure we prefix our table names. I just realized that the table name is not automatically prefixed with the developer code. So that is another major way modules could conflict. Though most devs do this anyway...

I think most if not all are doing this. I do it, I know bcse, wcm do it for their mods...
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
totaltec (04-11-2014)
  #24  
Old 05-06-2014, 03:04 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Customizing the skin: the second webinar for X-Cart 5 developers on April, 10th

Hi guys!

Thanks for coming to the latest webinar and for your questions.

1) About ability to overwrite the code of others through your own module.

As Carrie and Steve said above, it is all about proper coding style. X-Cart 5 allows to overwrite other module's code if you want to, but it also allows to keep the compatibility with them if you want to.

Ability to overwrite the other's code is very useful if you are a web-studio and writing a complete project. In this case, your goal is to implement the desired functionality to the client as fast as possible and you may want to force some code changes. Such ability helps with this goal.

If you are a module developer, your goal is to sell as many modules as possible and you achieve it through writing modules with rich functionality and making sure that your module does not break the store - i.e. it interacts well with other modules, otherwise nobody will use it. In this case, you want to be compatible with other modules and you should follow good code style and call parent::methodName()

Overall, X-Cart 5 serves the needs of web-studios and module developers by allowing both approaches.

2) Regarding module controllers.

Yes, Mike. At this moment, this is a problem and if there are two modules with the same controller names, one controller will be lost.

However, right now this is not a huge problem, because the number of 3rd party modules is not huge. When we start getting complaints and see that this problem becomes real, we will be able to implement needed changes within one minor release.

If you do care about this problem right now, you can name your controllers as MikeMyModuleMenu (i.e. add your dev ID and module ID right into the controller name) and it will actually solve the problem.

Surely, guys, let me know if you have any additional questions.

Tony.
Reply With Quote

The following 3 users thank tony_sologubov for this useful post:
ADDISON (05-06-2014), cflsystems (05-06-2014), totaltec (05-06-2014)
  #25  
Old 05-06-2014, 09:31 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Customizing the skin: the second webinar for X-Cart 5 developers on April, 10th

Quote:
Originally Posted by tony_sologubov
2) Regarding module controllers.

Yes, Mike. At this moment, this is a problem and if there are two modules with the same controller names, one controller will be lost.

However, right now this is not a huge problem, because the number of 3rd party modules is not huge. When we start getting complaints and see that this problem becomes real, we will be able to implement needed changes within one minor release.

Actually I think you should not wait until it becomes a "huge problem" but solve it before hand. When it becomes a problem and there is no solution to it you get angry devs and customers, bad words about XC, etc.
If there is a solution why not implement it right now before it gets out of hand? Why wait?

If you know there is a flow in the software you should fix it before it grows to a point when impacts stores in a negative way...
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
cherie (05-06-2014)
  #26  
Old 05-07-2014, 04:36 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Customizing the skin: the second webinar for X-Cart 5 developers on April, 10th

Quote:
Originally Posted by cflsystems
Actually I think you should not wait until it becomes a "huge problem" but solve it before hand. When it becomes a problem and there is no solution to it you get angry devs and customers, bad words about XC, etc.
If there is a solution why not implement it right now before it gets out of hand? Why wait?

If you know there is a flow in the software you should fix it before it grows to a point when impacts stores in a negative way...

Well, we must make a decision in this case and this decision is between: a) implement something useful for everybody right now or b) implement something which is useful, but does not benefit anybody right now.

For instance, at this moment we are improving product attributes, import and installation process + working on responsive skin. We can start working on the controller problem, but import will be left with some crucial problems. So, choosing between import improvement or controller, we go for import improvement.

Do not worry, this controller problem is in our bug queue and it will be eventually fixed even if it does not become huge. However, if we feel that this problem becomes real pain, before we naturally come to it, we will simply increase its priority and ship a fix asap.
Reply With Quote
Reply
   X-Cart forums > News and Announcements



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:22 AM.

   

 
X-Cart forums © 2001-2020