Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Shopify modify assset PHP

View shopify_modify_asset_php
1 2 3 4 5 6 7 8 9 10 11 12 13
// Update 404 page HTML with pixel
$liquid_404_pixel = $this->shopify->call('PUT', '/admin/themes/' . $main_theme_id . '/assets.json',
array(
'asset' =>
array(
'key' => 'templates/404.liquid',
'value' => ($liquid_404_html . $this->load->view('pixel', array('client_id' => $this->session->userdata('client_id')), true))
)
)
);
 
// Part that returns the error
var_dump($liquid_404_pixel);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.