This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: EVD - Card Discount Rules | |
* Plugin URI: https://rwky.ro | |
* Description: Discount rules for cart | |
* Version: 1.0 | |
* Author: Eduard Vasile Doloc | |
* Author URI: http://rwky.ro | |
* Developer: Eduard Vasile Doloc | |
* Developer URI: http://rwky.ro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Simulador de parcelas */ | |
.wc-simulador-parcelas-parcelamento-info, | |
.wc-simulador-parcelas-parcelamento-info .woocommerce-Price-amount, | |
.wc-simulador-parcelas-offer, | |
.wc-simulador-parcelas-offer .woocommerce-Price-amount, | |
.wc-simulador-parcelas-offer .wc-simulador-parcelas-detalhes-valor{ | |
font-style:normal !important; | |
font-size: .9em !important; | |
color: gray !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('woocommerce_before_add_to_cart_form', 'selected_variation_price_replace_variable_price_range'); | |
function selected_variation_price_replace_variable_price_range(){ | |
global $product; | |
if( $product->is_type('variable') ): | |
?><style> .woocommerce-variation-price {display:none;} </style> | |
<script> | |
jQuery(function($) { | |
var p = '.product-info .price-wrapper' | |
q = $(p).html(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Change default template from post to page in Flatsome | |
add_filter( 'template_include',function ( $template ) { | |
// CPTs | |
$cpts = array( 'cpt_name'); | |
if ( is_singular( $cpts ) ) { | |
// change the default-page-template.php to your template name | |
$default_template = locate_template( array( 'page.php' ) ); | |
if ( '' != $default_template ) { | |
return $default_template ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculates discount percentage for the product sale bubble for | |
* simple, variable or external product types. Returns base bubble text | |
* with or without formatting otherwise. | |
* | |
* @param $product | |
* | |
* @return string | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 32"><path d="M7.5 28.5H7V3.5h0.5V28.5zM10.9 3.5H8.4v25.1h2.6V3.5zM17 3.5h-2.7V16H17V3.5zM19.4 3.5h-1.1V16h1.1V3.5zM21.2 3.5h-0.8V16h0.8V3.5zM23.6 3.5h-0.7V16h0.7V3.5zM12.9 3.5h-1.2V16h1.2V3.5zM24.4 3.5H24V16h0.4V3.5zM25.5 3.5h-0.7V16h0.7V3.5zM29.2 3.5h-1.7V16h1.7V3.5zM30.5 3.5h-0.7V16h0.7V3.5zM35.1 3.5h-3.2V16h3.2V3.5zM37.5 3.5h-1.2V16h1.2V3.5zM39.6 3.5h-1V16h1V3.5zM41.7 3.5h-0.4V16h0.4V3.5zM50.8 16H52V3.5h-1.3V16zM44.1 3.5h-0.9V16h0.9V3.5zM47.5 3.5h-1.7V16h1.7V3.5zM49.3 3.5h-1.1V16h1.1V3.5zM53.4 3.5h-0.5v25.1h0.5V3.5zM57 3.5h-2.5v25.1H57V3.5z"/><path d="M17.3 18c0.4 0.2 0.7 0.5 0.9 1 0.2 0.4 0.3 0.9 0.3 1.5 0 0.6-0.1 1.1-0.3 1.5 -0.2 0.4-0.5 0.7-0.8 0.9 0.4 0.1 0.8 0.5 1 0.9 0.2 0.5 0.4 1.1 0.4 1.8 0 0.6-0.1 1.1-0.3 1.6 -0.2 0.5-0.5 0.8-0.9 1.1 -0.4 0.2-0.8 0.4-1.4 0.4h-3.3V17.6H16C16.5 17.6 17 17.7 17.3 18zM16.5 21.7c0.1-0.2 0.2-0.5 0.2-0.8 0-0.3-0.1-0.6-0.2-0.8 -0.1-0.2-0.3-0.3-0.6-0.3h-1.3V22H16C16.2 22 16.4 21.9 16.5 21.7zM16.7 26c0.2-0.2 0.3-0.5 0. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Flatsome testimonial customization */ | |
.testimonial-box { | |
margin-bottom: 50px; | |
border-radius: 7px; | |
-webkit-box-shadow: 0px 0px 10px 3px rgba(225,225,225,0.75); | |
-moz-box-shadow: 0px 0px 10px 3px rgba(225,225,225,0.75); | |
box-shadow: 0px 0px 10px 3px rgba(225,225,225,0.75); | |
} | |
.testimonial-box .testimonial-image { | |
top: -50px; |