Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

How to add my own content (images or charts or w/e) to page


Recommended Posts

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

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?

Link to comment
Share on other sites

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 //-->
<!-- 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 :)

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...