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

Overiding CDev Module css

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #11  
Old 09-19-2012, 11:22 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,195
 

Default Re: Overiding CDev Module css

I've been following this thread to see how far it will go and how easy it is to do something like this with XCN but your reply here brings the question (which I have even for XC4 though):

Quote:
P.S. although you can replace template files this way, we recommend you to keep as much "default" templates as possible - some of the templates which you replace may be modified in future versions, and the changes won't get into your custom versions of the files during upgrade.

How XCN works for soemthing like this? To compare with XC4 - I always advice clients to modify existing skin and not create new skin directory - for that same reason - XC upgrade doesn't care about anything non-XC. So custom skin in non-XC directory does not get upgraded. So if there are bugs in the XC skin (not to talk about new features) simply by copying that skin to a new one will copy the bugs and they will not get fixed with an upgrade.

From your answer here I get it it is the same with XCN. To me is sounds way better to just modify existing XC skin instead of trying to create new one
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #12  
Old 09-19-2012, 11:50 PM
 
Cpt.Crashtastic Cpt.Crashtastic is offline
 

eXpert
  
Join Date: Jan 2006
Posts: 219
 

Default Re: Overiding CDev Module css

XPlorer's methos was a lot easier and the one I did not try before doing it programatically.

This is an interesting debate.

Which method would make it easier to identify where the problem was if this or any other template was altered during the upgrade process?

Replacing a skin completely may make it easier to identify quicker.

I need to do some testing on what would happen if you have multiple skins themes installed. If this is the case, altering the CDev css is not an option, in my opinion, as you would have nothing working to go back to.

What happens if we have multiple modules altering a CDev modules CSS? It could get proper messy

If you are gong to sell skins you need some element of control.

If there was a notification process for developers that gave them say a weeks notice for an impending upgrade it would make life easier.

I've just got an x-cart next test site up and running with Drupal if you are interested. It took a suprisingly long time to get there.

http://www.thesuitstore.co.uk
__________________
Xcart 4.4.?
Xcart Next
Litecommerce with Drupal
http://www.corbywebworx.com

Custom Mods, Hosting and Support for Xcart-Next and LiteCommerce
Reply With Quote
  #13  
Old 09-19-2012, 11:51 PM
  xplorer's Avatar 
xplorer xplorer is offline
 

X-Cart team
  
Join Date: Jul 2004
Posts: 925
 

Default Re: Overiding CDev Module css

In XCN there are many improvements which allow you to modify the design without duplicating-modifying-replacing template files:

1. First of all, you can add your html snippets into existing templates by adding @ListChild directive. This is what Cpt.Crashtastic named "russian dolls": http://forum.x-cart.com/showpost.php?p=345355&postcount=5

2. Most of the design tweaks can be done from CSS without hacking into the html templates.

3. The template engine prohibits the use of a complex logic in template files. All complex presentation logic is isolated in widget classes which you can extend/"decorate" from custom modules without copying the files (and duplicating the bugs, if any).


You may replace a couple of templates in your skin module - just be more careful when installing upgrades. If something goes wrong you always can temporarily disable the skin module and check how a new feature/change looks like in the "default" version (and then adapt your modified templates to reflect the change).

But you should never edit core files (including templates) - the next upgrade will drop them and replace with unmodified versions from the new version.
Reply With Quote
  #14  
Old 09-19-2012, 11:55 PM
  xplorer's Avatar 
xplorer xplorer is offline
 

X-Cart team
  
Join Date: Jul 2004
Posts: 925
 

Default Re: Overiding CDev Module css

Quote:
Originally Posted by Cpt.Crashtastic
If there was a notification process for developers that gave them say a weeks notice for an impending upgrade it would make life easier.

This is what we are going to do: we will release RC versions a couple of weeks prior to the final release so that all developers could test their modules/modifications and adapt them to the upcoming changes.
Reply With Quote
  #15  
Old 09-20-2012, 12:10 AM
 
Cpt.Crashtastic Cpt.Crashtastic is offline
 

eXpert
  
Join Date: Jan 2006
Posts: 219
 

Default Re: Overiding CDev Module css

Dare I ask when the release version of XCN is coming?
__________________
Xcart 4.4.?
Xcart Next
Litecommerce with Drupal
http://www.corbywebworx.com

Custom Mods, Hosting and Support for Xcart-Next and LiteCommerce
Reply With Quote
  #16  
Old 09-20-2012, 01:49 AM
  xplorer's Avatar 
xplorer xplorer is offline
 

X-Cart team
  
Join Date: Jul 2004
Posts: 925
 

Default Re: Overiding CDev Module css

Quote:
Originally Posted by Cpt.Crashtastic
Dare I ask when the release version of XCN is coming?

In a couple of months. The second beta will be released in about a month (we are certifying our integration with PayPal).
Reply With Quote
  #17  
Old 09-20-2012, 09:35 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,195
 

Default Re: Overiding CDev Module css

Quote:
Originally Posted by xplorer
But you should never edit core files (including templates) - the next upgrade will drop them and replace with unmodified versions from the new version.

This answers my question about XCN and upgrades, thanks
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may 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 01:26 PM.

   

 
X-Cart forums © 2001-2020