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

Converting 4.4.x template to responsive

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-09-2015, 12:56 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 758
 

Default Converting 4.4.x template to responsive

I was wondering what would be the best approach for converting a 4.4.x site template to responsive. Starting with one of the commercial responsive templates that exist for 4.4.x version and tweaking the styles to fit the existing site, or adjusting the existing site for responsive functionality?

The 1st method incurs the cost of purchase of the responsive commercial template, plus the work cost for the adjustment to fit the look of the current site. The advantage of this method is that the developer doesn't care about working on converting the template for responsive functionality.

The 2nd method seems to be the 'clearest' option, given that the developer applies responsive functionality well.

After some web search, I found this article, regarding converting a Joomla template to responsive, based on the Bootstrap framework and I guess, some similar methodology would apply to X-Cart as well.

I would welcome any comments on the above.
Reply With Quote
  #2  
Old 03-09-2015, 01:14 AM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,470
 

Default Re: Converting 4.4.x template to responsive

Going with the 2nd Option - Then yes. Use a responsive framework such as Bootstrap or Foundation would be the way to go.

Have you seen Phil's - ReBoot Template - It's based on Bootstrap and works pretty well.
www.xcartmods.co.uk/reboot/
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote

The following user thanks chamberinternet for this useful post:
PhilJ (03-09-2015)
  #3  
Old 03-09-2015, 02:04 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 758
 

Default Re: Converting 4.4.x template to responsive

I have worked before, both with Bootstrap and the Reboot template and I am aware of them.

Do you think that the article referred in my previous post, could be a good approach, regarding the technique for converting the template of the existing site for responsive functionality ?
Reply With Quote
  #4  
Old 03-09-2015, 04:45 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Converting 4.4.x template to responsive

This is just my opinion, but I would probably work on making the template responsive without Bootstrap. For me it would add another layer of complexity. I like Bootstrap, I think it is a great starting point, but I would not need it for this type of project and I would be afraid of it slowing me down.
__________________
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
  #5  
Old 03-09-2015, 10:54 AM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 758
 

Default Re: Converting 4.4.x template to responsive

Quote:
I would probably work on making the template responsive without Bootstrap
Mike, would you use another framework, or would you tweak the css styles so the layout becomes responsive, with some javascript and media queries added?
Reply With Quote
  #6  
Old 03-09-2015, 11:00 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Converting 4.4.x template to responsive

It will depend very much what you are looking for. Bootstrap is great but you can achieve similar results with just simple css instead.
All you need is simple grid system which you can even set yourself and use media queries.
Use HTML5/CSS3 too - XC is way behind this and still uses HTML4/CSS2...
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 2 users thank cflsystems for this useful post:
totaltec (03-09-2015), vasilis (03-09-2015)
  #7  
Old 03-09-2015, 01:57 PM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Converting 4.4.x template to responsive

Quote:
Originally Posted by vasilis
Mike, would you use another framework, or would you tweak the css styles so the layout becomes responsive, with some JavaScript and media queries added?

Yes. I would remove any tables, replace with divs. Then I would just use media queries for everything. Determine your break points, I like to use 768px 960px 1280px and sometimes as large as 1440 or 1600px.

Everything under 768px is what I consider "mobile". I might design the main site to be 1280px. Knowing where you are going to "break" and go to the next size is very important to decide up front before you begin.

Really, there isn;t even much need for JavaScript, everything can be done with media queries. Setup two classes, mobile and desktop. Then append those classes to everything that you want to be unique to either of those two environments.
__________________
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

The following 2 users thank totaltec for this useful post:
chamberinternet (03-10-2015), vasilis (03-09-2015)
  #8  
Old 03-09-2015, 11:49 PM
  vasilis's Avatar 
vasilis vasilis is offline
 

X-Adept
  
Join Date: Feb 2009
Posts: 758
 

Default Re: Converting 4.4.x template to responsive

I guess, an alternative approach would be to use something similar to the Responsive Grid System and use styles for the site columns, depending on the number of columns of the existing site. Wouldn't that be a simpler solution, than using Bootstrap?
Reply With Quote
  #9  
Old 03-10-2015, 03:52 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Converting 4.4.x template to responsive

I guess it could be easier. The hard part about converting an existing template to any kind of framework is all the new divs and classes. To me it would be mush simpler to just write new CSS that makes the existing structure and classes responsive. But that is how I have always done it, perhaps this idea is a better way. The question is, do you want to reformat dozens of html templates, or just work on CSS?
__________________
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
  #10  
Old 03-10-2015, 05:06 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: Converting 4.4.x template to responsive

If you want to do it right you have to re-write all XC templates. Take out the hundreds of nested tables, convert to html5/css3, optimize css (you can have 50%+ less css, the default one with XC is very bloated), optimize js (you don't need a lot of it if site uses html5/css3), make sure though you keep some of the css classes/ids as a lot of modules and XC jquery uses is...
It is a lot of work but at the end you will have nicer, cleaner and faster code
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 05:31 AM.

   

 
X-Cart forums © 2001-2020