News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

3.0.18.6 Minicart display issue

Started by lindapowers, December 13, 2016, 21:02:58 PM

Previous topic - Next topic

lindapowers

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

GJC Web Design

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.. ?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

lindapowers

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.

Milbo

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);
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lindapowers

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.

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/