VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: lindapowers on December 13, 2016, 21:02:58 PM

Title: 3.0.18.6 Minicart display issue
Post by: lindapowers on December 13, 2016, 21:02:58 PM
Hi

Was testing new version 3.0.18.6 and noticed a display issue with the minicart.

Please try adding a product, it doesn't appear in the minicart module until you reload the page or switch to another page. The minicart appears empty.

The product gets added internally since if you go to the cart is there so maybe a display issue with the minicart? or something templaters need to change?

I tried with Protostar and beez with same result.

Fatal catcher plugin from Stan shows this:
1 Call to a member function displayMediaThumb() on null in file: /websiteurl/public_html/renovada/components/com_virtuemart/helpers/cart.php line: 1775


Regards
Title: Re: 3.0.18.6 Minicart display issue
Post by: GJC Web Design on December 14, 2016, 10:42:13 AM
Hmmm .. 3.0.18.6 does introduce the thumbnail to the cart ajax in the cart helper to use in the cart module

$data->products[$i]['image']= $product->images[0]->displayMediaThumb ('', FALSE);

but can't understand why  displayMediaThumb() wouldn't be available in your helper.. ?
Title: Re: 3.0.18.6 Minicart display issue
Post by: lindapowers on December 14, 2016, 12:08:11 PM
Hi

Thanks for reply, no clue. Ill ask Spyros if not cause im using his template and for what I see, he added that function.
Title: Re: 3.0.18.6 Minicart display issue
Post by: Milbo on December 14, 2016, 12:50:26 PM
Please try at line 1775 in the cart.php (helpers)

if($withProductImages and !empty($product->images[0])) $data->products[$i]['image']= $product->images[0]->displayMediaThumb ('', FALSE);
Title: Re: 3.0.18.6 Minicart display issue
Post by: lindapowers on December 14, 2016, 14:52:44 PM
Quote from: Milbo on December 14, 2016, 12:50:26 PM
Please try at line 1775 in the cart.php (helpers)

if($withProductImages and !empty($product->images[0])) $data->products[$i]['image']= $product->images[0]->displayMediaThumb ('', FALSE);

Just tested, thanks that fixed it.
Title: Re: 3.0.18.6 Minicart display issue
Post by: Milbo on December 15, 2016, 14:32:23 PM
I reupped the version.