Skip to content

Instantly share code, notes, and snippets.

View oussamaProjects's full-sized avatar

Oussama Elmaaroufy oussamaProjects

View GitHub Profile
@oussamaProjects
oussamaProjects / cmnq_min_max_quantity.php
Created April 3, 2019 10:59 — forked from kartikparmar/cmnq_min_max_quantity.php
Validation on the Update Cart button on Cart page
<? php
/*
* Get the total quantity of the product available in the cart.
*/
function wc_qty_get_cart_qty( $product_id , $cart_item_key = '' ) {
global $woocommerce;
$running_qty = 0; // iniializing quantity to 0
// search the cart for the product in and calculate quantity.
foreach($woocommerce->cart->get_cart() as $other_cart_item_keys => $values ) {
/**
*
* Gulpfile setup
*
* @since 1.0.0
* @authors Ahmad Awais, @digisavvy, @desaiuditd, @jb510, @dmassiani and @Maxlopez
* @package neat
* @forks _s & some-like-it-neat
*/
@oussamaProjects
oussamaProjects / reset.sass
Created March 19, 2017 12:17 — forked from trey/reset.sass
Eric Meyer's reset.css in Sass. Originally by @postpostmodern.
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain) */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,