VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: bornamedical@gmail.com on June 16, 2021, 09:50:35 AM

Title: product removed from basket when clicking on check out button?
Post by: bornamedical@gmail.com on June 16, 2021, 09:50:35 AM
Hi
Joomla version : 3.9.27
virtuemart version: 3.8.8

I have recently realize that when a customer add a product to his basket and then click the check button in order to fill his address, in edit address page he encounter with a message that " your product successfully removed from basket".
Does anybody know why this happen and how can i fixed that.
Best wishes

my site is: www.bornasport.com
Title: Re: product removed from basket when clicking on check out button?
Post by: Jörgen on June 16, 2021, 14:00:36 PM
not easy to understand your language.
You use custom template, I would try to use vmbeez3 or protostar.

Jörgen @ Kreativ Fotografi
Title: Re: product removed from basket when clicking on check out button?
Post by: bornamedical@gmail.com on June 16, 2021, 14:57:31 PM
Hi
my website is based on Persian language. what can i do for you to understand my problem?
Title: Re: product removed from basket when clicking on check out button?
Post by: Jörgen on June 16, 2021, 14:59:51 PM
I have given a solution, have you tested ? I suspect this is template or checkout (OPC perhaps) related.

Jörgen
Title: Re: product removed from basket when clicking on check out button?
Post by: bornamedical@gmail.com on June 16, 2021, 16:11:52 PM
I changed the template in virtuemart configuration (template tab) as below:

Select the default template for your Shop   : protostar
Category Template   :   protostar
Cart layout   : default   (there is not any option in this section)
Category Layout : default
Sublayouts for products in category: no override
Product layout: default   

but the only changes happen in product pages. there is no change in cart page and when I press check out button in edit address page i encounter with a new error " please enter your name" although i fill the name field.








Title: Re: product removed from basket when clicking on check out button?
Post by: Jörgen on June 16, 2021, 19:26:13 PM
You have to check your fields for the user. I Guess you have disabled some field that Joomla needs. Username or similar.
Jörgen
Title: Re: product removed from basket when clicking on check out button?
Post by: bornamedical@gmail.com on June 20, 2021, 15:15:31 PM
After searching in forum, I found that the problem may be from  Jquery file.
if I wait to completely page load it will work fine and there is no problem. but when some one want to add the product before the page completely load some problems occur. for example the product won't add to the cart or in check out section the product remove from basket.
but, I don't know how to fix it? do you have any solution for this problem?
In addition, my template is based on helix 3 frame work.

best wishes;

Title: Re: product removed from basket when clicking on check out button?
Post by: GJC Web Design on June 20, 2021, 18:51:32 PM
Quoteif I wait to completely page load it will work fine

this is believable.. but how long is your page taking to load?

The fix should be to improve the load time ..  but otherwise make the add to cart button disabled ( disabled="disabled" ) and re-enable when the page is loaded

<script>
   jQuery(document).ready(function($){
          $(".addtocart-button").prop('disabled', '');
   });
   jQuery.noConflict();
</script>
Title: Re: product removed from basket when clicking on check out button?
Post by: bornamedical@gmail.com on June 22, 2021, 16:29:36 PM
It is hard to describe it for you, but it is like this:
It takes between 4 to 5 seconds that a page loaded, but it takes about 20 seconds that the circle in the tab completely stop.
do you know how can i fix it?
in addition, I don't know where to place the code that you write for me.
Thank you;
Title: Re: product removed from basket when clicking on check out button?
Post by: sirius on June 23, 2021, 09:49:38 AM
Hi all,
just a small remark

You've got two sharing system, with one that take too much time to retrieve the facebook data is your "add-this" plugin.
You should just keep only one, just do some tests without your sharing plug-ins just to find out where's the bottleneck.

You also have two woff2 fonts that return both 404 and are those which are slowing about the 25 seconds the load :
/templates/vina_dallix/pfonts/newp30.woff2
/templates/vina_dallix/pfonts/p30.woff2

This apart you should use a file aggregator for your js and css (JCH or other) to much requests.
Title: Re: product removed from basket when clicking on check out button?
Post by: bornamedical@gmail.com on June 23, 2021, 12:34:06 PM
Dear sirius
Thank you for your small beneficial remark.
based on your remark, I just copy newp30.woff and p30.woff as newp30.woff2 and p30.woff2 respectively in pfonts folder and the result was amazing. it reduced the speed of loading very much.
But I don't know my job was correct or not to copy newp30.woff as newp30.woff2.
In addition i disabled Facebook sharing icon.
best wishes;
Title: Re: product removed from basket when clicking on check out button?
Post by: sirius on June 23, 2021, 15:52:26 PM
Your welcome

If you do that, it works, but you just trick the browser without the advantage of the better woff2 compression format.

So you can try to convert woff to woff2 for example with this one :
https://everythingfonts.com/woff-to-woff2

But it not always work, just give it a try
Title: Re: product removed from basket when clicking on check out button?
Post by: bornamedical@gmail.com on June 24, 2021, 11:30:51 AM
I have not tried to convert woff to woff2 yet.
but my main problem still remain.
by this modification I can add product to my cart, but after submitting the check out button in order to fill my address, some times product removed from cart automatically (specially for users who use mobile), and a message as " product removed from basket successfully" show in check out page.
do you know how can I fix this?
although, up to now i thought that delay in loading the page is my problem.
thank you;
Title: Re: product removed from basket when clicking on check out button?
Post by: sirius on June 24, 2021, 12:37:12 PM
Just try an order under user testvm with mail ravila2895@seek4wap.com

All went fine, and I reach the CB payment page, and cancelled to go back to my cart.
Product still there (brnspt332) and indeed were corrected to a quantity from 3 to 2.

So, sorry but can't reproduce the issue.
Title: Re: product removed from basket when clicking on check out button?
Post by: bornamedical@gmail.com on June 24, 2021, 15:31:48 PM
thanks for your testing.
But i didn't know that you were testing my site and because I think it may be an attacker I delete the order and the user that you create. sorry.
I will wait and test my site in the next week to check the ordering process. it seems the process sometimes is ok and some other times not.
thank you for your attention