Relative Content

Tag Archive for woocommerce

woocommerce search query

I am trying to create a predictive search form for woocommerce that help user to get quick and exact search result, The code work fine but the problem is with the woocommerce search query (search result) it show users a wrong result: If users searches for (men clothing) they get a result that does not match what they looking for, it shows women clothing, tables and chairs instead of showing: shorts, shoes and men’s clothing…!

Remove Woocommerce handling fee if cart total is zero

I am using the following snippet to add a flat rate handling fee to physical items in my cart. My company offers free books with free shipping to our employees via use of a coupon, so I need this fee to be removed if the cart total is zero. Not sure how to accomplish this.

restriction to buy once per year, date is not working

I’m using this coding to restrict the users to create an order per year, and it’s working well. But, I noticed that if the date created of the last order is more than 365 days, the coding takes it as it was from this year so it doesn’t let users that have purchased with more than 365 days to buy again. Can someone please review the coding and make the necessary modifications? Thanks in advance!