Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] Short Description in products


nicko107

Recommended Posts

Hello

 

This contribution add a short description to products in modules and in products listings

 

 

Short Description in products

 

http://www.oscommerce.com/community/contributions,4452

 

 

 

OVERVIEW:

 

The short description is taken of product description, its taken of firts 80 to 200 charapters of product description. Can customize the number of charapters.

 

Add a "read more" link and a cart icon button to add the product to shopping cart.

 

Its easy to install and no require changes in database.

 

 

 

 

DEMO at:

 

http://www.oscommerce-demo.com/short_description/

 

 

CHANGES:

 

This modification applied to:

--------------------------------

 

- What?s new module of column left

- Specials module of column right

- New Products For month.. in products of central modules

- Also Purchased Products central modules that appear in product description

- Specials page that listed the products in offer

- New Products list

- Product listing, list of products of categories, subcategories, products of a manufacturers and search results.

 

*Included instructions for applied to modules of contributions:

- Featured Products - in products of central module

- Specials on Default.php - in products of central module

 

 

Include instructions in english and spanish,

screenshots,

cart icon in black color and white color - (transparent GIF and posibility to multiple languages)

cart icon in PSD format to customize it

and all files modifieds for new shop without modifications or contributions installed.

 

 

The function used in contribution to querry database for description are for other contribution, but I can remember the contribution, the credict for it is for the author of this code, I only add the function to remove html and php tags for description taken, and the read more link and cart icon to add shopping cart the product, And the adaptation to the all files that display a products in modules. Is any Know the author of this function please post here or in a new version of contribution.

 

 

 

Support forum in spanish at:

 

http://oscommerce.qadram.com/modules.php?n...pic&t=11397

 

and:

 

http://foros.oscommerce-tutoriales.com/ind...topic,20.0.html

Edited by nicko107
Link to comment
Share on other sites

  • 1 month later...
I would like to know if it's possible that the short description includes the HTML TAGS that i have in Product Description

 

Hi

 

For prevent unclosed tags I used the function strip_tags:

 

strip_tags($description['products_description'])

 

because if the short description taken for example a <table> without close it could be breack the layout of the page, or other tags can do that, and for prevent this is better used this function.

 

I don?t know if there are other method to do this but including some tags

Edited by nicko107
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.

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...