Eye4Marketing Posted January 2, 2013 Posted January 2, 2013 Hi there, I am busy designing a site. I have changed the size of my thumbnails on the index page. You will notice in the attached picture how it comes out. I want the product name above the picture and the details and add to cart and price below the picture. I do not know what and where to change as I have not many php experience. Can someone here help me? I have struggled with this since December 2012 and went through about 300 google search explanations but cannot get it right.
Eye4Marketing Posted January 2, 2013 Author Posted January 2, 2013 You will see on the picture it gives the product name and description inside of the picture in the top right. I need only the product name above the picture. At the bottom in red it gives the details add to cart and price. I need that below the picture
Eye4Marketing Posted January 3, 2013 Author Posted January 3, 2013 ok so I guess no one can help with this ???
Eye4Marketing Posted January 3, 2013 Author Posted January 3, 2013 Ok so I have removed the description part in the catalog/includes/modules/new_pruducts.php ..... Now just have to get the darn text out of the picture !!!
Eye4Marketing Posted January 3, 2013 Author Posted January 3, 2013 still not ... can no one here help me ?? Thought that the people helping here are good with what they do ???? :mellow:
Eye4Marketing Posted January 3, 2013 Author Posted January 3, 2013 <?php /* $Id: new_products.php,v 1.34 2003/06/09 22:49:58 hpdl Exp $ E-Commerce Solutions Copyright © 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> </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 //-->
♥14steve14 Posted January 3, 2013 Posted January 3, 2013 People here wil help where possible. This forum is for oscommerce as released and available from this forum. Help is generally not given to products obtained from outside this site. If you are using a template, help should be asked from the template supplier. This forum is not for help with commercial or free templates. Posting the same question in several forums will not help you get an answer, it will only confuse people. My advice would be to check your file against a standard oscommerce file and see where the changes are. REMEMBER BACKUP, BACKUP AND BACKUP
♥toyicebear Posted January 4, 2013 Posted January 4, 2013 In default oscommerce that is shown from includes/modules/new_products.php , since you use a template that might not be the case for your shop. The best approach is to contact your template provider for support. Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
Recommended Posts
Archived
This topic is now archived and is closed to further replies.