Results 1 to 10 of 953

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Winchester Responsive

    would like to have the featured products scroller advance to the next 4 products versus the next single product as it currently does..

    I know if I change this section in the includes/templates/winchester_responsive/templates/tpl_index_default.php and includes/templates/winchester_responsive/templates/tpl_index_categories.php files from:
    Code:
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
              },
                    scroll: 1,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
    to:
    Code:
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
              },
                    scroll: 4,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
    This works perfectly UNTIL.. you view it on a mobile device.. So how can I set it to scroll 4 on devices up to 979px and just scroll 1 at a time on smaller devices..
    Last edited by DivaVocals; 12 May 2014 at 05:39 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #2
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Winchester Responsive

    Quote Originally Posted by DivaVocals View Post
    would like to have the featured products scroller advance to the next 4 products versus the next single product as it currently does..

    I know if I change this section in the includes/templates/winchester_responsive/templates/tpl_index_default.php and includes/templates/winchester_responsive/templates/tpl_index_categories.php files from:
    Code:
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
              },
                    scroll: 1,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
    to:
    Code:
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
              },
                    scroll: 4,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
    This works perfectly UNTIL.. you view it on a mobile device.. So how can I set it to scroll 4 on devices up to 979px and just scroll 1 at a time on smaller devices..
    I am sorry, but I have no idea. My guess is that you will have to write some javascript.

    Thanks,

    Anne

  3. #3
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Winchester Responsive

    Quote Originally Posted by DivaVocals View Post
    would like to have the featured products scroller advance to the next 4 products versus the next single product as it currently does..

    I know if I change this section in the includes/templates/winchester_responsive/templates/tpl_index_default.php and includes/templates/winchester_responsive/templates/tpl_index_categories.php files from:
    Code:
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
              },
                    scroll: 1,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
    to:
    Code:
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
              },
                    scroll: 4,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
    This works perfectly UNTIL.. you view it on a mobile device.. So how can I set it to scroll 4 on devices up to 979px and just scroll 1 at a time on smaller devices..
    Try:

    Code:
    <?php
          if($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile'){ 
    ?>
    
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
    		  },
                    scroll: 1,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
          --></script>
    
    <?php
          } else { 
    ?>
    
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
    		  },
                    scroll: 4,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
          --></script>
    
    <?php
          }
    ?>

  4. #4
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Winchester Responsive

    Quote Originally Posted by rbarbour View Post
    Try:

    Code:
    <?php
          if($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile'){ 
    ?>
    
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
    		  },
                    scroll: 1,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
          --></script>
    
    <?php
          } else { 
    ?>
    
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
    		  },
                    scroll: 4,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
          --></script>
    
    <?php
          }
    ?>

    Yes, that is the way to do it! Thank you for pointing it out, I had forgotten about the device specific js that can be added with the new version of DIY responsive default, very cool

    Thanks,

    Anne

  5. #5
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Winchester Responsive

    <p>
    **grrr**</p>
    Last edited by DivaVocals; 12 May 2014 at 06:37 PM. Reason: 'cause da forum software be trippin' sometimes..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  6. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Winchester Responsive

    You are the BEST.. Thanks for this..

    Quote Originally Posted by rbarbour View Post
    Try:
    Code:
    <?php
          if($detect->isMobile() && !$detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $detect->isTablet() && $_SESSION['display_mode']=='isMobile' or $_SESSION['display_mode']=='isMobile'){
    ?>
    
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
              },
                    scroll: 1,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
          --></script>
    
    <?php
          } else {
    ?>
    
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
              },
                    scroll: 4,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
          --></script>
    
    <?php
          }
    ?>
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #7
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Winchester Responsive

    Tried this, and it doesn't seem to be working.. mobile devices still scroll 4 ahead..

    Quote Originally Posted by rbarbour View Post
    Try:

    Code:
    <?php
          if($detect->isMobile() && !$detect->isTablet()  && $_SESSION['display_mode']=='isMobile' or  $detect->isTablet() && $_SESSION['display_mode']=='isMobile'  or $_SESSION['display_mode']=='isMobile'){ 
    ?>
    
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
              },
                    scroll: 1,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
          --></script>
    
    <?php
          } else { 
    ?>
    
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
              },
                    scroll: 4,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
          --></script>
    
    <?php
          }
    ?>
    Quote Originally Posted by DivaVocals View Post
    You are the BEST.. Thanks for this..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  8. #8
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Winchester Responsive

    Quote Originally Posted by DivaVocals View Post
    Tried this, and it doesn't seem to be working.. mobile devices still scroll 4 ahead..
    Crystal,

    Will you do the same, check the browsers "view page source" to see what responsive css file is being called.

    For some reason I don't think the mobile detect code is functioning and I can't reproduce, but I am getting the same results as you and Rick on the DEMO using the FF UA Switcher.

  9. #9
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Winchester Responsive

    Quote Originally Posted by rbarbour View Post
    Crystal,

    Will you do the same, check the browsers "view page source" to see what responsive css file is being called.

    For some reason I don't think the mobile detect code is functioning and I can't reproduce, but I am getting the same results as you and Rick on the DEMO using the FF UA Switcher.
    As Rick has indicated.. checking the page source from the mobile browsers isn't easy.. I have an HTML source viewer app on my phone and tablet (Both Android devices), but I am not confident that it is reporting results from the mobile browsers POV.. Let me finish getting ready for work, and I'll post the results from my smartphone when I get to work..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  10. #10
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Winchester Responsive

    The default responsive css..

    Here's the scroller code being called.. Note it's using the non-mobile code.;

    Code:
     
    <script type="text/javascript"><!--
          $(document).ready(function() {
              $("#foo1").carouFredSel({
           
          auto: false,
                    align: "center",
                    padding: [0, 25, 0, 20],
                    width: "100%",
                    height: "auto",
                    items: {
              },
                    scroll: 4,
                    prev    : {
                  button  : "#foo1_prev",
                      },
                    next    : {
                  button  : "#foo1_next",
                      }
                });
            });
    Quote Originally Posted by rbarbour View Post
    Crystal,

    Will you do the same, check the browsers "view page source" to see what responsive css file is being called.

    For some reason I don't think the mobile detect code is functioning and I can't reproduce, but I am getting the same results as you and Rick on the DEMO using the FF UA Switcher.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. v154 Winchester Black Responsive Template
    By picaflor-azul in forum Addon Templates
    Replies: 497
    Last Post: 24 Apr 2023, 09:29 PM
  2. v155 Winchester Black responsive - looking for Social media icon flexible footer fix
    By MattA66 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 8 Jun 2021, 05:34 PM
  3. v155 Responsive Classic vs Responsive Sheffield Blue vs ?
    By Zean in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 May 2016, 07:01 AM
  4. v154 Where do I find the images for sliders, using Winchester Responsive Black
    By zbdude in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Apr 2016, 12:00 AM
  5. v153 Winchester Responsive - Trouble resizing carousel size?
    By hols.club in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Nov 2014, 05:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg