Page 7 of 8 FirstFirst ... 5678 LastLast
Results 61 to 70 of 80
  1. #61
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Manufactures "All" Page

    Manufacturers_All Listing Responsive

    The following applies only if you operate a responsive template with @media css settings.

    1) In \includes\modules\pages\manufacturers_all\header_php.php,

    if ($manu_row==MANUFACTURERS_ALL_COLUMNS) {
    $manu_content .= '<br class="clearBoth" />';
    $manu_row=0;
    }

    was remmed as follows

    // if ($manu_row==MANUFACTURERS_ALL_COLUMNS) {
    // $manu_content .= '<br class="clearBoth" />';
    // $manu_row=0;
    // }

    This disables the "Manufacturers Per Row" switch in Admin > Configuration > Manufacturers Listing > Manufacturers Per Row, whereby the listing layout is now controlled by css.


    2) The following will set the number of manufacturers per row at either 3, 2 or 1, depending on the screen width of the device. The @media (max-width: values) given below may differ from your settings.

    In stylesheet_manufacturers_all.css

    change

    #ManuWrapper {
    float: left;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    width: 125px;
    }

    to

    #ManuWrapper { /* cf responsive stylesheet(s) */
    float:left;
    padding:10px 0px;
    text-align: center;
    font-size: 14px;
    width:33%;
    }


    3) In your responsive stylesheet(s, you may have more than one)

    after @media (max-width:480px) {and before its closing) }

    add

    #ManuWrapper {width:100%;} /* cf stylesheet_manufacturers_all.css */


    after @media (max-width:775px) { (and before its closing) }

    add

    #ManuWrapper {width:50%;} /* cf stylesheet_manufacturers_all.css */

    4. If your sideboxes are hidden or disabled at the smaller screen widths, you will have to find a way of enabling the link to the MANUFACTURERS_ALL page
    Last edited by dw08gm; 14 Nov 2014 at 10:45 AM.

  2. #62
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Manufactures "All" Page

    Manufacturers_All Listing Link Options

    So you want to put "the link" to the Manufacturers All listing page within the Manufacturers sidebox, rather than within the Categories sidebox.

    There are two definite ways of doing this, and possiby a third way, in order of simplicity:

    1) In \includes\languages\YOUR_TEMPLATE\english.php,

    change

    define('BOX_HEADING_MANUFACTURERS', 'All Manufacturers');

    to

    define('BOX_HEADING_MANUFACTURERS', '<a href="index.php?main_page=manufacturers_all" title="Link to All Manufacturers">All Manufacturers</a>');

    This method will turn the sidebox heading into the link.


    2) In \includes\templates\YOUR_TEMPLATE\sideboxes\tpl_manufacturers_select.php

    before OR after

    $content .= zen_draw_pull_down_menu('manufacturers_id', $manufacturer_sidebox_array, (isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : ''), 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%; margin: 0 auto;"') . zen_hide_session_id();

    add

    // bof link to manufacturers_all page
    if (SHOW_CATEGORIES_BOX_MANUFACTURERS_ALL == '1') {
    $content .= '<div style="text-align:left;"><a href="' . zen_href_link(FILENAME_MANUFACTURERS_ALL) . '">' . CATEGORIES_BOX_HEADING_MANUFACTURERS_ALL . '</a></div>' . "\n";
    }
    // eof link to manufacturers_all page

    This method will put the link outside, either above or below the dropdown/scrolldown list.



    WARNING: DO NOT ATTEMPT THE FOLLOWING UNLESS YOU KNOW WHAT YOU ARE DOING
    3) A third POSSIBLE way to do this MAY BE to add the link to the dropdown/scrolldown in \includes\modules\sideboxes\manufacturers.php, except that I have not succeeded in doing this and do not recommend that novice programmers even try, whereby immediately before or after

    while (!$manufacturer_sidebox->EOF) {

    add SOMETHING LIKE

    // bof link to manufacturers_all page
    if (SHOW_CATEGORIES_BOX_MANUFACTURERS_ALL == '1') {
    $manufacturer_sidebox_array[] = array('id' => '<a href="' . zen_href_link(FILENAME_MANUFACTURERS_ALL) . '">', 'text' => CATEGORIES_BOX_HEADING_MANUFACTURERS_ALL);
    }
    // eof link to manufacturers_all page

    HOWEVER, FOR REASONS UNKNOWN TO MYSELF, THIS THIRD METHOD DOES NOT WORK AS IS.

    IF this third option could be made to work, I would prefer to use it.

  3. #63
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Manufactures "All" Page

    1. Improved BreadCrumbs - Manufacturers_All Page

    a. \includes\languages\english\manufacturers_all.php
    change
    define('NAVBAR_TITLE', 'Manufacturers');
    to
    //define('NAVBAR_TITLE', 'Manufacturers');
    define('NAVBAR_TITLE_1', 'Home'); /* or whatever your index page is called */
    define('NAVBAR_TITLE_2', 'Manufacturers'); /* or whatever your manufacturers_all page is called */


    b. \includes\modules\pages\manufacturers_all\header_php.php
    change
    $breadcrumb->add(NAVBAR_TITLE);
    to
    //$breadcrumb->add(NAVBAR_TITLE);
    $breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_DEFAULT));
    $breadcrumb->add(NAVBAR_TITLE_2);



    2. Improved BreadCrumbs - Manufacturers_About Page (if used)

    a. \includes\languages\english\manufacturers_about.php
    change
    define('NAVBAR_TITLE', 'Manufacturer > About ' . $manufacturers_about->fields['manufacturers_name']);
    to
    //define('NAVBAR_TITLE', 'Manufacturer > About ' . $manufacturers_about->fields['manufacturers_name']);
    define('NAVBAR_TITLE_1', 'Home'); /* or whatever your index page is called */
    define('NAVBAR_TITLE_2', 'Manufacturers'); /* or whatever your manufacturers_all page is called */
    define('NAVBAR_TITLE_3', 'About ' . $manufacturers_about->fields['manufacturers_name']);


    b. \includes\modules\pages\manufacturers_about\header_php.php
    change
    $breadcrumb->add(NAVBAR_TITLE);
    to
    //$breadcrumb->add(NAVBAR_TITLE);
    $breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_DEFAULT));
    $breadcrumb->add(NAVBAR_TITLE_2, zen_href_link(FILENAME_MANUFACTURERS_ALL));
    $breadcrumb->add(NAVBAR_TITLE_3);

    Cheers
    Last edited by dw08gm; 20 Nov 2014 at 02:26 PM.

  4. #64
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Manufactures "All" Page

    I have incorporated some of the above three posts and other improvements into a new version 1.2 of this mod suitable for zc150-154, details of which are provided in the readme.txt of the attached zip.

    Looking for feedback on whether this works OK and whether version number should be 1d, 1.2 or 2.

    ManufacturersAllListing_1.2.zip

    Also, if someone knows how to incorporate the outdated Manufacturer About mod (which creates a manufacturers about page) into this mod, I may delay uploading this version to plugins until the two mods have been successfully merged.

    manufacturer_about.zip

    Thanks

  5. #65
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Manufactures "All" Page

    Got the link to Manufacturer About working in Manufacturer All on zc154. Just need to check Manufacturer About for currentness.

  6. #66
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Manufactures "All" Page

    Hi, I'd like to uninstall this mod but it doesn't include an uninstall SQL. Could someone please help with that?

  7. #67
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    976
    Plugin Contributions
    6

    Default Re: Manufactures "All" Page

    Back up your database first.

    I do not know what version you are running but you could try the following:

    Code:
    # MANUFACTURERS ALL LISTING v1.2 - uninstall_previous.sql file - to uninstall previous versions 1, 1b and 1c
    DELETE FROM configuration_group WHERE configuration_group_title LIKE 'Manufacturers All Config' LIMIT 2;
    DELETE FROM configuration WHERE configuration_description LIKE 'Manufacturers All Listing:%' LIMIT 7;
    DELETE FROM admin_pages WHERE page_key='configManufacturersList';

  8. #68
    Join Date
    May 2008
    Posts
    402
    Plugin Contributions
    0

    Default Re: Manufactures "All" Page

    Quote Originally Posted by dw08gm View Post
    Back up your database first.

    I do not know what version you are running but you could try the following:

    Code:
    # MANUFACTURERS ALL LISTING v1.2 - uninstall_previous.sql file - to uninstall previous versions 1, 1b and 1c
    DELETE FROM configuration_group WHERE configuration_group_title LIKE 'Manufacturers All Config' LIMIT 2;
    DELETE FROM configuration WHERE configuration_description LIKE 'Manufacturers All Listing:%' LIMIT 7;
    DELETE FROM admin_pages WHERE page_key='configManufacturersList';
    Awesome! Thank you so much for taking the time to do that for me. That's why zencart is the best. People like you.

  9. #69
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: Manufactures "All" Page

    Awesome mod, thanks!

    Two questions...

    ++++
    FIRST QUESTION
    Is there a way to make the final page (/index.php?main_page=manufacturers_all) editable like a define_page? So that I could throw some html content in at the top?

    Or, better yet, a way to call the content on an EZpage? That way I could get rid of the old school URL and replace it with a Ceon URI.
    GO FROM THIS: /index.php?main_page=manufacturers_all
    TO THIS: /manufacturer_showcase

    ++++




    ++++
    SECOND QUESTION
    Any thoughts on how to code in Ceon URI's functionality instead of the build in URLs?
    FROM THIS: /index.php?main_page=index&manufacturers_id=38
    TO THIS: /Acme_Anvil_Corp

    ++++

    Thanks again! And, really, this mod is the bees knees!!!

  10. #70
    Join Date
    Apr 2010
    Posts
    897
    Plugin Contributions
    0

    Default Re: Manufactures "All" Page

    Ok, here is the answer to my second question... how to make the URLs pretty.

    Find this:
    href="' . DIR_WS_CATALOG . 'index.php?main_page=index&amp;manufacturers_id=' . $manufacturers->fields['manufacturers_id'] . '"
    And replace with this:
    href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers->fields['manufacturers_id']) . '"
    Wham, bam, thank you ma'am.

    Anybody see a problem with what I just did? See's legit from here.

    I'll post the answer to the second part, if and when I find it.

 

 
Page 7 of 8 FirstFirst ... 5678 LastLast

Similar Threads

  1. Editing the "new products" and "all products" page
    By jtimko in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Dec 2011, 10:39 PM
  2. I want to change sidebox title from "Manufactures" to "Magazine Name"
    By Golden Synergy in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Aug 2010, 01:55 PM
  3. How to remove ellipses ("...") after "All Products" and "New Products" on home page?
    By jthurman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 May 2010, 03:30 PM
  4. Replies: 2
    Last Post: 11 Feb 2010, 09:13 PM
  5. Inside the "Categories" box it says "New Products" and "All Products"...
    By john9 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Feb 2007, 07:55 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