Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 52
  1. #11
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Product Listing layout config.

    Quote Originally Posted by DrByte
    Woo Hoo! That was quick! Many Thanks!

  2. #12
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Product Listing layout config.

    DrByte-

    Comparing the stock core v.1301 and v.1302 product_listing.php files, I observe the following code fragment early in the file was removed from product_listing.php in v.1302:

    Code:
    // needs a better check v1.3.1
    if (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0 and $show_submit == true and $listing_split->number_of_rows > 0) {
      // bof: multiple products
    
    //  $chk_attributes = $db->Execute($listing_sql);
      $chk_attributes = $db->Execute($listing_split->sql_query);
      while (!$chk_attributes->EOF) {
        if ($chk_attributes->fields['product_is_call'] == 0) {
          if (zen_get_products_allow_add_to_cart($chk_attributes->fields['products_id']) !='N') {
            if ((SHOW_PRODUCTS_SOLD_OUT_IMAGE == 1 and $chk_attributes->fields['products_quantity'] > 0) or SHOW_PRODUCTS_SOLD_OUT_IMAGE == 0) {
              if (zen_has_product_attributes($chk_attributes->fields['products_id']) < 1 and $chk_attributes->fields['products_type'] != 3) {
                $how_many++;
              }
            }
          }
        }
        $chk_attributes->MoveNext();
      }
      if ($how_many >= 1) {
        echo zen_draw_form('multiple_products_cart_quantity', zen_href_link(FILENAME_DEFAULT, zen_get_all_get_params(array('action')) . 'action=multiple_products_add_product'), 'post', 'enctype="multipart/form-data"');
      }
    }
    However in the product_listing.php included in the updated "Column Layout Grid for Product Listing for 1.3.0.2" that code fragment remains. Can you confirm if needed for the Column Layout Grid mod? Thanks.

    Woody

  3. #13
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Product Listing layout config.

    Um ... that would make things interesting, wouldn't it .....

    It should be removed.

    Contribution updated
    .

    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.

  4. #14
    Join Date
    Jun 2006
    Posts
    179
    Plugin Contributions
    0

    Default Re: Product Listing layout config.

    ZEN_CART_HOME_DIR/includes/modules/YOUR_TEMPLATE/product_listing.php

    Hmmmmmm......... But i dont have any template_Folder in /includes/modules/ How to do then??????? However i have a product_listing.php in /includes/modules/

  5. #15
    Join Date
    Jun 2006
    Posts
    179
    Plugin Contributions
    0

    Default Re: Product Listing layout config.

    When write 3 in Product Listing - Columns Per Row i got 2 rows. Write 4 and i get 3 rows ???

    It seems that one row is always emty ??

  6. #16
    Join Date
    Jun 2006
    Posts
    179
    Plugin Contributions
    0

    Default Re: Product Listing layout config.

    If i write 4 in Product Listing - Columns Per Row i will somtimes get 1 product per row and somtimes mixed 1 per row, 3 per row, 2 per row, 1 per row, 2 per row,

  7. #17
    Join Date
    Jun 2006
    Posts
    179
    Plugin Contributions
    0

    Default Re: Product Listing layout config.

    AND.. It also shrunk the center area. See: http://siamonnet.se/babystore/index....=index&cPath=1

  8. #18
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Product Listing layout config.

    Quote Originally Posted by PeterBKK
    ZEN_CART_HOME_DIR/includes/modules/YOUR_TEMPLATE/product_listing.php

    Hmmmmmm......... But i dont have any template_Folder in /includes/modules/ How to do then??????? However i have a product_listing.php in /includes/modules/
    Create the folder ;-)

    Most Zen Cart documentation states that if you observe a "custom" folder already present in a directory, then that indicates overrides are suppose to work. So in the same directory create a new folder with the name of your template, and place your modified file(s) there.

    Note I have had mixed success overriding modules. I don't know why, most my module overrides work, but some times they do not. In these cases I overwrite the core module files (after backing up of course).

    In this particular case overriding the core product_listing.php with the version DrByte provided in the Column product listing mod update works well in v.1302.

    Woody

  9. #19
    Join Date
    Jun 2006
    Posts
    179
    Plugin Contributions
    0

    Default Re: Product Listing layout config.

    I did not even had a classic folder in /modules/ so i replaced the product_listing.php in /modules/ Cold i do that or should i undo it as i had so many problems???

  10. #20
    Join Date
    Jun 2006
    Posts
    179
    Plugin Contributions
    0

    Default Re: Product Listing layout config.

    ops... I did had one classic folder

 

 
Page 2 of 6 FirstFirst 1234 ... LastLast

Similar Threads

  1. Change Category Product Listing Layout To Match All Product Listing
    By Alfonzo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 21 Sep 2010, 11:49 AM
  2. config of product listing
    By fei2010 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Jul 2010, 05:04 PM
  3. Config > Product Listing > Missing options 1.3.6
    By inksale in forum Basic Configuration
    Replies: 2
    Last Post: 18 Dec 2006, 04:41 AM
  4. Product listing config
    By part-timer in forum Basic Configuration
    Replies: 4
    Last Post: 18 Nov 2006, 04:15 AM
  5. Main Page Product image sizing and layout Config. HELP!
    By msbettybebe in forum Basic Configuration
    Replies: 6
    Last Post: 5 Sep 2006, 05:05 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