Jump to content

How to insert an image associated with the product in your description.


Recommended Posts

After I uploaded images to a product and I clicked on info link.

"Do you want an image associated with the product in your description? Click here."

then I copied

mage tag to insert:

such as [img-27-left-home_default] to prodcuct descript and saved it so I preview my post but it still show [img-27-left-home_default] on product description.

 

Any help would be strongly appreciated.

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...
  • 3 weeks later...

i met same problem for 1.5.3.1.

 

this problem solved.

 

edit \PRESTASHOP_ROOT_DIR\controllers\front\ProductController.php

line 507

 

$reg = '/\[img-([0-9]+)-(left|right)-([a-z]+)\]/';

$reg = '/\[img-([0-9]+)-(left|right)-([a-z_]+)\]/';

 

i can show images on product description.

  • Like 1
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...