I cloned tablerate shipping method to have another option (fast courier).
I checked everywhere on how can I add a logo when displaying shipping options.
What I did:
in public function collectRates inside my shipping model I added
$method->setLogo( $this->getShipmentImageSrc('postaromana') );
$result->append($method);
So now I have the logo path, the problem is that I don’t know how to call it. I supose the call is made in
/app/design/frontend/base/default/template/checkout/onepage/shipping_method/available.phtml
Any ideas how to solve this?
Solution for my question.
I share my solution in case anyone need it.
In
app/code/core/Mage/Shipping/etc/system.xmladd this on your new carrierAdd this function on carrier model from
/app/code/core/Mage/Shipping/Model/CarrierClone
/app/code/core/Mage/Checkout/Block/Onepage/Shipping/Method/Available.phpto local and add this function:Use this in
app/design/frontend/default/sex/template/checkout/onepage/shipping_method/available.phtmlI have this file in my template, it’s best to copy it to your template if you want to alter.