Add blog post title to order

Topic summary

A merchant selling photo prints wants to streamline their product setup by using a single product listing instead of creating variants for each photo.

Desired Solution:

  • Customers would select photos from the merchant’s blog
  • A link from each blog post would direct to the product page
  • The blog post title would automatically populate in the product notes/order details

Current Status:

  • The merchant is seeking technical guidance on implementation methods
  • A user (Barkk) appears to have suggested a solution involving scripts and hidden line items
  • The merchant is interested in learning how to implement this script-based approach, though they have limited scripting experience (only code editing background)

Outstanding Need:
The merchant is awaiting direction on resources or tutorials for implementing the proposed solution.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

I sell photo prints. Rather than having a product variant for each photo I would like to have one product where the customer chooses a photo from my blog. Can I add a link to the blog post pointing to the one product and have a text field automatically populated in product notes with the title of the blog post? Thanks.

2 Likes

Okay, what method would you suggest to do that?

Hi Barkk, awesome solution. I wouldn’t need the line item hidden. I’ve never made a script but have edited code. Can you direct me to where I could learn how to do that? Thanks.