Search results for: woocommerce
Buy with Prime
add_action( ‘woocommerce_after_add_to_cart_form’, ‘QL_add_text_under_add_to_cart’ ); function QL_add_text_under_add_to_cart () { global $product; ?>
Buy with Prime
add_action( ‘woocommerce_after_add_to_cart_form’, ‘QL_add_text_under_add_to_cart’ ); function QL_add_text_under_add_to_cart () { global $product; ?>
rearrange shipping options
Login to cpanel. Choose “File Manager” Navigate to public_html>wp-includes>functions.php and select “Edit” Paste in the contents…
Untitled Snippet
function custom_related_products_args( $args ) { $args['posts_per_page'] = 2; // Related products সংখ্যা $args['columns'] = 2; //…
WooCommerce - Add min height to title
Used to help the shopping buttons align vertically when the title line wraps irregularly due to…
Restrict payment methods based on cart total
Restrict payment methods based on cart total
Shortcode widget main categories WooCommerce
function shortcode_categorie_principali_wc() { $args = array( 'taxonomy' => 'product_cat', 'orderby' => 'menu_order', 'order' => 'ASC', 'hide_empty'…
Noindex Product Search Pages
This code snippet can be used to set noindex on WooCommerce product search pages.
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…
Auto register guests that purchase
function wc_register_guests( $order_id ) { // get all the order data $order = new WC_Order($order_id); //get…
Action Scheduler Cleardown | Display Eventbrite Events
Eventbrite uses Action Scheduler to handle background tasks when background processing is enabled. By default, Action…
Troubleshooting Action Scheduler - access the Scheduled Actions page
Some plugins that install the Action Scheduler library (such as the Action Scheduler plugin itself) add…
Dynamically Add Article Schema to Posts
This filter can be used to Dynamically Add Article Schema to Posts.
The draft of receipt
from reportlab.lib.pagesizes import A4 from datetime import datetime from reportlab.platypus import Table, TableStyle, Paragraph, SimpleDocTemplate, Image,…