LIVE: Join us for a live Feedback On My Store Webinar. Click or tap here.

Import from laravel to shopify

Solved
jimjeans
New Member
1 0 0

Hi, I am running my online business on laravel based website. How can I import my website to Shopify? Is it possible or not?

Accepted Solution (1)
freddiewoods
Tourist
3 1 0

This is an accepted solution.

Laravel Shopify is a bundle to speak with the Shopify API from Laravel applications. The following are a couple of models from the task's documentation outline:

 

$shopify = \Signifly\Shopify\Factory::fromConfig();

// Paginate products
$cursor = $shopify->paginateProducts(); // returns a Cursor

// Get products count
$count = $shopify->getProductsCount(); // returns an integer

// Get products
$products = $shopify->getProducts(); // returns a Collection of ProductResource

// Create a product
$product = $shopify->createProduct([
'title' => 'Adidas Shoe, Pink',
]); // returns a ProductResource

// Get a specific product
$product = $shopify->getProduct($productId); // returns a ProductResource

// Update a product
$product = $shopify->updateProduct($productId, [
'title' => 'Adidas Shoe, Rose',
]); // returns a ProductResource

// Deleting a product
$shopify->deleteProduct($productId);

I am facing the same issue in my website write my essay. You can import your products by using this code and 

The package has API methods for the following high-level Shopify features like:

Analytics
Billing
Customers
Discounts
Events
Inventory
Marketing Events
Metafields

 

View solution in original post

Replies 3 (3)
freddiewoods
Tourist
3 1 0

This is an accepted solution.

Laravel Shopify is a bundle to speak with the Shopify API from Laravel applications. The following are a couple of models from the task's documentation outline:

 

$shopify = \Signifly\Shopify\Factory::fromConfig();

// Paginate products
$cursor = $shopify->paginateProducts(); // returns a Cursor

// Get products count
$count = $shopify->getProductsCount(); // returns an integer

// Get products
$products = $shopify->getProducts(); // returns a Collection of ProductResource

// Create a product
$product = $shopify->createProduct([
'title' => 'Adidas Shoe, Pink',
]); // returns a ProductResource

// Get a specific product
$product = $shopify->getProduct($productId); // returns a ProductResource

// Update a product
$product = $shopify->updateProduct($productId, [
'title' => 'Adidas Shoe, Rose',
]); // returns a ProductResource

// Deleting a product
$shopify->deleteProduct($productId);

I am facing the same issue in my website write my essay. You can import your products by using this code and 

The package has API methods for the following high-level Shopify features like:

Analytics
Billing
Customers
Discounts
Events
Inventory
Marketing Events
Metafields

 

freddiewoods
Tourist
3 1 0

You can get help from https://perfectessaywriting.com/

LienLi
Shopify Staff (Retired)
Shopify Staff (Retired)
1 0 0

As you mentioned `laravel`,  I would suppose you are familiar with API and Code, you can go and visit HTTP://shopify.dev, take a look at Shopify admin API, which allows you to import products through API.

https://shopify.dev/api/admin-graphql/2021-10/mutations/productcreate

also if you already have your product in the Database, I think you can also export it to CSV, and import it to Shopify after you adjust the format.