Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to Remove?


Guest

Recommended Posts

find:

 

[code<tr>
<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
</tr>[/code]

 

in product_info, & comment out or delete

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

find:

 

[code<tr>
<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
</tr>[/code]

 

in product_info, & comment out or delete

 

What would we do without u!

Thanks

Link to comment
Share on other sites

find:

 

[code<tr>
<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
</tr>[/code]

 

in product_info, & comment out or delete

 

Hi, I also want to remove this text. I went to product_info, it consisted of about 10 lines, none with that text.

I found in /includes/languages/english/product_info where it was defined.

 

I found the text in /templates/[template name]/content/product_info.tpl.php. As it was part of an if/else statement, I commented out all of it. It was a mess. It displayed all the // in lines as part of the description of my product, in red said 'this product will be available on' and still showed the date it was added.

 

 

THis is the text I commented out

 

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {

?>

<tr>

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>

</tr>

<?php

} else {

?>

<tr>

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>

</tr>

<?php

}

 

Is there somewhere else I can look for this text?

 

Appreciate any help thank you.

Everything's easy when you know how.

Link to comment
Share on other sites

templates are outside the scope of this forum as they are modified from the original.

 

This forum is for support of core osC versions

 

Your best bet it to seek support from your template provider.

 

Otherwise apply changes I gave to code where you find it. You may need to comment out within the php section as well as the html.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

templates are outside the scope of this forum as they are modified from the original.

 

This forum is for support of core osC versions

 

Your best bet it to seek support from your template provider.

 

Otherwise apply changes I gave to code where you find it. You may need to comment out within the php section as well as the html.

 

Thanks for responding Sam.

I didn't realise templates were different, being that I am a total noobie and am trying to learn via the forums.

Unfortunately, I don't have the luxury of getting support from the template provider as I purchased my website from someone.

 

I have no idea what your comment about the php and html means. I guess there is more than one place I have to look so I will just keep opening files hoping to find something I can recognise.

Colleen

Everything's easy when you know how.

Link to comment
Share on other sites

this is the code you found:

 

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {

?>

<tr>

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>

</tr>

<?php

} else {

?>

<tr>

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>

</tr>

<?php

}

and this bit is what i said remove:

 

<tr>

<td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>

</tr>

 

the green bit is html, the red php

 

<tr>

<td align="center" class="smallText"> <?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?> </td>

</tr>

 

so to comment out you would have:

 

<!-- <tr>
<td align="center" class="smallText"><?php // echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
</tr> -->

 

But as this is a template, this may not work or have un-expected results, thats why those that know don't use them.

 

The general rule is templates are often badly coded, to need to be a good coder to alter, but poeple that buy templates are rarely good at coding, infact I often wonder at the coding skills of the template writers too.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

the green bit is html, the red php

 

<tr>

<td align="center" class="smallText"> <?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?> </td>

</tr>

 

so to comment out you would have:

 

<!-- <tr>
<td align="center" class="smallText"><?php // echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td>
</tr> -->

 

 

Sam, thank you for that explanation - the colours delineated it beautifully for me.

 

This site I bought seems to have 3 templates, at least it has 3 folders for them. I went in to the product_info file in every one and made the changes you gave me. I got it on the final one!

 

Again, thanks for taking the time to help!

Colleen

Everything's easy when you know how.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...