My intention is to add multiple bulk dynamic pricing for WooCommerce products with specific product-tag. I use the slug “petit-format” on my code. Based on Bulk dynamic pricing for WooCommerce products with specific product-tag answer code, this is my attempt: But I only have the first discount that works, but the other one doesn’t. So the $discount1 works, but the
Tag: wordpress
Setting custom order statuses as paid in WooCommerce
I have a custom status that I need to set as ‘paid’, in the same sense that the core statuses Processing and Complete are ‘paid’ statuses. I need to do this because WC is synced to accounting software, and the sync is unable to generate a sales receipt for an unpaid order. It works fine when using Complete or Processing
In woocommerce show the check payment option when an order total is 0 dollars
On my wordpress, woocommerce website I am trying to add something to the function.php of my theme that will enable the pay with check option if the order total is 0 dollars. what I have so far: Obviously set isn’t correct, but I am not sure what to use in place of it. Answer Since the total order is 0
Sorting by post views count doesnt work. Plugin: “Post Views Counter” – WordPress
Im making news blog and I need to display daily posts. How doest daily posts work in my blog? : Im picking all posts for this day and sorting them by views count. There is the problem: I can’t sort by views count with Post Views Counter plugin. It doesnt returning any posts on WP_Query. My tryings: I tried googling
WordPress how to get a single post link
I want to go to single.php file when this button is clicked. but it doesn’t do anything. Answer Replace this: with this: And then style your a tag like a button.
How to set a maximum limit in WooCommerce orders per item & per day
I want to allow only a specific number of orders per product per day on my shop. Any idea which hook do I have to add? Thanks Answer The code below uses the product ID to get the total quantity for the current day. If this is higher than or equal to the $dailyOrderLimit that you set (in my example,
Nodejs send post to admin-ajax.php in wordpress /getting 400 error and 0
i want to post to wordpress on nodejs using admin-ajax.php which set some actions to use. But i get statusCode:400 and 0, i don’t know so much about wordpress and ajax. I tried use a cookie from the worked project from wordpress that what i want to transfer nodejs How can i set up this? Answer Latest Changes: added wordpress_logged_in
Hide shipping address in WooCommerce new order email notification depending on shipping method id
I want to hide the shipping address if the shipping label is called “Pick up at Rockefeller Store” (but to show for other pickup methods). There are too many ids such as “local_pickup:3” for me to filter through. I enabled the shipping address to be shown in emails/email-addresses.php despite it being a local pickup method. My code attempt: I need
remove_action wc_empty_cart_message not working in WooCommerce
I would like to REMOVE completely the wc_empty_cart_message. My site has no cart. and when the item is removed from checkout the user is redirected to the home page. But then upon browsing to a shop page, the message “your cart is not available whilst your checkout is empty” appears and is completely unnecessary. I have seen many of questions/answers
WooCommerce- SizeInfo button for canvas/paintings. [PHP,Javascript,html,css]
I require a plugin/function to display a size info modal for paintings on WooCommerce. I’ve found many for displaying size charts and tables but none for canvas/paintings. Questions: How do i get the WooCommerce attribute values to use in JavaScript. Solved How do i make the image source changed based on two conditions ( Size & Canvas Type)Solved example: (