I can’t find a way to change the Woocommerce default message when you try to add another product to your cart marked as sold individually. I found out that this is how you edit the default success …
Tag: wordpress
Disable specific payment methods depending on Woocommerce order status
I made a two-step payment on the site. Payment occurs after confirmation of the order by the manager. First, the user selects the payment method “for confirmation”(renamed “cash on delivery”) and pay only after receiving the invoice for payment. On the checkout page, I hide paypal via …
How to include PHPmailer in functions.php properly (WordPress)
I’m trying to include PHPmailer in functions.php my code: function test_mailer () { } I also tried to put require_once out of the try catch still the same error here is the snippet about the error “PHP Fatal error: Uncaught Error: Class ‘PHPMailer’ not found” I use betheme templa…
Uncaught ReferenceError: jQuery is not defined in wordpress custom script
My jquery file is not working in WordPress.The error is here: My js code: (function($) { $(document).ready(function(){ $(‘#read_more’).click(function() { $(‘.display_none’).show()….
Woocommerce checkout with edit address layout
So, when you go to checkout you see all billing fields inputs but I want to remove all them and display a card based like on My Account / Edit Address with the Edit button. It this possible? Basically I need to eject that card on the billing fields place. Any advise? I am already using “Hide billing add…
Function get_plugins() cannot be execute
I’m trying to code simple php script which will return all plugins of WordPress. My code: And my output is: I used official example from: https://codex.wordpress.org/Function_Reference/get_plugins I did: change of PHP version from 7.2 to 5.6 set right permission of files install WordPres once again So m…
WooCommerce : assign member to shipping zone
is there a way to assign a shipping zone to a member ? I want to do that because I use WooCommerce for a food delivery site and I need to send an email to the closest Restaurant when someone makes an order I was thinking about adding an email field in the shipping zone table like below (sorry my
Sell some products only on a specific day in WooCommerce
With Woocommerce I would like to sell certain defined items on Sunday only. If anyone tries to purchase outside of Sunday, it should give an error. The remaining items in the shop can be purchase anytime. Is this possible? Any track is really appreciated. Example – I have a product called “Sunday Tapas”…
Add custom checkout field based on product category in Woocommerce
I need to add custom checkout field based on product category. I found this code which works with products, but it is very time consuming to add Ids from every new product from particular category. How to modify this code to work with product categories? Answer Try the following to handle product categories (…
Add variation stock quantity and status to Woocommerce product variation dropdown
Based on “Show stock status next to each attribute value in WooCommerce variable products”, I have the following code that shows stock quantity + stock status in product variation dropdown and also as displayed product availability text: But I am having an issue with this code: for ex. I have a pr…