Magento Forgets Old Session Until Adding Product to Cart? - magento

I'll come back to my store after 12 hours or so -- plenty of time for the cart to expire. My header shows no cart items, and indeed going to the cart shows that it is empty.
When you add a product it will add the new selected product and then the cart magically shows all the products from your last visit.
Any idea on what might be causing this? I'm on Magento 1.6.1 and storing sessions in the database. Let me know if you need to know any of my configurations.

Related

Having trouble with capturing dynamically updated cart information for the dataLayer in Shopify when adding/removing quantities or products

I'm using this script that has helped me as a starting template to capture events within Shopify to push to GTM: https://github.com/TechnicalWebAnalytics/dataLayer-shopify/blob/master/dataLayer-allPages.js
The problem is that even though it can detect Add to Cart or Remove from Cart, it does cannot detect quantities that were added or removed or items that were removed. The only time it can detect anything is when you add a product to the cart from the Product page.
I'm trying to see how I can use the cart.js https://help.shopify.com/en/themes/development/getting-started/using-ajax-api script to pull quantity updates or product removals but I'm having a hard time wrapping my head around it.
Looking for some pointers.

Magento 1.9 Custom Math Pricing / Simple Product Issue with Price

I've installed an extension, Custom Math Pricing by Mico Solutions, and I am experiencing 2 issues with my site now.
Issue 1: When I customize the product, the price is updated correctly on the product page, however, when the product is sent to the cart, a portion of the price is missing (length x price per foot). I checked in the database to look for the price and could only find records of the wrong price so the price is only showing for the product page. The portion of the calculation that is missing from the price includes an attribute which is set as a variable rather than custom options. The custom options calculate perfectly.
Issue 2: When I customize a simple product and add it to the cart, I cannot go back to that product page and customize it a second time, the price remains fixed on the "base" price. Let's say the product has a base price of $10.00. When I customize it, the price stays at $10.00 but is different in the cart. I have to delete my browser cache and cookies in order to customize it again and by doing that, my cart is emptied.
So my question is, where in the code can I find the pricing that is being sent to the sales_flat_quote table in the database. Additionally, how can I debug or correct the issue of customizing a product a 2nd time?
It seems like you've got an issue with conflicting extensions. Your best bet is to go to the Admin modules section (Admin > System > Configuration > Advanced > Advanced) and disable anything else that appears to deal with product pricing. Reset the cache and index and try again. I am somewhat familiar with this extension and it's not compatible with configurable products... make sure your products are simple product types when adding products.

Limit cart to 1 product per attribute/type - Magento

Our company sells pharmaceuticals online and by law we are limited to how much of a particular drug a customer can purchase.
For singular products with one brand this is easily controllable through default Magento functionality, my problem arises when we have different brands of a particular drug.
In a nutshell I can currently limit a customer to 1 pack of paracetamol from brand A but there is nothing to stop them getting another pack from brand B at the same time.
I would like to be able to check the cart for products with a particular attribute and limit them to 1 per cart. Ideally this would be when the customer clicks add to cart and the message would be displayed via the default Magento alerts that we currently have.
EDIT: I think the easiest way to solve this would be to check the SKU codes currently in the basket when adding a product to the cart. If there is a match, Throw up an error else add the item to the cart.
I think this link will help you but you need to modify as per your requirement. http://ceckoslab.com/magento/magento-check-if-product-is-in-cart/..
This link is to check the cart whether the same product is added or not? So modify this as per you requirement
You can set maximum allowed quantity in cart from admin panel. System->configuration. From left tab see catalog->inventory. Set Maximum qty allowed in shopping cart to 1.
If you want to add check on whole cart. see this paid extension

Doubled Subtotal and grand total in checkout magento 1.5

After adding products in shopping cart, move to checkout page. when return back to Shopping Cart page again either clicking back link or top menu Cart item link, Subtotal and Grand Total price becomes doubled.
When adding new product to cart again subtotal and total price become doubled.
Earlier It was working fine, when move to cloud server, this issue raised.
I am using magento 1.5
Please anyone help me out, this issue is coming in live site.
I had a similar problem. Check this post out: http://www.magentocommerce.com/boards/viewthread/227560/P15/. And check the sales_flat_quote_address table if there are to much address entries for the quote_id. I don't know how that happens but if there are more addreses it could happen that the quote is been doubled or trippled
chreers
You have not provided enough information.
First of all, magento 1.5 does not have this bug. The bug you are facing is likely to come from custom work that was done on the project.
Is the site using an ajax cart? if so, follow the add to cart methods it uses.
Was there any custom work done on the cart controller?
other than that you really have not given enough information for people to attempt to answer this.

Magento Out of stock product SEO

I hope many of you gone through this issue/problem.
When we setup magento store with 1000 products. Each will hold a unique URL, and when its gets scraped by google(search engines) then the product always should be in-stock if not then magento store will return 404 page.
For example:
www.magestore/unique-url.html
This gets daily 100's of hits towards site even the product was out of stock and not able to view in store so its returning 404.
Solution
URL rewrite is the solution that's what am trying daily, but if the products getting out of date is really high and cant able to do rewrite means then in most of points loosing SEO hits which leads to 404.
If I enable Out of stock visibility true then the product list also included the out of stock items, but I don't need that,need only direct URL Access.
Am sure, many of you could solved it, please tell me a way to show these products only on direct URL Access but not in the regular product list view page.
Thanks
Enable Out Of stock visibility and have your extension redirect all out of stock items to wherever you redirecting those now

Resources