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

problem with left callout
 
suleyman
Member
 
Total Posts:  53
Joined:  2008-10-19
 

hello

just wondered if someone could help on my site ( HERE )

On the right hand column i have a image which i got to point to the correct catogory which i want it to by going into the templates/callouts/right.phtml adding an anchor.

however when i go into the left.phtml i get this

<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>
im doing a webdesign course at the moment so i know the very basics but dont now what to do here.
If you click on the left image it take you to the shopping cart. i dont want this and i would like to point it to where i want.

how do i do this ?
and why does this callout look different to the right one?

 
Magento Community Magento Community
Magento Community
Magento Community
 
lotusseedsD
Mentor
 
Avatar
Total Posts:  1144
Joined:  2007-08-31
 

in the catalog.xml

<reference name="left">
<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 (800) DEMO-NUMBER.</alt></action>
<action method="setLinkUrl"><url>checkout/cart</url></action>
</block>
</reference>

 
Magento Community Magento Community
Magento Community
Magento Community
 
suleyman
Member
 
Total Posts:  53
Joined:  2008-10-19
 

cheers mate ill give that a go

 
Magento Community Magento Community
Magento Community
Magento Community
 
suleyman
Member
 
Total Posts:  53
Joined:  2008-10-19
 

ive done the change to the catalogue xml but it still going to the shopping cart?

 
Magento Community Magento Community
Magento Community
Magento Community
 
lotusseedsD
Mentor
 
Avatar
Total Posts:  1144
Joined:  2007-08-31
 

how did you change it and where do you want it point to?

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