Magento Themes and Magento Extensions

Magento: Disable Sending Emails

Share
Posted on January 20th, 2013 | Posted by admin

Have you ever wanted to disable email sending on Magento so that you do not need to worry about accidentally sending emails out when you are testing your store. Well there is an easy way to do this.

Log into the admin of you store and go to: System -> Configuration -> System -> Mail Sending Settings -> Disable Email Communications

Magento Paypal Standard Payment issues with the shipping address

Share
Posted on January 18th, 2013 | Posted by admin

There is a common error in magento with the paypal payment standard payment. The customer has written their billing and shipping address into your magento checkout process and then they have opted to pay via paypal standard. Unfortunately magento does not seem to throw across the fact that the shipping address has already been stored.
Which results in the paypal payment screen to show the wrong shipping address. In order to get around this problem, there is a quick solution as suggested in the original post by Robert Kent
What we do is add a new input field into the form that is submitted to paypal. This form tells paypal that no shipping information is required.

This will then carry across to paypal and remove the duplicate shipping info problem!

How long customer is inactive ?

Share
Posted on January 17th, 2013 | Posted by admin

How long customer is inactive ?

1 $customer = Mage::getSingleton('customer/session')->getCustomer();
2 $log = Mage::getModel('log/customer')->load($customer->getId());
3 $inctive_time = now() - $log->getLastVisitAt();

Magento: Programtically Cancel the coupon code on the shopping cart

Share
Posted on January 15th, 2013 | Posted by admin

Magento: Programtically Cancel the coupon code on the shopping cart

$quote = Mage::getSingleton(‘checkout/session’)->getQuote();
$oldCouponCode = $quote->getCouponCode();
if (strlen($oldCouponCode)) {
$quote->setCouponCode(”)->collectTotals()->save();
}

Magento: Shopping Cart Total Quantity vs Total Items

Share
Posted on January 14th, 2013 | Posted by admin

When it comes to Magento Shopping Carts, people tend to get confused between total items and total quantities. A shopping cart item is a unique product within the shopping cart and the quantity is the total number of each unique item that customers want to order. In other words, if you have two different products (ex. shirt and pants) in your shopping cart, but want to order five of each of these products, the two products are the items and the five of each product is the quantity.

For these reasons, the methods that are typically used by people to return the cart quantity is incorrect. If you find yourself using the getItemsCount()method to return the total quantity of items in your shopping cart, you’re doing it wrong. Instead, what you should be using is the getItemsQty()method, which returns the total quantity of all the items combined within your shopping cart.