Skip to content

Commit

Permalink
feat: add CSS class to variation buttons for tracking (#1989)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford authored Dec 6, 2024
1 parent 9bb2b8c commit 910e6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-modal-checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ class="<?php echo esc_attr( "$class_prefix {$class_prefix}__modal-container news
<div class="variation"><?php echo esc_html( $variation_name ); ?></div>
<form data-product="<?php echo esc_attr( wp_json_encode( $product_data ) ); ?>">
<input type="hidden" name="newspack_checkout" value="1" />
<button type="submit" class="<?php echo esc_attr( "{$class_prefix}__button {$class_prefix}__button--primary" ); ?>"><?php echo esc_html( self::get_modal_checkout_labels( 'checkout_confirm_variation' ) ); ?></button>
<button type="submit" class="<?php echo esc_attr( "{$class_prefix}__button {$class_prefix}__button--primary" ); ?> newspack-modal-checkout-variation-selection"><?php echo esc_html( self::get_modal_checkout_labels( 'checkout_confirm_variation' ) ); ?></button>
</form>
</li>
<?php endforeach; ?>
Expand Down

0 comments on commit 910e6b1

Please sign in to comment.