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

First item on first visit disappearing from cart

Started by techwarehouse, February 02, 2017, 05:00:36 AM

Previous topic - Next topic

techwarehouse

Hi hopefully I am posting this in the right place,

Joomla V 3.6.5
Virtuemart v 3.0.18

On the first visit to the site if you add an item to basket then go checkout it is not there. If you click continue shopping then go to cart it is there.

If you go back and add another item it works or if you have visited the page before it works.

I have changed to default templates, different templates, disabled every plugin or component we have installed and it still happens.

As far as i can see it must be a VM bug I am experiencing as even on all default it still happens?

website is www.techwarehouse.co.nz/test


Milbo

Do you work with ssl? When you use ssl, you should use it per htaccess.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

techwarehouse

Hi,

I linked teh wrong site above it should be techwarehouse.co.nz/test

I have turned force ssl off and it seems to be working on the non ssl version of the site.

Can i ask what you mean?

I am using the standard htaccess file

It is also renamed as .htaccess but i am not using url rewriting.

Any help would be great please.

GJC Web Design

when u enable ssl then ALL calls to the site must be https://.....

If you add to cart and the e.g. popup link to cart is http only then the session is broken and the cart will show empty

so you can force all calls to be https in your .htaccess  ..  google the snippet needed
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

techwarehouse

Hi,

The whole site is forced ssl by default. I just turned it off then to test. To make teh problem happen you can clear browsing history, visit the site and then add an item to cart, hit go to cart and it will be gone. Next time you visit the site this wont happen unless you clear browosing history and then it will happen again.

I have turned ssl on for the whole site again now.

It seemed to have gone away when i turned ssl off completely.

techwarehouse

I have just tried it now and it seems to be working. This happened yesterday, I didn't change anything and by the end of the day the problem was back again.

I really dont know where to look or what might be causing this.

GJC Web Design

Quotehit go to cart

how?  popup, module or menu?

and carefully check the http  /  https when u reach the empty cart

I have seen this exact same problem  on multiple sites from ONLY the popup go to cart and solved by hard coding it to the hidden cart menu (padding.php)
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

techwarehouse

This is on the pop up only, I will check what you are saying now thank you :) But it sounds like you may have hit the nail on the head

How do i hardcode it?

I'm sure i can find padding.php but not sure what I should change.

Milbo

There is a switch in the padded. So you need just to enable the other option "sef_for_cart_links", it is a hidden config, maybe it solves your problem
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/