Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

input a set description in all new products added to cart


stuffwhol

Recommended Posts

Posted

Hi,

I would like to ad a set text into the product description so that it appears in all of the new items I create.

 

Thanks

Ron

 

Posted

When asking a question always state which version of osCommerce you are using.

 

Best option is not to add this as part of the product description, but instead to create a product_info content module.  That assumes you are using a recent osCommerce.

Posted

If you are using an older version, just alter the product_info page to include a language define where you want it to show, and add the text to the language file.

REMEMBER BACKUP, BACKUP AND BACKUP

Posted

Hello,

I am using  v2.3.4 which I think is the newest version of oscommerce.  I read both answers and I don't know where to start on the one to make a content box, it looks like a lot of code work so I probably would not be to successful at that. 

 

I tried the product info page and added this text to the top of page I downloaded.

[ define('TEXT_MAIN', 'Order this item from us by adding it to your cart and check out no payment will be required to get this quote. To best serve you please use the cart as if you were purchasing the item and put estimated quantity you would use and finishes you would need'); ]

 

This did not work, so i am thinking because it is the new version I will have to make the content box? or is there another page I can edit?

 

Thanks

Ron

Posted

You can't do it by editing a file like you are trying since the product descriptions are stored in the database. You could install an addon like Add More Fields but, from what you've stated, I think that may be too difficult, at least for now.

 

Probably the easiest way to do this would be to edit the product_info.php file in the root directory. Search for this line

<?php echo stripslashes($product_info['products_description']); ?>

and change it to

<?php echo 'Place extra text here ' . stripslashes($product_info['products_description']); ?>

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Archived

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

×
×
  • Create New...