WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
WP e-commerce - Display the weight and the sizes in the product page (38 posts)

  1. couincouin007
    Member
    Posted 1 year ago #

    Try with my last code ;)

  2. couincouin007
    Member
    Posted 1 year ago #

    Oups, on my last code there is one mistake, at the end the last variable you need to add a "$" before "$weightunit" ;)

  3. amoric69
    Member
    Posted 1 year ago #

    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 ; )

  4. couincouin007
    Member
    Posted 1 year ago #

    Are you sure to have put too the code where we attribute content to variables ? I mean the code before the "echo" ?

  5. amoric69
    Member
    Posted 1 year ago #

    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() );
     ?>
  6. couincouin007
    Member
    Posted 1 year ago #

    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"...

  7. amoric69
    Member
    Posted 1 year ago #

    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

  8. bobspalding
    Member
    Posted 1 year ago #

    To read everything on this post, (including the French) use this link: MAKE PAGE ENGLISH --Thank You

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic