Search results for: woocommerce
REMOVE PRODUCT LINKS FROM YOUR SHOPPING CART
add_filter( 'woocommerce_cart_item_permalink', 'custom_remove_cart_product_link', 10 ); function custom_remove_cart_product_link() { return __return_null(); }
exclude meta key from duplicating products
exclude meta key from duplicating products
Set Minimum total purchase amount
add_action( 'woocommerce_check_cart_items', 'required_min_cart_subtotal_amount' ); function required_min_cart_subtotal_amount() { // HERE Set minimum cart total amount $minimum_amount =…
Remove Gutenberg Blocks Library CSS
Remove Gutenberg Block Library CSS from loading on the frontend
Make Product Non Purchasable for Wholesale Customer if Product Stock is Less Than Certain Amount
This snippet will allow you to make a product unavailable for purchase by wholesale customers if…
The draft of receipt
from reportlab.lib.pagesizes import A4 from datetime import datetime from reportlab.platypus import Table, TableStyle, Paragraph, SimpleDocTemplate, Image,…
Dynamically Add Article Schema to Posts
This filter can be used to Dynamically Add Article Schema to Posts.
Make the auction start price and auction dates required for vendors
This is from the integration with the WooCommerce Simple Auctions plugin
Auto register guests that purchase
function wc_register_guests( $order_id ) { // get all the order data $order = new WC_Order($order_id); //get…
Troubleshooting Action Scheduler - access the Scheduled Actions page
Some plugins that install the Action Scheduler library (such as the Action Scheduler plugin itself) add…
Noindex Product Search Pages
This code snippet can be used to set noindex on WooCommerce product search pages.
Action Scheduler Cleardown | Display Eventbrite Events
Eventbrite uses Action Scheduler to handle background tasks when background processing is enabled. By default, Action…
Generate a virtual coupon when order is completed.
This snippet will generate a new virtual coupon for a coupon that you've enabled virtual coupon…
Generate a virtual coupon when order is completed.
This snippet will generate a new virtual coupon for a coupon that you've enabled virtual coupon…