I want a public and NOT embedded Shopify app. This app is a sales channel, which imports products from Shopify stores to my e-commerce website. The stores which install the app will have their products listed on my e-commerce website.
I have built the initial steps to install the app and import the products into my e-commerce website.
Now when user clicks on the app icon, I want him to be redirected to the following page which displays the list of imported product:
https://my-commerce.com/products?storeurl=perisn-handcrafts.myshopify.com
If the above links returns a list of product as below, the product list will be displayed within the Shopify Admin cosole:
<table data-toggle="table">
<thead>
<tr>
<th>UniqueThirdPartyProductCode</th>
<th>Title</th>
<th>Price</th>
<th>ImageUrl</th>
<th>CombinedCategoryViewModel</th>
</tr>
</thead>
<tbody>
<tr>
<td>39-4477334519894</td>
<td>Blue</td>
<td>550.00</td>
<td></td>
<td>"todo"</td>
</tr>
/* more data... */
</tbody>
</table>
But if I put the table inside the page layout, which adds <html>
, <head>
and <body>
tag to the result, then the result is not displayed... for example if my app return the following HTML:
<html>
<head></head>
<body>
<table data-toggle="table">
/*
* content of the table
*/
</table>
</body>
I would get this result:
I am not sure why I am getting this error:
ngrok.io refused to connect
Also it seems like my app is embedded within Shopify admin console, is it possible to build a public app which is not embedded?