This file contains hidden or 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
.product_title, | |
.woocommerce-product-details__short-description, | |
.woocommerce-Tabs-panel--description { | |
text-transform: uppercase; | |
} | |
This file contains hidden or 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( 'genesis_loop', 'wpdesk_do_product_loop' ); | |
/** | |
* CATEGORIES DISPLAY WITH PRODUCTS | |
* | |
*/ | |
function wpdesk_do_product_loop() { | |
$product_cat_args = array( |
This file contains hidden or 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_filter( 'woocommerce_email_order_meta_keys', 'wpdesk_vat_number_display_email' ); | |
/** | |
* Pole NIP w mailu | |
*/ | |
function wpdesk_vat_number_display_email( $keys ) { | |
$keys['NIP'] = '_vat_number'; | |
return $keys; | |
} |
This file contains hidden or 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_filter( 'woocommerce_product_add_to_cart_text' , 'wpdesk_product_add_to_cart_text' ); | |
/** | |
* Change add to cart text for product types | |
* | |
*/ | |
function wpdesk_product_add_to_cart_text() { | |
global $product; |
This file contains hidden or 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 | |
/** | |
* Dodajemy pole liczby dla produktów na stronę. | |
*/ | |
function custom_quantity_field_archive() { | |
$product = wc_get_product( get_the_ID() ); | |
if ( ! $product->is_sold_individually() && 'variable' != $product->product_type && $product->is_purchasable() ) { | |
woocommerce_quantity_input( array( 'min_value' => 1, 'max_value' => $product->backorders_allowed() ? '' : $product->get_stock_quantity() ) ); | |
} | |
} |
This file contains hidden or 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
<script type="text/javascript"> | |
<!-- | |
ceneo_client_email = '[email protected]'; | |
ceneo_order_id = '141'; | |
ceneo_shop_product_ids = '#70#70#23#24#24#42'; | |
ceneo_work_days_to_send_questionnaire = 10; | |
//--> | |
</script> | |
<script type="text/javascript" src="https://ssl.ceneo.pl/transactions/track/v2/script.js?accountGuid=622435"></script> |
This file contains hidden or 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( 'in_admin_footer', 'my_admin_footer_function' ); | |
/** | |
* Add HS Beacon | |
* | |
*/ | |
function my_admin_footer_function() { | |
?> |
This file contains hidden or 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('in_admin_footer', 'my_admin_footer_function'); | |
/** | |
* Add HS Beacon | |
* | |
*/ | |
function my_admin_footer_function() { | |
$current_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; |