Try with my last code ;)
Try with my last code ;)
Oups, on my last code there is one mistake, at the end the last variable you need to add a "$" before "$weightunit" ;)
Just the titles
Hauteur :
Largeur :
Poids :
But no 'fatal error'. Fiouu!
Maybe it's come from my plugins ?
But i just use the WP e-commerce and his extensions (WP e-Commerce Predictive Search LITE ; WP e-Commerce Grid View LITE ; )
Are you sure to have put too the code where we attribute content to variables ? I mean the code before the "echo" ?
Yes, after the code there is the end of the product form and :
<?php
if ( (get_option( 'hide_addtocart_button' ) == 0 ) && ( get_option( 'addtocart_or_buynow' ) == '1' ) )
echo wpsc_buy_now_button( wpsc_the_product_id() );
echo wpsc_product_rater();
echo wpsc_also_bought( wpsc_the_product_id() );
?>Oh... I'm sorry but if you really have this code :
<?php
$metadata=get_product_meta($id_product,'product_metadata', true);
$dimension=$metadata['dimensions'];
$height=$dimension['height'];
$heightunit=$dimension['height_unit'];
$width=$dimension['width'];
$widthunit=$dimension['width_unit'];
$metadata=get_product_meta($id_product, 'product_metadata', true);
$weight=$metadata['weight'];
echo 'Hauteur : '.$height.' '.$heightunit.'<br/>
Largeur : '.$width.' '.$widthunit.'<br/>
Poids : '.$weight.' '.$weightunit;?>
?>
And if it doesn't work, i can't help you... For me it works, so i think you do something bad, or "The Truth Is Out There"...
Hi,
I use the WP e-commerce 3.8.8.5.
If I download the new version (3.8.9.3). That can solve the problem ?
Will I lose the modifications on the files of the plugin?
Thanks
You must log in to post.