Skip to content

Commit 71d8163

Browse files
committed
Update shortcode prefix
1 parent 202cc23 commit 71d8163

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

InvoiceNinja/WordPress/PostApi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public function purchaseShortcode($atts)
330330
<form method="post" action="">
331331
<?php wp_nonce_field('invoiceninja_purchase_' . esc_attr($atts['product_id']), 'invoiceninja_nonce'); ?>
332332
<input type="hidden" name="product_id" value="<?php echo esc_attr($atts['product_id']); ?>">
333-
<button type="submit" name="purchase"><?php echo ($is_single ?
333+
<button type="submit" name="invoiceninja_purchase"><?php echo ($is_single ?
334334
esc_attr( get_option( 'invoiceninja_buy_now_label', 'Buy Now' ) ) :
335335
esc_attr( get_option( 'invoiceninja_add_to_cart_label', 'Add to Cart' ) ) ) ?></button>
336336
</form>

0 commit comments

Comments
 (0)