Home › Forums › Pro Themes › eCommerce Market Pro › Apply Coupon on cart page not working
Tagged: Coupon Code, woo commerce
- This topic has 8 replies, 3 voices, and was last updated 3 years, 6 months ago by SAHIB.
-
AuthorPosts
-
April 10, 2018 at 2:36 am #69624Matthew YoungParticipant
Hi,
On the cart page, the button to submit a coupon code does not work. On the checkout page, it does work. Ideally both would work. I think something is off in the PHP? Other themes have has similar issues with woo commerce.
the link to my site is https://nomadic6.com/cart/
This was the solve for another theme but I believe the your php is already correct.
Orignal code in “cart.php”
Original cart.php
=========================<?php if ( wc_coupons_enabled() ) { ?>
<div class=”coupon”><label for=”coupon_code”><?php _e( ‘Coupon’, ‘siteorigin-north’ ); ?>:</label>
<input type=”text” name=”coupon_code” class=”input-text” id=”coupon_code” value=”” placeholder=”<?php esc_attr_e( ‘Coupon code’, ‘siteorigin-north’ ); ?>” />
=== orig ===> <button type=”submit” class=”button” name=”apply_coupon”><?php esc_attr_e( ‘Apply Coupon’, ‘siteorigin-north’ ); ?></button><?php do_action( ‘woocommerce_cart_coupon’ ); ?>
</div>
<?php } ?>Changed code in “cart.php” – only change “button” to “input”
Modified cart.php
=========================<?php if ( wc_coupons_enabled() ) { ?>
<div class=”coupon”><label for=”coupon_code”><?php _e( ‘Coupon’, ‘siteorigin-north’ ); ?>:</label>
<input type=”text” name=”coupon_code” class=”input-text” id=”coupon_code” value=”” placeholder=”<?php esc_attr_e( ‘Coupon code’, ‘siteorigin-north’ ); ?>” />
=== chng ===> <input type=”submit” class=”button” name=”apply_coupon”><?php esc_attr_e( ‘Apply Coupon’, ‘siteorigin-north’ ); ?></button><?php do_action( ‘woocommerce_cart_coupon’ ); ?>
</div>
<?php } ?>April 12, 2018 at 1:27 am #69828wensolutionsKeymasterHello @myoun008,
First of all our sincere apology in the delay in replying to you.
Actually, it is noted as the known issue and we will definitely fix it in the coming updates.
As for now to resolve the issue you have to create the child theme.
You can create the child theme manually or simply by using the plugin given below:
https://wordpress.org/plugins/wp-child-theme-generator/
After activating the child theme in your child theme create the folder “woocommerce”. Inside the folder woocommerce create another folder “cart” and again inside the folder cart create the file “cart.php” and paste below-given code:
https://gist.github.com/Steeru/669df25af7156aa5b2cefd8de3597b71
Please make sure to follow the same path as mentioned above in your child theme.
Hope this helps.
Best Regards!!
April 19, 2018 at 7:33 am #70352Matthew YoungParticipantYes this worked! Thanks for your help 🙂
April 19, 2018 at 7:49 am #70355wensolutionsKeymasterHello @myoun008,
Glad we could help you.
Any further issues are always welcome.
We would also really appreciate if you could help us by rating our theme by following the link given below:
https://wordpress.org/themes/ecommerce-market/
Thank you.
Best Regards!!
June 29, 2018 at 5:48 am #74616Matthew YoungParticipantHi again,
my child theme seems to be reacting badly with some plugins, lots of bug on my site now, especially in the footer section. Any Idea when your new update will be released with the working coupon button I mentioned above?July 2, 2018 at 3:44 am #74765wensolutionsKeymasterHello @myoun008,
We are working on the updates and hopefully, we will soon release the update after all the necessary testings.
Hoping for the co-operation.
Thank you.
Regards!!
September 19, 2018 at 9:53 am #80081Matthew YoungParticipantHi,
We’ve been working to increase the speed on our site but my developer is saying this theme is really slow, and suddenly after I updated some plugins there are all kinds of bugs on the site nomadic6.com They are suggesting we switch to a faster theme but honestly I rather not have to re develop the site. Can you offer any help?
September 28, 2018 at 6:40 am #80731wensolutionsKeymasterHello @myoun008,
The significance of website speed is very less with the theme that you are using as generally theme handles layout part of the website only and uses minimal resources as fas as possible.
Furthermore, all of our theme are developed with best coding practices and WordPress standards and thus is unlikely to have caused issues regarding pagespeed.
However, if you are still having trouble with your page speed due to the theme, please provide us details on the issues caused by the theme so that we can look into the issues further and provide some precise fix.
Best Regards !!
May 19, 2021 at 9:00 am #150632SAHIBParticipantHi
I found this information very informative for new bloggers and for those who want to make such kind of themes and download themes from such sites that you created for bloggers. it’s really make my interest to purchase themes from your site. The similar sites I found that have similar tools and services that you are provided (revglue.com/blog-detail/5-how-to-setup-a-uk-discount-voucher-website-in-ten-minutes) if you think it will be beneficial for people then please visit here for more information. This site has huge amount of coupons data and i also noticed that it is updating this data daily which is the best thing for someone who is looking to make a set up for discount coupons. Revglue.com is also providing with free templates to setup a free site for us in few minutes. By the way I am here to know if anyone else is using Revglue.com? If yes kindly share your experience with me. -
AuthorPosts
- You must be logged in to reply to this topic.