Skip to content

Instantly share code, notes, and snippets.

View cuocsongso's full-sized avatar

thembay cuocsongso

View GitHub Profile
@cuocsongso
cuocsongso / Kera Theme - Mailchimp Form Code.php
Created September 10, 2020 07:46
Kera Theme - Mailchimp Form Code
<input id="mc4wp_email" class="form-control input-newletter" name="EMAIL" required="" type="email" placeholder="Your e-mail address...">
<button type="submit" value="Submit"> <span>subscribe & get $15 coupon</span><i class="zmdi zmdi-email"></i></button>
@cuocsongso
cuocsongso / Diza Theme - Mailchimp Form Code.php
Last active September 10, 2020 07:45
Diza Theme - Mailchimp Form Code
<input id="mc4wp_email" class="form-control input-newletter" name="EMAIL" required="" type="email" placeholder="your email...">
<button type="submit" value="Submit"> <span>Subscribe</span><i class="tb-icon tb-icon-email"></i></button>
@cuocsongso
cuocsongso / GreenMart MailChimp form.php
Created September 5, 2020 04:04
GreenMart MailChimp form
<div class="mail-style1">
<div class="input-group">
<input id="mc4wp_email" class="form-control input-newletter" name="EMAIL" required="required" type="email" placeholder="Enter your email address" />
<span class="input-group-btn">
<input class="btn btn-default" type="submit" value="SUBSCRIBE" />
</span>
</div>
</div>
@cuocsongso
cuocsongso / Besa - Custom CSS quanlity box
Created August 19, 2020 07:35
Besa - Custom CSS quanlity box
.product-block .add-cart a.added+a.added_to_cart,
.product-block .add-cart a.added::after{
display: none !important;
}
.product-block .add-cart a.added {
display: flex !important;
}
.product-block .group-buttons .quantity button {
line-height: 33px !important;
@cuocsongso
cuocsongso / besa-theme-how-to-add-a-quantity-field-to-shop-pages-in-woocommerce.php
Created August 19, 2020 03:34
[Besa Theme] - How To Add A Quantity Field To Shop Pages In WooCommerce
/* [Besa Theme] - How To Add A Quantity Field To Shop Pages In WooCommerce */
function thembay_shop_page_add_quantity_field() {
/** @var WC_Product $product */
$product = wc_get_product( get_the_ID() );
if ( ! $product->is_sold_individually() && 'variable' != $product->get_type() && $product->is_purchasable() && $product->is_in_stock() ) {
woocommerce_quantity_input( array( 'min_value' => 1, 'max_value' => $product->backorders_allowed() ? '' : $product->get_stock_quantity() ) );
}
}
add_action( 'woocommerce_after_shop_loop_item', 'thembay_shop_page_add_quantity_field', 1 );
@cuocsongso
cuocsongso / Excluded JavaScript Files.txt
Last active January 29, 2021 06:44
Excluded JavaScript Files
/wp-includes/js/jquery/jquery.min.js
@cuocsongso
cuocsongso / Diza Theme - Never Cache Cookies.xml
Created July 20, 2020 08:06
Diza Theme - Never Cache Cookies
diza_recently_viewed_products_list
yith_woocompare_list
yith_wcwl_products
diza_display_mode
@cuocsongso
cuocsongso / TB Wedding - Never Cache Cookies.xml
Created July 10, 2020 09:35
TB Wedding - Never Cache Cookies
display_mode
yith_woocompare_list
yith_wcwl_products
tb_wedding_post_views_count
tb_wedding_recently_viewed_products_list
somdn_dlcount
@cuocsongso
cuocsongso / TB Camera - Never Cache Cookies.xml
Created July 10, 2020 09:31
TB Camera - Never Cache Cookies
display_mode
yith_woocompare_list
yith_wcwl_products
tb_camera_post_views_count
tb_camera_recently_viewed_products_list
somdn_dlcount
@cuocsongso
cuocsongso / Kera Theme - Never Cache Cookies.xml
Created July 10, 2020 09:29
Kera Theme - Never Cache Cookies
kera_recently_viewed_products_list
yith_woocompare_list
yith_wcwl_products
kera_display_mode
yith_wcwl_session_