Bernard Chabrol
Forum Replies Created
-
Forum: Themes and Templates
In reply to: display a parent category with all its childI found this but it doesn’t works when i am on a post only on categories
<?php
$parentCatList = get_category_parents($cat,false,’,’);
$parentCatListArray = split(“,”,$parentCatList);
$topParentName = $parentCatListArray[0];
$id = get_cat_id($topParentName);
wp_list_cats(‘sort_column=id&optioncount=0&use_desc_for_title=0&child_of=’ . $id);
?>please help!
Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Echo Product IDWould you have something better than this to test if the product is on sale or just free
if(substr($eshop_product[‘sku’],0,3)==”let”)Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Echo Product IDOk i found :
if(substr($eshop_product[‘sku’],0,3)==”let”){ $prix=$eshop_product[‘products’][‘1’][‘price’].” $”;}else{$prix=”free “;};Forum: Plugins
In reply to: [eShop] [Plugin: eShop] Echo Product IDNice I made it work. However I cannot display the price the same way.
I tried
$eshop_product=maybe_unserialize(get_post_meta($id, ‘_eshop_product’,’true’));$eshop_product[‘eshop_price[1]’]
But apparently eshop_price[1] is not the good value.
Would you have an idea?