Sharing/transfer cart between customers in Magento - magento

Is it possible to transfer any quote of 1 customer to another customer in Magento?

I have worked on it and found a solution, to share 1 customer's cart items to another customer's cart use below code, in observer or anywhere you want, as per your need:
Mage::getModel('sales/quote')->load($quoteId)->setCustomerId($customerId)->save();
This solution is working for me!

Related

Adding a bespoke priced line item (handling cost) to shopify cart from external domain

Is it possible, using apps/api/ajax etc to have a shopify cart send off a request to an external site which calculates a price based on the carts contents and adds an item to the cart with said price?
At the moment what I think might be a way forward is:
Have a product "Handling" with a £0.01 price
Write an app that includes some scripttags that add options to cart items
When the options are changed the script contacts the external service with the cart contents and options
External service can then add a quantity of the "Handling" product to the cart based on the calculation, customer can remove this item if they wish, which will reset their options
Is this a remotely feasible plan? Have I listed anything that just isn't possible or would be more appropriately done in another way?
Many thanks for any guidance.

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

Magento if buy some amount and then get one product free from our collection of product

If i buy some products and total is more then 1000 then i will offer 1-product free from my selected products of different category, how can i do this in Magento.
Anybody having idea ?, tutorial link also nice help to me.
Thanks in advance.
You can make this by creating shopping cart price rules through admin panel. In Admin panel, you can see Promotions in the menu and under to that shopping cart prices rules. In that create a New Rule and in that new rule, there is a condition field. Here you can give the Condition as shown in th following screenshots.
And in the next action field, make as below.
Thats it. Now if you add both the products to the cart, u can see the difference. In the above condition logic is only for your reference. You can add some more logic to that If you requires. Here is the link if you require... http://www.magentocommerce.com/knowledge-base/entry/what-are-shopping-cart-price-rules-and-how-do-i-use-them

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 - Update main product price to include selected related products?

Anyone have any idea how this would be achieved.
I want to have it so that when a related product is selected it updates the price of the main product, as when you click to add everything that related products price will contribute to the price.
Any help appreciated.
Chris
Magento's cart pricing rules could approximately accomplish this, as could use of a coupon. Obviously, both have their drawbacks, but neither requires code.

Resources