Shipping address submits on error

  • Posts: 3
  • Thank you received: 0
9 years 4 months ago #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.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
9 years 4 months ago #209985

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: andrewj

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
9 years 4 months ago #210066

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 or Create an account to join the conversation.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
9 years 3 months ago #210076

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.

<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>
Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 3
  • Thank you received: 0
9 years 3 months ago #210113

Thanks for pointing me in the right direction Jerome.

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.061 seconds
Powered by Kunena Forum