I'm facing difficulties implementing cart attributes for different shipping options.
The solution for my problem might not be cart attributes.
I want to have a special required field for customers choosing a pallet shipment. For garden furniture etc.
However, for customers who uses regular shipment should not see this field.
Hope anyone can help.
Solved! Go to the solution
@Hoslange - You are not able to modify the checkout page functionality (which is where the shipping method is selected) so your approach won't work. As a workaround, you can require a cart page to be shown prior to entering checkout and add the desired shipping method and additional cart attribute there.
Regardless, the code required for this would be on the more advanced side and would recommend hiring a Shopify Expert to assist with the development.
Hope this helps and mark this as closed if it answers your question!
@Hoslange - Totally understand the flow is less than desirable. The issue is that since the shipping method is selected during checkout, adding a dynamic field based on that selection is not possible (ie. requires checkout to be modified).
Shopify allows for custom fields to be assigned at the product level and at the cart-level. Either way, neither would be associated with the final shipping method since it is selected at checkout (as stated above).
|an hour ago|
|2 hours ago|