-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide warranty from order #20
base: develop
Are you sure you want to change the base?
Conversation
includes/class-frontend.php
Outdated
@@ -53,7 +53,7 @@ public function show_warranty() { | |||
$duration = wcrw_get_duration_value( $warranty['length_duration'], $value ); | |||
echo '<p class="wcrw_warranty_info"><strong>'. $warranty_label .':</strong> '. $value .' '. $duration .'</p>'; | |||
} else { | |||
echo '<p class="wcrw_warranty_info"><strong>'. $warranty_label .':</strong> '. __( 'Lifetime', 'wc-return-warranty' ) .'</p>'; | |||
echo '<p class="wcrw_warranty_info"><strong>'. "hello" .$warranty_label .':</strong> '. __( 'Lifetime', 'wc-return-warranty' ) .'</p>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is hello
here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to remove this . I used this for testing output
@@ -198,6 +198,7 @@ function get_item_data( $other_data, $cart_item ) { | |||
$product_id = $_product->get_id(); | |||
|
|||
$warranty = wcrw_get_warranty_settings( $product_id ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix line indentation
includes/class-frontend.php
Outdated
|
||
if ( $order_date ) { | ||
$expiry = wcrw_get_warranty_date( $order_date, $warranty['length_value'], $warranty['length_duration'] ); | ||
if ('no' == $warranty['hide_order_warranty'] ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes ===
check instead ==
Hide warranty from order by checkbox from backend