function themify_fix_agcfw_variable_product_scripts() { // Only run on single product pages if ( ! is_product() ) { return; } // Only run if Themify theme is active if ( ! class_exists( ‘Themify_Enqueue_Assets’ ) ) { return; } // Only run if…Continue reading
/** * Hide Price & Add to Cart for Non Logged in Users for Specific Products */ function is_non_purchasable_products_for_visitors( $product ) { $not_purchasable_products = array( 23, 22 ); // Replace with Products ID you want to set as non purchasable…Continue reading
// This code runs every time the page is opened/reloaded $visits = 1; if (isset($_COOKIE[‘visits’])) { $visits = (int)$_COOKIE[‘visits’] + 1; } setcookie(‘visits’, $visits, time() + (86400 ), “/”); // Cookie lasts 1 days if ( ! defined( ‘EMAIL_SENT_PAGE_410’ )…Continue reading
/* Plugin Name: WC Vídeo na Capa do Produto (Flatsome Ready) Description: Substitui a imagem principal do produto por um vídeo local (MP4/WebM/GIF) no WooCommerce, compatível com Flatsome. Mostra também no catálogo/listagem com autoplay por visibilidade (60%). Version: 1.2.1 Author:…Continue reading
/* Zaa summary */ .product-footer .zaa-stl-wrapper .zaa-summary{ padding-left:0px !important; border-left-style:none !important; transform:translatex(0px) translatey(0px); } /* Zaa buy */ .zaa-stl-wrapper .zaa-summary .zaa-buy-btn{ min-width:10px !important; } /* Zaa buy */ #wrapper #main .shop-container .product .product-container .product-footer .container .zaa-stl-wrapper .zaa-summary .zaa-buy-btn{ width:100% !important;…Continue reading
if ( ! function_exists( ‘rd_currency_switcher_shortcode’ ) ) { function rd_currency_switcher_shortcode( $atts ) { if ( ! function_exists( ‘wc_get_currency_switcher_markup’ ) ) { return ”; } // Attributes (defaults) $atts = shortcode_atts( array( ‘flag’ => ‘true’, ‘symbol’ => ‘true’, ‘select_border’ => ‘true’,…Continue reading
.header-inner { transition: background-color 1.0s ease; /* Define uma transição suave para a cor de fundo */ } .stuck .header-main { background-color: #fff; border: none; } .stuck #logo img { max-height: 50px !important; } .logo img { padding: 10px !important;…Continue reading
if ( class_exists( ‘WooCommerce’ ) ) { add_filter( ‘gettext’, ‘rd_wc_generic_coupon_replacement’, 20, 3 ); add_filter( ‘ngettext’, ‘rd_wc_generic_coupon_replacement_plural’, 20, 5 ); /** * Singular + general replacements */ function rd_wc_generic_coupon_replacement( $translated, $original, $domain ) { // Only change front-end + Woo emails…Continue reading