Category - Shopify

Articles

Hydrogen and Oxygen fundamentals
references: https://shopify.dev/docs/storefronts/headless/hydrogen/fundamentals Hydrogen and Oxygen make up Shopify’s recommended stack for headless commerce. The different parts of the system work together to make it faster and easier to build and deploy headless Shopify stores. Anchor to Architecture Architecture Three key parts of the Hydrogen stack work together to enable a unified developer experience: Technology What it does Hydrogen (App) A set of components, utilities, and design patterns that make it easier to work with Shopify APIs. Hydrogen projects are React Router apps that are preconfigured with Shopify-specific features and functionality. Hydrogen handles API client credentials, provides off-the-shelf components that are pre-wired for Shopify API data, and includes CLI tooling for local development, testing, and deployment. React Router (Framework) The open-source React framework that Hydrogen is built on top of. React Router handles routing, data fetching, server-side rendering, UI reactivity, and styling. Oxygen (Hosting) Shopify’s global serverless hosting platform, built for deploying Hydrogen storefronts at the edge. Oxygen handles deployment environments, environment variable management, caching, and integration with Shopify’s CDN. Developing each layer of this tech stack together means provides an end-to-end developer experience that reduces boilerplate code, improves productivity, and promotes optimal performance, accessibility, and SEO practices. Anchor to HydrogenHydrogen Anchor to Project structureProject structure Hydrogen projects are structured like typical React Router apps and you can configure them to your preferences. The following is the default Quickstart project structure: Hydrogen project structure 📂 hydrogen-quickstart/ ├── 📁 app/ │ ├── 📁 assets/ │ ├── 📁 components/ │ ├── 📁 graphql/ │ ├── 📁 lib/ │ ├── 📁 routes/ │ ├── 📁 styles/ │ ├── entry.client.jsx │ ├── entry.server.jsx │ └── root.jsx ├── 📁 public/ ├── CHANGELOG.md ├── README.md ├── customer-accountapi.generated.d.ts ├── env.d.ts ├── jsconfig.json ├── package.json ├── postcss.config.js ├── server.js ├── storefrontapi.generated.d.ts └── vite.config.js Anchor to Packages and dependencies Packages and dependencies Hydrogen bundles a set of dependencies that work together to enable end-to-end development and deployment: Package Description @shopify/hydrogen Main Hydrogen package. Contains components specific to React Router and utilities for interacting with Shopify APIs. Extends the framework-agnostic @shopify/hydrogen-react package. @shopify/hydrogen-cli CLI tool for working with Hydrogen projects. @shopify/mini-oxygen Local development server based on Oxygen. @shopify/remix-oxygen Remix adapter that enables Hydrogen to be served on Oxygen. Anchor to Hydrogen channelHydrogen channel The Hydrogen sales channel app needs to be installed on your Shopify store to enable the following features: A Hydrogen sales channel where you can publish product inventory. Oxygen hosting, to deploy your Hydrogen projects. Managing storefronts and deployment environments, including environment variable management. Access to deployment logs. Anchor to RoutesRoutes The standard format for product URLs is /products/:handle. If your storefront uses a different structure, then it’s recommended that you provide a server-side redirect (3XX) from the expected /products/:handle path to the product page. It’s also recommended that your storefront supports cart permalinks. View example implementation Anchor to React RouterReact Router React Router is the open-source React-based framework that Hydrogen is built on top of. Hydrogen projects are React Router apps with a set of preconfigured options, bundled with a collection of Shopify-optimized components and utilities. Hydrogen includes a custom React Router adapter that compiles your project for hosting on Oxygen. Tip Consider completing React Router’s 30-minute getting started tutorial for a solid foundation on the architecture and conventions of React Router apps. Anchor to Key React Router concepts Key React Router concepts Concept Details Nested routes React Router maps the nesting logic of app URLs to the nesting logic of components and data-loading. This allows all page data to load in parallel, reducing overall load times. Loaders React Router loaders are functions that load data so that it can be rendered server-side, which reduces the amount of JavaScript that’s sent to the client. In Hydrogen, loaders fetch data from Shopify APIs and third-party sources. Actions React Router actions are functions that accept web-standard form data from clients in order to update state, mutate data, or trigger side effects. SSR React Router apps default to server-side rendering (SSR), where their React components are rendered as HTML before being sent to the browser. Progressive enhancement Because React Router actions use web standard technology like HTML forms, they typically work without JavaScript, but can be enhanced with client-side JavaScript when it’s available. This, along with an SSR-first approach, means React Router apps typically deliver smaller bundle sizes that load faster. Anchor to Oxygen Oxygen Oxygen is Shopify’s global deployment platform that’s built for hosting Hydrogen storefronts at the edge. It provides multiple deployment environments, so you can preview every change before shipping it to production. Oxygen supports continuous deployment using GitHub, or you can configure your own custom CI/CD system. Enable access to Oxygen by installing the Hydrogen channel. Anchor to Supported plansSupported plans Oxygen is available at no extra charge on paid Shopify plans: Pause and build Basic Shopify Advanced Plus Oxygen isn’t available on Starter plans or development stores. Anchor to Technical specsTechnical specs Oxygen is a worker-based JavaScript runtime, based on Cloudflare’s open-source workerd library. It supports web standard APIs such as Fetch, Cache, Streams, Web Crypto, and more. Some Node.js APIs aren’t available. Check the Oxygen runtime details for a complete list. If you prefer, you can self-host Hydrogen. Anchor to LimitationsLimitations You can use Oxygen for hosting commerce storefronts. It’s subject to the Shopify Acceptable Use Policy. Misuse or abuse of Oxygen might lead to throttling, suspension, or termination. Workers: Must be 10 MB or less The startup time (the duration it takes for the worker to begin processing requests) must be 400 milliseconds or less. Must be named index.js. The optional source map file must be named index.js.map. Are limited to 30 seconds of CPU time per request Can consume 128 MB max of memory. Exceeding this limit could mean dropped requests. Are limited to 110 custom environment variables Outbound API requests must complete within 2 minutes Static assets, maximum file sizes: Images: 20 MB Video: 1 GB 3D models: 500 MB Other files: 20 MB Caution Ensure your requests go directly to Oxygen. Because proxies can conflict with Oxygen’s bot mitigation systems and cause SEO issues, Oxygen doesn’t support proxies in front of your Oxygen deployments. Anchor to Next stepsNext steps Fetch product data from Shopify
Hydrogen
references: https://shopify.dev/docs/storefronts/headless/hydrogen/getting-started https://mock.shop/   Shopify’s official headless framework. (Alternatively, can add Shopify APIs to your existing tech stack.) Process: create new Hydrogen storefront link to Shopify store deploy it to Oxygen Requirements Node.js v16.20+ and npm v8.19+ Hydrogen channel Step 1: Create a new Hydrogen storefront In your terminal, create a new Hydrogen project using example data from Mock.shop: Terminal Copy 1 npm create @shopify/hydrogen@latest — –quickstart Note The --quickstart flag is shorthand for a set of recommended options for trying Hydrogen. You can drop it to see the available customizations. You’ll see a confirmation message with some details about your new project: Output 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Shopify: Mock.shop Language: JavaScript Routes: • Home (/ & /:catchAll) • Page (/pages/:handle) • Cart (/cart/* & /discount/*) • Products (/products/:handle) • Collections (/collections & /collections/:handle) • Policies (/policies & /policies/:handle) • Blogs (/blogs/*) • Account (/account/*) • Search (/api/predictive-search & /search) • Robots (/robots.txt) • Sitemap (/sitemap.xml) Anchor to Step 2: Run the dev serverStep 2: Run the dev server After installation, open your new project and start the dev server: Terminal Copy 1 2 cd hydrogen-quickstart shopify hydrogen dev Once the dev server is running, open http://localhost:3000 in your browser and you’ll see Mock.shop inventory: Anchor to Step 3: Link your Hydrogen project to ShopifyStep 3: Link your Hydrogen project to Shopify By default, your Hydrogen project displays example products from Mock.shop. To show your own products, link your local project to Shopify, create a new storefront, and sync your environment variables. Link your Hydrogen project to Shopify: Terminal Copy 1 npx shopify hydrogen link Follow the prompts to log in to your Shopify account and create a new storefront: Output 1 2 3 4 5 6 7 ✓ my-shopify-store ? Select a Hydrogen storefront to link: ✓ Create a new storefront ? New storefront name: > hydrogen-quickstart Update your project’s environment variables: Terminal Copy 1 npx shopify hydrogen env pull Your terminal will show a diff like this: Output 1 2 3 4 5 6 7 – SESSION_SECRET=”foobar” – PUBLIC_STORE_DOMAIN=”mock.shop” + PUBLIC_STOREFRONT_ID=[ID] + PUBLIC_STOREFRONT_API_TOKEN=[TOKEN] + PRIVATE_STOREFRONT_API_TOKEN=[TOKEN] + PUBLIC_CUSTOMER_ACCOUNT_API_CLIENT_ID=[ID] + PUBLIC_CUSTOMER_ACCOUNT_API_URL=https://shopify.com/[ID] To confirm that the link works, run npm run dev and open http://localhost:3000. You’ll now see your storefront inventory in your browser: Anchor to Step 4: Deploy to OxygenStep 4: Deploy to Oxygen After your Hydrogen storefront is linked, you can deploy it to Oxygen hosting to make it publicly accessible: Deploy your project to Oxygen: Terminal Copy 1 npx shopify hydrogen deploy At the prompt to pick which environment to deploy to, select Preview. The Hydrogen CLI builds your storefront, creates a new Oxygen deployment, and returns a preview link in your terminal. Open the preview link in your browser see deployment URL: Anchor to Next stepsNext steps Congratulations! You’ve created a new Hydrogen storefront, connected it to Shopify, and made your first deployment to Oxygen. Hydrogen and Oxygen fundamentals Explore the key components of the Hydrogen and Oxygen stack and how they work together  
Polaris
Polaris is the design system for the Shopify admin. Recommended resources to get started: Design resources Shopify provides Figma community resources for Polaris components, styles, and icons. If you are new to Figma, check out our onboarding guide, or open Figma and start designing with the Polaris: Component UI kit Style Library Icon Library Development resources The Shopify/polaris GitHub repo is an open-source monorepo made up of NPM packages, VS Code extensions, and this website. To get started, learn how to install and use the Polaris: React components Design tokens VS Code extension Tutorials Build a Shopify app In this tutorial, you’ll create an app that merchants can access in the Shopify admin. You’ll use an app initialization command that generates starter code for building your app, and sets up your development environment so that you can work with your app using Shopify CLI. Your app will use Polaris and App Bridge while following the App Design Guidelines. Expand your knowledge Polaris provides foundational design guidance for creating good merchant experiences. Here are some recommended resources to: Experience values Design guidelines Content fundamentals  
Liquid
Liquid is a template language created by Shopify. It’s available as an open source project on GitHub, and is used by many different software projects and companies. This reference documents the Liquid tags, filters, and objects that you can use to build Shopify Themes. —Templating language: Allows you to create a template consisting of static content and dynamically inserted information, this dependent on where the template is rendered. Eg., a product template hosts all of your standard product attributes, such as the product image, title, and price. That template can then dynamically render those attributes with the appropriate content, depending on the product being viewed.
Shopify and Drupal integration
1. Download Shopify API module Project page: https://www.drupal.org/project/shopif… 2. Download and install the Composer Manager module. Project page: https://www.drupal.org/project/compos… Instructions: https://www.drupal.org/node/2405811 3. Run the Composer Manager init script. $ php modules/contrib/composer_manager/scripts/init.php 4. Run composer drupal-rebuild. 5. Run composer update donutdan4114/shopify. 6. Install the Shopify API module. 7. Create a new Private App on your Shopify store. 8. Copy & Paste private app info into the Shopify API settings. 9. Download and install the Shopify module. Project page: https://www.drupal.org/project/shopify 10. Sync products and collections to the site.
Shopify Automated Dropshipping
Automated Dropshipping: Everything To Know in 2023 by Alexandra Sheehan Source Products Nov 30, 2022 5 minute read Email Pinterest Facebook Twitter LinkedIn   Dropshipping is an order-fulfillment method for ecommerce businesses where one party outsources inventory holding and order processing to a third party. How to Run Automated Dropshipping in 2022 is when you use tools and technologies to run this process on autopilot, saving a lot of time. It is an attractive business model because it requires minimal investment and allows you to focus more on marketing and business development. Click here to start selling online now with Shopify What is automated dropshipping? Automated dropshipping is when a merchant outsources inventory management and order fulfillment to a third party, and the entire process is handled by machines and computers, or automations. Rather than sending orders, approving orders, and picking and packing orders manually, automated dropshipping relies on technology to handle the workflow for you. Pros and cons of automated dropshipping Pro: Improved efficiency One of the biggest benefits of automating is improved efficiency. Rather than waiting on manual reviews, approvals, and communications, automated dropshipping takes everything off your plate. You set the rules, and your technology will follow suit. This means less time waiting on people to move items to the next step in the workflow. Con: Smaller profit margins Dropshipping can be profitable if you have an effective business strategy. However, the profit margins are typically smaller than if you were to develop your own product and manage the fulfillment process hands on. Much of the benefit with automated dropshipping is outsourcing the tedious tasks to your tech stack and a dropshipping supplier, but this convenience doesn’t come without a cost. This is why dropshippers often have to sell items at scale to make a real profit. Pro: Better accuracy It’s important to have accurate data when making business decisions. Data inaccuracies can lead to costly mistakes. Business automation removes a lot of manual processes, so it also mitigates mistakes that happen due to human error. This improves the quality of your data so you can make better-informed choices. Con: More technical know-how required Automating your dropshipping business means you need to understand how to correctly use digital tools and technological resources. You not only have to find the right platforms to implement, you need to perform ongoing maintenance and updates. If you’re bootstrapped and have minimal technical expertise, this can be a sizeable hurdle to overcome, especially in the beginning. Pro: Less capital required One of the biggest benefits to dropshipping is you don’t need to invest in inventory. Since your suppliers produce, hold, and ship products, you don’t need to. Plus, the nature of dropshipping is everything is manufactured on a made-to-order basis—so you don’t need to purchase any inventory at all to start selling. Con: Less control When you dropship, you give up a lot of control over different aspects of your business. Your suppliers control the product and shipping, while you’re hands off. Some suppliers limit customizations and branding for customer orders. Plus, third parties can make errors that are completely outside your control. Pro: Reduced costs Automated dropshipping can reduce costs in a number of ways. First, you don’t lose money to data inaccuracies and human error. Additionally, automation speeds up tasks, reducing the amount of time and resources you need to invest in dropshipping operations. This creates a leaner operation and frees up capital to invest in other areas of the business. Con: Less flexibility for exceptions Because you have little control in a dropshipping relationship, you’re often at the mercy of your suppliers’ terms and conditions. In some cases, this can leave little room for exceptions and one-offs. Plus, when you automate everything, more processes happen without manual review or intervention. How to automate a dropshipping website If you want to start a dropshipping business and automate it, there are many ways to go about it, including: 1. Search the Shopify App Store for automated dropshipping tools You can build, customize, and launch an automated dropshipping ecommerce store with Shopify. Start your online store and then install the automated dropshipping apps that work best for your needs. There are many options for all-in-one dropshipping automation software to choose from on the Shopify App Store, including: Automizely Dropshipping App. Dropship from platforms like AliExpress, Oberlo, and CJ. Automizely also has automated features for finding the right product pricing. Dropified – Oberlo Alternative. Automatically send customer and order information from your Shopify store to your dropshipper. Dropshipping Automated AutoDS. Find and import dropshipping products from sites like AliExpress, Amazon, Alibaba, and more. The app automatically fulfills orders and updates tracking numbers. Duoplane. Work with multiple dropshipping vendors and streamline order processing with this automation tool. Fully automate your multi-supplier order flow so you can spend more time growing (and enjoying) your business. Ordoro. Choose to automatically route dropshippable orders to suppliers or split by default. 2. Streamline order processing with your supplier Perhaps the most valuable automation option when it comes to your dropshipping business is order processing. When a customer places an order on your website, that order is automatically routed to your dropshipping supplier. This notification tells your supplier about the order and customer details so the supplier can kick off the production and fulfillment process. Some platforms will also work with multiple dropshipping suppliers and automatically route orders to vendors based on their availability. This is a core feature of Duoplane, for example. When you automate order processing, you reduce and even eliminate any delays, which gets products into customers’ hands quicker. This is important because online shoppers expect fast shipping—58% of consumers shop online in search of the fastest shipping option. Tip: Some merchants sell a mix of dropshipped products and items sourced elsewhere. In this case, you can also set up automations to route orders for dropshippable products to the corresponding supplier and all other items to your own internal fulfillment platform. 3. Align inventory control across all channels When using automation in dropshipping, you want to ensure
Shopify Ideas
Shopify Ideas marketing tools: Hootsuite expensive $99./month 1 user acount and limit of 10 social media accounts — partnership: sample of current partners: microsoft, linkedin, facebook, amazon web services social media: set up accounts for myhealthymoods insta *** facebook twitter youtube pinterest *** connect shopify to accounts dropshipping: oberlo — no longer exists. refer to DSers DSers https://apps.shopify.com/dsers CJDropShipping https://apps.shopify.com/cucheng?surface_detail=dsers&surface_inter_position=1&surface_intra_position=1&surface_type=app-details sprocket https://apps.shopify.com/spocket?surface_detail=cucheng&surface_inter_position=1&surface_intra_position=2&surface_type=app-details zendrop https://apps.shopify.com/zendrop?surface_detail=cucheng&surface_inter_position=1&surface_intra_position=3&surface_type=app-details