carthrina Posted March 23, 2007 Posted March 23, 2007 Hello everybody here.. I'd like to make a slight change in my os product_info.php cuz i think it's very important.. In my shoppingcart the options say sizes are at the button of the page just under the description.. and since the description text is too long, then the costumers cannot see the Options easily.. I would like to remove the Option to the product info field just under the image click to enlarge for example.. Your help is appreciated.. Thank you
carthrina Posted March 24, 2007 Author Posted March 24, 2007 Hey where are you folks? Three days waiting and got no one reply!! :) Hope someone would be generous with me and help me :) lol Thank you folks..
Guest Posted March 28, 2007 Posted March 28, 2007 Hello again. We must stop meeting like this :lol: This works for me. Open product_info.php Look for these lines (about line 120 on a vanilla file) </table><BR><?php<BR> }<BR>?><BR> <STRONG><p><?php echo stripslashes($product_info['products_description']); ?></p></STRONG><BR><?php<BR> $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS, etc The line you will need to modify is in bold Copy this line and then comment out the php query like so <p><?php /* echo stripslashes($product_info['products_description']); */ ?></p> Go down to approximately line 159 and look for the following code . ']', $products_options_array, $selected_attribute); ?></td><BR> </tr><BR><?php<BR> }<BR>?><BR> </table><BR><?php<BR> }<BR>?><BR><STRONG>& </STRONG> </td><BR> </tr><BR> <tr><BR> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td><BR> I put the bold & in there. This is where you will put the line of code that you copied. Make another line between the ?> and </td> where the asterick is. Paste the code you copied from above into the new line. It should now look something like this <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td><BR> <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td><BR> </tr><BR><?php<BR> }<BR>?><BR> </table><BR><?php<BR> }<BR>?><BR> <p><?php echo stripslashes($product_info['products_description']); ?></p><BR> </td><BR> </tr><BR> <tr><BR> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td><BR> </tr><BR><?php<BR> $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); I have shown a few extra lines above and below so you can make sure you are in the right place. That in effect moves the product description from above the product attributes to below them. Soon. Mark.
Guest Posted March 28, 2007 Posted March 28, 2007 All the code inserts mucked up. Was trying to edit it all but it timed out on me. Try again. Open product_info.php Look for these lines (about line 120 on a vanilla file) </table> <?php } ?> && <p><?php echo stripslashes($product_info['products_description']); ?></p> <?php $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS, etc The line you will need to modify is marked with 2 &'s Copy this line and then comment out the php query like so <p><?php /* echo stripslashes($product_info['products_description']); */ ?></p> Go down to approximately line 159 and look for the following code . ']', $products_options_array, $selected_attribute); ?></td> </tr> <?php } ?> </table> <?php } ?> && </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> I put the 2 &'s in there. Make another line between the ?> and </td> where the &'s are. Paste the code you copied from above into the new line. It should now look something like this <td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td> <td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td> </tr> <?php } ?> </table> <?php } ?> <p><?php echo stripslashes($product_info['products_description']); ?></p> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); I have shown a few extra lines above and below so you can make sure you are in the right place. That in effect moves the product description from above the product attributes to below them. Lets see how that looks
carthrina Posted March 30, 2007 Author Posted March 30, 2007 WwaaaaW !! It worked Mark, it really worked, you are genuis ^_^ Really perfect... Thank you thank you so much my dear friend ... Love, peace and Big MAC... lol
Recommended Posts
Archived
This topic is now archived and is closed to further replies.