Skip to content

Instantly share code, notes, and snippets.

View maion11's full-sized avatar

Mainul Kabir Aion maion11

View GitHub Profile
<!-- Start Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version=‘2.0’;n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,‘script’,’https://connect.facebook.net/en_US/fbevents.js');
<!-- Start Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version=‘2.0’;n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,‘script’,’https://connect.facebook.net/en_US/fbevents.js');
@maion11
maion11 / WC_Variable_Product_Price_Range
Created January 18, 2018 05:38
Changing WooCommerce Variable Products Price Range
function wc_varb_price_range( $wcv_price, $product ) {
$prefix = sprintf('%s: ', __('From', 'wcvp_range'));
$wcv_reg_min_price = $product->get_variation_regular_price( 'min', true );
$wcv_min_sale_price = $product->get_variation_sale_price( 'min', true );
$wcv_max_price = $product->get_variation_price( 'max', true );
$wcv_min_price = $product->get_variation_price( 'min', true );
$wcv_price = ( $wcv_min_sale_price == $wcv_reg_min_price ) ?
[erp_subscription_form group="1" life_stage="opportunity"]
[erp_subscription_form group="1, 4, 5, 6" first_name="Your First name" last_name]
[erp_subscription_form group="1, 4, 5, 6" first_name="Custom First Label" last_name]
[erp_subscription_form group="1, 4, 5, 6" full_name]
[erp_subscription_form group="1, 4, 5, 6" first_name last_name]
[erp_subscription_form group="1" email="Your Email Address"]
[erp_subscription_form group="1" email="Your Email"]