CouponCode Step on 4 Step
Cita de tsapournias.alex en 04/25/2020, 1:02 PMHello i would like to ask if can you tell me how to put the Coupon Code field also on the 4 step on my website. I make it with Phpstorm if this is needed.
Also on the next Update can we put when we have a coupon code on the last page the costumer see the percent that he win with this coupon so can the costumer really believe that we have an action made! thanks a lot
Hello i would like to ask if can you tell me how to put the Coupon Code field also on the 4 step on my website. I make it with Phpstorm if this is needed.
Also on the next Update can we put when we have a coupon code on the last page the costumer see the percent that he win with this coupon so can the costumer really believe that we have an action made! thanks a lot
Cita de WP Car Rental en 04/25/2020, 1:25 PMHello Alex,
Yes, I havent tested it, but the following code should do the work if using Car rental system v5.0.2+:
<form action="" name="coupon-submit" id="coupon-submit" method="post"> <input type="hidden" name="<?= esc_attr( $extPrefix . $orderCodeParam ); ?>" value="<?= esc_attr( $orderCode ); ?>"/> <input type="hidden" name="<?= esc_attr( $extPrefix ); ?>do_not_flush" value="yes"/> <input type="text" name="coupon_code" value="<?= esc_attr( $couponCode != "" ? $couponCode : $lang['LANG_COUPON_CODE_INPUT2_TEXT'] ); ?>" class="coupon-code" title="<?= esc_attr( $lang['LANG_COUPON_CODE_TEXT'] ); ?>" onfocus="if(this.value === '<?= esc_js( $lang['LANG_COUPON_CODE_INPUT2_TEXT'] ); ?>') {this.value=''}" onblur="if(this.value === ''){this.value ='<?= esc_js( $lang['LANG_COUPON_CODE_INPUT2_TEXT'] ); ?>'}"/> <button type="submit" name="<?= esc_attr( $extPrefix ); ?>do_search4" class="button">Apply</button> </form>I will check if I can add the percentage from theme before next update, otherwise you will have to ask this to plugin author.
Regards
Hello Alex,
Yes, I havent tested it, but the following code should do the work if using Car rental system v5.0.2+:
<form action="" name="coupon-submit" id="coupon-submit" method="post"> <input type="hidden" name="<?= esc_attr( $extPrefix . $orderCodeParam ); ?>" value="<?= esc_attr( $orderCode ); ?>"/> <input type="hidden" name="<?= esc_attr( $extPrefix ); ?>do_not_flush" value="yes"/> <input type="text" name="coupon_code" value="<?= esc_attr( $couponCode != "" ? $couponCode : $lang['LANG_COUPON_CODE_INPUT2_TEXT'] ); ?>" class="coupon-code" title="<?= esc_attr( $lang['LANG_COUPON_CODE_TEXT'] ); ?>" onfocus="if(this.value === '<?= esc_js( $lang['LANG_COUPON_CODE_INPUT2_TEXT'] ); ?>') {this.value=''}" onblur="if(this.value === ''){this.value ='<?= esc_js( $lang['LANG_COUPON_CODE_INPUT2_TEXT'] ); ?>'}"/> <button type="submit" name="<?= esc_attr( $extPrefix ); ?>do_search4" class="button">Apply</button> </form>
I will check if I can add the percentage from theme before next update, otherwise you will have to ask this to plugin author.
Regards
Cita de tsapournias.alex en 04/29/2020, 3:22 PMhello again thanks a lot but what file i must open and put it in because i have try on /wp-content/plugins/FleetManagement/Controllers/Front/Search/Step5SummaryController.php and it is not working
hello again thanks a lot but what file i must open and put it in because i have try on /wp-content/plugins/FleetManagement/Controllers/Front/Search/Step5SummaryController.php and it is not working
Cita de tsapournias.alex en 04/29/2020, 3:47 PMNo worries i made it and work perfectly thanks a lot for your help!!!!!!
No worries i made it and work perfectly thanks a lot for your help!!!!!!
Cita de tsapournias.alex en 04/29/2020, 7:48 PM
check out for the next update idea! thanks alot
check out for the next update idea! thanks alot
Cita de ochoasamuel1960 en 05/07/2020, 11:16 AMThank you very much for the coupon information. I did the same update on my website, everything works fine. Even there is now a new opportunity to add bonus codes for no deposit operations. Very cool option.
Thank you very much for the coupon information. I did the same update on my website, everything works fine. Even there is now a new opportunity to add bonus codes for no deposit operations. Very cool option.
Cita de WP Car Rental en 05/08/2020, 10:31 PMVery good idea Alex, I might add it on next update.
Thank you!
Very good idea Alex, I might add it on next update.
Thank you!