All posts by info@phpcodez.com

Latest tweets in your site – PHP

<?php

$username=”tppramod”; // Your Twitter username

$limit=10;//Number of tweets

if(!is_numeric($limit)){$limit = 10;}

$xml = simplexml_load_file(‘http://search.twitter.com/search.atom?q=from%3A’.urlencode($username));?>

<table>

<?php for($i=0;$i<$limit;$i++){

if(empty($xml->entry[$i]->content)) break;

$attr = $xml->entry->link[1]->attributes();

?>

<tr> <td> <img src=”<?php echo $attr[‘href’]; ?>” /> </td> <td style=” font-size:12px;”> <?php echo  $xml->entry[$i]->content; ?> </td> </tr>

<?php } ?>

</table>

Add the block “Based on your selection, you may be interested in the following items ” – Magento

1) In the Admin Panel, select Catalog > Manage Products.
2) Select the product you wish to configure cross-sell products for by clicking its respective row.
3) Click on  the Cross-sells tab from the left side panel.
4) Click on the button “Reset Filter” and select the products to be listed
5)Once cross-sell products are selected, click Save at the top right of the page.
6) Clear your cache and refresh the product information page to assure that it’s working to your satisfaction.

How to add cross-sell to a product – Magento

1) In the Admin Panel, select Catalog > Manage Products.
2) Select the product you wish to configure cross-sell products for by clicking its respective row.
3) Click on  the Cross-sells tab from the left side panel.
4) Click on the button “Reset Filter” and select the products to be listed
5)Once cross-sell products are selected, click Save at the top right of the page.
6) Clear your cache and refresh the product information page to assure that it’s working to your satisfaction.