Updates from September, 2013 Toggle Comment Threads | Keyboard Shortcuts

  • suvankargiri7 12:16 pm on September 20, 2013 Permalink | Reply  

    Magento remove compare product sidebar in blog 

    Please place this code under <default> at particular xml.
    <remove name="catalog.compare.sidebar"/>
    Advertisements
     
  • suvankargiri7 4:09 am on September 18, 2013 Permalink | Reply  

    Mishawr Rohoshyo Trailer 

     
  • suvankargiri7 5:04 am on September 16, 2013 Permalink | Reply  

    Magento Best selling product at home page 

    1. Put the following code at home page cms
    {{block type="catalog/product_bestsellers" name="home.catalog.product.bestsellers" alias="product_bestsellers" template="catalog/product/bestsellers.phtml"}}
    2. Please create “bestsellers.phtml” page on mentioned location.
    3. put the following code in this page.
    <?php
    /**
    * @author MagentoPycho <rajen_k_bhtt@hotmail.com>
    * GuruWebSoft www.guruwebsoft.com
    * */
    $visibility     = array(
    Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,
    Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG
    );

    $storeId        = Mage::app()->getStore()->getId();
    $_productCollection = Mage::getResourceModel('reports/product_collection')
    ->addAttributeToSelect('*')
    ->addOrderedQty()
    ->addAttributeToFilter('visibility', $visibility)
    ->setStoreId($storeId)
    ->addStoreFilter($storeId)
    ->setOrder('ordered_qty', 'desc')
    ->setPageSize(4);
    #echo $_productCollection->getSelect()->__toString();

    ?>

    <div class="bestList">
    <ul>
    <?php foreach($_productCollection as $product):
    ?>

    <li><a href="<?php echo $product->getProductUrl() ?>" title="<?php echo $product->name ?>">
    <img src="<?php echo $this->helper('catalog/image')->init($product, 'image')->resize(51,51); ?>" alt="<?php echo $product->name ?>" title="<?php echo $product->name ?>"/>
    <span class="bestContent">
    <span class="bestDesc"><?php echo $product->name ?></span>
    <br />
    <span class="sale"><?php echo Mage::helper('core')->currency($product->price, true, false); ?></span>
    </span></a></li>

    <?php endforeach; ?>
    </ul>
    </div>

     
  • suvankargiri7 7:00 am on September 12, 2013 Permalink | Reply  

    View field image path to image src custom 

    <div style=”background:url(‘<?php echo ‘/sites/default/files/’.file_uri_target($row->field_field_image[0][‘raw’][‘uri’]); ?>‘)”>

     
  • suvankargiri7 6:55 am on September 12, 2013 Permalink | Reply  

    custom view template to all the fields 

    Comments Default Code

    <!–<?php foreach ($fields as $id => $field): ?>
    <?php if (!empty($field->separator)): ?>
    <?php print $field->separator; ?>
    <?php endif; ?>

    <?php //print $field->wrapper_prefix; ?>
    <?php print $field->label_html; ?>
    <?php //print $row->field_field_image[0][‘raw’][‘uri’]; ?>
    <?php print $field->content; ?>
    <?php //print $field->wrapper_suffix; ?>

    <?php endforeach; ?>–>

    Placed Your Code

    <div class=”featuredblock” style=”background:url(‘<?php echo ‘/sites/default/files/’.file_uri_target($row->field_field_image[0][‘raw’][‘uri’]); ?>’)”>
    <?php print $fields[‘title’]->content; ?>
    <?php print $fields[‘body’]->content; ?>
    </div>

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel