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.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024