WordPress Simple Paypal Shopping Cart
HTML in theme page template (page.php)
Example: echo print_wp_cart_button_for_product('Product Name',Price);
So if I wanted to sell a blue widget for $9.99 the code would be:
echo print_wp_cart_button_for_product('Blue Widget',9.99);
When using the code above the plugin works fine... however, when I try to populate the product name and price it does not work. I am using the WP custom field for the price as such:
$price=get_post_meta($post->ID, 'Price', true);
Then I populate the shopping cart code as such:
When products are added to the cart it shows the product name as "the_title()" and the price as "$0.00"
The title and price display anywhere on the page I place them accept for in the cart code for some reason.