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
{ | |
"event": "bill_updated", | |
"data": { | |
"bill": { | |
"id": 1, | |
"bill_api_id": "27394", | |
"invoice_id": "2758", | |
"customer_user_id": "925f32d8-fa57-4617-9814-734e6327fd46", | |
"amount": { | |
"amount": "3488", |
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
{ | |
"id":"771540", | |
"sellout_timestamp":"2021-07-25T22:46:05", | |
"origem_coleta":"API|Nerdstore", | |
"buyer_taxpayer_id":"42144807833", | |
"store_taxpayer_id":"10640539000401", | |
"nfe_access_key":"41211210640539000401550010067046991101738505", | |
"sales_addition":0, | |
"sales_discount":0, | |
"total":159.81, |
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
https://nerdstore.com.br/?post_type=product&s=harry+potter | |
https://nerdstore.com.br/?post_type=product&s=funko | |
https://nerdstore.com.br/?post_type=product&s=caneca | |
https://nerdstore.com.br/?post_type=product&s=star+wars | |
https://nerdstore.com.br/?post_type=product&s=senhor+dos+aneis | |
https://nerdstore.com.br/?post_type=product&s=mini+busto | |
https://nerdstore.com.br/?post_type=product&s=cthulhu | |
https://nerdstore.com.br/?post_type=product&s=ozob | |
https://nerdstore.com.br/?post_type=product&s=funko+pop | |
https://nerdstore.com.br/?post_type=product&s=chaveiro |
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
setTimeout(function(){ | |
if ($('body').hasClass('modulo-suprimentos')) { | |
var name = $('#h_nome_produto').text() | |
console.log(name); | |
var sku = $('#h_sku_produto').text(); | |
sku = sku.replace(/"/g, ''); | |
console.log(sku); |
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 | |
// http://www.example.com/wp-admin/admin-post.php?action=update_all_products | |
add_action('admin_post_update_all_products', 'update_all_products'); | |
function update_all_products() { | |
$args = array( | |
'post_type' => 'product', | |
'posts_per_page' => 1, // para testar só com 1 | |
); | |
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
CREATE TABLE `user` ( | |
`id` int(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
`email` varchar(100) NOT NULL, | |
`password` varchar(255) NOT NULL, | |
`first_name` varchar(255), | |
`last_name` varchar(255), | |
`billing_first_name` varchar(255), | |
`billing_last_name` varchar(255), |
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
CREATE TABLE `user` ( | |
`id` int(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
`email` varchar(100) NOT NULL, | |
`password` varchar(255) NOT NULL, | |
`first_name` varchar(255), | |
`last_name` varchar(255), | |
`created_at` datetime NOT NULL, | |
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | |
); |
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 | |
// Register Custom Taxonomy | |
function register_product_origem() { | |
$labels = array( | |
'name' => 'Origens', | |
'singular_name' => 'Origem', | |
'menu_name' => 'Origem', | |
); | |
$rewrite = 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
/** | |
* Lista a visibilidade do catálogo de todos os itens | |
*/ | |
add_action('admin_post_check_products_visibility', 'check_products_visibility'); | |
function check_products_visibility() { | |
$args = array( | |
'post_type' => 'product', | |
'posts_per_page' => -1, | |
); |
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
jQuery(function($) { | |
console.log(window.location.href); | |
if (window.location.href == 'https://erp.tiny.com.br/expedicao' || window.location.href == 'https://erp.tiny.com.br/expedicao#add') { | |
console.log('gerando plp'); | |
var position = $('.form-group-section-simple'); | |
var wrapper = $('<div class="form-group-section"> <div class="row"> <div class="col-md-4 form-group"> <div class="input-group search-sale-slip-wrapper"> <span class="input-group-btn"><button class="btn btn-default search-slip-note-indicator" type="button"><i class="fas fa-search"></i></button> </span> </div> </div> </div> </div>'); | |
var input = $('<input class="form-control" placeholder="Pesquisar nota" />'); |
NewerOlder