prestashop cart block disappeared - php

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 :(

Related

Prestashop 1.7.7.8 Ajax cart doesn't update when Add to cart buttons are clicked

We are working on a Prestashop website with Prestashop 1.7.7.8, first we tried a theme called Akira, and after a few days we finally changed it to Warehouse theme.
The problem started when we changed the theme. Have tried also with the Classic Theme, and doesn't work either.
When you click any "Add to cart" button, the button shows a spinner for 1 second, then nothing happens. If you refresh the page, then the cart item count is increased by 1 unit, which is right, but need to update without refreshing.
If you click on the cart icon, the dropdown opens, but you can't delete any item, the trash button doesn't work. But if you decrease the quantity of that product, the change is saved (the cart item count doesn't update, anyway, until you refresh the page, but when you reload, the unit is decreased).
We have tried with various PHP versions: 7.4, 7.3, 7.2... nothing seems to work. Also, the PS cache is disabled and deleted between every attempt.
Tried a few times to disable all modules in the module manager section, also have checked the options of overrides, disabling it, and the non-native modules in the performance section didn't help anyway.
When we run in debug mode, nothing strange appears. In the Chrome inspector, there isn't any javascript error (only some yellow warnings about js.map missing files).
Anyone to help, please?
Check the cart answer in the Chrome inspector Network TAB with enabled debug mode. Maybe you can see the error message
This error can sometimes occur even if you are not using HTTPS.

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.

Woocommerce cart items keep reappearing

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.

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/

After clearing cookies, the first product added to cart also adds a previous ordered product

I have a really bizarre problem.
After updating Prestashop to the latest version (1.5.6.2), if I clear my browser cache and cookies, go to my site and add a product to the cart it also adds another product from a previous cart. My products have custom text fields, so I can see this other product added is from a previous cart as there is someone else's personalized text. If I delete this mistakenly added product though, and add further products, I don't get this issue. It only happens after clearing the browser cache and cookies.
Where can I start to try and find the cause of this? The prestashop site and forums prove no help and never get an answer there.

Categories