I'm creating an art store using a Custom Post type and a custom field to handle the price. What I would like to do is use this code to create the "add to cart" button in the store's template:
<?php echo print_wp_cart_button_for_product(’PRODUCT-NAME’, PRODUCT-PRICE); ?>
Using this code, is there a way to pull the product name from the title of the post and the price from the custom field? Is there any other way to achieve this? I'm running this store with several other artists who are not code-savvy, so to speak, so I'm trying to avoid them having to use the shortcode when they add an item.