Skip to content

Commit

Permalink
Update shortcode prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Oct 6, 2024
1 parent 202cc23 commit 71d8163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion InvoiceNinja/WordPress/PostApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public function purchaseShortcode($atts)
<form method="post" action="">
<?php wp_nonce_field('invoiceninja_purchase_' . esc_attr($atts['product_id']), 'invoiceninja_nonce'); ?>
<input type="hidden" name="product_id" value="<?php echo esc_attr($atts['product_id']); ?>">
<button type="submit" name="purchase"><?php echo ($is_single ?
<button type="submit" name="invoiceninja_purchase"><?php echo ($is_single ?
esc_attr( get_option( 'invoiceninja_buy_now_label', 'Buy Now' ) ) :
esc_attr( get_option( 'invoiceninja_add_to_cart_label', 'Add to Cart' ) ) ) ?></button>
</form>
Expand Down

0 comments on commit 71d8163

Please sign in to comment.