- Posts: 3
- Thank you received: 0
Shipping address submits on error
11 years 2 months ago #209941
by andrewj
Shipping address submits on error was created by andrewj
-- 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.
-- 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.
Please Log in or Create an account to join the conversation.
11 years 2 months ago #209985
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Shipping address submits on error
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,
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 & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: andrewj
Please Log in or Create an account to join the conversation.
11 years 2 months ago #210066
by andrewj
Replied by andrewj on topic Shipping address submits on error
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!
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 or Create an account to join the conversation.
11 years 2 months ago #210076
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Shipping address submits on error
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.
Regards,
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:
<div class="hika_edit">
<a href="<?php echo hikashop_completeLink($save_url, true);?>" onclick="return window.hikashop.form(this,'<?php echo $this->fieldset_id; ?>');"><img src="<?php echo HIKASHOP_IMAGES; ?>ok.png" alt=""/><span><?php echo JText::_('HIKA_SAVE'); ?></span></a>
<a href="<?php echo hikashop_completeLink($show_url, true);?>" onclick="return window.hikashop.get(this,'<?php echo $this->fieldset_id; ?>');"><img src="<?php echo HIKASHOP_IMAGES; ?>cancel.png" alt=""/><span><?php echo JText::_('HIKA_CANCEL'); ?></span></a>
</div>
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
11 years 2 months ago #210113
by andrewj
Replied by andrewj on topic Shipping address submits on error
Thanks for pointing me in the right direction Jerome.
This is a suitable workaround for me until the next release.
This is a suitable workaround for me until the next release.
Please Log in or Create an account to join the conversation.
Time to create page: 0.216 seconds