Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2008
    Posts
    10
    Plugin Contributions
    0

    Default jQuery slider to scroll a Div

    Hi, I'm trying to use this .js to scroll my product listings. The problem with the script, it sets a fixed width on the hidden/overflow div container. This is a problem as each category may have any number of products.

    You can see how it is implemented on my store here:

    http://tattoodesignmall.com/index.ph...=index&cPath=2

    I'm using "column" layout and tried to modify the:

    product_listing.php

    I tried updating the else statement to use the ($num_products_count) instead of PRODUCT_LISTING_COLUMNS_PER_ROW (which is being pulled from the Admin - Config - Prod listing

    } else {
    $col_width = floor(100/$num_products_count) - 0.5;

    but this did not seem to work.

    Has anyone gotten a slider to work with ZenCart?

    Here's the javascript slider if there are any php/ZenCart experts willing to take a look. I think its a cool feature that a lot of sites could use:

    http://blog.paranoidferret.com/index...-scroll-a-div/

    Thanks!!

    -Chris

  2. #2
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: jQuery slider to scroll a Div

    Oh, a slider, I remember we did it on a site, let me check
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  3. #3
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: jQuery slider to scroll a Div

    If you want, you can use the number of products AND the image size to calculate the width you need.
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  4. #4
    Join Date
    Nov 2008
    Posts
    10
    Plugin Contributions
    0

    Default Re: jQuery slider to scroll a Div

    Very cool. Any idea how to do this?

  5. #5
    Join Date
    Jan 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: jQuery slider to scroll a Div

    $col_width = $num_products_count * <your_image_width>

    that should give you the correct width.

    On the other hand, why don't you just override the tpl_columnar_display.php and edit that. Remember that the actual columnar table is created inside this file so it will be easier to manipulate the listing in there.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: jQuery slider to scroll a Div

    Caution: tpl_columnar_display may be used in more than one place, so make sure you want the effect everywhere it is used before changing its behavior.

  7. #7
    Join Date
    Jan 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: jQuery slider to scroll a Div

    True gjh42, thanks for the heads-up.

 

 

Similar Threads

  1. jQuery Slider Issues
    By sercan35ksk in forum General Questions
    Replies: 2
    Last Post: 1 Jan 2011, 07:11 PM
  2. jQuery Image Slider
    By kunoichi in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 17 Nov 2010, 09:02 AM
  3. JQuery price slider
    By Kooba in forum General Questions
    Replies: 0
    Last Post: 30 Aug 2010, 09:23 AM
  4. jQuery Slider Header
    By obelis in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 12 Jul 2010, 07:14 PM
  5. Product listing with DIV scroll
    By SHK in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 24 Oct 2007, 01:39 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR