Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding A Small Text Box....


Diaz

Recommended Posts

Hi

 

I need to add a bunch of text at the end of everyone of my products. We close shop at different times in the week and I want this at the end of every product.

 

Rather than go in to each one is there an easy way to add a $ variable or something? I t will take me ages to go back to each item and ammend. Our opening times change through the year and I would have to go back in to them all again!

 

:|

Link to comment
Share on other sites

Hi

 

I need to add a bunch of text at the end of everyone of my products. We close shop at different times in the week and I want this at the end of every product.

 

Rather than go in to each one is there an easy way to add a $ variable or something? I t will take me ages to go back to each item and ammend. Our opening times change through the year and I would have to go back in to them all again!

 

:|

I'm sure there are a couple different ways of doing this but the first that comes to mind would be just creating a new define in the languages/product_info.php file and then adding the link to your catalog/product_info.php page.

 

Try this:

 

Find this in catalog/product_info.php:

 

<tr>
	<td class="main"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>
  </tr>

 

Add after:

 

	  <tr>
	<td class="main"><?php echo sprintf(TEXT_MORE_TEXT); ?></td>
  </tr>

 

Now add the following define in each of your languages/product_info.php files:

 

Find:

 

define('TEXT_MORE_INFORMATION', 'For more information, please visit this products <a href="%s" target="_blank"><u>webpage</u></a>.');

 

Add after:

 

define('TEXT_MORE_TEXT', 'Add all of the text that you want here between the quotes.');

Hope this helped you out,

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

I remember doing some extra text with STS... where is the file I need to edit that I can type the text in?

The suggestion above is not STS related, it will work with a stock osC shop.

 

To add text using STS is even easier (I did not know that you were using STS). Create a product_info template per the instructions in the STS User Manual and just add your text where you want it to be using standard HTML, Flash, CSS, etc.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

The suggestion above is not STS related, it will work with a stock osC shop.

 

To add text using STS is even easier (I did not know that you were using STS). Create a product_info template per the instructions in the STS User Manual and just add your text where you want it to be using standard HTML, Flash, CSS, etc.

 

 

Thanks for you fast replies... it has been a while since I used OSC and forgot where all the files are located. I have STS installed but it was a while ago and can not remember which version.

 

If I ask you to kindly take a look here.. www.abayofblooms.co.uk and tell me what would be the best method to add to each product ta bunch of informational text.

 

This was originally a test site that I played around with but now needs to be cleaned up and used properly.

 

Many thanks in advance.

 

Diaz

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...