eSport Cart image not upload

Winter sport ecommerce template for Joomla with VirtueMart support
GK User
Thu Aug 08, 2013 12:10 pm
Hello everyone.
I want to share with many and try to solve the problem.
Here's an example
Image

How to fix it?
I found a file that is responsible for: ../templates/gk_esport/html/mod_virtuemart_cart/default.php
And there's this code:
Code: Select all
    <img src="<?php echo $images[$product['product_sku']]; ?>" alt="" width="90" height="90" />   

I closed it:
Code: Select all
                <!-- <img src="<?php echo $images[$product['product_sku']]; ?>" alt="" width="90" height="90" />   -->

and received
Image

But I want to point out that there is a code that is responsible for the image.
I Think

Code: Select all
      // get the images
      $query2 = $db->getQuery(true);
      $query2->select('`m`.`file_url_thumb` AS `file`, `p`.`product_sku` AS `sku`');
      $query2->from('#__virtuemart_products AS p');
      $query2->leftJoin('#__virtuemart_product_medias AS `pm` ON `pm`.`virtuemart_product_id` = `p`.`virtuemart_product_id`');
      $query2->leftJoin('#__virtuemart_medias AS `m` ON `m`.`virtuemart_media_id` = `pm`.`virtuemart_media_id`');
      $query2->where('`p`.`virtuemart_product_id` IN('.implode(',', $pids).')');
      $query2->order('`pm`.`ordering` ASC');
      $db->setQuery((string)$query2);
      $pimages = $db->loadObjectList();
      
      $images = array();
      // get the first products images
      if ($pimages) {
         foreach($pimages as $image) {
            if(!isset($images[$image->sku])) {
               $images[$image->sku] = $image->file;
            }
         }
      }
   }
}

He can not upload it. Has anyone solved this problem?

I'm sorry but the forum did not find an answer.
.

Now on russian

Привет всем.
Хочу поделиться со многими и попробовать решить проблему.
Вот пример: http://i.imgur.com/AX8fRx4.png
Как исправить ?
Я нашел файл отвечающий за это: ../templates/gk_esport/html/mod_virtuemart_cart/default.php
И там вот такой код: смотрите выше
я его закрыл : смотрите выше
и получил: смотрите выше

Но я хочу отметить что там есть код, отвечающий за изображение.
Он не может подгрузить его. Кто-нибудь решал данную проблему ?

Простите но на форуме не нашел ответа.
User avatar
Fresh Boarder

teitbite
Fri Aug 09, 2013 6:15 am
Hi

First of all please try to change the name of /html/mod_virtuemart_cart/default.php to /html/mod_virtuemart_cart/_default.php

It's to check if the problem is comming from VM ir template.

Show me Your site than.
User avatar
Moderator

GK User
Sat Aug 10, 2013 11:04 am
User avatar
Fresh Boarder

teitbite
Mon Aug 12, 2013 8:04 am
Hi

Have you checked if its working when the override is renamed. This is very important. This problem may be related to vm itself.
User avatar
Moderator

teitbite
Mon Aug 12, 2013 8:06 am
Hi again.

Send me an access to FTP please. I will need it if this will be a template issue. So can make this test myself.
User avatar
Moderator

GK User
Mon Sep 23, 2013 2:38 pm
Hello.
I too, there was the exact same problem - the product image is not displayed.
Found a solution to this problem?
User avatar
Fresh Boarder

GK User
Mon Sep 23, 2013 3:10 pm
wemon wrote:Hello.
I too, there was the exact same problem - the product image is not displayed.
Found a solution to this problem?

http://odessey.com.ua
User avatar
Fresh Boarder

teitbite
Fri Sep 27, 2013 11:51 pm
Hi

Sorry for delay. I was not able to work for last couple days. @Wemon, please send me an access to ftp. I need to see why image path cannot be found at all.
User avatar
Moderator

GK User
Sat Sep 28, 2013 5:31 am
teitbite wrote:Hi

Sorry for delay. I was not able to work for last couple days. @Wemon, please send me an access to ftp. I need to see why image path cannot be found at all.


Hello, I sent ...
User avatar
Fresh Boarder

teitbite
Mon Sep 30, 2013 7:41 pm
Hi

It's fixed now. I've changed one line in file /html/mod_virtuemart_cart/default.php line 37, from:

Code: Select all
      $query2->select('`m`.`file_url_thumb` AS `file`, `p`.`product_sku` AS `sku`');


to

Code: Select all
      $query2->select('m.file_url AS file,p.product_sku AS sku');


looks like the "file_url_thumb" do not exists in this tables.
User avatar
Moderator

GK User
Tue Oct 01, 2013 12:58 pm
Hello
Thank you for your help ...
User avatar
Fresh Boarder

teitbite
Tue Oct 01, 2013 1:07 pm
Hi

No problem. I'm glad I could help :)
User avatar
Moderator


cron