Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I hope this message finds you well. I have been utilizing the cart permalink format to add multiple product variants to the cart:https://my-shop-name.myshopify.com/cart/variant_id:quantity,variant_id:quantity
Now, I have a custom property named projectId = ------- that I would like to include in this permalink. Could you please guide me on how to pass this custom attribute in the permalink? If Shopify supports this functionality, that would be great. Otherwise, I'd appreciate any alternative solutions or options available to achieve this.
Thank you for your assistance.
Hi @Ab_Etemadi ,
you can create your custom function which will work similar to cart paramlink using cart ajax feature.
You need to pass variant and qty as param url and read those queries and use cart ajax code to add item into the cart along with required attribute details.
https://shopify.dev/docs/api/ajax/reference/cart
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn 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, 2025