All things Shopify and commerce
Based on the documentation, Shopify should be able to render the liquid tags return by the app proxy, but it seems that that is not the case, so for example:
<?php
header("Content-Type: application/liquid");
echo "<h1>Hello!</h1>";
$fileContent = file_get_contents('temp.liquid');
try{
if ($fileContent !== false) {
// File content has been successfully read
echo $fileContent;
echo '{{ product.title }}';
echo 'sample';
} else {
// Error handling if the file couldn't be read
echo "Unable to read the file.";
}
}catch(Exception $e){
echo $e->getMessage();
}
exit;
The above code is not rendering the liquid tags. Only the `sample` are rendered.
Any idea on this? Most of the times there's no output for liquid tags.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025