| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Banner Module - Different image dimensions for mobile | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Banner Module - Different image dimensions for mobile
The banner module as far as I can see serves the same size images whatever the screen size.
This means a lot of waste bandwidth on small devices. Foundation has a tool that requests content based on screen size: http://foundation.zurb.com/sites/docs/interchange.html This is different from just using classes to show or hide content as the content isn't requested at all with Interchange. Is there any plans to introduce something like this in the module?
__________________
Core version: 5.5.xx |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Banner Module - Different image dimensions for mobile
Do you mean this banner module?
https://market.x-cart.com/addons/banner-system.html
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
Re: Banner Module - Different image dimensions for mobile
Yes.
__________________
Core version: 5.5.xx |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Banner Module - Different image dimensions for mobile
If there is no other idea then why not try to dev a simple module for loading a custom css file on home page only and load @media css for this container items...
Please let me know your feedback
__________________
xcart power and php/html/js coder is best friend |
|||||||||
#5
|
|||||||||
|
|||||||||
Re: Banner Module - Different image dimensions for mobile
Thank you for your feedback!
I've notified the module developer and she has this improvement in her to-do list for the module. However, it is in her future plans, not something that will be implemented in the near future.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#6
|
|||||||
|
|||||||
Re: Banner Module - Different image dimensions for mobile
I'm wondering if the mobile detection scripts could be used somehow.
maybe class AMobile_Detect in xcart/lib/ or something with \XLite\Core\MobileDetect::getInstance()->isMobile() to do something like {% if this.getBannerBoxes() && !isMobilePhone() %} <div class="bannerBox"> ...... {% endif %} ?
__________________
Core version: 5.5.xx |
|||||||
#7
|
|||||||
|
|||||||
Re: Banner Module - Different image dimensions for mobile
I just discovered after some investigation that the IsVisible method for this module always returns true. Possible due to the negation of the isMobileDevice not giving the expected result.
Code:
Dropping the negation and swapping the true and false like this works.. Code:
So now it doesn't show the banner on mobile which is what I wanted.
__________________
Core version: 5.5.xx |
|||||||
|
|||
X-Cart forums © 2001-2020
|