WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Ultra Simple Paypal Shopping Cart
dinamic PRODUCT-NAME and PRODUCT-PRICE (2 posts)

  1. nextart
    Member
    Posted 9 months ago #

    Hi you say in usage tab:
    To add the 'Add to Cart' button on you theme's template files, use
    <?php echo print_wp_cart_button_for_product('PRODUCT-NAME', PRODUCT-PRICE); ?> . Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price.

    it's' possible?

    ok ,i try it with this code

    $title=the_title();
    echo $title; //i see correct product name
    $price=$day;
    echo $price; //i see correct product price
    
    //now how use this variables in your function ?
    // like this it doesn't works
    echo print_wp_cart_button_for_product('$title', $price); ?>

    how can i pass these two variable to your function?
    what's wrong?

    thanks
    bye
    Maurizio

    http://wordpress.org/plugins/wp-ultra-simple-paypal-shopping-cart/

  2. nextart
    Member
    Posted 9 months ago #

    [this is correct post]
    Hi you say in usage tab:
    To add the 'Add to Cart' button on you theme's template files, use
    <?php echo print_wp_cart_button_for_product('PRODUCT-NAME', PRODUCT-PRICE); ?> . Replace PRODUCT-NAME and PRODUCT-PRICE with the actual name and price.

    it's' possible?

    ok ,i try it with this code

    $title=get_the_title();
    echo $title; //i see correct product name
    $price=$day;
    echo $price; //i see correct product price
    
    //now how use this variables in your function ?
    // like this it doesn't works
    echo print_wp_cart_button_for_product($title, $price); ?>

    in my page with [show_wp_shopping_cart] in it
    i see the product name but not price?
    what's wrong?

    thanks
    bye
    Maurizio

    http://wordpress.org/plugins/wp-ultra-simple-paypal-shopping-cart/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.