¿cómo editar product_info.php ?
![]()
Nivel 1 (1 posts)
0 
| #0 | ![]() |
viajeaperu | 27 abr 10 |
he instalado un par de contribuciones en product_info.php dado que esta es un plantilla no tradicional y desconozco como se modifica la presentación de dicha imagen quiero por favor pedir a los entendidos en php y oscommerce su ayuda, la imagen se distorsionó y la contribución que refiere a "productos relacionados" cuyo código es
1. No sé si esta bien ubicado en product_info.php que permita poder respetar el margen de la presentación 2. debería estar el margen como en esta imagen 3. Ahora agregue un retorno de prodcuto a la categoria, pero tambien presento el problemade distorción lo ubique debajo de avisar a tus amigos de facebook y otrosy se corrigió pero lo ideal es poderlo colocar en donde marca las flechas en las imagenes 4. Si se ve el producto prueba tiene varios relacionados pero aparece una @ (arroba) al lado del precio como quitarla o por dónde se quita o oculta? Aquí pongo el código por si algún forista me da una ayudadita por favor
<? echo ' '.TEXT_RELATED_PRODUCTS.' ';<span style="white-space: pre" class="Apple-tab-span"> </span> echo ''; if (mysql_num_rows($attribute_query)>0) { while ($attributes_values = tep_db_fetch_array($attribute_query)) { $products_name_slave = ($attributes_values['products_name']); $products_id_slave = ($attributes_values['pop_products_id_slave']); if ($new_price = tep_get_products_special_price($products_id_slave)) { $products_price_slave = $currencies->display_price($new_price, tep_get_tax_rate($attributes_values['products_tax_class_id'])); } else { $products_price_slave = $currencies->display_price($attributes_values['products_price'], tep_get_tax_rate($attributes_values['products_tax_class_id'])); } // show thumb image if Enabledecho '';<span style="white-space: pre" class="Apple-tab-span"> </span> } echo '
<table border="0" cellspacing="0" cellpadding="2" width="100%" align="center"><tbody><tr><td class="productListing-data" align="center">'; if (MODULE_RELATED_PRODUCTS_SHOW_THUMBS!='False') { echo '<a rel="nofollow\" href=\"http://www.php-hispano.net/%27%20.%20tep_href_link%28FILENAME_PRODUCT_INFO,%20%27products_id=%27%20.%20$products_id_slave%29%20.%20%27\">' . tep_image(DIR_WS_IMAGES . $attributes_values['products_image'], $attributes_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"').'</a>'; } echo ' <a rel=\"nofollow\" href=\"http://www.php-hispano.net/%27%20.%20tep_href_link%28FILENAME_PRODUCT_INFO,%20%27products_id=%27%20.%20$products_id_slave%29%20.%20%27\">'.$products_name_slave.'@ '.$products_price_slave.'</a>'; }echo '</td></tr></tbody></table>';//DANIEL: end?>
><!--function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')}//--><!-- header //--><!-- header_eof //--> <!-- body //--> ';//DANIEL: end?> 0) {?> <table border="0" cellspacing="0" cellpadding="0" width="100%"><tbody><tr><!-- body_text //--><td width="100%" valign="top"> <table border="0" cellspacing="0" cellpadding="0"><tbody><tr><td colspan="3"><div class=\"bbIMG\"><a href=\"http://www.php-hispano.net/images/m32.gif\"><img alt=\"Imagen\" src=\"thumbnails/show.php?url=http://www.php-hispano.net/images/m32.gif\" /></a></div></td></tr></tbody></table> ' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . ' <span>' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])); } if (tep_not_null($product_info['products_model'])) { $products_name = $product_info['products_name'] . '<span class="smallText">[' . $product_info['products_model'] . ']</span>'; } else { $products_name = $product_info['products_name']; }?> <span style="white-space: pre" class="Apple-tab-span"> </span> '; echo '<table border="0" cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td> TEXT_PRODUCT_NOT_FOUND))); ?></td></tr><tr><td> </td></tr><tr><td> <table border="0" cellspacing="1" cellpadding="2" width="100%" class="infoBox"><tbody><tr class="infoBoxContents"><td> <table border="0" cellspacing="0" cellpadding="2" width="100%"><tbody><tr><td width="10"> </td><td align="right">'; ?></td><td width="10"> </td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td colspan="3" height="20"> </td></tr><tr><td width="181" align="center" valign="middle"> <!-- display image --> <table border="0" cellspacing="0" cellpadding="2" align="center"><tbody><tr><td class="smallText" align="center"><!--document.write('<?php echo '[url=javascript:popupWindow('' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '')]' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ' hspace="5" vspace="5"') . '' . TEXT_CLICK_TO_ENLARGE . '[/url]'; ?>');//-->' . TEXT_CLICK_TO_ENLARGE . ''; ?> </td></tr></tbody></table><!--end display image --> </td><td width="1"><div class=\"bbIMG\"><a href=\"http://www.php-hispano.net/images/m31.gif\"><img alt=\"Imagen\" src=\"thumbnails/show.php?url=http://www.php-hispano.net/images/m31.gif\" /></a></div></td><td width="298" valign="top"> <table border="0" cellspacing="0" cellpadding="0" width="252" align="center"><tbody><tr><td class="sc2" colspan="2"> </td></tr><tr><td colspan="2" height="10"> </td></tr><tr><td colspan="2" height="15"> </td></tr><tr><td colspan="2"><strong>Artículo #:</strong> </td></tr><tr><td colspan="2"> date('Y-m-d H:i:s')) echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); else echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added']));?> </td></tr><tr><td colspan="2" height="15"> </td></tr><tr><td class="sc2">Precio: </td><td> </td></tr></tbody></table> </td></tr><tr><td colspan="3" height="10"> </td></tr><tr><td colspan="3" align="center"><div class=\"bbIMG\"><a href=\"http://www.php-hispano.net/images/m25.gif\"><img alt=\"Imagen\" src=\"thumbnails/show.php?url=http://www.php-hispano.net/images/m25.gif\" /></a></div></td></tr><tr><td colspan="3" height="10"> </td></tr><tr><td class="sc1" colspan="3"><div class=\"bbIMG\"><a href=\"http://www.php-hispano.net/images/m27.gif\"><img alt=\"Imagen\" src=\"thumbnails/show.php?url=http://www.php-hispano.net/images/m27.gif\" /></a></div> DESCRIPCIÓN DEL PRODUCTO</td></tr><tr><td colspan="3" height="10"> </td></tr><tr><td colspan="3">Aenean nonummy hendrerit mauris. Phasellus portauscipit varius mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui. Fusce feugiat malesuada odio. Morbi nunc odio, gravida at, cursus necluctus a, lorem. Maecenas trisLorem ipsum dolor sit amet, consectetuer adipiscing elit.Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus portauscipit varius mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui. Fusce feugiat malesuada odio. Morbi nunc odio, gravida at, cursus necluctus a, lorem. Maecenas trisLorem ipsum dolor sit amet, consectetuer adipiscing elit.Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus portauscipit varius mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui. Fusce feugiat malesuada odio. Morbi nunc odio, gravida at, cursus necluctus a, lorem. Maecenas trisLorem ipsum dolor sit amet, consectetuer adipiscing elit.Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris. Phasellus portauscipit varius mi. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla dui. Fusce feugiat malesuada odio. Morbi nunc odio, gravida at, cursus necluctus a, lorem. Maecenas trisLorem ipsum dolor sit amet, consectetuer adipiscing elit.</td></tr><tr><td colspan="3" height="20"><!-- AddThis Button BEGIN --><div class="addthis_toolbox addthis_default_style"><a rel=\"nofollow\" href=\"http://www.addthis.com/bookmark.php?v=250&username=xa-4b9dc42549a2881e\">Share</a><span class="addthis_separator">|</span><a class="addthis_button_facebook"></a><a class="addthis_button_myspace"></a><a class="addthis_button_google"></a><a class="addthis_button_twitter"></a></div><!-- AddThis Button END --></td></tr> <!----------------------- Not editable part --------------------------------><tr><td class="main">'; ?></td></tr><tr><td> 0) {?> $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) { $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']]; } else { $selected_attribute = false; }?> <table border="0" cellspacing="0" cellpadding="2"><tbody><tr><td class="main" colspan="2"> </td></tr><tr><td class="main"> </td><td class="main"> </td></tr></tbody></table> </td></tr><tr><td class="productListing-heading" align="center"> '.TEXT_RELATED_PRODUCTS.' </td></tr><tr><td class="productListing-data" align="center">';<span style="white-space: pre" class="Apple-tab-span"> </span> echo ''; if (mysql_num_rows($attribute_query)>0) { while ($attributes_values = tep_db_fetch_array($attribute_query)) { $products_name_slave = ($attributes_values['products_name']); $products_id_slave = ($attributes_values['pop_products_id_slave']); if ($new_price = tep_get_products_special_price($products_id_slave)) { $products_price_slave = $currencies->display_price($new_price, tep_get_tax_rate($attributes_values['products_tax_class_id'])); } else { $products_price_slave = $currencies->display_price($attributes_values['products_price'], tep_get_tax_rate($attributes_values['products_tax_class_id'])); } // show thumb image if Enabledecho '';<span style="white-space: pre" class="Apple-tab-span"> </span> } echo '<table border="0" cellspacing="0" cellpadding="2" width="100%" align="center"><tbody><tr><td class="productListing-data" align="center">'; if (MODULE_RELATED_PRODUCTS_SHOW_THUMBS!='False') { echo '<a rel=\"nofollow\" href=\"http://www.php-hispano.net/%27%20.%20tep_href_link%28FILENAME_PRODUCT_INFO,%20%27products_id=%27%20.%20$products_id_slave%29%20.%20%27\">' . tep_image(DIR_WS_IMAGES . $attributes_values['products_image'], $attributes_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"').'</a>'; } echo ' <a rel=\"nofollow\" href=\"http://www.php-hispano.net/%27%20.%20tep_href_link%28FILENAME_PRODUCT_INFO,%20%27products_id=%27%20.%20$products_id_slave%29%20.%20%27\">'.$products_name_slave.'@ '.$products_price_slave.'</a>'; }echo '</td></tr></tbody></table></td></tr></tbody></table></td></tr><tr><td> </td></tr><tr><td class="main"> </td></tr><tr><td> </td></tr><tr><td class="main"> </td></tr><tr><td> </td></tr><!-- <tr> <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td><table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main"><?php echo '[url=' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . ']' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '[/url]'; ?></td> <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr>--><tr><td> </td></tr></tbody></table> <!-- body_text_eof //--> <!-- body_eof //--> <!-- footer //--><!-- footer_eof //-->
