Guest Posted May 2, 2006 Share Posted May 2, 2006 Ignore this, there is no quick way... Backed up files, and then went through steps of instal in reverse!! Hi I currently have Product Listing in Columns installed but I would like to try this layout. Has any one moved from Product Listing in Columns to Product Description, I have been looking at my current files but cannot figure out what I need to do to remove Product Description. Thanks for info W Quote Link to comment Share on other sites More sharing options...
Guest Posted May 2, 2006 Share Posted May 2, 2006 Hi I am trying to put the price, manufactuer, and buy now under the description but cannot figure out what steps I need to take to amend. Can any one advise on this? Thanks W Quote Link to comment Share on other sites More sharing options...
Guest Posted May 3, 2006 Share Posted May 3, 2006 Not sure whats happening, as I cannot get the same layout as per the image in the contrib. I still have a regular table layout. Have I missed a step, or not configuered something in admin. Thanks for advice. W Hi I am trying to put the price, manufactuer, and buy now under the description but cannot figure out what steps I need to take to amend. Can any one advise on this? Thanks W Quote Link to comment Share on other sites More sharing options...
AdamIllian Posted May 31, 2006 Share Posted May 31, 2006 Quick note for version 1.5 function tep_flatten_product_description($description, $link) { $description = ereg_replace('<[^>]*>', '', $description); if (strlen($description) > PRODUCT_LIST_DESCRIPTION_MAX_LENGTH){ $description = substr($description, 0, PRODUCT_LIST_DESCRIPTION_MAX_LENGTH); $description .= "...".$link; }else { $description .= $link; } return $description; } Works quite well, but the PRODUCT_LIST_DESCRIPTION_MAX_LENGTH is not set to any value if you follow the base instructions. Being that I'm still a PHP newbie, I just switched PRODUCT_LIST_DESCRIPTION_MAX_LENGTH to a number that looked good on the site I'm devloping and everything worked out well. If you don't make this change, you won't get any description at all. Quote Link to comment Share on other sites More sharing options...
Guest Posted May 31, 2006 Share Posted May 31, 2006 Quick note for version 1.5 function tep_flatten_product_description($description, $link) { $description = ereg_replace('<[^>]*>', '', $description); if (strlen($description) > PRODUCT_LIST_DESCRIPTION_MAX_LENGTH){ $description = substr($description, 0, PRODUCT_LIST_DESCRIPTION_MAX_LENGTH); $description .= "...".$link; }else { $description .= $link; } return $description; } Works quite well, but the PRODUCT_LIST_DESCRIPTION_MAX_LENGTH is not set to any value if you follow the base instructions. Being that I'm still a PHP newbie, I just switched PRODUCT_LIST_DESCRIPTION_MAX_LENGTH to a number that looked good on the site I'm devloping and everything worked out well. If you don't make this change, you won't get any description at all. That's because you did not run the sql file that came with the contribution. And it is present in the installation instructions ####[ DATABASE ]################################################################ load the supplied file 'product_description.sql' into your mySQL database, either from the command line or via phpMyAdmin. Quote Link to comment Share on other sites More sharing options...
HeadScratcher Posted June 15, 2006 Share Posted June 15, 2006 Ive tried both contributions in this thread. Got it working in new_products but it doesnt show in product_listing.php or advanced_search_results.php I also have the SPPC contibution installed. Im wondering if this is causing my description not to show. Anyone else have issues with these two contribs together??? Im hoping enigma1 might still be around and give me a shove in the right direction. Any help would be most appreciated. I will post my product_listing.php if needed. Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted June 15, 2006 Share Posted June 15, 2006 yes go ahead post it. Quote Link to comment Share on other sites More sharing options...
HeadScratcher Posted June 15, 2006 Share Posted June 15, 2006 Thanks here it is, its definitely the sppc contrib, swapped it out with stock oscommerce product_listing.php and description is there. Thanks for looking :thumbsup: <?php /* $Id: product_listing.php,v 1.1.1.1 2004/03/04 23:41:11 ccwjr Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ $listing_split = new splitPageResults($listing_sql, MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id'); if ( ($listing_split->number_of_rows > 0) && ( (PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3') ) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> </table> <?php } $list_box_contents = array(); for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_text = TABLE_HEADING_MODEL; $lc_align = ''; break; case 'PRODUCT_LIST_NAME': $lc_text = TABLE_HEADING_PRODUCTS; $lc_align = ''; break; case 'PRODUCT_LIST_MANUFACTURER': $lc_text = TABLE_HEADING_MANUFACTURER; $lc_align = ''; break; case 'PRODUCT_LIST_PRICE': $lc_text = TABLE_HEADING_PRICE; $lc_align = 'right'; break; case 'PRODUCT_LIST_QUANTITY': $lc_text = TABLE_HEADING_QUANTITY; $lc_align = 'right'; break; case 'PRODUCT_LIST_WEIGHT': $lc_text = TABLE_HEADING_WEIGHT; $lc_align = 'right'; break; case 'PRODUCT_LIST_IMAGE': $lc_text = TABLE_HEADING_IMAGE; $lc_align = 'center'; break; case 'PRODUCT_LIST_BUY_NOW': $lc_text = TABLE_HEADING_BUY_NOW; $lc_align = 'center'; break; } if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) { $lc_text = tep_create_sort_heading($HTTP_GET_VARS['sort'], $col+1, $lc_text); } $list_box_contents[0][] = array('align' => $lc_align, 'params' => 'class="productListing-heading"', 'text' => ' ' . $lc_text . ' '); } if ($listing_split->number_of_rows > 0) { $rows = 0; $listing_query = tep_db_query($listing_split->sql_query); // BOF Separate Pricing per Customer $no_of_listings = tep_db_num_rows($listing_query); // global variable (session) $sppc_customer_group_id -> local variable customer_group_id if(!tep_session_is_registered('sppc_customer_group_id')) { $customer_group_id = '0'; } else { $customer_group_id = $sppc_customer_group_id; } while ($_listing = tep_db_fetch_array($listing_query)) { $listing[] = $_listing; $list_of_prdct_ids[] = $_listing['products_id']; } // next part is a debug feature, when uncommented it will print the info that this module receives /* echo '<pre>'; print_r($listing); echo '</pre>'; */ $select_list_of_prdct_ids = "products_id = '".$list_of_prdct_ids[0]."' "; if ($no_of_listings > 1) { for ($n = 1; $n < count($list_of_prdct_ids); $n++) { $select_list_of_prdct_ids .= "or products_id = '".$list_of_prdct_ids[$n]."' "; } } // get all product prices for products with the particular customer_group_id // however not necessary for customer_group_id = 0 if ($customer_group_id != '0') { $pg_query = tep_db_query("select pg.products_id, customers_group_price as price from " . TABLE_PRODUCTS_GROUPS . " pg where (".$select_list_of_prdct_ids.") and pg.customers_group_id = '".$customer_group_id."' "); // $no_of_pg_products = tep_db_num_rows($pg_query); while ($pg_array = tep_db_fetch_array($pg_query)) { $new_prices[] = array ('products_id' => $pg_array['products_id'], 'products_price' => $pg_array['price'], 'specials_new_products_price' => '', 'final_price' => $pg_array['price']); } for ($x = 0; $x < $no_of_listings; $x++) { // replace products prices with those from customers_group table if(!empty($new_prices)) { for ($i = 0; $i < count($new_prices); $i++) { if( $listing[$x]['products_id'] == $new_prices[$i]['products_id'] ) { $listing[$x]['products_price'] = $new_prices[$i]['products_price']; $listing[$x]['final_price'] = $new_prices[$i]['final_price']; } } } // end if(!empty($new_prices) $listing[$x]['specials_new_products_price'] = ''; // makes sure that a retail specials price doesn't carry over to another customer group $listing[$x]['final_price'] = $listing[$x]['products_price']; // final price should not be the retail special price } // end for ($x = 0; $x < $no_of_listings; $x++) } // end if ($customer_group_id != '0') // an extra query is needed for all the specials $specials_query = tep_db_query("select products_id, specials_new_products_price from " . TABLE_SPECIALS . " where (".$select_list_of_prdct_ids.") and status = '1' and customers_group_id = '" .$customer_group_id. "'"); while ($specials_array = tep_db_fetch_array($specials_query)) { $new_s_prices[] = array ('products_id' => $specials_array['products_id'], 'products_price' => '', 'specials_new_products_price' => $specials_array['specials_new_products_price'] , 'final_price' => $specials_array['specials_new_products_price']); } // add the correct specials_new_products_price and replace final_price for ($x = 0; $x < $no_of_listings; $x++) { if(!empty($new_s_prices)) { for ($i = 0; $i < count($new_s_prices); $i++) { if( $listing[$x]['products_id'] == $new_s_prices[$i]['products_id'] ) { $listing[$x]['specials_new_products_price'] = $new_s_prices[$i]['specials_new_products_price']; $listing[$x]['final_price'] = $new_s_prices[$i]['final_price']; } } } // end if(!empty($new_s_prices) } // end for ($x = 0; $x < $no_of_listings; $x++) // while ($listing = tep_db_fetch_array($listing_query)) { (was original code) for ($x = 0; $x < $no_of_listings; $x++) { $rows++; if (($rows/2) == floor($rows/2)) { $list_box_contents[] = array('params' => 'class="productListing-even"'); } else { $list_box_contents[] = array('params' => 'class="productListing-odd"'); } $cur_row = sizeof($list_box_contents) - 1; $has_description = false; for ($col=0, $n=sizeof($column_list); $col<$n; $col++) { $lc_align = ''; switch ($column_list[$col]) { case 'PRODUCT_LIST_MODEL': $lc_align = ''; $lc_text = ' ' . $listing[$x]['products_model'] . ' '; break; case 'PRODUCT_LIST_NAME': $lc_align = ''; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing[$x]['products_id']) . '">' . $listing[$x]['products_name'] . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing[$x]['products_id']) . '">' . $listing[$x]['products_name'] . '</a> '; } if (PRODUCT_LIST_DESCRIPTION && $listing['products_description'] && PRODUCT_LIST_DESCRIPTION_MAX_LENGTH) $lc_text .= '<br><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td class="productDesc">' . tep_flatten_product_description($listing['products_description'], ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . TEXT_MORE . '</a>') . '</td></tr></table>'; break; case 'PRODUCT_LIST_MANUFACTURER': $lc_align = ''; $lc_text = ' <a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing[$x]['manufacturers_id']) . '">' . $listing[$x]['manufacturers_name'] . '</a> '; break; case 'PRODUCT_LIST_PRICE': $lc_align = 'right'; if (tep_not_null($listing[$x]['specials_new_products_price'])) { $lc_text = ' <s>' . $currencies->display_price($listing[$x]['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($listing[$x]['specials_new_products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</span> '; } else { $lc_text = ' ' . $currencies->display_price($listing[$x]['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . ' '; } break; case 'PRODUCT_LIST_QUANTITY': $lc_align = 'right'; $lc_text = ' ' . $listing[$x]['products_quantity'] . ' '; break; case 'PRODUCT_LIST_WEIGHT': $lc_align = 'right'; $lc_text = ' ' . $listing[$x]['products_weight'] . ' '; break; case 'PRODUCT_LIST_IMAGE': $lc_align = 'center'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $lc_text = '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing[$x]['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing[$x]['products_image'], $listing[$x]['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a>'; } else { $lc_text = ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing[$x]['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing[$x]['products_image'], $listing[$x]['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> '; } break; // EOF Separate Pricing per Customer case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'pName')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_template_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; break; } $list_box_contents[$cur_row][] = array('align' => $lc_align, 'params' => 'class="productListing-data"', 'text' => $lc_text); } } new productListingBox($list_box_contents); } else { $list_box_contents = array(); $list_box_contents[0] = array('params' => 'class="productListing-odd"'); $list_box_contents[0][] = array('params' => 'class="productListing-data"', 'text' => TEXT_NO_PRODUCTS); new productListingBox($list_box_contents); } if ( ($listing_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3')) ) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="smallText"><?php echo $listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td> <td class="smallText" align="right"><?php echo TEXT_RESULT_PAGE . ' ' . $listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))); ?></td> </tr> </table> <?php } ?> Quote Link to comment Share on other sites More sharing options...
Guest Posted June 15, 2006 Share Posted June 15, 2006 Ok the code seems ok. Now check the settings on your osc admin end. There is a setting to enable the short description and another that specifies the length. If you already checked those then comment out this line to see if the description shows. if (PRODUCT_LIST_DESCRIPTION && $listing['products_description'] && PRODUCT_LIST_DESCRIPTION_MAX_LENGTH) because it maybe an error somewhere else. Quote Link to comment Share on other sites More sharing options...
HeadScratcher Posted June 15, 2006 Share Posted June 15, 2006 When I comment out that line I get Product name more>>>>> but the more is linked to "product not found" Ive checked the admin and I see the length in Maximium Values and Product Description in Product Listing section.....looks ok Quote Link to comment Share on other sites More sharing options...
Guest Posted June 15, 2006 Share Posted June 15, 2006 ok got it. change this code: if (PRODUCT_LIST_DESCRIPTION && $listing['products_description'] && PRODUCT_LIST_DESCRIPTION_MAX_LENGTH) $lc_text .= '<br><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td class="productDesc">' . tep_flatten_product_description($listing['products_description'], ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . TEXT_MORE . '</a>') . '</td></tr></table>'; to this: if (PRODUCT_LIST_DESCRIPTION && $listing[$x]['products_description'] && PRODUCT_LIST_DESCRIPTION_MAX_LENGTH) $lc_text .= '<br><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td class="productDesc">' . tep_flatten_product_description($listing[$x]['products_description'], ' <a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing[$x]['products_id']) . '">' . TEXT_MORE . '</a>') . '</td></tr></table>'; This is specific to your store however and the SPPC contribution. Quote Link to comment Share on other sites More sharing options...
HeadScratcher Posted June 15, 2006 Share Posted June 15, 2006 Wow, enigma1 you are the man Thanks soooooo much works beautiful now Do you have a paypal account? PM me,Id like to make a donation for your time. Quote Link to comment Share on other sites More sharing options...
invitro59 Posted June 17, 2006 Share Posted June 17, 2006 Hi everyone I installed the contribution and it's working great just one little problem with the French caracters: the special caracter just before the "... more info>>>" was showing "à" instead of an "?" and this for all the special caracters. I just change this instruction : $description .= "...".$link; $description .= " ...".$link; Just adding a space in front of the 3 dots solve this problem. Is someone maintaining this contribution or should I update the version. Quote Link to comment Share on other sites More sharing options...
altenter Posted June 21, 2006 Share Posted June 21, 2006 (edited) Hi and thanks for this great contribution. I am trying to add short_description to product_info page with the code mentioned in the begining of this thread: <?php echo stripslashes($product_info['short_desc']); ?> but nothing comes up. I can see the short_desc in database, i just need the code to call it and display in product_info.php Thanks. Edited June 21, 2006 by altenter Quote Link to comment Share on other sites More sharing options...
Guest Posted June 21, 2006 Share Posted June 21, 2006 you have to add the short_desc in the sql query of the $product_info_query Quote Link to comment Share on other sites More sharing options...
juniorprg Posted June 21, 2006 Share Posted June 21, 2006 I have installed Product Description V1.5 and its works fine, im using the oscommerce with SPPC. Now i want to show the description in the shopping_cart.php too I have made the necessary changes in classes\shopping_cart.php as follows: --------------------------------------- $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_model, pd.products_description, p.products_image, p.products_price, p.products_weight, p.products_tax_class_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$products_id . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); and here 'image' => $products['products_image'], 'description' => $products_description['products_description'], 'price' => $products_price, 'quantity' => $this->contents[$products_id]['qty'], -------------------------------------------- Now in catalog/shopping_cart.php i have made the following changes: ' <td class="productListing-data" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a></td>' . ' <td class="productListing-data" valign="top">' . tep_flatten_product_description($products['description'], '<br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . TEXT_MORE . '</a>') . '</td></tr>'; I thought this was enough to work but it displays only more>>>> the (' . TEXT_MORE . ') part Can someone help me fix this..i know im so close. thanks Quote l8ter Link to comment Share on other sites More sharing options...
altenter Posted June 22, 2006 Share Posted June 22, 2006 you have to add the short_desc in the sql query of the $product_info_query an example would be nice :) thanks. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 22, 2006 Share Posted June 22, 2006 an example would be nice :) thanks. the contribution already includes that. See how it sets up the new_products.php Quote Link to comment Share on other sites More sharing options...
altenter Posted June 26, 2006 Share Posted June 26, 2006 the contribution already includes that. See how it sets up the new_products.php thanks, works great! Quote Link to comment Share on other sites More sharing options...
juniorprg Posted June 30, 2006 Share Posted June 30, 2006 Please anyone to help me out ...thanks I have installed Product Description V1.5 and its works fine, im using the oscommerce with SPPC. Now i want to show the description in the shopping_cart.php too I have made the necessary changes in classes\shopping_cart.php as follows: --------------------------------------- $products_query = tep_db_query("select p.products_id, pd.products_name, p.products_model, pd.products_description, p.products_image, p.products_price, p.products_weight, p.products_tax_class_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$products_id . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); and here 'image' => $products['products_image'], 'description' => $products_description['products_description'], 'price' => $products_price, 'quantity' => $this->contents[$products_id]['qty'], -------------------------------------------- Now in catalog/shopping_cart.php i have made the following changes: ' <td class="productListing-data" valign="top"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a></td>' . ' <td class="productListing-data" valign="top">' . tep_flatten_product_description($products['description'], '<br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . TEXT_MORE . '</a>') . '</td></tr>'; I thought this was enough to work but it displays only more>>>> the (' . TEXT_MORE . ') part Can someone help me fix this..i know im so close. thanks Quote l8ter Link to comment Share on other sites More sharing options...
ABPSE Posted July 4, 2006 Share Posted July 4, 2006 (edited) I just added this contribution and am getting this error when I try to look at my site: Parse error: syntax error, unexpected T_STRING in catalog/includes/functions/general.php on line 65 The only thing on that line is //// Plus all I did to the file was add the following just before the ?> of general.php // short product description function tep_flatten_product_description($description, $link) { $description = ereg_replace('<[^>]*>', '', $description); if (strlen($description) > PRODUCT_LIST_DESCRIPTION_MAX_LENGTH){ $description = substr($description, 0, PRODUCT_LIST_DESCRIPTION_MAX_LENGTH); $description .= "...".$link; }else { $description .= $link; } return $description; } When I delete this part my site works again. (well everything but this contr.) Please help. I am fairly new at php and really have no clue why I am getting this error. Edited July 4, 2006 by ABPSE Quote Link to comment Share on other sites More sharing options...
juniorprg Posted July 4, 2006 Share Posted July 4, 2006 code looks fine to me, exactly like mine, add or rearrange the bracekets could work, may be in ur page there is one extra or short of one Paratheses. check that out I just added this contribution and am getting this error when I try to look at my site: Parse error: syntax error, unexpected T_STRING in catalog/includes/functions/general.php on line 65 The only thing on that line is //// Plus all I did to the file was add the following just before the ?> of general.php // short product description function tep_flatten_product_description($description, $link) { $description = ereg_replace('<[^>]*>', '', $description); if (strlen($description) > PRODUCT_LIST_DESCRIPTION_MAX_LENGTH){ $description = substr($description, 0, PRODUCT_LIST_DESCRIPTION_MAX_LENGTH); $description .= "...".$link; }else { $description .= $link; } return $description; } When I delete this part my site works again. (well everything but this contr.) Please help. I am fairly new at php and really have no clue why I am getting this error. Quote l8ter Link to comment Share on other sites More sharing options...
simaster99 Posted July 25, 2006 Share Posted July 25, 2006 Hi, Everything is as it should be, easy install, nice documentation, even a nice contrib forum! But...have i made a mistake, or can you guys help me out... the problem is that the contrib does exactly as i want on the search pages and products new eetc, but on the product info page the short description is not needed. How do i turn this off?? http://www.hydrodeals.co.uk/catalog/hydrop...tives-c-38.html <<<< works well!! http://www.hydrodeals.co.uk/catalog/regen-root-p-154.html <<< hopefully you can tell me wheat to do!!! Product description has "leaked" into here Kind regards Simon Quote Link to comment Share on other sites More sharing options...
Thenes Posted July 30, 2006 Share Posted July 30, 2006 Hi, I have installed and am using Product Description 1.5. It's working beautifully, even with the SPPC Contrib (which required a small amount of editing). However I cannot get the Short Descriptions to show up in the Latest Products on index.php I've managed to get the more>>> but no description. I'm sure there is a solution, I've noticed a couple of posts referring to this but there's no elaboration. Any ideas would be extremely appreciated :) Thanks Quote Link to comment Share on other sites More sharing options...
simaster99 Posted July 30, 2006 Share Posted July 30, 2006 (edited) Hi, Everything is as it should be, easy install, nice documentation, even a nice contrib forum! But...have i made a mistake, or can you guys help me out... the problem is that the contrib does exactly as i want on the search pages and products new eetc, but on the product info page the short description is not needed. How do i turn this off?? http://www.hydrodeals.co.uk/catalog/hydrop...tives-c-38.html <<<< works well!! http://www.hydrodeals.co.uk/catalog/regen-root-p-154.html <<< hopefully you can tell me wheat to do!!! Product description has "leaked" into here Kind regards Simon Hi, Note to self..... Do not add product descroption code to productinfo.php Edited July 30, 2006 by simaster99 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.