[Skip to main content](#vessel-content)

#   Shipping address submits on error

##

- **[andrewj](/forum/user/37060-andrewj "View andrewj's Profile")**
- [![andrewj's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37060-andrewj "View andrewj's Profile") Topic Author
- [ Offline](/forum/user/37060-andrewj)

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 4 months ago [\#209941](#209941) by [andrewj](/forum/user/37060-andrewj "View andrewj's Profile")  *[Shipping address submits on error](/forum/27-checkout/878454-shipping-address-submits-on-error#209941 "-- url of the page with the problem -- :   www.bridgeroadflorist.com.au/checkout/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.19 -- Browser(s) name and version -- : Firefox 39.0  My customer is a florist, so it's common that each order has a seperate billing and shipping address. They have been receiving a lot of orders where the shipping address is not set correctly, which is causing major problems.  When any part of the billing address (shown as 'your address' in my setup) is entered incorrectly, an error message is displayed and the page stays on the form. This is a good thing.  When any part of the SHIPPING address is entered incorrectly, the checkout proceeds anyway and enters the billing address details into the shipping address.  Problem 1 Which files can I edit to NOT submit the form if the mandatory shipping fields are not filled in? I'd like it to stay on the form until the mandatory fields are filled in.  Problem 2 In the event that a customer makes an error, they must fill in all their details again. Is there a way to populate the form with the already submitted values? Which files would I best look at to do this?  You can see in the attachments how my workflow is setup and some screenshots of the behavior.")* was created by *[andrewj](/forum/user/37060-andrewj "View andrewj's Profile")*

-- url of the page with the problem -- : [ www.bridgeroadflorist.com.au/checkout/](http://www.bridgeroadflorist.com.au/checkout/)
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.19
-- Browser(s) name and version -- : Firefox 39.0

My customer is a florist, so it's common that each order has a seperate billing and shipping address. They have been receiving a lot of orders where the shipping address is not set correctly, which is causing major problems.

When any part of the billing address (shown as 'your address' in my setup) is entered incorrectly, an error message is displayed and the page stays on the form. This is a good thing.

When any part of the SHIPPING address is entered incorrectly, the checkout proceeds anyway and enters the billing address details into the shipping address.

**Problem 1**
Which files can I edit to NOT submit the form if the mandatory shipping fields are not filled in? I'd like it to stay on the form until the mandatory fields are filled in.

**Problem 2**
In the event that a customer makes an error, they must fill in all their details again. Is there a way to populate the form with the already submitted values? Which files would I best look at to do this?

You can see in the attachments how my workflow is setup and some screenshots of the behavior.

- [ ![01-workflow&#95;setup.png](/forum/attachment/25724) ](/forum/attachment/25724 "...flow&#95;setup.png") [ ](/forum/attachment/25724?download=1 "...flow&#95;setup.png")
- [ ![02-workflow&#95;setup&#95;02.png](/forum/attachment/25725) ](/forum/attachment/25725 "...w&#95;setup&#95;02.png") [ ](/forum/attachment/25725?download=1 "...w&#95;setup&#95;02.png")
- [ ![03-address&#95;selection.png](/forum/attachment/25726) ](/forum/attachment/25726 "...&#95;selection.png") [ ](/forum/attachment/25726?download=1 "...&#95;selection.png")
- [ ![04-address&#95;error.png](/forum/attachment/25727) ](/forum/attachment/25727 "...ress&#95;error.png") [ ](/forum/attachment/25727?download=1 "...ress&#95;error.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3ODQ1NC1zaGlwcGluZy1hZGRyZXNzLXN1Ym1pdHMtb24tZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#209985](#209985) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Shipping address submits on error](/forum/27-checkout/878454-shipping-address-submits-on-error#209985 "-- url of the page with the problem -- :   www.bridgeroadflorist.com.au/checkout/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.19 -- Browser(s) name and version -- : Firefox 39.0  My customer is a florist, so it's common that each order has a seperate billing and shipping address. They have been receiving a lot of orders where the shipping address is not set correctly, which is causing major problems.  When any part of the billing address (shown as 'your address' in my setup) is entered incorrectly, an error message is displayed and the page stays on the form. This is a good thing.  When any part of the SHIPPING address is entered incorrectly, the checkout proceeds anyway and enters the billing address details into the shipping address.  Problem 1 Which files can I edit to NOT submit the form if the mandatory shipping fields are not filled in? I'd like it to stay on the form until the mandatory fields are filled in.  Problem 2 In the event that a customer makes an error, they must fill in all their details again. Is there a way to populate the form with the already submitted values? Which files would I best look at to do this?  You can see in the attachments how my workflow is setup and some screenshots of the behavior.")*

Hi,

Thanks for the report.

The inline address edition in the checkout has been mostly design to be locally submitted.
In the screenshot "address_selection" you can see a validation tick which allow to submit the address.
Afterwards we added the support of the addresses submission when clicking on "next" but if one address is validated and the other not, the checkout does not re-open the address in error in the checkout page and just use one valid address.

We are currently working on a refactoring of the checkout system and I added that issue in the points to fix with the new structure.

Right now with the actual code it will require some modifications in the core and in the views. So the checkout could know which addresses was in edition and which address haven't been saved (so the modification in the core in order to provide that information).
It is not very easy and regarding the current development for the checkout (what I'm doing since we finished the new backend product edition), I think that it's better to be sure that it will supported in the new checkout system.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [andrewj](/forum/user/37060-andrewj "View andrewj's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3ODQ1NC1zaGlwcGluZy1hZGRyZXNzLXN1Ym1pdHMtb24tZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[andrewj](/forum/user/37060-andrewj "View andrewj's Profile")**
- [![andrewj's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37060-andrewj "View andrewj's Profile") Topic Author
- [ Offline](/forum/user/37060-andrewj)

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 3 months ago [\#210066](#210066) by [andrewj](/forum/user/37060-andrewj "View andrewj's Profile")  Replied by *[andrewj](/forum/user/37060-andrewj "View andrewj's Profile")* on topic *[Shipping address submits on error](/forum/27-checkout/878454-shipping-address-submits-on-error#210066 "-- url of the page with the problem -- :   www.bridgeroadflorist.com.au/checkout/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.19 -- Browser(s) name and version -- : Firefox 39.0  My customer is a florist, so it's common that each order has a seperate billing and shipping address. They have been receiving a lot of orders where the shipping address is not set correctly, which is causing major problems.  When any part of the billing address (shown as 'your address' in my setup) is entered incorrectly, an error message is displayed and the page stays on the form. This is a good thing.  When any part of the SHIPPING address is entered incorrectly, the checkout proceeds anyway and enters the billing address details into the shipping address.  Problem 1 Which files can I edit to NOT submit the form if the mandatory shipping fields are not filled in? I'd like it to stay on the form until the mandatory fields are filled in.  Problem 2 In the event that a customer makes an error, they must fill in all their details again. Is there a way to populate the form with the already submitted values? Which files would I best look at to do this?  You can see in the attachments how my workflow is setup and some screenshots of the behavior.")*

Thanks for your quick reply Jerome.

I think I might have some success if I move the validation tick to the bottom of the form and make it larger. Can I do this by editing a particular view? I don't mind getting into the PHP.

Is there an estimated release date for the new Checkout mechanism? I can keep the customer happy until then perhaps!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3ODQ1NC1zaGlwcGluZy1hZGRyZXNzLXN1Ym1pdHMtb24tZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 3 months ago [\#210076](#210076) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Shipping address submits on error](/forum/27-checkout/878454-shipping-address-submits-on-error#210076 "-- url of the page with the problem -- :   www.bridgeroadflorist.com.au/checkout/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.19 -- Browser(s) name and version -- : Firefox 39.0  My customer is a florist, so it's common that each order has a seperate billing and shipping address. They have been receiving a lot of orders where the shipping address is not set correctly, which is causing major problems.  When any part of the billing address (shown as 'your address' in my setup) is entered incorrectly, an error message is displayed and the page stays on the form. This is a good thing.  When any part of the SHIPPING address is entered incorrectly, the checkout proceeds anyway and enters the billing address details into the shipping address.  Problem 1 Which files can I edit to NOT submit the form if the mandatory shipping fields are not filled in? I'd like it to stay on the form until the mandatory fields are filled in.  Problem 2 In the event that a customer makes an error, they must fill in all their details again. Is there a way to populate the form with the already submitted values? Which files would I best look at to do this?  You can see in the attachments how my workflow is setup and some screenshots of the behavior.")*

Hi,

You can override the view "address / show". That view is used to display the address and to edit it.
Here the part of code which display the two ticks. Code:

&lt;div class="hika_edit"&gt; &lt;a href="&lt;?php echo hikashop_completeLink($save_url, true);?&gt;" onclick="return window.hikashop.form(this,'&lt;?php echo $this-&gt;fieldset_id; ?&gt;');"&gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;ok.png" alt=""/&gt;&lt;span&gt;&lt;?php echo JText::_('HIKA_SAVE'); ?&gt;&lt;/span&gt;&lt;/a&gt; &lt;a href="&lt;?php echo hikashop_completeLink($show_url, true);?&gt;" onclick="return window.hikashop.get(this,'&lt;?php echo $this-&gt;fieldset_id; ?&gt;');"&gt;&lt;img src="&lt;?php echo HIKASHOP_IMAGES; ?&gt;cancel.png" alt=""/&gt;&lt;span&gt;&lt;?php echo JText::_('HIKA_CANCEL'); ?&gt;&lt;/span&gt;&lt;/a&gt; &lt;/div&gt;

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3ODQ1NC1zaGlwcGluZy1hZGRyZXNzLXN1Ym1pdHMtb24tZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[andrewj](/forum/user/37060-andrewj "View andrewj's Profile")**
- [![andrewj's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37060-andrewj "View andrewj's Profile") Topic Author
- [ Offline](/forum/user/37060-andrewj)

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 3 months ago [\#210113](#210113) by [andrewj](/forum/user/37060-andrewj "View andrewj's Profile")  Replied by *[andrewj](/forum/user/37060-andrewj "View andrewj's Profile")* on topic *[Shipping address submits on error](/forum/27-checkout/878454-shipping-address-submits-on-error#210113 "-- url of the page with the problem -- :   www.bridgeroadflorist.com.au/checkout/  -- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.19 -- Browser(s) name and version -- : Firefox 39.0  My customer is a florist, so it's common that each order has a seperate billing and shipping address. They have been receiving a lot of orders where the shipping address is not set correctly, which is causing major problems.  When any part of the billing address (shown as 'your address' in my setup) is entered incorrectly, an error message is displayed and the page stays on the form. This is a good thing.  When any part of the SHIPPING address is entered incorrectly, the checkout proceeds anyway and enters the billing address details into the shipping address.  Problem 1 Which files can I edit to NOT submit the form if the mandatory shipping fields are not filled in? I'd like it to stay on the form until the mandatory fields are filled in.  Problem 2 In the event that a customer makes an error, they must fill in all their details again. Is there a way to populate the form with the already submitted values? Which files would I best look at to do this?  You can see in the attachments how my workflow is setup and some screenshots of the behavior.")*

Thanks for pointing me in the right direction Jerome.

This is a suitable workaround for me until the next release.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3ODQ1NC1zaGlwcGluZy1hZGRyZXNzLXN1Ym1pdHMtb24tZXJyb3I/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.057 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
