Thread: Snaf

Results 1 to 10 of 298

Hybrid View

  1. #1
    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.

  2. #2
    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 :-)

  3. #3
    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.

 

 

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