Results 1 to 10 of 19

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Rogue > Can't find where it's Coming From

    If you go to www.flashmyxbox360.co.uk and look at the product listings until you find a product that's sold out. You'll notice the red "Sold Out" .gif button but just to the right of the button there's a rogue ">"

    Ten points to anyone who can figure out where it's coming from!

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Rogue > Can't find where it's Coming From

    Look in the:
    /includes/modules/new_products.php

    for the code around line 71:
    Code:
        $list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsNew centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"',
        'text' => (($new_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $new_products->fields['products_image'], $new_products->fields['products_name'], IMAGE_PRODUCT_NEW_WIDTH, IMAGE_PRODUCT_NEW_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '">' . $new_products->fields['products_name'] . '</a><br />' . $products_price);
    I am guessing that it is in there near the <a href> tag ...

    Check this file and your overrides and compare to a clean copy to find it more easily, if you do not spot it ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Rogue > Can't find where it's Coming From

    One other thought is in the function where the Add/Buy/Sold is generated:
    /includes/functions/functions_general.php

    and the code around line 1134:
    Code:
        case ($button_check->fields['products_quantity'] <= 0 and SHOW_PRODUCTS_SOLD_OUT_IMAGE == '1'):
          if ($_GET['main_page'] == zen_get_info_page($product_id)) {
            $return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT, BUTTON_SOLD_OUT_ALT);
          } else {
            $return_button = zen_image_button(BUTTON_IMAGE_SOLD_OUT_SMALL, BUTTON_SOLD_OUT_SMALL_ALT);
          }
          break;
    and see if the $return_button on the small sold out has something there ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Rogue > Can't find where it's Coming From

    Hi Ajeh,

    Thanks for the reply as it's been doing my head in. I tried both of your suspected files but it doesn't appear to be there.

    /includes/modules/new_products.php:
    This line was slightly different, so to test it I just changed the code on that line with the code you supplied. Uploaded and the little ">" is still there.

    /includes/functions/functions_general.php:
    The code you supplied is an identical match to the file that's already there. So assuming you supplied the code from the install files it cannot be functions_general.php that's causing the ">"

    Any other ideas where it could be coming from?

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Rogue > Can't find where it's Coming From

    Do you have an override file:
    /includes/modules/your_template_dir/new_products.php

    If so, check that one too ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Rogue > Can't find where it's Coming From

    Doohh! Yes, that'll be the problem. There's an override in there and when I switch it off, the SOLD OUT button disappears completely.

    Maybe you can see the culprit syntax?

    PHP Code:
    $list_box_contents[$row][$col] = array('params' =>'class="back"' ' ' 'style="width:' $col_width  .'%;">'.$buy_now_link,
    'text' => (($new_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' '<a href="' zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' $productsInCategory[$new_products->fields['products_id']] . '&products_id=' $new_products->fields['products_id']) . '">'.zen_image(DIR_WS_IMAGES .$new_products->fields['products_image'], $new_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTHIMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a></div><p>') . '<a href="' zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' $productsInCategory[$new_products->fields['products_id']] . '&products_id=' $new_products->fields['products_id']) . '">' $new_products->fields['products_name'] . '</a></p>'$products_price); 

 

 

Similar Threads

  1. Where is this coming from?
    By rolo550 in forum General Questions
    Replies: 8
    Last Post: 31 Aug 2011, 07:17 AM
  2. I can't find where a shipping method is coming from
    By delia in forum Addon Shipping Modules
    Replies: 4
    Last Post: 22 Aug 2010, 01:58 PM
  3. Where is my traffic coming from?
    By HealeyV3 in forum General Questions
    Replies: 3
    Last Post: 11 Jan 2009, 08:57 PM
  4. Where is this coming from?
    By sifuhall in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Oct 2008, 05:32 PM
  5. Need help with coding - can't find the file were the error is coming from
    By cowlickdesign in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 23 Aug 2006, 04:11 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