View Categories

Show Cart Button

< 1 min read

* Use Shortcode ( [cptwooint_price/] , [cptwooint_cart_button/] ) to display the Price And Add to cart button or follow below Step.

* Clicking ‘Display price’ and ‘Display cart button’ after the content will show the price along with the ‘Add to cart’ button.

* To ensure the functionality is working, you should check the supported post types.

Show Cart Button

Display price using php.

<?php echo shortcode_exists('cptwooint_price') ? do_shortcode( "[cptwooint_price/]" ) : '' ; ?>

Display Cart button using php.

<?php echo shortcode_exists('cptwooint_cart_button') ? do_shortcode( "[cptwooint_cart_button/]" ) : '' ; ?>

The output look like below image

add to cart button
Scroll to Top