Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Jeff Balicki
/
st_joseph
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
32d98a8b
authored
2023-03-23 16:35:19 -0400
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sss
Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent
b081e7be
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
wp-content/themes/crlg/inc/woo.php
wp-content/themes/crlg/woocommerce/checkout/form-coupon.php
wp-content/themes/crlg/inc/woo.php
View file @
32d98a8
...
...
@@ -291,7 +291,12 @@ function my_staff_checkout_field( $checkout ) {
)
),
$checkout
->
get_value
(
'is_your_registration'
));
echo
'<tr class="coupon-form"><td colspan="2">'
;
wc_get_template
(
'checkout/form-coupon.php'
,
);
echo
'</td></tr>'
;
echo
"</div></div><script>
...
...
@@ -380,7 +385,7 @@ function display_custom_meta_data_in_backend_orders( $order ){
/*
* Hooking "Coupon form" after order total in checkout page with custom function
*/
add_action
(
'woocommerce_review_order_after_order_total'
,
'woocommerce_checkout_coupon_form_custom'
);
//
add_action( 'woocommerce_review_order_after_order_total', 'woocommerce_checkout_coupon_form_custom' );
/*
* Rendering html for "Coupon form" with custom function
...
...
wp-content/themes/crlg/woocommerce/checkout/form-coupon.php
View file @
32d98a8
...
...
@@ -36,7 +36,7 @@ if ( ! wc_coupons_enabled() ) { // @codingStandardsIgnoreLine.
?>
<div
id=
"coupon-form"
class=
"checkout_coupon"
method=
"post"
style=
"display:none;"
>
<p><
strong>
<?php
esc_html_e
(
'If you have a SJHCG staff coupon code, please apply it below.'
,
'woocommerce'
);
?>
</strong
></p>
<p>
<
?php
esc_html_e
(
'If you have a SJHCG staff coupon code, please apply it below.'
,
'woocommerce'
);
?
>
</p>
<p
class=
"form-row form-row-first"
>
<input
type=
"text"
name=
"coupon_code"
class=
"input-text"
placeholder=
"
<?php
esc_attr_e
(
'SJHCG staff coupon code'
,
'woocommerce'
);
?>
"
id=
"checkout_coupon_code"
value=
""
/>
...
...
Please
register
or
sign in
to post a comment