malkers Posted November 21, 2006 Posted November 21, 2006 Hiya folks. Trying to get our new shop loaded with stock and up and running but have just one hitch that is getting the better of me and driving me potty. On our home page where you can see all the latest products, below each pic is showing the title text but also a great lump of the descriptive text which i wish to be invisible until a customer enters the listing! I've searched this whole site, looked at lots of other peoples shops and can't seem to find anyone having the same problems as me! Any help would be most appreciated! Regards Malc www.kultya.com/catalog
bill110 Posted November 21, 2006 Posted November 21, 2006 can you post your catelog/includes/modules/new_products.php ? My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
Scorpion Cart Posted November 21, 2006 Posted November 21, 2006 try admin/configuration/product listing/display product description and set this to zero if you have this installed that is
GemRock Posted November 21, 2006 Posted November 21, 2006 It seems you posted the same issue about couple of weeks ago. I thought you'd sorted it. I did a mock up but can remember the details now :( Is this what you want or nearly: Ken commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience.
malkers Posted November 21, 2006 Author Posted November 21, 2006 try admin/configuration/product listing/display product description and set this to zero if you have this installed that is Hmm, don't appear to have that in the list. I'll try to figure out how to post the php, be right back! Thanks Malc
malkers Posted November 21, 2006 Author Posted November 21, 2006 It seems you posted the same issue about couple of weeks ago. I thought you'd sorted it. I did a mock up but can remember the details now :( Is this what you want or nearly: Ken Hi Ken Not exactly, I just want the title which is the bit down to and including the product code in brackets. All the other text you can see there is in the description which is what I don't want to show as it looks messy! Mind bogging stuff but I appreciate the help! Malc
malkers Posted November 21, 2006 Author Posted November 21, 2006 can you post your catelog/includes/modules/new_products.php ? Erm, sorry to seem dim but no idea how to find what you are asking me to find here?
GemRock Posted November 21, 2006 Posted November 21, 2006 Hi Ken Not exactly, I just want the title which is the bit down to and including the product code in brackets. All the other text you can see there is in the description which is what I don't want to show as it looks messy! Mind bogging stuff but I appreciate the help! Malc Whatever you want, it'd be do-able. Some hacking into the relevant code module(s) may be needed, though. You are using a template, Arent you? ken commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience.
bill110 Posted November 21, 2006 Posted November 21, 2006 Erm, sorry to seem dim but no idea how to find what you are asking me to find here? Just wanting to see the code for the file: new_products.php. the path is catelog/includes/modules/new_products.php. just copy the contents and paste them here within code brackets. like this [code] your pasted code [ /code] with no space in the ending bracket My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
jennyd1975 Posted November 21, 2006 Posted November 21, 2006 This should be the bit you are after Bill (I am Malkers other half, the one who asked the question originally but got no real reply) if you can help! TIA Jenny <?php /* $Id: new_products.php,v 1.34 2003/06/09 22:49:58 hpdl Exp $ E-Commerce Solutions Copyright (c) 2005 www.flash-template-design.com Released under the GNU General Public License */ ?> <!-- new_products //--> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B'))); ?> <div style="border:1px solid #9E9063; margin-top:2px; margin-bottom:3px; "> <?php new contentBoxHeading($info_box_contents);?> </div> <div style="border:1px solid #92855D; background-color:#FFFFFF;"> <?php 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; $info_box_contents = array(); $strbegin=''; $strend=''; while ($new_products = tep_db_fetch_array($new_products_query)) { $new_products['products_name'] = tep_get_products_name($new_products['products_id']); $sql = 'SELECT `products_description` FROM `products_description` WHERE products_id ='.$new_products['products_id'].' && language_id='.(int)$languages_id; $description_query = tep_db_query($sql); $description = mysql_fetch_array($description_query, MYSQL_ASSOC); $description['products_description'] = substr($description['products_description'], 0, 65); $desc_len = strlen($description['products_description']); $description['products_description'][$desc_len-1] = '.'; $description['products_description'][$desc_len-2] = '.'; $description['products_description'][$desc_len-3] = '.'; if (($col == 0 && $row == 1) || ($col == 2 && $row == 1)) { $info_box_contents[$row][$col] = array('align' => 'center', 'params' => '', 'text' => ''); } elseif ($col == 1 && $row == 1) { $info_box_contents[$row][$col] = array('align' => '', 'params' => '', 'text' => ''); } else { $info_box_contents[$row][$col] = array('align' => 'center', 'params' => ' width="33%" height="272" style=" "', 'text' => '<div class="new_prod"><div class="image"><a href="'. tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']) .'">'. tep_image(DIR_WS_IMAGES . $new_products['products_image'], $new_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="left"') . '</a></div><p align="center">'.$new_products['products_name'].'<br> <span>'.$description['products_description'].'</span></p> <div class="buy"> <a class="red" href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']).'">Details</a> | '. tep_draw_hidden_field('products_id', $new_products['products_id']) . tep_image_submit('add.gif', IMAGE_BUTTON_IN_CART) .'<b> '. $currencies->display_price($new_products['products_price'], tep_get_tax_rate($new_products['products_tax_class_id'])).'</b> </div> </div>'); } $col ++; if ($col > 2) { $col = 0; $row ++; } } new contentBox($info_box_contents, 0); ?> </div> <!-- new_products_eof //-->
bill110 Posted November 21, 2006 Posted November 21, 2006 Ok try deleting this code: <span>'.$description['products_description'].'</span></p> this will (should)get rid of the details leaving the product name the price, the link that says details, and the add to cart. if you want to remove the last two delete this <a class="red" href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $new_products['products_id']).'">Details</a> | '. tep_draw_hidden_field('products_id', $new_products['products_id']) . tep_image_submit('add.gif', IMAGE_BUTTON_IN_CART) .'<b> See if that works. My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
jennyd1975 Posted November 21, 2006 Posted November 21, 2006 Ho Ho Ho Spot on Bill, you are a champ! Next time I am in Texas I will buy you a beer! I will try and keep quiet now designing the products until I hit the next hurdle!! Cheers All Jenny
malkers Posted November 21, 2006 Author Posted November 21, 2006 Thanks Bill Make that two beers!!! :blink:
bill110 Posted November 21, 2006 Posted November 21, 2006 Thanks Bill Make that two beers!!! :blink: Coors Lite! My Contributions Stylesheet With Descriptions Glassy Grey Boxtops Our Products Meta Tags On The Fly Password Protect Admin "No matter where you go....There you are" - Buccaroo Bonsai
Recommended Posts
Archived
This topic is now archived and is closed to further replies.