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> | |
| <meta charset="utf-8" /> | |
| <meta name="apple-mobile-web-app-capable" content="yes" /> | |
| <title>ePOS-Print</title> | |
| <script type="text/javascript"> | |
| // URL of ePOS-Print supported TM printer (Version 4.1 or later) | |
| var url = 'http://10.0.0.201/cgi-bin/epos/service.cgi'; |
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 | |
| // change the CASHIER_ID, and | |
| // add to your functions.php file | |
| add_filter('map_meta_cap', 'wc_pos_map_meta_cap', 10, 3); | |
| function wc_pos_map_meta_cap($caps, $cap, $user_id){ | |
| if(is_pos() && $cap == 'edit_users' && $user_id === CASHIER_ID){ | |
| $caps = array('edit_users'); |
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 this to your functions.php file | |
| add_filter('woocommerce_pos_i18n', 'my_custom_woocommerce_pos_i18n'); | |
| function my_custom_woocommerce_pos_i18n(array $translations){ | |
| $translations['buttons']['shipping'] = 'Livraison'; | |
| return $translations; | |
| } |
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
| <tr> | |
| <td class="product"> | |
| {{name}} | |
| {{#with meta}} | |
| <dl class="meta"> | |
| {{#each []}} | |
| <dt>{{label}}:</dt> | |
| <dd>{{value}}</dd> | |
| {{/each}} | |
| </dl> |
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" /> |
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
| [ | |
| { | |
| "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
| <?php | |
| function my_custom_create_customer_data($data){ | |
| if(function_exists('is_pos') && is_pos()){ | |
| $dummy_email = 'email@example.com'; // 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
| 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 | |
| // 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' ); |