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 | |
// this goes in your theme functions.php file | |
function my_custom_pos_css() { | |
echo '<style>[data-action="fee"], [data-action="shipping"] { display: none; }</style>'; | |
} | |
add_action( 'woocommerce_pos_head', 'my_custom_pos_css' ); |
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 | |
// this goes in your theme functions.php file | |
function my_custom_product_response($response, $product) { | |
// only change the response for POS requests | |
if( ! is_pos() ) { | |
return $response; | |
} |
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 | |
// this goes in your theme functions.php file | |
function my_custom_pos_css() { | |
echo '<style>.products-list .img { display: none; }</style>'; | |
} | |
add_action( 'woocommerce_pos_head', 'my_custom_pos_css' ); |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title><?php _e( 'Receipt', 'woocommerce-pos' ); ?></title> | |
<style> | |
/* Reset */ | |
* { | |
background: transparent !important; | |
color: #000 !important; | |
box-shadow: none !important; |
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 | |
// theme functions.php file | |
function my_custom_wcpos_tax_enabled( $enabled ) { | |
return is_pos() ? false : $enabled; | |
} | |
add_filter( 'wc_tax_enabled', 'my_custom_wcpos_tax_enabled' ); |
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
javascript:(function()%7Bjavascript%3A%20(function%20(%24)%20%7B%24('input%5Bname%3D%22meta.label%22%5D').val('Members%20Car%20Registration')%3B%7D(window.jQuery))%7D)() |
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 | |
function my_custom_create_customer_data($data){ | |
if(function_exists('is_pos') && is_pos()){ | |
$dummy_email = '[email protected]'; // note: you would have to generate a unique email address for each user | |
$data['email'] = ! isset($data['email']) || empty($data['email']) ? $dummy_email : $data['email']; | |
}; | |
return $data; | |
} |
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
[ | |
{ | |
"total_sales": "0.00", | |
"net_sales": "0.00", | |
"total_orders": 0, | |
"total_items": 0, | |
"total_tax": "0.00", | |
"total_shipping": "0.00", | |
"total_refunds": 0, | |
"total_discount": "0.00", |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Multiple Class Inheritance In Backbone Collections</title> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.3.3/backbone-min.js"></script> | |
</head> | |
<body> |
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 | |
/* | |
Template Name: Stock Report :) | |
*/ | |
if (!is_user_logged_in() || !current_user_can('manage_options')) wp_die('This page is private.'); | |
?> | |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |