Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [addtocart]

Questions related to the functionality of adding product to shopping cart in Magento.

Filter by
Sorted by
Tagged with
0
votes
1answer
984 views

PHP else: statements in addtocart.phtml - Adding conditions to the Add To Cart button on product page

My store has the options for user to Add To Cart, Call To Order, Visit Our Store. I've modified the category page (list.phtml) to show "View Product" instead of Add to Cart. On the product page, now,...
1
vote
2answers
969 views

Add to cart query string keeps going to product page

I'm using magento 1.9.1 and on a custom listing page I'm trying to add an add to basket form. This is supposed to add to the basket using a query string. <?php $formKey = Mage::getSingleton('core/...
0
votes
1answer
2k views

Rename add to cart to buy now

I want to change Magento add to cart to buy now and also I want to redirect the page. How to made that changes??
3
votes
0answers
1k views

Wishlist - Add all to cart goes to 404 page instead [closed]

When I click "Add All to Cart" on the wishlist page, I get a 404 error and the address in the bar is http://www.blahblahblah.com/wishlist/index/allcart/. The items are not added to cart. A slightly ...
2
votes
1answer
631 views

Madison Island View details and Add to cart

I am new to Magento so please forgive me if my question sounds foolish. I have the default Madison Island template which was there when i installed magento. I noticed that if you are looking on ...
2
votes
2answers
1k views

How do I remove the Add to Cart button from Wishlist based on specific products?

I have already removed the "Add to Cart" button from both the Product Detail page and the Product List/Grid Page based on an attribute. I now need to be able to remove the button from Wishlist and ...
1
vote
1answer
492 views

Additional checkout not displaying on product pages

I've added the Paypal express checkout on my magento application, the paypal express checkout displays on the default product template, but it is not showing on my custom product template. I dug ...
15
votes
4answers
4k views

Adding multiple items with different attributes to cart programmatically

I'm making a bulk add to cart system. Please note : i want it to works for simple products with with custom options -> Where custom option are like color(red , green , blue) or Size(Xl, M , S) ...
1
vote
2answers
1k views

How add to cart in magento works?

How add to cart in magento works ? As is it based on the session OR We can add the product to cart to a particular user using external php call require_once '../app/Mage.php'; Mage::...
1
vote
1answer
4k views

Get product's final price with its selected custom option on add to cart

I want just added product’s final price on “add to cart after” event. Here final price is in a term of, price with selected options (configured option, custom options). So how can I get this price? ...
1
vote
1answer
510 views

Magento Add To Cart Multi Product at a time [closed]

How to add multi product into cart in magento.
1
vote
1answer
977 views

Magento Community 1.9.1 RWD theme: Home page “add to cart” failure

I just noticed that when I used the 'add to cart' button on the home page of my site, it doesn't work in Firefox or IE.... it only brings me to an empty cart. It does work in Chrome however. I've ...
7
votes
2answers
5k views

Adding product to cart cause error 'The stock item for Product is not valid.'?

I'm adding a nominal product programically to the shopping cart. But it throws an exception as 'The stock item for Product is not valid.'. How can I resolve this? NOTE : $product is getting passed to ...
0
votes
2answers
653 views

Change “add to cart” button depending on customer group and attribute [closed]

A while ago, I asked this question and the code is working fine. I can change the "add to cart" button depending on the value of a yes/no attribute. What I'm trying to achieve now is to create an if/...
2
votes
3answers
4k views

How to get available quantity of product?

I am adding products in cart programmatically. But whenever I enter quantity more than available, it gives me a 503 error. e.g. Lets say a product has 7 quantity saved in admin and out of 7, 3 is ...
10
votes
3answers
34k views

Getting quote (cart) items programatically shows duplicate SKUs for both the configurable and simple product

I'm getting the shopping cart using: $cart = Mage::getSingleton('checkout/session')->getQuote(); And then iterating through it using: foreach ($cart->getAllItems() as $item) { } But it seems ...
0
votes
1answer
361 views

Adding new blocks to a catalog product view

I'm trying to add multiple blocks to the right template part of my product view. I want to add the "add to cart" buttons and some other information there. My local.xml: <catalog_product_view&...
1
vote
2answers
540 views

Some Ipad 2 users cannot add products to the cart,how to debug?

We have a magento site, running on Magento 1.8.0. We get complaints from some of our customers because they can't add a product the cart. They always have an Ipad 2. But not all ipad 2 users have ...
0
votes
1answer
1k views

Change the price in cart on the fly

We have 2 observers to change product price in the cart : checkout_cart_product_add_after to change price the first time the product is added to cart, and checkout_cart_update_items_after to change ...
2
votes
1answer
4k views

Remove or Stop item to cart from observer

Is there any way that we can remove the Items from the cart. Actually I have dynamic Grouped products were I need to allow the user to buy the item inside the grouped product. Now when someone only ...
1
vote
1answer
1k views

“ADD TO CART” button not working in product view page

we want customers to enter zip code on product view page to find delivery is available or not for that zip code. so we used this extension : http://www.magentocommerce.com/magento-connect/product-...
1
vote
1answer
350 views

Grouped Product has no Add to Cart

I've followed the instructions to setup a Grouped Product which has two Simple Products both in stock and quantity levels set. Neither have custom options. The grouped product shows the table of two ...
1
vote
1answer
824 views

Changing add to cart button depending on category Id

I have a category of products that can't be bought online directly but that I want to give the functionality of going to a distributors page. For that, I need to retrieve the category id of the ...
2
votes
2answers
1k views

Translate Add to Cart button

We tried to change the Add to Cart button from 'out of stock' to '4-5 business days' for out of stock products using translate inline, which was simple enough. However, although the text was changed, ...
1
vote
1answer
976 views

Single Product - Multiple Add To Cart

I would like to have single items displayed in category without prices, once customer has clicked on product and the product view page is loaded, I would like multiple add to cart options. Something ...
1
vote
2answers
182 views

Ordinary link to affiliate link

I have had an affiliate extension that allows my store to accept affiliate feeds. I wish to change the Add to Bag text on the category page to open a window that then redirects to the products on ...
0
votes
1answer
210 views

Sell different products on a single page

I have to create a single page that needs to show various type of products (simple, grouped and bundle) and they have to be added to the cart. In addition to this I cannot set a "add to cart" button ...
2
votes
1answer
2k views

Magento Ajax cart remove items not working in mini cart

I have created the custom ajax cart in magento,in that mini cart is updated without loading the page.But in that remove items link is not working,it is been redirecting to ajaxDelete action url(for eg:...
4
votes
2answers
8k views

“Please specify the product's option(s).” after magento upgrade 1.6.2 to 1.9.1

I just upgraded a site from 1.6.2 to 1.9.1 I have a big issue with configurable products. Impossible to add them to the cart. I always get "Please specify the product's option(s)." There is no error ...
0
votes
2answers
1k views

adding bundle product with default options with setLocationAjax function

I'm trying to add to cart a bundle product with default options (options already selected from backend) using the setLocationAjax function. I managed to get the correct url to add which will be ...
0
votes
2answers
1k views

Add To Cart button, Product with custom options that are not required

I want to change the behavior of the Add to Cart button from the list / grid views. Where this is clicked for a product that has custom options that are required, the customer is taken into the ...
4
votes
3answers
3k views

Limiting “Add to cart” to just 1 click / item

I've noticed that some visitors will click the "Add to cart" button multiple times. This results in the product being added multiple times. I thought it was my theme, but I've reproduced this on the ...
4
votes
2answers
3k views

Shopping Cart Rule Causing Internal Sever Error 500

I am trying to configure a shopping cart price rule where if you add 2 or more bundled products from one category you get the discount off the subtotal of the cart. This is the only cart rule on the ...
0
votes
2answers
3k views

Add to cart button in up-sell block

We want to display the add to cart button to our up-sell block on product page. I tried this code, but that does not work and brake down the page <button class="button related" type="button" ...
3
votes
3answers
6k views

Replacement of an abstract class in custom module

I read a lot of information on this issue, but have not found a solution. I need to change the function getAddToCartUrl, in class Mage_Catalog_Block_Product_Abstract. Is there a way to make a ...
0
votes
1answer
136 views

Add product to quote

I have problem in wishlist I need to move products from wishlist to enquiry quote $url = Mage::getUrl('qquoteadv/index/addItem/'); $actionQuote = "addQuote('".$url."');" i tried above code but its ...
1
vote
1answer
787 views

How to get rid of Add All To Cart from Wishlist

Want to get rid of the Add All To Cart button from Wishlist as it's not particularly useful (it automatically adds 1 of every item even if I put 5 or 0 in quantity for one of the items). Plus it's ...
0
votes
2answers
5k views

Add To Cart Not Working

I'm really at a loss. I have a web developer who basically 'does things we ask' then leaves us to our own devices, if something breaks, he won't fix it pretty much. We asked him to install an ...
2
votes
1answer
5k views

Display Out of Stock product and disable Add to Cart button

I have a store where product quantity are set to 0. I have enabled back orders if qty is 0 for a product, however I would like to disable Add to cart in case product is out of stock. This means Add to ...
2
votes
3answers
3k views

Add to Cart from Wishlist not working

Maybe something is amiss with my Theme - but when I go into Wishlist and choose "add to cart" next to the item in the wishlist, nothing happens. No error or anything like that. You just click it and ...
1
vote
1answer
1k views

Add custom options while adding grouped product to cart

I've got a problem when adding a grouped product to cart. I need to set a custom option for all products that are added to cart while adding a grouped product to cart. What I have tried last (with a ...
3
votes
1answer
819 views

What is the a good phone order extension? [closed]

We used to be on Volusion and their phone order page was quite nice. If someone called in to place an order we could add products to a cart from the admin side, edit prices for the customer and enter ...
1
vote
3answers
3k views

Remove product price

I am using magento 1.9 community edition. How to remove or hide product price and "add to cart " button in specific magento store.
0
votes
2answers
767 views

Add to cart Button on home not upgrading the cart

I am having an strange problem i have attached new product at home page by calling the block template at home page under CMS->page->home but when click on add to cart button it will redirect to ...
0
votes
1answer
1k views

Getting New Session Id before session expires,checkout/session car is empty even cart has item

I have a local module, which adds product to cart.To add to cart i have some conditional check before adding to cart,and i am using getSingleton('checkout/session')->getQuote() object for getting ...
0
votes
1answer
981 views

Adding First Product Programmatically

I am looking for entire example/sample code for adding the first item to your magento cart via php programatically. This code should create the ENTIRE SHOPPING CART and send the user to the checkout ...
2
votes
2answers
2k views

add to cart button to refresh the page

I have a feature in my cart where the customer can pick to add last minute deals to their shopping carts and for products which are grouped products a pop up box appears showing the different options ...
2
votes
2answers
2k views

Adding a Product to the Cart via Querystring using SKU

I know that we can adding a product to cart via querystring. but how do we add sku to cart via querystring in url without including product id like this : domain/checkout/cart/add?sku=ABC or domain/...
3
votes
2answers
2k views

Is there an event for apply coupon action in cart

I want to add a product to cart automatically when a coupon is applied. When the coupon is applied the product should be added to cart showing its price and a discount of the price of the product ...
0
votes
1answer
454 views

Adding Product To Cart Leads To Infinite Loop

I have an observer set up to listen for 'checkout_cart_product_update_after', 'checkout_cart_product_add_after', 'sales_quote_remove_item', and 'checkout_cart_update_items_after'. The goal for my ...