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?
Related
I have developed a module for a group of tourist to buy trips in a magento store. During the billing step of the checkout, the user fills the form of other partecipant, and according to the number of partecipants i have to change the quantity(qty) of the product to be bought.So it has to be shown in the review step(last step) in checkout, and the grandtotal has to be calculated according that value.
I have tried all the ways but nothing is useful.Can someone help me please.Thanks in advance!
Your question is pretty unclear to answer, I'll still try my best.
What you can do is write a js wherein on the form submit or probably on a filling a particular field you hit an ajax to a controller with the field or form fields details.
In that controller write the below code:
//get Product
$product = Mage::getModel('catalog/product')->load($pid);
//get Item
$item = $quote->getItemByProduct($product);
$quote->getCart()->updateItem(array($item->getId()=>array('qty'=>$qty)));
$quote->getCart()->save();
Then refresh your reviews. Your order totals should be updated accordingly.
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 am a newbie on opencart. I want to change the working of cart button. Actually, i dont want to show the prices of my products instead i want my customers to contact me for quote.
So, i want my cart button work in a way that when user click on checkout button, a form open (instead of paypal) in which cart added product names and ID written with other fields like name, email etc so that the user can get a quote from me.
I also want to change the add to cart text to add to basket and checkout text to Get Qoute.
Please help me, i know my issue is very complex and large. And i also know that you can do that.
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.
So, on the cart page, my customers can view the "Estimate Shipping and Tax" area. I don't want to remove it, but I need to know a little additional information from them to properly process the shipping. For example, on a freight item, I need to know if they have a loading dock.
Currently, I do this in the checkout without any issue. I was able to check if there is a freight item, and, if so, show the checkboxes to the customer during the "Shipping Address" stage. Then, in the saveShipping function, I was able to pull in the values and pass them to the shipping charge calculation.
Well, I've got the checkboxes in the template to display in the "Estimate Shipping and Tax" when there is a freight item in the cart, but I don't know much about the coShippingMethodForm function so that I can add in the values of the checkboxes. Anyone have any idea where I should be looked for this?
Additionally, when I hit "Get estimate", the page refreshes and it removes their selections. How best can I retain their selections to repopulate the correct boxes once the page refreshes?
I think that the best way would be to write your own shipping method module. I personally would steer clear of having a checkbox added to 'Estimate shipping and taxes' instead in my module I'd output both prices with loading bay, without loading bay (just for the estimates) in checkout you can get that option from the "Shipping Address" section and pass it into you shipping module calculation this is just a little 'cleaner.'
Check out this wiki for how to write a custom shipping module http://www.magentocommerce.com/wiki/5_-_modules_and_development/shipping/create-shipping-method-module