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

X-Cart - reBOOT - Responsive Template

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #871  
Old 03-06-2015, 02:13 PM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart - reBOOT - Responsive Template

Product Configurator module compatibility added for reBOOT v3 - if you need it, get in touch for updated files.

(You'll need the Product Configurator / Wizard module installed, which is part of X-Cart Platinum).

DEMO
__________________
xcartmods.co.uk
Reply With Quote
  #872  
Old 03-09-2015, 01:48 AM
 
Pitak Pitak is offline
 

Advanced Member
  
Join Date: Jun 2012
Posts: 87
 

Default Re: X-Cart - reBOOT - Responsive Template

Phil, I've requested a feature to help make images in product descriptions to be responsive earlier in this thread. I've come across this page:

http://www.rockettheme.com/docs/joomla/basic/creating_responsive_content.md

It has something like a custom class which you can wrap your image in. Is there something like this available in reBOOT?
__________________
X-Cart Gold Plus v4.6.6
xcartmods.co.uk reBOOT Template v3.52
Reply With Quote
  #873  
Old 03-09-2015, 01:54 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart - reBOOT - Responsive Template

Quote:
It has something like a custom class which you can wrap your image in. Is there something like this available in reBOOT?

You can add class="img-responsive" to your description images, or class="img-responsive img-center" to center them also.

http://getbootstrap.com/css/#images

Or, set a global CSS rule for images in the product description containers, eg. add to skin/reboot/css/reboot.css
Code:
.descr_block img, .product-description img { width: 100%; max-width: 100%; height: auto; }
Then in...
skin/reboot/custom/product_details_standard.tpl
skin/reboot/custom/product_details_tabs_accordions.tpl
skin/reboot/custom/product_details_tabs_accordions_on_top.tpl
skin/reboot/customer/main/product.tpl

Replace...
Code:
<span itemprop="description">
With...
Code:
<span itemprop="description" class="product-description">
Demo here.
__________________
xcartmods.co.uk
Reply With Quote

The following 2 users thank PhilJ for this useful post:
elmirage001 (03-13-2015), Pitak (03-14-2015)
  #874  
Old 03-13-2015, 09:13 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart - reBOOT - Responsive Template

Add a trendy 'sticky' header in 2 quick steps (v3)...

Demo (header style #3, boxed header - for other styles you'll need to tweak the CSS below).

1) In skin/reboot/js/reboot.js

At the end insert...

Code:
// STICKY HEADER //----------------------- $(window).scroll(function() { if ($(document).scrollTop() > 150 && window.innerWidth >= 992) { $('.container_header').addClass('shrink'); } else { $('.container_header').removeClass('shrink'); } });

2) In skin/reboot/css/reboot.css

At the end insert...

Code:
/* STICKY HEADER -----------------------------*/ .container_header { transition: all 0.5s ease; -webkit-transition: all 0.5s ease; position: relative; } .container_header.shrink { width: 1170px !important; position: fixed; top: 0; padding: 0px; background: rgba(0,0,0,0.7); z-index: 9999; } .container_header.shrink img.header_logo { height: 65px; width: auto; } .container_header.shrink .header_padding_top_search { padding: 10px !important; } .container_header.shrink .header_padding_top_buttons { padding: 15px !important; } @media only screen and (max-width: 1199px) { .container_header.shrink { width: 970px !important; } } @media only screen and (max-width: 991px) { .container_header.shrink { width: auto; position: relative; padding: auto; background: inherit; } }

Note, appears in 992px wide and up only.
Looks better if you have a transparent PNG logo image.
__________________
xcartmods.co.uk
Reply With Quote

The following 3 users thank PhilJ for this useful post:
elmirage001 (03-13-2015), ITVV (03-13-2015), Vacman (03-15-2015)
  #875  
Old 03-13-2015, 07:45 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: X-Cart - reBOOT - Responsive Template

Quote:
Originally Posted by PhilJ
Add a trendy 'sticky' header in 2 quick steps (v3).
Very Cool Phil! I was going to relax my brain but now after seeing this it's in hyper-drive thinking of cool things I can do! Thank you! Paul
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote

The following user thanks elmirage001 for this useful post:
PhilJ (03-13-2015)
  #876  
Old 03-14-2015, 06:19 AM
 
Pitak Pitak is offline
 

Advanced Member
  
Join Date: Jun 2012
Posts: 87
 

Default Re: X-Cart - reBOOT - Responsive Template

Phil, the responsive images code above blows up all small images to 100% width too. Is it possible to only apply the code only to images that has more than 650px width?
__________________
X-Cart Gold Plus v4.6.6
xcartmods.co.uk reBOOT Template v3.52
Reply With Quote
  #877  
Old 03-15-2015, 05:07 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart - reBOOT - Responsive Template

Maybe try...
Code:
.descr_block img, .product-description img { width: 100%; max-width: 100%; height: auto; } @media only screen and (max-width: 650px) { .descr_block img, .product-description img { width: auto; } }
__________________
xcartmods.co.uk
Reply With Quote
  #878  
Old 03-15-2015, 05:34 AM
 
Pitak Pitak is offline
 

Advanced Member
  
Join Date: Jun 2012
Posts: 87
 

Default Re: X-Cart - reBOOT - Responsive Template

Thanks, Phil. However all small images are still enlarged to 100% width.
__________________
X-Cart Gold Plus v4.6.6
xcartmods.co.uk reBOOT Template v3.52
Reply With Quote
  #879  
Old 03-15-2015, 05:48 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart - reBOOT - Responsive Template

Try...

Quote:
width: auto;
max-width: Xpx;
__________________
xcartmods.co.uk
Reply With Quote
  #880  
Old 03-15-2015, 08:09 PM
 
Pitak Pitak is offline
 

Advanced Member
  
Join Date: Jun 2012
Posts: 87
 

Default Re: X-Cart - reBOOT - Responsive Template

Phil, still not working.
__________________
X-Cart Gold Plus v4.6.6
xcartmods.co.uk reBOOT Template v3.52
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



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:51 PM.

   

 
X-Cart forums © 2001-2020