<?php


class ModelShippingFreteacombinar extends Model {

    function getQuote($address, $pProduct = Array()) {

        $quote_data = array();
        $quote_data['freteacombinar'] = array(
            'code'         => 'freteacombinar.freteacombinar',
        	'title'        => !empty($this->config->get('freteacombinar_subtitulo')) ? $this->config->get('freteacombinar_subtitulo') : 'Valor a combinar',
        	'cost'         => 0,
		    'text'         => !empty($this->config->get('freteacombinar_subtitulo')) ? 'Valor a combinar' : $this->config->get('freteacombinar_subtitulo'),
        );

        $method_data = array(
            'code'       => 'freteacombinar',
        	'title'      => $this->config->get('freteacombinar_titulo'),
        	'quote'      => $quote_data,
        	'sort_order' => $this->config->get('freteacombinar_sort_order'),
            'error'      => false
        );

        return $method_data;

    }
}
