Jump to content

drussell10

Members
  • Content count

    11
  • Joined

  • Last visited

Profile Information

  • Real Name
    Don Russell
  1. To add to this: The problem is that ImageMagic is not process the new_products or products_new.php files, therefore the images that are being called up are in their original state (large) and not in the thumbnail size. Does anyone have any ideas how to correct this?
  2. Jon, If you haven't already done so, edit your configure.php located under your /includes subfolder and check to make sure this line of code... (approx. line 33) define('DIR_FS_CATALOG', '/pathtocatologroot/'); is correctly pointing to the path of your /catalog folder. If you don't have a /catalog folder, such as with my store, make sure it points to the store root (where all your main .php files are stored, including imagemagic.php).
  3. I've got ImageMagic working fine for all my various category product images, but my 'New Products' page or 'What's New Here' page are showing the images in their original size -- not the thumbnail. I'm quite certain the issue is somewhere in the new_products.php, but I'm just not sure how to correct this issue. Below is the code of my new_products.php... Any help or suggestions will be appreciated. <?php /* $Id: new_products.php,v 1.1.1.1 2006/08/14 09:45:13 User Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ ?> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=290,height=290,screenX=290,screenY=290,top=150,le ft=150'); } //--></script> <!-- new_products //--> <?php $info_box_contents = sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')); if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) { $new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); } else { $new_products_query = tep_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS); } $row = 0; $col = 0; ?> <table border="0" cellspacing="1" cellpadding="0" class="zxc6"> <tr><td style="background-image:url(images/m22.gif);" width="531" height="31"> <span class="tx2"><?=HEADING_TITLE?></span></td></tr> <tr><td height="2"></td></tr> <tr><td width="533"> <table border="0" cellspacing="0" cellpadding="0" width="527" align="center"> <? while ($new_products = tep_db_fetch_array($new_products_query)) { $new_products['products_name'] = tep_get_products_name($new_products['products_id']); $product_query = tep_db_query("select products_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$new_products['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); $product = tep_db_fetch_array($product_query); $new_products['products_description'] = $product['products_description']; if ($col==0) echo '<tr>'; if ($col!=0) echo '<td width="2"></td>'; ?> <td width="174" valign="top" class="bd"> <table border="0" cellspacing="0" cellpadding="0" width="167" align="center"> <tr><td height="2"></td></tr> <tr><td width="167" height="89" bgcolor="#FFFFFF" align="center"><a href="<?=tep_href_link('product_info.php?products_id='.$new_products['products_id'])?>"><?=tep_image(DIR_WS_IMAGES.$new_products['products_image'],$new_products['products_name'])?></a></td></tr> <tr><td width="167" height="35" bgcolor="#1A1C1F" class="tx4"><br style="line-height:1px;"><br style="line-height:2px;"><b><a style="color:#C4DBF2;text-decoration:none;" href="<?=tep_href_link('product_info.php?products_id='.$new_products['products_id'])?>"><?=$new_products['products_name']?></a></b><br style="line-height:1px;"><br style="line-height:4px;"></td></tr> <tr><td width="167" style="padding-left:12px;"><br style="line-height:1px;"><br style="line-height:10px;"><b><?=preg_replace('/\s\S*$/i', '', substr($new_products['products_description'], 0, 75))?>...</b><br style="line-height:1px;"><br style="line-height:10px;"></td></tr> <tr><td width="167" style="padding-left:12px;" class="tx6"> <?=$currencies->display_price($new_products['products_price'],'')?><br style="line-height:1px;"><br style="line-height:10px;"></td></tr> <tr><td><a href="<?=tep_href_link('product_info.php?products_id='.$new_products['products_id'])?>"><?=tep_image_button("button_more.gif");?></a><a href="<?= tep_href_link("products_new.php","action=buy_now&products_id=".$new_products['products_id'])?>"><?=tep_image_button("button_add_to_cart.gif");?></a></td></tr> <tr><td height="3"></td></tr> </table> </td> <? if ($col==2) { echo '</tr>'; $col=0; } else { $col++; } } if ($col!=0) echo '</tr>'; ?> </table> </td> </tr> </table>
  4. I corrected this issue by creating the 'thumbnail' directory/folder in the root of my /catalog directory/folder, and changing the permissions on the 'thumbnail' folder to '777'. Once I did this and refreshed my browser, the images appeared.
  5. I've implemented this contribution into my site and it working for the most part (meaning, when I click on any of my product images, the image is opened in the "lightbox" and enlarged as expected). I'm experiencing two issues that I can't figure out, though. One, on my home page, in my "What's New Here" section, the images are being set to their original size that I downloaded from my supplier and they are basically taking up the entire page (Not what I want). Two, the "Click to Enlarge" text is not showing up at all on any of the images. I would appreciate any guidance.
  6. I've implemented Lightbox and all is working great on my individual product pages (image sizes show up as they should and clicking on the image enlarges the image properly), but my home page "What's New Here" images are in their original large image size. How do I correct this, please?
  7. drussell10

    Credit Card Logos

    All seems to be working well with this contribution, but I would like to have the credit card logos (Master Card, Visa, etc.) show up on the "Payment Information" page somewhere in the "Payment Method" section. Any guidance would be appreciated.
  8. drussell10

    PayPal WPP Direct Payments & Express Checkout Support

    That was it. If I would have finished reading what Michael had stated above, I would have not even replied. Thanks.
  9. drussell10

    PayPal WPP Direct Payments & Express Checkout Support

    I'm having the exact same problem. I've installed this contribution (paypal_wpp_0.7.3) on a brand new osCommerce version MS2.2. I'm new to PHP and I have no experience with using PEAR, so any guidance here would be appreciated.
×