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

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.

Related

AJAX Add to cart

I've got an issue with AJAX add to cart button on single-product.php.
By now everything works as it should, but with last woocommerce update i've got a problem with variable products.
Everything is fine on simple products, on variable i can also add product to cart, but unfortunetly there is no variation picked while all attributes is selected.
Here You got an example of issue: Product page.
If You add product to cart it will apear there, but as a simple product not variation.
I'm using X for Woocommerce plugin for swatches - when i disable it, everything works fine, but with no AJAX. I need it not only for swatches, but also minicart is powered by AJAX and after reloading page it doesn't work.
I hope someone could help me.
Best regards, Kuba
Please check your DevTools console (F12). There are multiple errors about jQuery being not loaded and "add to cart" scripts mentioned.
I bet that hidden field containing the selected variation ID does not change when you select some variation because there is a problem with jQuery. It stays with the default value which is the parent product ID. So the parent product is added to your cart.
There's a bug in WPML plug-in:
https://wpml.org/errata/wp-6-0-issues-with-terms-assigned-to-posts,
pozdrawiam :)

Magento 2 2.3 Full Page Cart issue

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

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.

Ajax Cart empty Prestashop 1.6

In prestashop 1.6
Using Ajax-cart
If i log-in as a Customer and add products to the cart and checkout the order all work.
Then the ajax cart stop working.
If I add a product to the cart and refresh the page the cart return
empty.
If i add a product to the cart and click "go to cart" the cart return empty.
If i log out and log in again, the cart return working for an order, then if i checkout the new order the problem return.
seem to be a problem whith Cookie the is overwritter in some ajax call in ajax-cart.js
I've look this but is not my case :Cart products dissapear on refresh page Prestashop
If i disable ajax cart all work fine.
EDIT
On Google i've found something and seem to be an ajax problem but all the solution suggested don't work.
I was also facing the same issue. You should try the following module and try last two options from the module's configuration and this issue will be gone:
https://github.com/PrestaShop/pscleaner
IMPORTANT: If you are trying it on live site make sure you do not enable first options in this module i.e. Clean up Customers, Clean up Catalog & Orders.
Reply back if you still face the issue.
Cheers!!

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