Jump to content

max0509

Members
  • Posts

    6
  • Joined

  • Last visited

Profile Information

  • Activity
    Developer

max0509's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. If I do a search on your website it shows images.
  2. It seems like it's working again, how did you fix it? I'm having the same problem. Missing the data.search_imgl value in array.
  3. Hi Prestashop users, I'm working on a new theme for our shop but when I clear the cache it gives the following error: Notice: Trying to get property of non-object in .../override/classes/controller/FrontController.php on line 7 Fatal error: Call to a member function assign() on a non-object in .../override/classes/controller/FrontController.php on line 7 Disabling override in 'Debug mode' and renaming the FrontController solves the problem. This is the content of the override file: <?php class FrontController extends FrontControllerCore { public function __construct() { $this->context->smarty->assign('isMobile', $this->context->getMobileDevice()); parent::__construct(); } } Thanks in advance. -- PS 1.6.0.14
  4. Fixed it using this line: return "<img src=\"" + baseDir + "img/p/" + data.image.split('').join('/')+"/" + data.image + "-home.jpg\" alt=\"" + value + "\" />" + value;
  5. Been experimenting again with this but still no luck. As I said before the image path is this: img/p/6/7/0/0/9/67009-small.jpg My guess is that I need to read the id_image instead of id_product. Originally the line looked like this: tmp_value= "<img src=\"" + baseDir + "img/p/" + data.id_product + "-" + data.image + "-small.jpg\" alt=\"" + value + "\" />" + value; I changed it to this which somehow makes more sense if you look at the image path and gives this as the img source "img/p/35234/67009-small.jpg": tmp_value= "<img src=\"" + baseDir + "img/p/" + data.id_product + "/" + data.image + "-small.jpg\" alt=\"" + value + "\" />" + value; If I edit "data.id_product" to "data_id_image" I'm getting "img/p/undefined/67009-small.jpg": tmp_value= "<img src=\"" + baseDir + "img/p/" + data.id_image + "/" + data.image + "-small.jpg\" alt=\"" + value + "\" />" + value; I hope someone knows a solution.
  6. Hi there, I've tried this method but it doesn't show the product image. It only displays the /p-default-mini.jpg (in our case: 404.gif). We do have a lot of images and subdirectories in the img map, maybe that has something to do with it? Example of an image path: img/p/6/7/0/0/9/67009-small.jpg We are running on Prestashop 1.4.8.2. Thanks!
×
×
  • Create New...