Skip to content

Instantly share code, notes, and snippets.

View prakhargvp's full-sized avatar
🎯
Focusing

Prakhar Agarwal prakhargvp

🎯
Focusing
View GitHub Profile
@lucasstark
lucasstark / addons.js
Created August 14, 2018 13:25
Rough helper to run product addons values though Dynamic Pricing.
jQuery( document ).ready( function($) {
$.fn.init_addon_totals = function() {
function isGroupedMixedProductType() {
var group = $( '.product-type-grouped' ),
subs = 0,
simple = 0;
if ( group.length ) {