VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Mari7701 on December 05, 2019, 14:42:36 PM

Title: shopping cart remains empty
Post by: Mari7701 on December 05, 2019, 14:42:36 PM
When choosing Virtuemart, it seemed easy to set up a webshop for selling Infrared products.
I've come a long way, but I'm still running into some things.
The most important thing is that the shopping cart remains empty after ordering a product. When using the template Protostar, the website keeps waiting and there will be no shopping cart at all.
What could be going on here? Have I forgotten something?

What is a free good, easy and customizable template by the way?

URL: https://makeshop.365dagenduurzaam.nl/index.php/winkel
VirtueMart 3.6.10 10211
PHP version 7.3.10
Joomla! version Joomla! 3.9.13 Stable [ Amani ] 5-November-2019 15:00 GMT
Title: Re: shopping cart remains empty
Post by: Jörgen on December 05, 2019, 15:03:00 PM
If You have chosen BS in the VM configuration, turn it off, using BS is still BETA.

Jörgen @ Kreativ Fotografi
Title: Re: shopping cart remains empty
Post by: GJC Web Design on December 05, 2019, 18:24:15 PM
the add to cart call causes a fatal error

Als de problemen blijven bestaan, neem dan aub contact op met de systeembeheerder van deze website en rapporteer de onderstaande fout.

    0 Call to a member function createPriceDiv() on null

turn on Joomla debug so the error can be traced and post the results here

free no idea ... but excellent bug free fast ones :  https://www.olympianthemes.com/virtuemart-templates.html
Title: Re: shopping cart remains empty
Post by: Mari7701 on December 05, 2019, 21:51:08 PM
Quote from: Jörgen on December 05, 2019, 15:03:00 PM
If You have chosen BS in the VM configuration, turn it off, using BS is still BETA.

Jörgen @ Kreativ Fotografi

Can you please tell me what you mean with BS?
(I 'm Dutch, that can be the reasen I don't recognize)
Title: Re: shopping cart remains empty
Post by: Jörgen on December 05, 2019, 22:01:17 PM
BootStrap, There is a setting in VM configuration to use BootStrap versions I see that You are using BS-4 i think in Your template. Maybe You have turned this switch in VM configuration->Templates (Layout Bootstrap version)

Jörgen @ Kreativ Fotografi
Title: Re: shopping cart remains empty
Post by: Mari7701 on December 05, 2019, 22:09:08 PM
Quote from: GJC Web Design on December 05, 2019, 18:24:15 PM
the add to cart call causes a fatal error

Als de problemen blijven bestaan, neem dan aub contact op met de systeembeheerder van deze website en rapporteer de onderstaande fout.

    0 Call to a member function createPriceDiv() on null

turn on Joomla debug so the error can be traced and post the results here

free no idea ... but excellent bug free fast ones :  https://www.olympianthemes.com/virtuemart-templates.html

Thank you for your reaction. I'm definitely going to look at the template
In the meantime, I've made some progress.
One of the causes was an incomplete Joomla user management, a bit careless of me.
Meanwhile I can fill in a shopping cart and fill in the user data as a guest.
Unfortunately, the Checkout now button does not work.
You can see it for yourself on https://makeshop.365dagenduurzaam.nl/index.php/winkel/cart

The joomla debugging mode gives me no info that I understand.
Where should I have a look?
Joomla! Troubleshooting console
Session
Profile information
Memory usage
Database searches

Title: Re: shopping cart remains empty
Post by: Mari7701 on December 05, 2019, 22:13:54 PM
Quote from: Mari7701 on December 05, 2019, 21:51:08 PM
Quote from: Jörgen on December 05, 2019, 15:03:00 PM
If You have chosen BS in the VM configuration, turn it off, using BS is still BETA.

Jörgen @ Kreativ Fotografi

Can you please tell me what you mean with BS?
(I 'm Dutch, that can be the reasen I don't recognize)

I turned off Bootstrap, the layout is much better now, thanks.

I haven't been sitting still and have moved on, although it isn't far enough to get an order.
See also answer above.
Title: Re: shopping cart remains empty
Post by: Jörgen on December 05, 2019, 22:38:39 PM
Test checkout with protostar template, could be a JS issue with your template.

Jörgen @ Kreativ Fotografi
Title: Re: shopping cart remains empty
Post by: GJC Web Design on December 06, 2019, 08:16:51 AM
all the required scripts aren't loading

TypeError: jQuery(...).vm2front is not a function winkel:513:15


here:
jQuery(document).ready(function($) {
   jQuery(this).vm2front('stopVmLoading');
   var el = jQuery('#checkoutFormSubmit');
   el.unbind('click dblclick');
   el.on('click dblclick',Virtuemart.bCheckoutButton);
}); //]]>

you've got multiple jquery loading
Title: Re: shopping cart remains empty
Post by: Mari7701 on December 06, 2019, 14:38:46 PM
Thank you for the reactions, top!
As a test I activated the Protostar template and ordered a product. Now it goes without a hitch.
The own template is based on Bootstrap 4, can that be the cause? If someone knows, pleace repond?

I'm going to use a different template, hopefully the shop will continue to work.

This issue is solved! Very nice and thanks again.
Title: Re: shopping cart remains empty
Post by: Jörgen on December 06, 2019, 14:55:18 PM
It does really not matter if it is based on Bootstrap 4, it it has error or doubly loaded js, then it can be based on anything.

Olympian themes have templates that work well with Virtuemart, there may be others, but these I trust.

Jörgen @ Kreativ Fotografi