Hej
Jeg har lidt problemer. Vi har modificeret en del i min shop, og derfor kan jeg ikke finde stederne hvor disse kodestykker skal indsættes:
Index.php:
FIND (Around line 136)
<tr>
<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
</tr>
ADD UNDER:
<!--- BEGIN Header Tags SEO Social Bookmarks -->
<?php if (HEADER_TAGS_DISPLAY_SOCIAL_BOOKMARKS == 'true')
include(DIR_WS_MODULES . 'header_tags_social_bookmarks.php');
?>
<!--- END Header Tags SEO Social Bookmarks -->
FIND (Around line 298)
<td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
REPLACE with
<?php /*** Begin Header Tags SEO ***/ ?>
<td align="right"><?php echo tep_image(DIR_WS_IMAGES . $image, $htc['htc_title'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
<?php if (tep_not_null($htc['htc_description'])) { ?>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td colspan="2"><h2><?php echo $htc['htc_description']; ?></h2></td>
</tr>
<?php }
/*** End Header Tags SEO ***/
?>
product_info
FIND (around line 102)
<td class="pageHeading" valign="top"><?php echo $products_name; ?></td>
<td class="pageHeading" align="right" valign="top"><?php echo $products_price; ?></td>
REPLACE with
<?php /*** Begin Header Tags SEO ***/ ?>
<td valign="top"><h1><?php echo $products_name; ?></h1></td>
<td align="right" valign="top"><h1><?php echo $products_price; ?></h1></td>
<?php /*** End Header Tags SEO ***/ ?>
NOTE: In any page in which you make the change to the title for Header Tags,
you should also locate the line containing HEADING_TITLE, remove the
pageHeading class and add the h1 tags as above.
7) In includes/header.php,
FIND: (Note: the code shown is for an MS2 shop. The only difference between it
an RC2 shop is the name of the image. So when you replace the code, be
sure to change the image name to whatever is correct for your shop.
<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?></td>
REPLACE with:
<?php /*** Begin Header Tags SEO ***/ ?>
<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', (tep_not_null($header_tags_array['logo_text']) ? $header_tags_array['logo_text'] : STORE_NAME)) . '</a>'; ?></td>
<?php /*** End Header Tags SEO ***/ ?>
Er der nogle der kan hjælpe mig, ved evt. at poste deres den måde de har indsat deres?
KH
Michelle