Author Topic: product removed from basket when clicking on check out button?  (Read 1803 times)

bornamedical@gmail.com

  • Beginner
  • *
  • Posts: 14
  • A beginner
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

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3844
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: product removed from basket when clicking on check out button?
« Reply #1 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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

bornamedical@gmail.com

  • Beginner
  • *
  • Posts: 14
  • A beginner
Re: product removed from basket when clicking on check out button?
« Reply #2 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?

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3844
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: product removed from basket when clicking on check out button?
« Reply #3 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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

bornamedical@gmail.com

  • Beginner
  • *
  • Posts: 14
  • A beginner
Re: product removed from basket when clicking on check out button?
« Reply #4 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.








 

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3844
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: product removed from basket when clicking on check out button?
« Reply #5 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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

bornamedical@gmail.com

  • Beginner
  • *
  • Posts: 14
  • A beginner
Re: product removed from basket when clicking on check out button?
« Reply #6 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;


GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10416
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: product removed from basket when clicking on check out button?
« Reply #7 on: June 20, 2021, 18:51:32 pm »
Quote
if 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>
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

bornamedical@gmail.com

  • Beginner
  • *
  • Posts: 14
  • A beginner
Re: product removed from basket when clicking on check out button?
« Reply #8 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;

sirius

  • Jr. Member
  • **
  • Posts: 157
    • OCTeam
  • VirtueMart Version: 3.8.6
Re: product removed from basket when clicking on check out button?
« Reply #9 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.
J3.10.8 | PHP 7.4.28 + APC + Opcode
VM Prod : 3.8.6 | VM Test : 3.8.9.10622

bornamedical@gmail.com

  • Beginner
  • *
  • Posts: 14
  • A beginner
Re: product removed from basket when clicking on check out button?
« Reply #10 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;

sirius

  • Jr. Member
  • **
  • Posts: 157
    • OCTeam
  • VirtueMart Version: 3.8.6
Re: product removed from basket when clicking on check out button?
« Reply #11 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
J3.10.8 | PHP 7.4.28 + APC + Opcode
VM Prod : 3.8.6 | VM Test : 3.8.9.10622

bornamedical@gmail.com

  • Beginner
  • *
  • Posts: 14
  • A beginner
Re: product removed from basket when clicking on check out button?
« Reply #12 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;

sirius

  • Jr. Member
  • **
  • Posts: 157
    • OCTeam
  • VirtueMart Version: 3.8.6
Re: product removed from basket when clicking on check out button?
« Reply #13 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.
J3.10.8 | PHP 7.4.28 + APC + Opcode
VM Prod : 3.8.6 | VM Test : 3.8.9.10622

bornamedical@gmail.com

  • Beginner
  • *
  • Posts: 14
  • A beginner
Re: product removed from basket when clicking on check out button?
« Reply #14 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