Can u check what I missing, I used below code-
<!DOCTYPE html>
<html>
<head>
<link href="<?php echo site_url(); ?>assets/css/seaff.css" type="text/css" rel="stylesheet">
<script src="https://cdn.shopify.com/s/assets/external/app.js"></script>
<script type="text/javascript">
ShopifyApp.init({
apiKey : '<?php echo $api_key; ?>',
shopOrigin : '<?php echo 'https://' . $shop; ?>',
debug: true
});
</script>
<script type="text/javascript">
ShopifyApp.ready(function(){
ShopifyApp.Bar.initialize({
buttons: {
primary: {
label: 'Save',
message: 'unicorn_form_submit',
loading: true
}
}
});
});
</script>
Thanks
Hii,
It's still not work, I used below code-
<link href="<?php echo site_url(); ?>assets/css/seaff.css" type="text/css" rel="stylesheet">
<script src="https://cdn.shopify.com/s/assets/external/app.js"></script>
<script type="text/javascript">
ShopifyApp.init({
apiKey : '<?php echo $api_key; ?>',
shopOrigin : '<?php echo 'https://' . $shop; ?>'
});
</script>
<script type="text/javascript">
ShopifyApp.ready(function(){
ShopifyApp.Bar.initialize({
buttons: {
primary: {
label: 'Save',
message: 'unicorn_form_submit',
loading: true
}
}
});
});
</script>
Please let me know what I missing.
Thanks
I came across the same issue with a nodejs app that I've been serving from my local machine with the help of the Shopify App CLI tools.
Not sure what is causing that issue but if you are trying to reinstall your app in a development store and you are getting "page not found error ..." then instead of trying to add it through the admin console in the Shopify admin use the below:
As the Shopify App CLI creates an embedded app, you'll need to install it on a development store. To do so, open the installation URL in your web browser: https://<LIVE_NGROK_URL>/auth?shop=your-development-store.myshopify.com. This will prompt you to install on your development store. It’s necessary to view and test your app in a live development store because some App Bridge and Polaris features are only available for use by your app when it’s embedded in the Shopify admin.
Is it this app https://apps.shopify.com/simple-po?surface_detail=Simple+Purchase+order+app?
You could reach out to the app developers and let them know that you can't reinstall the app.
User | Count |
---|---|
9 | |
6 | |
4 | |
4 | |
4 |