We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Create product page where products get through an api

Create product page where products get through an api

Manuel15
Shopify Partner
18 0 0

Hello All
I have created collection page using API call.
Here is url and password for page.
https://ganesh1725.myshopify.com/collections/all
Password : chiyod

The thing I want is to create a product page for each product which I have rendered from outside source like graphql API.

Is that possible using inside shopify theme files?
How can I do that?
Is there any suggestions or steps I need to follow or if there any documentation please share it with me...

Replies 2 (2)

Small_Task_Help
Shopify Partner
1144 55 112

hi,

 

you can create a custom product page template.

 

Example of code you can use

<h1>{{ product.title }}</h1>
<img src="{{ product.featured_image | img_url: 'large' }}" alt="{{ product.title }}">
<p>{{ product.description }}</p>
<p>Price: {{ product.price | money }}</p>

Fetch external product data using javascript and assign your template to products 

To Get Shopify Experts Help, Click Here or E-mail - hi@ecommercesmalltask.com
About Us - We are Shopify Developers India
At Google My Business - Ecommerce Small Task - Hire Shopify Developers Ahmedabad
Manuel15
Shopify Partner
18 0 0

Hello @Small_Task_Help 

Actually products are not setup at backend of shopify.
We can use this objects to show product info if the product is present at backend.
But I have get products from another store and showing them at the collection page.
What I want is how can I show them as a single product page which I have get from another store through API