Using Cart Ninja Product Meta

Using Cart Ninja Product Meta

It's possible to display details about your products outside of the Single Page for the product, you can display the Product Name or use the Thumbnail URL all within the Wordpress Loop. To access the price for example you would use the following code.

<?php echo get_post_meta($post->ID, 'CNPrice', true); ?>

When that code is used with the Wordpress loop it would echo out the price that's set of the product, (if you are using a mixed blog / product setup you may want to use if statements to check if the post even has a price).

You can also use the thumbnail (though I recommend using Wordpress's built in features for this

<?php echo get_post_meta($post->ID, 'CNThumbnail', true); ?>

You could also potentially use CNProductOR if you are using Product Name Over-rides.