Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 46
  1. #11
    Join Date
    Jan 2021
    Location
    Arizona
    Posts
    134
    Plugin Contributions
    0

    Default Re: Home Page Products Carousel [Support Thread]

    Perfect, very nice plugin.
    Thank you again!
    Waiting to be Zenned - Over-thinking makes an easy task complicated.

  2. #12
    Join Date
    Jan 2021
    Location
    Arizona
    Posts
    134
    Plugin Contributions
    0

    Default Re: Home Page Products Carousel [Support Thread]

    https://www.thercrv.com NOW LIVE

    I now have it setup for as custom with images, but wonder how the order for those scrolling images is determined? I've tried to reorganize the display by spacing the product ID apart from each other to prevent aesthetically similar images from showing up next to each other, but that doesn't seem to work. Is it keyed off of categories? And is there a known way to control the order of display?
    Waiting to be Zenned - Over-thinking makes an easy task complicated.

  3. #13
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,617
    Plugin Contributions
    19

    Default Re: Home Page Products Carousel [Support Thread]

    The plugin is set to order these products by original products' sort order which you set in admin (although kinda useless if you have products from various categories) and then by products' names in alphabetical order.

    If you want to change that and have the products show in the exact order as you entered the IDs in your admin, you'll need to make a change to one file - includes/templates/YOUR_TEMPLATE/templates/tpl_index_slider.php.
    Find
    Code:
    case 'custom':
                $products_query = "SELECT DISTINCT p.products_id, pd.products_name, p.products_image, p.master_categories_id FROM "  . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd WHERE p.products_id IN (".ZX_CAROUSEL_MOD_CUSTOM.") AND p.products_status = '1' AND p.products_id = pd.products_id AND pd.language_id = " . (int)$_SESSION['languages_id'] ." ORDER BY p.products_sort_order, pd.products_name";
                if ($products_query != '') $products = $db->Execute($products_query, ZX_CAROUSEL_LIMIT);
                break;
    and replace with
    Code:
    case 'custom':
                $products_query = "SELECT DISTINCT p.products_id, pd.products_name, p.products_image, p.master_categories_id FROM "  . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd WHERE p.products_id IN (".ZX_CAROUSEL_MOD_CUSTOM.") AND p.products_status = '1' AND p.products_id = pd.products_id AND pd.language_id = " . (int)$_SESSION['languages_id'];
                if ($products_query != '') $products = $db->Execute($products_query, ZX_CAROUSEL_LIMIT);
                break;

  4. #14
    Join Date
    Jan 2021
    Location
    Arizona
    Posts
    134
    Plugin Contributions
    0

    Default Re: Home Page Products Carousel [Support Thread]

    Quote Originally Posted by balihr View Post
    The plugin is set to order these products by original products' sort order which you set in admin (although kinda useless if you have products from various categories) and then by products' names in alphabetical order.

    If you want to change that and have the products show in the exact order as you entered the IDs in your admin, you'll need to make a change to one file - includes/templates/YOUR_TEMPLATE/templates/tpl_index_slider.php.
    Find
    Code:
    case 'custom':
                $products_query = "SELECT DISTINCT p.products_id, pd.products_name, p.products_image, p.master_categories_id FROM "  . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd WHERE p.products_id IN (".ZX_CAROUSEL_MOD_CUSTOM.") AND p.products_status = '1' AND p.products_id = pd.products_id AND pd.language_id = " . (int)$_SESSION['languages_id'] ." ORDER BY p.products_sort_order, pd.products_name";
                if ($products_query != '') $products = $db->Execute($products_query, ZX_CAROUSEL_LIMIT);
                break;
    and replace with
    Code:
    case 'custom':
                $products_query = "SELECT DISTINCT p.products_id, pd.products_name, p.products_image, p.master_categories_id FROM "  . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd WHERE p.products_id IN (".ZX_CAROUSEL_MOD_CUSTOM.") AND p.products_status = '1' AND p.products_id = pd.products_id AND pd.language_id = " . (int)$_SESSION['languages_id'];
                if ($products_query != '') $products = $db->Execute($products_query, ZX_CAROUSEL_LIMIT);
                break;
    Well, that didn't work. The only image it put in the order I entered is the first image, the rest just went back to the same order. Kinda perplexing.
    Waiting to be Zenned - Over-thinking makes an easy task complicated.

  5. #15
    Join Date
    Jan 2021
    Location
    Arizona
    Posts
    134
    Plugin Contributions
    0

    Default Re: Home Page Products Carousel [Support Thread]

    Actually in a second look, it didn't even put the first image in order as entered. It displays all the images I entered, just not in the order I entered.

    I have the max increased from 10 to 20, running 15
    Waiting to be Zenned - Over-thinking makes an easy task complicated.

  6. #16
    Join Date
    Jan 2021
    Location
    Arizona
    Posts
    134
    Plugin Contributions
    0

    Default Re: Home Page Products Carousel [Support Thread]

    Looks like what it did is sorted them numerically from low to high, disregarding the custom order.

    What I'm trying to do is get them to display by product ID in an order I specify. I.E. 27,3,12,11,45,9........etc
    What I get is 3,9,11,12,27,45....etc
    Last edited by TheGrimReaper; 31 Jan 2021 at 08:18 PM.
    Waiting to be Zenned - Over-thinking makes an easy task complicated.

  7. #17
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,617
    Plugin Contributions
    19

    Default Re: Home Page Products Carousel [Support Thread]

    Yeah, sorry about that. Please disregards post #13 and use this:
    Find
    Code:
    case 'custom':
                $products_query = "SELECT DISTINCT p.products_id, pd.products_name, p.products_image, p.master_categories_id FROM "  . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd WHERE p.products_id IN (".ZX_CAROUSEL_MOD_CUSTOM.") AND p.products_status = '1' AND p.products_id = pd.products_id AND pd.language_id = " . (int)$_SESSION['languages_id'] ." ORDER BY p.products_sort_order, pd.products_name";
                if ($products_query != '') $products = $db->Execute($products_query, ZX_CAROUSEL_LIMIT);
                break;
    Replace with
    Code:
    case 'custom':
                $products_query = "SELECT DISTINCT p.products_id, pd.products_name, p.products_image, p.master_categories_id FROM "  . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd WHERE p.products_id IN (".ZX_CAROUSEL_MOD_CUSTOM.") AND p.products_status = '1' AND p.products_id = pd.products_id AND pd.language_id = " . (int)$_SESSION['languages_id'] ." ORDER BY FIELD(p.products_id, ".ZX_CAROUSEL_MOD_CUSTOM.")";
                if ($products_query != '') $products = $db->Execute($products_query, ZX_CAROUSEL_LIMIT);
                break;

  8. #18
    Join Date
    Jan 2004
    Posts
    66,419
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: Home Page Products Carousel [Support Thread]

    For increased security, you may want to replace both instances of

    ZX_CAROUSEL_MOD_CUSTOM
    with
    zen_db_input(ZX_CAROUSEL_MOD_CUSTOM)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #19
    Join Date
    Jan 2021
    Location
    Arizona
    Posts
    134
    Plugin Contributions
    0

    Default Re: Home Page Products Carousel [Support Thread]

    That's the one I was trying to do. Made a great mod even better. Thank you.
    Waiting to be Zenned - Over-thinking makes an easy task complicated.

  10. #20
    Join Date
    Jan 2021
    Location
    Arizona
    Posts
    134
    Plugin Contributions
    0

    Default Re: Home Page Products Carousel [Support Thread]

    Quote Originally Posted by DrByte View Post
    For increased security, you may want to replace both instances of

    ZX_CAROUSEL_MOD_CUSTOM
    with
    zen_db_input(ZX_CAROUSEL_MOD_CUSTOM)
    Excellent thought. Both instances of it?
    Waiting to be Zenned - Over-thinking makes an easy task complicated.

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. Set number of products displayed per page (support thread)
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 146
    Last Post: 2 Nov 2023, 12:50 AM
  2. v150 Carousel Featured Products (carouFresel style) [Support Thread]
    By kamelion0927 in forum All Other Contributions/Addons
    Replies: 21
    Last Post: 16 Oct 2023, 01:47 PM
  3. Replies: 94
    Last Post: 8 Oct 2014, 07:47 AM
  4. Template support thread: Sliding Home Images
    By markz in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 29 Jul 2013, 07:49 PM
  5. Products Disclaimer Support Thread
    By clydejones in forum All Other Contributions/Addons
    Replies: 12
    Last Post: 2 Jun 2010, 11:29 PM

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