I’ve created CPT with my occasions and for every occasion I’ve created particular person product in WooCommerce. Now I am utilizing this shortcode in my code
<?php echo do_shortcode('[add_to_cart id="'.get_field('event_ticket').'" show_price = "FALSE"]'); ?>
for displaying “add to basket” button positioned on every occasion. Each occasion have Product Class “occasion” and now I would like change default textual content on “add to basket” button, however just for these merchandise which have ‘occasion’ Product Class.
How can I do this?