Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Change the Link of a callout to mailto: 
 
MartinTT
Jr. Member
 
Total Posts:  16
Joined:  2009-06-23
 

Hey,
i want to change the link of the standard callout “our service ist available...” The Problem ist i dont know how i can set a “mailto:xy@test.com” link…
If i change the link “checkout/cart” the url will be like http://shopname/

What do i have to change? I tried some things but nothing worked.

I hope some one could help me
thx
martin

catalog.xml

<block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml">
                <
action method="setImgSrc"><src>images/media/col_left_callout.jpg</src></action>
                <
action method="setImgAlt" translate="alt" module="catalog"><alt>Our customer service is available 24/7. Call us at (800DEMO-NUMBER.</alt></action>
                <
action method="setLinkUrl"><url>checkout/cart</url></action>
            </
block>

left_col.phtml

<div class="box">
    
<?php if (strtolower(substr($this->getLinkUrl(),0,4))==='http'): ?>
        
<a href="<?php echo $this->getLinkUrl() ?>">
    
<?php elseif($this->getLinkUrl()): ?>
        
<a href="<?php echo $this->getUrl($this->getLinkUrl()) ?>">
    
<?php endif ?>
    
<img src="<?php echo $this->getSkinUrl($this->getImgSrc()) ?>" width="195" alt="<?php echo $this->__($this->getImgAlt()) ?>" style="display:block;" />
    
<?php if ($this->getLinkUrl()): ?>
    
</a>
    
<?php endif ?>
</div>
 
Magento Community Magento Community
Magento Community
Magento Community
 
MartinTT
Jr. Member
 
Total Posts:  16
Joined:  2009-06-23
 

found the Problem… Had only to add a “if strtolower(substr($this->getLinkUrl(),0,6)) == mailto “....

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top