Magento themes and extensions

Get Custom Options in Checkout/cart page Programmatically Magento

Share
Posted on December 31st, 2013 | Posted by admin

A Magento client of mine wanted to be able to change the calls to action on the cart and checkout pages based on the product configuration that the customers have selected for purchase. The following bit of code loops through the products in the Magento shopping basket and gets the chosen custom options and / or configuration.

// Load the session

$session = Mage::getSingleton(‘checkout/session’);

// Array to hold the final result

$finalResult = array();

// Loop through all items in the cart

Set “ship to this Address” the default in your Magento checkout

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

For some reason the Magento checkout sets the “Ship to different address” as the default option even though far more people actually want items delivered to their billing address. This quick tutorial explains how to change this default.

The first stage in making this change is to override the default Magento class that handles the checkout. You do his by simply copying the class file from the core folder into the local code folder.

1 cp app/code/core/Mage/Checkout/Block/Onepage/Billing.php app/code/core/Mage/Checkout/Onepage

All you then need to do is edit your new version of the file and change the function that sets the default. Change the code below…

Magento: Authorize.net not displayed in Payment Information section while Checkout

Share
Posted on October 14th, 2012 | Posted by admin

Magento: Authorize.net not displayed in Payment Information section while Checkout

Scenario:

I have enabled Authorize.net payment method but it is not displayed in Payment Information section while Checkout.

Problem:

In the class Mage_Paygate_Model_Authorizenet, you will find the following variable:-

protected $_allowCurrencyCode =array('USD');

It means, the allowed currency for Authorize.net is only US Dollar (USD). You have to add the currency code to the above array in order to display Authorize.net payment for that particular currency.

Magento how to save additional shipping info to Quote during checkout

Share
Posted on October 7th, 2012 | Posted by admin

I’m quite new in magento, I work version 1.6.2.0.
I’m trying to add my own Custom Shipping Method module and I have few problems.
My magento has already custom checkout module – Threestep checkout, what I’m trying to do is save additional shipping info which I choose in 3rd step (Payment and Shipping) (something like Store Pickup place) to Quote, and then in Review retrive Quote data and save it to Order.

I’m using Events to do this:
checkout_controller_onepage_save_shipping_method to save data to Quote
checkout_type_onepage_save_order to save data to Order
The problem is that Quote and Order doesn’t have any free place where i can save my data, so I created installer for my module:

How do I remove Google Checkout from “Shop by” section in Search results?

Share
Posted on January 29th, 2012 | Posted by admin

Google Checkout section is shown in Shop By block of Magento’s search results page:

To disable this section you need to switch enable_googlecheckout attribute to not be used in layered navigation:

Page 1 of 212»