Thread: Snaf

Page 25 of 30 FirstFirst ... 152324252627 ... LastLast
Results 241 to 250 of 298
  1. #241
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Snaf (1.5.1 and 1.5.3)?

    Diva,

    In the unchanged version of SNAF's product_listing.php file we are at about line 203. And have this

    Code:
                // hide quantity box
                if ($listing->fields['products_qty_box_status'] == 0) {
                  $lc_button = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';
                } else {
                  $lc_button = TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART . "<input type=\"text\" name=\"products_id[" . $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
                }
              } else {
    Which if you change to this :

    Code:
                // hide quantity box
                if ($listing->fields['products_qty_box_status'] == 0) {
                  $lc_button = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';
                } else {
                  $lc_button = '<span>'.TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART . "</span><input type=\"text\" name=\"products_id[" . $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
                }
              } else {
    Will put a span around what you want. Judging from the define name in the code that you posted is different I'd guess that some other modifications have been made?

    Not sure what else to suggest.

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

    Default Re: Snaf (1.5.1 and 1.5.3)?

    Quote Originally Posted by niccol View Post
    Diva,

    In the unchanged version of SNAF's product_listing.php file we are at about line 203. And have this

    Code:
                // hide quantity box
                if ($listing->fields['products_qty_box_status'] == 0) {
                  $lc_button = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';
                } else {
                  $lc_button = TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART . "<input type=\"text\" name=\"products_id[" . $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
                }
              } else {
    Which if you change to this :

    Code:
                // hide quantity box
                if ($listing->fields['products_qty_box_status'] == 0) {
                  $lc_button = '<a href="' . zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT, 'class="listingBuyNowButton"') . '</a>';
                } else {
                  $lc_button = '<span>'.TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART . "</span><input type=\"text\" name=\"products_id[" . $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
                }
              } else {
    Will put a span around what you want. Judging from the define name in the code that you posted is different I'd guess that some other modifications have been made?

    Not sure what else to suggest.
    Yeah this is the same change I made, and it's not working.. **sigh** The version of SNAF I'm using has been modified to be responsive. Can't see how swapping tables for divs would impact things.. I'll send you over what I'm working with later so you can see..
    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.

  3. #243
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Snaf (1.5.1 and 1.5.3)?

    Quote Originally Posted by DivaVocals View Post
    Yeah this is the same change I made, and it's not working.. **sigh** The version of SNAF I'm using has been modified to be responsive. Can't see how swapping tables for divs would impact things.. I'll send you over what I'm working with later so you can see..
    Put a die() in directly after that line. If the page dies there then you know you are in the right file.

    I'd guess you are not in the right file.

    Or alternatively some of the configuration setting are different and you are taking a different route through the logic. Either way you need to check that you are in the right file first and then confirm to yourself that that is the route that the logic is taking.

    But I know that you know this :-)

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

    Default Re: Snaf (1.5.1 and 1.5.3)?

    Quote Originally Posted by niccol View Post
    Put a die() in directly after that line. If the page dies there then you know you are in the right file.

    I'd guess you are not in the right file.

    Or alternatively some of the configuration setting are different and you are taking a different route through the logic. Either way you need to check that you are in the right file first and then confirm to yourself that that is the route that the logic is taking.

    But I know that you know this :-)
    I BARELY know anything... I'm just trying to keep up with you smart people.. But this is the file I am working in..

    includes/modules/custom_template/product_listing.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.

  5. #245
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,925
    Plugin Contributions
    96

    Default Re: Snaf (1.5.1 and 1.5.3)?

    SNAF v1.2: There's a short-open tag in /includes/templates/YOUR_TEMPLATE/tpl_snaf_display_order.php (line 21). Need to change
    Code:
    <?foreach($_GET as $key=>$value)
    to
    Code:
    <?php foreach($_GET as $key=>$value)

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

    Default Re: Snaf (1.5.1 and 1.5.3)?

    Quote Originally Posted by lat9 View Post
    SNAF v1.2: There's a short-open tag in /includes/templates/YOUR_TEMPLATE/tpl_snaf_display_order.php (line 21). Need to change
    Code:
    <?foreach($_GET as $key=>$value)
    to
    Code:
    <?php foreach($_GET as $key=>$value)
    I'll add that to the list.. Planning on submitting the responsive version of SNAF to the downloads.. wanna make sure I fully tweak (and frankly remove) some of the inline styling that gave me fits when trying to configure the rows view..
    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. #247
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Snaf (1.5.1 and 1.5.3)?

    I hate to say this cause quite frankly I am not sure when I will have time but version 3.0 of the Responsive DIY Template Default for 1.5.x that I will be uploading solves many of the table display issues when it comes to responsive designs.

    Tables are responsive to begin with and will resize until the content within doesn't allow them to anymore.

    I use a highly altered version of SNAF in my whiteCherries responsive template. Using only CSS to change display of rows as window gets smaller.

    you could add this css to see what I mean:

    Code:
    /* index & cPath (product listing pages) */
    @media (min-width:0px) and (max-width:480px){
    div#productListing table,
    div#productListing thead,
    div#productListing tbody,
    div#productListing th,
    div#productListing td,
    div#productListing tr 
    { display: block; }
    div#productListing tr.productListing-odd,
    div#productListing tr.productListing-even
    { width:100%;float:left;height:350px; }
    }
    
    @media (min-width:481px) and (max-width:767px){
    /* index & cPath (product listing pages) */
    div#productListing table,
    div#productListing thead,
    div#productListing tbody,
    div#productListing td,
    div#productListing tr 
    { display: block; }
    div#productListing tr.productListing-odd,
    div#productListing tr.productListing-even
    { width:49.5%;float:left;height:350px; }
    }
    The above alters one row to show 2 rows on tablets and 1 on phones.

    Like I said, the css has been added to 3.0 to handle all tables within Zen Cart without altering any PHP files, just finding the time to package and submit.

    Not sure if this helps at all though!

    Quote Originally Posted by DivaVocals View Post
    I'll add that to the list.. Planning on submitting the responsive version of SNAF to the downloads.. wanna make sure I fully tweak (and frankly remove) some of the inline styling that gave me fits when trying to configure the rows view..

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

    Default Re: Snaf (1.5.1 and 1.5.3)?

    Quote Originally Posted by rbarbour View Post
    I hate to say this cause quite frankly I am not sure when I will have time but version 3.0 of the Responsive DIY Template Default for 1.5.x that I will be uploading solves many of the table display issues when it comes to responsive designs.

    Tables are responsive to begin with and will resize until the content within doesn't allow them to anymore.

    I use a highly altered version of SNAF in my whiteCherries responsive template. Using only CSS to change display of rows as window gets smaller.
    And is the v3.0 of the Responsive DIY Template Default going to include this highly altered version of SNAF?? Alternatively could you share your altered version of SNAF.. I would be curious to see and compare to the altered version I am using..
    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.

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

    Default Re: Snaf (1.5.1 and 1.5.3)?

    Quote Originally Posted by DivaVocals View Post
    And is the v3.0 of the Responsive DIY Template Default going to include this highly altered version of SNAF??
    No, the Responsive DIY Template Default will remain free of plugins, it will include the CSS to handle zen-cart tables including CSS to handle all 3 grid plugins.

    Quote Originally Posted by DivaVocals View Post
    Alternatively could you share your altered version of SNAF.. I would be curious to see and compare to the altered version I am using..
    I can send via email for your eyes only, this version of SNAF will only be offered and bundled with my premium responsive templates.

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

    Default Re: Snaf (1.5.1 and 1.5.3)?

    Quote Originally Posted by rbarbour View Post
    No, the Responsive DIY Template Default will remain free of plugins, it will include the CSS to handle zen-cart tables including CSS to handle all 3 grid plugins.
    Fantastic on the "free of plugins" stance!!! Makes it MUCH easier for one to "roll your own" and bundle in what you want..

    I take it that when you say "handle all 3 grid plugins", you are including SNAF amongst the three??? Because if that's the case there's no need for me to submit my tableless version of SNAF at all, and I'll keep it exclusive for my clients..

    One question.. does your CSS address the rows view in SNAF?? because the SNAF code has a GREAT DEAL of inline hard coded CSS (off the top of my head, I'm not sure if this is from SNAF or from core Zen Cart files) that I personally found to be difficult to work around.. If you've got that all worked out that would be FANTASTIC..



    Quote Originally Posted by rbarbour View Post
    I can send via email for your eyes only, this version of SNAF will only be offered and bundled with my premium responsive templates.
    Last edited by DivaVocals; 13 Jan 2015 at 11:12 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.

 

 
Page 25 of 30 FirstFirst ... 152324252627 ... LastLast

Similar Threads

  1. SNAF and Set number dropdown not working
    By DeeL in forum General Questions
    Replies: 0
    Last Post: 2 Apr 2013, 02:03 AM
  2. styling the row layout while using snaf
    By bn17311 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Dec 2012, 07:44 PM
  3. SNAF not working with aBagon red template??
    By Johnnycopilot in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 3 Apr 2012, 08:15 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