I’m using the Craft theme and was able to add an optional note to my product pages where customers can input “Special Requests” and those notes carry through to My Cart and the Order as well. Two things I’m hoping someone out there can help with:
-
How can I code it so I can choose which product templates have the custom note section and which don’t?
-
How can I add an adjustable margin after the custom notes section. Right now, it touches the “add to cart” button, there’s no padding
The notes are almost perfect otherwise. I input the following code in the main-product.liquid section:
Special Requests
Thanks so much!
Hi @sashalynne
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.
Hi @sashalynne
-
This is related to your store logic. Can you kindly provide the access store so we can better suggest this part?
-
You can adjust the margins of the custom notes section by styling the tag in the CSS file in the Edit Code. You can try it by going to Online Store > Theme > Edit code > Assets > selecting the file section-main-product.css. In lines 463 to 465 you can change with the following CSS code:
.product-form__buttons {
width: 100%;
margin-top: 1.5rem;
}
You can reasonably change the value of the margin-top. Save and check the result.
The result will be as follows:
I hope that this can help you solve the issue.
Where did you input this code? I found the main-product.liquid section but where in that code should I try it?