Custom Post Types
When using Custom Post Types on your site, you will need a little bit of configuration in order to add products to your site through the Cart66 Shortcode Dialog. With no configuration, your dialog will look like this:

To fix this, you need to add this function to your themes functions.php file:
|
1 2 3 4 |
function my_products_pages() {
return array('your-products-slug', 'another-products-slug');
}
add_filter('cart66_add_popup_screens', 'my_products_pages'); |
Remember to change ‘your-products-slug’ and ‘another-products-slug’ to the slugs of the custom post types that you want to use. Note: You can set this for as many custom post types as you want.
After customization, the dialog box will look like this:
