Magento 2 2.3 Full Page Cart issue - caching

Is currently working on a new M2 2.3 site to replace my M1.
Almost done but I have found an issue with the cart and full page cache.
When full page cache is enable and I add a product to cart its all good. But when I move to another category and add another product the cart gets empty and start all over again.
If I disable the full page cache the cart works fine.
Anyone have an idea of what i might be?
The site is still in devolopment.

It might be related to the Magento_Persistent module. There is a native bug with FPC when you disable this module. The issue has been reported in the link below:
https://github.com/magento/magento2/issues/21614

Related

Magento 2 Bundle Product Cache

I'm working on a site developed by a third party, which is Magento 2.1 and uses bundle products heavily. Most of the bundles are made of 260 child products as a choice, and inevitably makes loading the product page for them incredibly slow.
On Mage 1 it was simple enough to use Full Page Caching to cache the bundle product options and speed up the load with pre-caching, but FPC in Mage 2 is clearly very different.
The main slowdown appears to be from the form and options blocks called in the catalog_product_view.xml for the theme, as they iterate over all the child products before rendering the page, so I've tried adding;
cacheable="true"
To those specific blocks, but it's made no difference.
Anyone have any other idea's for how to cache Magento 2 bundle product pages?
EDIT EDIT
I've just tried plugging the database into a fresh install of Magento 2.1 and can see that bundle products are being added to the var/page_cache directory. On the client server, the only thing being written to that directory are tags and header info.
So then new angle... why would Magento 2 not write any FPC html to the page_cache directory? Something higher up the tree has erroneously has cacheable=false set against it perhaps? I'll get digging
Sorry, I cannot comment your last post.
Do you try to use Varnish as the HTTP cache ? Magento recommendation is to use Varnish and Redis as cache backend.
So I found the issue, and it was a mistake made by the people who built the site, and the module creators of magepal magento2-googletagmanager. In both instances, the blocks had;
cacheable="false"
in the layout XML. Setting this on any block on a page will stop the whole page from cacheing. So remove that line, and add;
$this->_isScopePrivate = true;
In to the blocks __construct function. Problem solved.

magento broken shopping rule page

I have a problem on magento backend that I am not sure what is happening. Shopping cart price rule was working completely fine, but suddenly the rule page look like this:
screenshoot of shopping rule page
The content of each tab is loaded inside the tab div itself instead of on the content area on the right. Content area is completely empty.
No code was touched in relation with promotions code, or admin/core code at all. I don't see any issue on console or not js code loaded. This is the only page affected (shopping cart price rule page), catalog rule works fine as well as any other with same structure (product page, customer page and such).
I was recently playing around with promotion too much, creating, deleting and editing. And solved a 500 issue on cart page increasing php memory limit. Not sure if related with this issue.
On apache logs it only displays the following when I access that page:
client denied by server configuration: /www/app/etc/local.xml
Could someone help me in where to look in order to solve this issue or have a hint about what could be the issue?
I am completely lost with this one. Magento version 1.7.
Thanks.
I finally found the issue. It was a extension related.
Recently I had some issues on cart page and at some point I disabled a promotion extension (Amasty shipping rules) though magento backend, on system/advanced extensions list.
Seems like the extension is disabled but still used on promotion page, adding the structure for the feature but not showing what is supposed to show (because is disabled) and breaking the layout.
Enabling again the extension or removing the extension on files avoid the issue.
1) clear the cache maybe you made a update and your cache is wrong. you can clear in the admin side clear all the types, or erase all inside /www/var/cache
2) clear the page history in your browser, all is fine but your machime show that weird.
3) after that check the browser console, because is a css problem, maybe a file is lost or change the permitions.

Magento add to cart on search result page 2< creates endless loop

On 1.7.0.2 Magento search result page creates endless loop if trying to add product to cart.
This only happens when you are browsing search result pages 2 or more.
Something to do with the URL?
"catalogsearch/result/index/?p=2&q=searchquery"
Any ideas?
i had a very similar issue where add to cart buttons worked everywhere except from the search page.
i managed to fix the issue by increasing the permissions on the js folder, not sure if this will fix your issue as well.

virtuemart checkout page link

i have used virtuemart latest product module for displaying a product on my home page but now when i click on add to cart it doesn't redirect me to another page. Instead of redirecting to another page it shows the checkout form in content part of my index page....
Are you using sh404sef then please try to use the current latest version of both VM & sh404sef otherwise these compatibility issues frequently comes
Also if the above said not a good solutions then please check whether the URL shown in the address bar of the checkout page shows a get value say: &ssl_redirect=1 part. if so, then try to please disable the SSL, it may be not useful in the context as your may use the virtue-mart payment gateway to do all the stuff

Magento Problem

I am running a store on Magento. For some reason the "Recently Viewed", "Related Items" and "Featured Items" blocks have all disappeared from my site. They where definitely there yesterday so I'm not sure what's happened to them.
Featured Products is an extension I use and show on the home page using:
{{block type="featuredproducts/listing" template="inchoo/block_featured_products_main.phtml"}}
Does anyone have any idea what the problem could be?
Reindexing my products fixed this.
system > index management
Probably some Blocks that don't render. Check your /var/log/errors.log for clues (1) and remove the module if is giving you problems(2).
This one here is trying to load the Featuredproducts_Block_Listing class. Check if is there and if is not misspelled.
Have you added any custom module to magento related to products like feature products or products on sale, if yes then just make it false from XML file /app/etc/modules/module.xml
and then refresh or delete the cache and try again with front end.
If this will not work then just simply delete all cache, session and logs. and refreh the web page it will work.
Thanks
Magento Development

Resources