Solution to the Problem of ubercart for drupal6.x not displaying images

Source: Internet
Author: User
Tags ubercart

Ubercart found that the product image is not displayed under drupal6.x. It may be a bug in imagecache, but it has not been found to effectively solve the imagecache bug. Therefore, the following solutions are currently used.

Add the following content to the template. php file of theme:

Function Phptemplate_imagecache ( $ Namespace ,   $ Path ,   $ Alt   =   '' ,   $ Title   =   '' ,   $ Attributes   =   Null ){
Return   ' ' .   $ Path   . ' "Alt =" ' . Check_plain ( $ Alt ) . ' "Title =" ' . Check_plain ( $ Title ) . ' " ' .   $ Attributes   . ' /> ' ;
}

Add it to theme's style.css

. Product_image. thmr_call img {
Width : 80px ;
Height : 80px ;
}

 

This can solve the problem of not displaying images, but the informal solution. Imagecache is expected to fix this bug.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.