Skip to content

Instantly share code, notes, and snippets.

View sarangs07's full-sized avatar

Sarang Shahane sarangs07

  • Pune, Maharashtra.
View GitHub Profile
@sarangs07
sarangs07 / functions.php
Created July 20, 2020 12:55
Display product image in the order review section.
/*
* How to add the custome code.
*
* Please follow below instructions:
* 1. Copy the below code.
* 2. Open your child theme's functions.php file.
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting.
*/
@sarangs07
sarangs07 / functions.php
Created July 17, 2020 12:08
Add the coupon in the global checkout URL.
/*
* How to add the custome code.
*
* Please follow below instructions:
* 1. Copy the below code.
* 2. Open your child theme's functions.php file.
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting.
*/
/**
@sarangs07
sarangs07 / functions.php
Created July 17, 2020 05:34
Apply the coupon on the Checkout page via URL.
/*
* How to add the custome code.
*
* Please follow below instructions:
* 1. Copy the below code.
* 2. Open your child theme's functions.php file.
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting.
*/
add_action( 'wp', 'wc_add_the_coupon_from_url' );
@sarangs07
sarangs07 / functions.php
Created July 15, 2020 08:39
Remove User information from the CartFlows Checkout page for Avada theme.
/*
* How to add the custome code.
*
* Please follow below instructions:
* 1. Copy the below code.
* 2. Open your child theme's functions.php file.
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting.
*/
add_action( 'wp', 'remove_avada_conflict_actions' );
@sarangs07
sarangs07 / functions.php
Last active April 1, 2021 09:01
Solve the Buddy Boss template override issue via child theme.
/*
* How to add the custome code.
*
* Please follow below instructions:
* 1. Copy the below code.
* 2. Open your child theme's functions.php file.
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting.
*/
add_filter( 'woocommerce_locate_template', 'wcf_locate_template_sm_conditions', 21, 3 );
@sarangs07
sarangs07 / functions.php
Last active June 23, 2020 11:35
Change Coupon field texts
/*
* How to add the custome code.
*
* Please follow below instructions:
* 1. Copy the below code.
* 2. Open your child theme's functions.php file.
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting.
*/
@sarangs07
sarangs07 / functions.php
Last active June 23, 2020 11:37
Change Variation Popup Toggle Text
/*
* How to add the custome code.
*
* Please follow below instructions:
* 1. Copy the below code.
* 2. Open your child theme's functions.php file.
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting.
*/
add_filter( 'cartflows_variation_popup_toggle_text', 'change_variation_popup_toggle_text' );
@sarangs07
sarangs07 / functions.php
Created June 15, 2020 06:55
Do not store persistence data from CartFlows Checkout page.
/*
* How to add the custome code.
*
* Please follow below instructions:
* 1. Copy the below code.
* 2. Open your child theme's functions.php file.
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting.
*/
add_filter( 'cartflows_allow_persistace', 'do_not_store_persistance_data' );
@sarangs07
sarangs07 / gist:ec06311bc13971fed9f097356c8fb169
Created June 3, 2020 12:26
Re-arrange the display the Date & time picker of YITH WooCommerce Delivery Date Plugin.
/*
* How to add the custome code.
*
* Please follow below instructions:
* 1. Copy the below code.
* 2. Open your child theme's functions.php file.
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting.
*/
@sarangs07
sarangs07 / functions.php
Last active June 8, 2020 08:57
Custom function to redirect the user to the specfic flow on the add_to_cart action, only for the variation product of your choice.
/*
* How to add the custome code.
*
* Please follow below instructions:
* 1. Copy the below code.
* 2. Open your child theme's functions.php file.
* 3. Paste the copied code at the very bottom of it & save the file OR upload it on your server/hosting.
*/