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
.woocommerce-checkout img.stripe-icon { | |
max-width: 30px; | |
} |
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 | |
function custom_quantity_field_archive() | |
{ | |
$product = wc_get_product(get_the_ID()); | |
if (! $product->is_sold_individually() && 'variable' != $product->get_type() && $product->is_purchasable()) { | |
woocommerce_quantity_input(array( 'min_value' => 1, 'max_value' => $product->backorders_allowed() ? '' : $product->get_stock_quantity() )); | |
} | |
} |
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
wp plugin install $(wp plugin list --field=name) --force |
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 | |
add_action( 'woocommerce_single_product_summary', 'show_total_number_of_sales', 11 ); | |
function show_total_number_of_sales() { | |
global $product; | |
$units_sold = $product->get_total_sales(); | |
if ( $units_sold ) echo '<p>' . sprintf( __( 'Összes eladás: %s', 'woocommerce' ), $units_sold ) . '</p>'; | |
} |
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
for run in {1..2}; do wp post delete $(wp wc product list --user=1 --format=ids --status=draft --per_page=100) --force; done |
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
<a class="button is-primary"> | |
Button | |
</a> | |
<a class="button is-link"> | |
Button | |
</a> | |
<a class="button is-info"> | |
Button | |
</a> | |
<a class="button is-success"> |
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
.et_boxed_layout #page-container, .et_boxed_layout #page-container .container, .et_boxed_layout #page-container .et_pb_row, .et_boxed_layout.et_non_fixed_nav.et_transparent_nav #page-container #top-header, .et_boxed_layout.et_pb_pagebuilder_layout.single #page-container .et_pb_row, .et_boxed_layout.et_pb_pagebuilder_layout.single.et_full_width_page #page-container .et_pb_row, .et_boxed_layout.et_pb_pagebuilder_layout.single.et_full_width_portfolio_page #page-container .et_pb_row, .et_fixed_nav.et_boxed_layout #page-container #main-header, .et_fixed_nav.et_boxed_layout #page-container #top-header, .et_non_fixed_nav.et_transparent_nav.et_boxed_layout #page-container #main-header { | |
width: 100% !important; | |
max-width: 100% !important; | |
margin: auto; | |
} |
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 | |
// [woocommerce_checkout_nyitva_tartas] | |
function woocommerce_checkout_nyitva_tartas($atts) | |
{ | |
$jelenlegi_ido = date('h:i:s a'); | |
$nyitas = "10:00 am"; //am -> délelőtt | |
$zaras = "4:00 pm"; // pm -> délután | |
$date1 = DateTime::createFromFormat('h:i a', $jelenlegi_ido); | |
$date2 = DateTime::createFromFormat('h:i a', $nyitas); |
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 | |
$current_lang = apply_filters('wpml_current_language', NULL); | |
function lang_en() { | |
wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/en.css' ); | |
} | |
function lang_it() { | |
wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/it.css' ); |
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_value upload_max_filesize 128M | |
php_value post_max_size 128M | |
php_value max_execution_time 300 | |
php_value max_input_time 300 | |
php_value max_input_vars 10000 |