0

In magento C.E 1.7, How to get how many sku or product ids are added into the cart. Not the quantity of products in the cart.

I need to get it in ../shippingmethod/available.phtml file to process different shipping methods based on number of items.

Is it possible?

1

Get shopping cart items count

Mage::getSingleton('checkout/cart')->getItemsCount()

Get Shopping cart product ids

Mage::getSingleton('checkout/cart')->getProductIds()
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.