Personalized checkout and custom promotions with Shopify Scripts
Hello,
I am trying to integrate Shopify with Ravelry and I have found myself stuck.
I have configured the webhook and tested it, it comes back as successful (picture below) for every order that is placed but a button should be showing up on the confirmation / thank you page and it is not.
Here is the code that I have in place under the post purchase page:
{% if item.title contains "pattern" %}
<span class="sdd-checkout-item-button">
<form action="https://www.ravelry.com/shopify/106259/add_to_library" method="post">
<input type="hidden" name="customer_url" value="{{order.order_status_url}}" />
<input type="hidden" name="email" value="{{checkout.email}}" />
<input type="hidden" name="order_id" value="{{checkout.order_id}}" />
<input type="submit" value="add pattern(s) to your ravelry library" />
</form>
</span>
{% endif %}
Here is a free pattern it should show up for.
Triple B Beanie Pattern – Derek Douglas Designs
Hi @ddouglasdesigns 👋 If this is for the order status page,
drive by take try line.title or item.product.title etc depends on the context and surrounding logic you've made.
Here is a free pattern it should show up for.
Are you trying to show code on the product page that requires an order to be placed which may or may not require a customer account...
, or are you expecting others to go through the entire checkout process to inspect one page that may or may not be working and near impossible to debug because they don't have access to any of the underlying systems involved....
When seeking aid carefully think of the amount of steps someone else has to go through to either understand or inspect a problem let alone try and solve it.
https://stackoverflow.com/help/how-to-ask & https://stackoverflow.com/help/minimal-reproducible-example
If you need hands on debugging and testing services then contact me,
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
I have tried line.title and item.product.title but using both of these don't show the underling code.
I want the code to show up on the on the Thank You page when purchasing anything that contains a Pattern. I sometimes provide too much detail with links to products; I've led internal dev teams for years and have always made a habit of providing all the details.
Hi Douglas,
In case you're still looking for a solution, our digital products app - FileJar has as integration with Ravelry for that final step of displaying the "Add pattern to library" button both on the Thank You page and on the Order status page.
You can find it here:
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025