shopify-functions

Develop and deploy custom Shopify backend functions with Node.js and Shopify CLI.

Updated Mar 24, 2016
One-click install
npx skills add https://github.com/jonmast/dotfiles --skill shopify-functions-jonmast
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shopify-functions
Source: https://github.com/jonmast/dotfiles/tree/main/agents/skills/shopify-functions
Command: npx skills add https://github.com/jonmast/dotfiles --skill shopify-functions-jonmast

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires node, shopify-cli, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill assists developers in writing and deploying custom Shopify Functions, allowing them to modify backend logic for various Shopify capabilities.

Core Features & Use Cases

  • Custom Function Creation: Create custom functions to modify backend logic for specific Shopify capabilities like discounts, fulfillment, and payment methods.
  • API Integration: Integrate with various Shopify APIs to extend functionality.
  • Use Case: Develop a custom discount function that applies conditional discounts based on cart contents or user metadata.

Quick Start

Run the following commands to generate a new custom function using the Discount API:

shopify app generate extension --template discount --flavor rust --name custom_discount_function
cd custom_discount_function

Frequently Asked Questions about shopify-functions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I customize Shopify backend logic for discounts and payment methods?

You can customize Shopify backend logic by developing and deploying custom Shopify Functions to modify discount logic, fulfillment constraints, delivery options, and payment customization using Shopify APIs.

What do I need to set up before generating custom Shopify Functions?

Before generating custom Shopify Functions, you need to set up your environment with Node.js and Shopify CLI, which are required for function generation, management, and deployment.

How do I create a custom discount function using the Shopify CLI?

To create a custom discount function, run the Shopify CLI command `shopify app generate extension --template discount` to scaffold the function, then navigate into the new directory to develop your logic.

Can I use Shopify Functions to apply conditional discounts based on cart contents?

Yes, you can use Shopify Functions to apply conditional discounts based on cart contents or user metadata by writing custom backend logic that integrates with the Shopify Discount API.

What backend capabilities can I modify with custom Shopify Functions?

With custom Shopify Functions, you can modify backend capabilities including discount logic, fulfillment constraints, delivery options, and payment customization by integrating with various Shopify APIs.