All things Shopify and commerce
Dear Friends,
In my store Checkout Page Shipping Address Column need to add one extra field for Mobile Number, Can you guide me how to add?
Thanks & Regards,
VIjay
Hi VIjay,
Maybe visit the site: http://www.boxstuff.nl
they wrote an excellent blog about instagram marketing.
Dear Vijay,
To add an extra field for the mobile number in the shipping address column on your store's checkout page, you'll need to make some changes to your Shopify theme's code. Here's a step-by-step guide to help you through the process:
Now you will need to make modifications to the code files:
<div>
<label for="shipping_phone">Mobile Number</label>
<input type="text" id="shipping_phone" name="checkout[shipping_phone]" value="{{ cart.shipping_phone }}" required>
</div>
Make sure to adjust the name attribute and the id attribute if necessary.
Now, you need to make sure the mobile number field is shown on the checkout page:
{% if form.errors contains 'checkout[shipping_phone]' %} <div class="errors"> {{ 'Please enter a valid mobile number.' | t }} </div> {% endif %}
This code will display an error message if the mobile number field is not filled correctly.
After following these steps, the mobile number field should be added to the shipping address column on your store's checkout page. Remember to thoroughly test the checkout process to ensure everything is working as intended.
If you encounter any issues during the process or if the changes don't reflect as expected, it's always a good idea to reach out to Shopify's support for further assistance.
Best regards,
Ecommpremium
Dear Sir,
Thank you for your prompt reply, I was tried to add your code but unable to find the exact file, In my template having cart.liquid & cart-template.liquid both dont have checkout form fields.
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025