Q:

what is the code for table rates shipping method & cash on delivery" payment method

I am using this shipping "Table rates" and "webshopapp matrix rates" shipping methods.
what i need is that , if  we use table rates shipping method, i want to hide "cash on delivery" payment method.
i am following this link : https://stackoverflow.com/questions/26604267/magento-onepage-checkout-hide-payment-method-depending-on-shipping-method
please help me to find what is the code for 
1)table rates shipping method
2)cash on delivery" payment method....

A:

AS i have seen in your reference link you can also see 
code for
1) table rates shipping method  == flatrate_flatrate
2) cash on delivery" payment method. == cashondelivery
EDIT
class Mage_Shipping_Model_Carrier_Tablerate
    extends Mage_Shipping_Model_Carrier_Abstract
    implements Mage_Shipping_Model_Carrier_Interface
{

    /**
     * code name
     *
     * @var string
     */
    protected $_code = 'tablerate';
}

Simple Magento shipping method code
<pre>Array
(
    [0] => Array
        (
            [value] => Array
                (
                    [0] => Array
                        (
                            [value] => flatrate_flatrate
                            [label] => Fixed
                        )

                )

            [label] => Flat Rate
        )

    [1] => Array
        (
            [value] => Array
                (
                    [0] => Array
                        (
                            [value] => freeshipping_freeshipping
                            [label] => Free
                        )

                )

            [label] => Free Shipping
        )

    [2] => Array
        (
            [value] => Array
                (
                    [0] => Array
                        (
                            [value] => tablerate_bestway
                            [label] => Table Rate
                        )

                )

            [label] => Best Way
        )

    [3] => Array
        (
            [value] => Array
                (
                )

            [label] => Best Way
        )

)

i am sure it will help you.

