Jump to content

SQL statement to generate short description


Recommended Posts

Hi,

 

Could someone please tell me how I can automatically generate the short description using an SQL statement?

 

Each of my products has a long description and I would like the short description to be first 255 characters of the long description followed by five dots (....)

 

Any help would be very much appreciated.

 

Thank you in advance.

Nick

Link to comment
Share on other sites

  • 4 months later...

Hi,

 

I didn't try the entier code. I might be possible it doesn't work. So try it locally before to run it in production. I won't be responsible for any damage to your database and shop.

 

Hi there Belenos,

great instructions, but I would be interested in a different sql query,

do you think I could extract from DB several details like:

height, weight, depth, manufacturer and insert them into the short description?

 

please also point me to the files where the code should be inserted.

your help would be much appreciated.

Huge thanks in advance

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...