API & CSS Classes for Chamevo Products
Chamevo provides API checks and CSS classes you can use to target products with the designer enabled.
1. API Check (PHP)
You can check if a post or product has the Chamevo Product Designer enabled by using the following function:
global $post;
if( is_fancy_product($post->ID) ) {
echo "This is a fancy product.";
}
2. CSS Classes
When a product has the Chamevo Product Designer enabled, the following CSS class is added to the <body> tag:
.fancy-product
These tools help developers add conditional logic (PHP) or apply targeted styling (CSS) specifically for Chamevo products.
Updated on: 04/11/2025
Thank you!