VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: pm4698 on October 05, 2016, 23:42:32 PM

Title: No image at virtuemart cart module
Post by: pm4698 on October 05, 2016, 23:42:32 PM
Joomla 3.6.2
Virtuemart 3.0.18

When i add products to cart, when i go to see the products in the cart from the virtuemart module cart, i see all data normally except from image. At image i see for all products this path:
http://www.mywebsite.com/ and no image at all.

I saw that inside module the image is called like this:
<?php echo $product["image"]; ?>

From other elements (like category view or productdetails view) i saw that the image is called like this:
<?php echo $product->images[0]->displayMediaThumb('class="browseProductImage"'false); ?>

I tried this but i got a blank template after this.

Any ideas?

Thank you in advance
Title: Re: No image at virtuemart cart module
Post by: Ghost on October 06, 2016, 11:01:32 AM
Default VM cart module does not show images. You must be using a 3rd party module or template with VM overrides.
Title: Re: No image at virtuemart cart module
Post by: pm4698 on October 06, 2016, 11:11:50 AM
Yes, maybe, but what is the code to show the thumb of a product?
Title: Re: No image at virtuemart cart module
Post by: jenkinhill on October 06, 2016, 12:03:37 PM
http://www.mywebsite.com/     useful URL...........
Title: Re: No image at virtuemart cart module
Post by: pm4698 on October 06, 2016, 12:16:44 PM
I don't think that this should bother so much! Assume a web address. The problem is that i have posted the code used and the code i use and still i have a result like this. If you could figure out the issue by visiting website check here:

https://goo.gl/VNfcVw
Title: Re: No image at virtuemart cart module
Post by: GJC Web Design on October 06, 2016, 15:11:23 PM
that is the code to show when your in the browse view

the module doesn't have an image so u must be using a 3rd party one

in my cart mod I use

foreach ($cart->products as $cartproduct) {
                      if ($product['product_sku'] == $cartproduct->product_sku ) {
                  $image = $cartproduct->images[0]->displayMediaThumb ('', FALSE);
                      }