Woocommerce cart items keep reappearing - php

i made a video of the woocommerce cart issue a friend of mine has with his store https://streamable.com/augha
i cannot reproduce it here, on other pc's. Nor can i reproduce it on my mobile phone.
This was yesterday... But now today the problem seems to be expanding to the moment it seems that customers from belgium are also getting this problem. In the past we have never had problems with Belgium, and yesterday we also received a Belgian order with several articles without any problems.
But another order we have to make a payment link because he did not manage to get more than 4 items in the basket.
The remarkable thing I find that the Belgian where we made a payment link initially got 15 hoodies in his shopping basket, and the next day the basket was empty and he could add up to 4.
So it seems that in certain occasions the cart will go fubar... Anyone else experienced this ?

It looks like a caching issue. You may want to try disabling all other plugins to see if that helps.

Related

Woocommerce show published date on shop page and not the modified one

thank you for your attention.
Hoping someone will be able to kindly give me some feedback on how to correct the code necessary for my site. Before starting, I would like to state that I'm not in any way a php expert. I can do my best to follow easy instructions, but anything harder, may be not possible.
After installing and tweaking Woocommerce on my Wordpress site, I discovered that both the shop page and the single product page wouldn't show the published date.
So, I tried to search online for some way to fix it and found the following thread: Woocommerce show product published date on shop page
I tried to use the reported code and it worked almost perfectly; the date get nicely showed in the product page, whilst I met a little problem on the shop page: it would show correctly the date of only the first product of the actual page(so, only 1 of 9 products would show the date; the same thing would happen if I moved to the next page).
Searching for some ways to fix that problem, I did find another similar code, which would display the date of the last modification(Display the modified date of every product on Woocommerce shop page); I tried to integrate part of that code and it finaly showed the date for each product, on the shop page.
But, there is still a problem: it show the last modification date and not the published one, which cause it to show some wrong dates(for example, the products are set in order of when they got published, but then you can see an old product with a more recent date in the middle of other old products with the right date).
The actual code I'm using now is the following:
add_action( 'woocommerce_after_shop_loop_item', 'wc_shop_page_product_date', 100 );
function wc_shop_page_product_date()
{
global $product;
echo '<br><span class="date_published">Uscito il: ' . $product->get_date_modified()->date('d/m/Y') . '</span>';
}
I attempted multiple times to change the "modified date" to the "published date", which resulted in the site crashing and forcing me to restore everything to default settings(without plugins and default theme, and spending a few minutes reactivating everything), so, after the umpteenth failed attempt, I gave up, deciding that it would be best to try to find some help from someone a bit more expert, before risking to completely corrupt the site.

Remain constant Woocommerce prices regardless of tax rate - B2C

Note - im new, so please be kind. If anything isnt clear please tell me, so i can improve my questioning!
As a person who lives in europe and sells products to end-consumers, the following problem is very ipmortant and in my opinion heavily under-prioritised.
There are a lot of conversation regarding this issue. In the following one #MikeJolley (owner of the wocommerce github repository) was also involved(github.com issues/4131) and linked to the site - How Taxes Work in WooCommerce where you can find the following filter to remain the prices constant regardless of the tax rate
add_filter( 'woocommerce_adjust_non_base_location_prices', '__return_false' )
By using the filter you can achieve the following:
Example 1: Selling from GB (with their 20% tax rate) to Germany. The price of the product is 9.99 including tax. GB based sellers do not need to charge tax for physical goods in Germany.
Price = 9.99 (the same)
Tax = 0 (no tax is charged
The German would pay 9.99 for the product, the same as GB people.
Example 2: Let's take the same above example, but consider a digital good where tax would apply of the rate 19%.
Price = 9.99 (the same)
Tax = 9.99 / 1.19 = 8.39 (slightly less than GB)
The German would again pay 9.99
The Problem:
For a few weeks i put the filter in my functions.php and solved the isse, unfortunately after the last Woocommerce update the mentioned filter triggers the following post call - wich executes in a infinite loop - again and again (see firebug network tab).
https://testsite.com/online-shop/?wc-ajax=get_refreshed_fragments
My request
Any idea how to solve this Problem - or any other way to remain the prices constant? Im not interested in heavy or paid Plugin solution wich slow down my site. Thank you so much
EDIT:
After some research i came across with the following:
Refresh fragments infinite loop #10940 and Fix for #10940 - wc_cart_hash
It seems there is woocommerce bug wich is still not resolved entirely. I closed my other windows and the problem is gone. What a waste of time...
After some research i found the problem. It is a woocommerce core problem - look at Refresh fragments infinite loop #10940 and Fix for #10940 - wc_cart_hash
wc_cart_hash was used as a key for localStorage
for all WooCommerce sites. If you were to load your
cart for two different sites in the same browser,
the two WooCommerce pages would contend over this key
and loop on trying to set this key in the localStorage
This commit prepends the site's ajax URL onto the wc_cart_hash
key name in localStorage, providing a unique key for each
WooCommerce site. This ends contention over the keys.
It seems the woocommerce bug is not resolved entirely...
I closed my other windows and the problem is gone. Hope this helps others with the same problem.
UPDATE:
The problem also happens if you open a new Tab where you view a live preview (under Appearance - Themes) of another woocommerce theme in the backend... In my case i checked a few changes of a earlier theme.

Word press Cart update issue

I have developed a wordpress website on my local server which works perfectly. The shopping experience of adding items to the basket and checkout works as expected but when I transferred it to the live server, this stops working correctly (the Mini Cart doesn’t update, and items get deleted automatically).
Despite previous suspicions, there is no custom code involved – the only variable is the live server.
I wonder if you please advise on what might possibly be going on, and if you’ve seen something similar before – perhaps cache/refresh/something else??
The website is approaching the launch date, and this is the final mystery.
Steps to find the issue:
Basket(cart) with zero item should display mini cart with empty basket message
Add two or more item to the baske, you have to refresh the page to get updated and once you navigate away from that page, the icon stop working.
I have cleared the cahce, and searched all over internet but no solution.
Site: http://www.test2.hydro-x.co.uk/

prestashop cart block disappeared

I found a problem in my webpage after days since last modified. The block cart disappeared from page. It is available, it is linked to the top, it worked well but now I don't know if maybe other person has modified it or what because it disappeared from day to night.
The web is venuspleasure.com and the cart WAS right in the menu bar. It also disappeared the add to cart button. I looked from solutions online and I tried to put available the user block and the cart (they already were but I refresh them) I now php so you can explain me if you see something in my code. Maybe I delete something, dunno :(

Payment Options not appearing in Magento

a bit of a funny one for you this afternoon.
This is in Magento 1.5.1.0...
Essentially, my website sells products that are free (£0.00) however the customer has to pay for delivery. The problem that I’m having, is that at checkout, the Payment Methods simply doesn’t load whenever the basket sub total is 0. Even when the Grand Total with Shipping is an amount.
I’m running One Step Checkout, however it doesn’t work on the default One Page Checkout either.
I’ve tried everything, and I’m certain that it’s not got anything to do with the Payment Gateways that I’m using.
I tried the same thing on another site of mine, that’s running 1.4 and it works fine on there?
You can see a screenshot of the page with the problem here...
Any help would be really appreciated.
Check that you have: "Zero Subtotal Checkout" enabled under: System -> Configuration -> Payment Methods.
Subtotal is pre shipping, tax and discounts, this payment option exists specifically for your circumstance.

Categories