When I try to increase quantity in the shopping-cart page, the shipping-estimator block does not get updated with latest shipping rates after the cart quantity has been updated. Any suggestion why it's not updating?
If you are implementing your own functionality to modify quotes, you need to do this to recalculate totals:
$quote->getShippingAddress()->setCollectShippingRates(true);
$quote->collectTotals();
$quote->save();
Related
In the Volusion shopping carts "soft add to cart" feature, which is turned on in product options with "Enable Add To Cart Popup", the popup shows the "Subtotal" of products currently in the cart.
The issue is this Subtotal does not include quantity discounts and therefore shows customers a higher price than the actual Subtotal after discounts are applied.
For that reason, we would like to display the cart Total, which includes any quantity discounts applied.
The problem is, I cannot find a place where this can be done in the HTML we have access to and if I were to find it, I'm not sure of the proper Volusion syntax to use to call up the Total instead of the Subtotal.
Thanks!
I had a different issue, but the same problem (soft add to cart did not display the proper info).
In my case, we allow engraving on our products, for an additional charge, and when selected this option was not displayed in the popup cart. As a result, customers were not sure if they chose it or not.
My solution was to add a Shopping Cart block to the page, as part of the template, using jQuery.
If you call http://yourUrl/AjaxCart.asp you'll see the discount info you need in the JSON data, as well as the line items in the order.
I have a Woocommerce One Page Checkout and I have the quantity input changed to a select box according this snippet.
Now I want that when I change my quantity with the select, the quantity in my shopping cart also updates with the selected quantity using AJAX. How can I achieve this in my functions.php?
The snippet later on that page does not what it should do. Can someone help me out?
Update:
Could this maybe part of my solution?
i got a problem with a magento extension(currently for 1.8.1):
I have products in my cart.
Therefore I can choose a gift and add it for free into the cart (via observer the priced is set to 0)
BUT here the problem: if the gift is a configurable product i want to set the options. After editing the product the price is set to the original-price again.
How can i keep the gift-price?
greetz,
Florian
Several ways to accomplish this, but the probably easiest (and cleanest) is via a custom total model.
Here is a description, somewhat dated but should be enough to get you started.
Just make sure your total model is calculated after the subtotal model so your quote item price adjustment sticks.
You will also want to pay attention to whether or not you want your total model to be calculated before or after the tax total model.
How do I get quote totals before saving payment method?
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
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.