Forum Replies Created
-
AuthorPosts
-
<!-- <span><a href="https://look.ir/jobs/apply" target="_blank" style="color: #000000 !important">فـرصـت هـای شـغـلـی </a> <a href="https://look.ir/jobs/apply" target="_blank" style="color: #DC143C !important">هـمـیـن حـالا اقـدام کـنـیـد</a></span> -->
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
I did the code.
Check the final results on my site : Look.ir
Regards.
Rahim Vaziri
CEO & Founder at Look.irHello guys,
Hope all of you are fine.
For those who want to hide the coupon code section on the cart page or checkout page this is a usable function to add to your functions.php of your active theme.
Some of you may like to force the customer to apply the coupon just on the cart page, or some others of you like me would like to have only one section for the coupon code at the end on the checkout page.
So for any need just add these to your functions.php.
Hiding coupon code on the cart page:
// hide coupon field on cart page function hide_coupon_field_on_cart( $enabled ) { if ( is_cart() ) { $enabled = false; } return $enabled; } add_filter( 'woocommerce_coupons_enabled', 'hide_coupon_field_on_cart' );
And Hiding the coupon code on the checkout page (Not Recommended):
// hide coupon field on checkout page function hide_coupon_field_on_checkout( $enabled ) { if ( is_checkout() ) { $enabled = false; } return $enabled; } add_filter( 'woocommerce_coupons_enabled', 'hide_coupon_field_on_checkout' );
Regards.
Rahim
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
Today I was testing my coupon codes in cart and checkout page that I found some rtl css bugs.
The coupon code : look
Cart : http://take.ms/8qZD5
Checkout : http://take.ms/qX2cp
If you remember in this topic, you gave me a file for this fix, if these are going to get fix via files, I will appreciate your favor to share the fixed file with me.
Regards.
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
Can you help me to add a code for this problem on checkout page?
This solves the cart page but after clicking the checkout button on mini cart, the message appears in the checkout page.
Regards.
Rahim Vaziri
CEO & Founder at Look.irAnd for your confusion, I decided to have the cart preview, so with this video I wanted to ask or report a bug for sold out products.
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
In the settings of woocommerce from those 3 checkbox, two lasts are checked.
My cart pop up is fine for adding new items that are suggested in the cart, but for the product which is sold out, when I press ” Read More ” nothing happens.
The last product that I try to add to cart, is sold out.
Check here : https://monosnap.com/file/IZGEJJgV2SKJAhxy0Omf9ru6AMPB0F
Rahim Vaziri
CEO & Founder at Look.irHi Harry,
The code that you gave me has hided the Woocommerce message after adding the product to the cart in the cart page in the mini cart mode
But it has hided some other messages of Woocommerce too.
Like the message of the password reset link sent or in here in my account page : http://take.ms/GnZie
Any chance to fix this?
And also I found that this code hides the woocommerce message in the cart page, not the checkout page.
Check on your local.
Regards.
Rahim Vaziri
CEO & Founder at Look.irYou too Harry.
Enjoy your weekend. 🙂
Rahim Vaziri
CEO & Founder at Look.irThank you so much Harry.
Regards.
Rahim Vaziri
CEO & Founder at Look.ir -
AuthorPosts