Skip to content

Instantly share code, notes, and snippets.

View fditrapani's full-sized avatar
🇮🇹

Filippo Di Trapani fditrapani

🇮🇹
View GitHub Profile
This file has been truncated, but you can view the full file.
(window.webpackJsonp = window.webpackJsonp || []).push([[152, 333, 388], {
"../node_modules/flag-icon-css/flags/4x3 sync recursive ^\\.\\/.*\\.svg$": function(e, t, a) {
var n = {
"./ad.svg": "../node_modules/flag-icon-css/flags/4x3/ad.svg",
"./ae.svg": "../node_modules/flag-icon-css/flags/4x3/ae.svg",
"./af.svg": "../node_modules/flag-icon-css/flags/4x3/af.svg",
"./ag.svg": "../node_modules/flag-icon-css/flags/4x3/ag.svg",
"./ai.svg": "../node_modules/flag-icon-css/flags/4x3/ai.svg",
"./al.svg": "../node_modules/flag-icon-css/flags/4x3/al.svg",
"./am.svg": "../node_modules/flag-icon-css/flags/4x3/am.svg",
This file has been truncated, but you can view the full file.
/*! For license information please see entry-main.7248112e65c2a264a347.min.js.LICENSE.txt */
(window.webpackJsonp = window.webpackJsonp || []).push([[63], {
"../node_modules/@babel/runtime/helpers/interopRequireDefault.js": function(e, t) {
e.exports = function(e) {
return e && e.__esModule ? e : {
default: e
}
}
},
"../node_modules/@wordpress/i18n/build/create-i18n.js": function(e, t, n) {
select
LOWER(ep2.value) as value,
count( * ) as counts
from
tracks.prod_events as events,
events.eventprops as ep,
events.eventprops as ep2
where
dateymd between 20190110 and 20190212 and
eventname = 'wpcom_hook_wpmu_new_blog' and
select
LOWER(ep2.value) as value,
count( * ) as counts
from
tracks.prod_events as events,
events.eventprops as ep,
events.eventprops as ep2
where
dateymd between 20190110 and 20190212 and
eventname = 'wpcom_hook_wpmu_new_blog' and
select
LOWER(ep2.value) as value,
count( * ) as counts
from
tracks.prod_events as events,
events.eventprops as ep,
events.eventprops as ep2
where
dateymd between 20190110 and 20190212 and
eventname = 'wpcom_hook_wpmu_new_blog' and
select
LOWER(ep2.value) as value,
count( * ) as counts
from
tracks.prod_events as events,
events.eventprops as ep,
events.eventprops as ep2
where
dateymd between 20190110 and 20190212 and
eventname = 'wpcom_hook_wpmu_new_blog' and
https://localhost/generate_token.php?code={authorization_code}&signature=da9d83c171400a41f8db91a950508985&timestamp=1409617544
// Modify product data
$modify_data = array(
"product" => array(
"id" => $product_id,
"title" => "My New Title"
)
);
// Run API call to modify the product
$modified_product = shopify_call($token, $shop, "/admin/products/" . $product_id . ".json", $modify_data, 'PUT');
// Convert product JSON information into an array
$products = json_decode($products['response'], TRUE);
// Get the ID of the first product
$product_id = $products['products'][0]['id'];