Skip to content

Instantly share code, notes, and snippets.

Created October 29, 2012 20:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3976510 to your computer and use it in GitHub Desktop.
Save anonymous/3976510 to your computer and use it in GitHub Desktop.
Shopify modify assset PHP
// 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