Support » Plugin: WordPress Ultra Simple Paypal Shopping Cart » dinamic PRODUCT-NAME and PRODUCT-PRICE

  • 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/

Viewing 1 replies (of 1 total)
  • [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/

Viewing 1 replies (of 1 total)
  • The topic ‘dinamic PRODUCT-NAME and PRODUCT-PRICE’ is closed to new replies.