Hello all,
I’m using my phone and I want to add a message on the cart page, so customers can see it properly on mobile and desktop.
My store URL: https://u7yeji-na.myshopify.com
A Shopify store owner wants to add a custom message to their cart page header that displays properly on both mobile and desktop devices.
Proposed Solutions:
Custom code modification: Multiple respondents confirm this requires editing the theme’s cart section file, specifically the main-cart-items.liquid file (for Spotlight theme users).
Step-by-step implementation: One user provides detailed instructions:
main-cart-items.liquid<tr> tag and add <th>Your text here</th><th style="font-size: 20px; color: red">Your text here</th>Alternative resource: A link to Shopify’s official guide on adding order notes was shared, though this may address a different use case.
Status: The discussion remains open with offers from multiple users to implement the code directly if the store owner shares their current cart file code and desired message/styling preferences. Screenshots demonstrating the working solution were provided as proof of concept.
Hello all,
I’m using my phone and I want to add a message on the cart page, so customers can see it properly on mobile and desktop.
My store URL: https://u7yeji-na.myshopify.com
To add the custom message the cart page header requires to do the custom code in your cart section theme file.
Could you please share the cart page coding so that I can I update it for you.
Thanks
Hello there @Mamdouh_USD This straight to the point guide from Shopify should help you out here https://help.shopify.com/en/manual/online-store/themes/customizing-themes/common-customizations/add-order-notes
Hello, it will need custom coding in your theme code. Like in the image I’ve added it.
If I’m not wrong you’re using Spotlight theme. If that is the case follow the steps:
If you share your main-cart-items.liquid file code along with the text and color you want, I can add it for you.
Let me know if you have any queries.
@Mamdouh_USD see the images as a proof that this code will work.