For Facebook share
<a id="ref_fb" href="http://www.facebook.com/sharer.php?s=100&p[title]=<?php echo $ftitle;?>&p[summary]=<?php echo $fdescription;?>&p[url]=<?php echo urlencode($fshare_url);?>&
p[images][0]=<?php echo $fimage_url;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600'); return false;"> </a>
For Twitter share
<a id="ref_tw" href="http://twitter.com/home?status=<?php echo $ttitle; ?>+<?php echo urlencode($tshare_url);?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600');return false;"> </a>
For Linkedin share
<a id="ref_lkd" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php echo urlencode($lshare_url);?>&title=<?php echo strip_tags($ltitle); ?>&source=<?php echo urlencode($siteurl);?>"onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600');return false;"> </a>
For Google+ share
<a id="ref_gp" href="https://plus.google.com/share?url=<?php echo urlencode($gshare_url);?>"
onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=no,scrollbars=no,height=400,width=600');return false"> </a>
Please define values of varibles for better result !!!
i want to brand page like this link ( brand make category)
http://www.johnlewis.com/brands
and i have below type of code
__(‘All Brands’) ?>
__(‘Naviga per Brand’) ?>
load(11)->getChildren();
$catIds = explode(‘,’,$cats);
$categories = array();
foreach($catIds as $catId) {
$category = Mage::getModel(‘catalog/category’)->load($catId);
$categories[$category->getName()] = array(
‘url’ => $category->getUrl(),
‘img’ => $category->getImageUrl()
);
}
ksort($categories, SORT_STRING);
$newbrandarray=array();
?>
$data):
$newbrandarray[]=ucfirst($name);
?>
<!– __(‘Brand’) ?> –>
<?php
sort($newbrandarray);
$alphaArray = array();
foreach($alphabet as $char) {
foreach($newbrandarray as $brand) {
//echo $char."–".substr($brand, 0, 1); exit;
$a=strtoupper(substr($brand, 0, 1));
if($char == $a) {
$alphaArray[$char][] = $brand;
}
}
}
$i=0;
$j=0;
//echo "
Hi,
This is something very bespoke. I need to review the whole code and see what can be done. But what you can do is Get all the brand names and display it based on the initial character. Then while clicking on the brand you can fire a query such that attribute value is the name of brand.
Meanwhile, i’ll try it out myself. Also if you achieve this could you please mail what you did. We would like to feature your article on our blog.
Thanks for commenting
LikeLike
(1) i put this code in catalog/product/brand.phtml
getAttribute(‘catalog_category’, ‘country’); ?>
getRequest()->getParam(‘country_code’); ?>
getSource()->getAllOptions(true, true); ?>
<img src="getSkinUrl(‘images/brandcatimg.png’) ?>” />
getLayout()->createBlock(‘cms/block’)->setBlockId(‘contattitoptitle’)->toHtml(); ?>
Seleziona
<option value="” selected=”selected” >
<img src="getSkinUrl(‘images/register.png’) ?>” />
load(11)->getChildren();
$catIds = explode(‘,’,$cats);
$categories = array();
foreach($catIds as $catId) {
$category = Mage::getModel(‘catalog/category’)->load($catId);
if($country_value != “”){
if($country_value==$category->getCountry()){
$categories[$category->getName()] = array(
‘url’ => $category->getUrl(),
‘decs’ => $category->getDescription()
);
}
}else{
$categories[$category->getName()] = array(
‘url’ => $category->getUrl(),
‘decs’ => $category->getDescription()
);
}
}
ksort($categories, SORT_STRING);
$newbrandarray=array();
?>
$data):
$newbrandarray[]=ucfirst($name);
?>
<?php
sort($newbrandarray);
$alphaArray = array();
foreach($alphabet as $char) {
foreach($newbrandarray as $brand) {
//echo $char."–".substr($brand, 0, 1); exit;
$a=strtoupper(substr($brand, 0, 1));
if($char == $a) {
$alphaArray[$char][] = $brand;
}
}
}
$i=0;
$j=0;
//echo "
Hello,
Facebook won’t share the data properly. You need to add open graph to share the data properly.
Thanks
LikeLike
i put the answer of i want to brand page like this link ( brand make category) this..
LikeLike