jeonghyunhan Posted March 7, 2010 Share Posted March 7, 2010 I have five links in the navigation bar near the top and changed one of them from "specials" to "sizes". Now I want to add images of my own onto the page but cannot figure out how to do so. Can anyone assist me? Thank you. Link to comment Share on other sites More sharing options...
multimixer Posted March 7, 2010 Share Posted March 7, 2010 The "specials" page is obviously displaying all specials you have And what do you want the "sizes" page to be? What are he images you want to add? product images, static images?? My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
jeonghyunhan Posted March 7, 2010 Author Share Posted March 7, 2010 Well i looked through the documentation that came with the template and I read how to add "boxes" but it seemed really confusing so I just changed the "specials" text to "sizes" in hopes that it would be simpler, but apparently it isn't? In the sizes page I wanted to add charts or possibly scanned images of the charts itself showing the measurements of each clothe size. Like for example, someone wants to order a dress and we need to know their bust, waist and hip measurements so that they match the size label (XS = bust:33.5, waist:25.5, hip:35.5). That is the best I can explain it =]. Link to comment Share on other sites More sharing options...
multimixer Posted March 7, 2010 Share Posted March 7, 2010 Changing the name of the link doesn't affect the content of the site displayed of course. Did you expect this to happen? So, if I understand correctly the page will contain a set of static images right? You don't want those images to change according to the product or category, they are always same. Is it so? My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
jeonghyunhan Posted March 7, 2010 Author Share Posted March 7, 2010 That is correct. Link to comment Share on other sites More sharing options...
multimixer Posted March 7, 2010 Share Posted March 7, 2010 So, ok, you can go as follows: 1) Create the page 1.1) Find the file privacy.php, copy it and name it sizes.php 1.2) Open file includes/filenames.php and add before the last ?> define('FILENAME_SIZES', 'sizes.php'); 1.3) Open the file and delete everything that is under <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </table></td> <!-- body_text //--> and before <!-- body_text_eof //--> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> leaving the code posted here in place 1.4) Inset into the empty area the images you want in the same way you would do in plain html. You can use tables or divs, make some new css definitions, as per your needs Upload all altered files. The page is now accesible under mydomain.com/catalog/sizes.php 2) Link to the page There are many options to make a link to the new page, so, lets make a link in the product info page 2.1) Open the file product_info.php and find the line <p><?php echo stripslashes($product_info['products_description']); ?></p> add right under it following <p><?php echo '<a href="' . tep_href_link(FILENAME_SIZES) . '">' . TEXT_CHOOSE_SIZE. '</a>'; ?></p> 2.2) Open the file includes/languages/english/product_info.php and add before the last ?> define('TEXT_CHOOSE_SIZE', 'Choose your size'); Done :) My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.