no update on VAT-ID change

  • Posts: 114
  • Thank you received: 4
7 years 5 months ago #272419

-- HikaShop version -- : 3.1
-- Joomla version -- : 3.7
-- PHP version -- : 7.1

I have a one page checkout. When a user enters a valid VAT-ID in the address section above the cart, the cart should update accordingly using AJAX so the appropriate VAT is applied. There seems to be an issue with

window.hikashop.toggleField(this.value,'address_vat','address_1_1',0,'hikashop_checkout_');
not being executed when that field changes.

The correct tax rule is only applied after saving the address block including the VAT-ID field AND a manual reload of the page.

How can I debug that? There is no JS error in the console.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 5 months ago #272426

Hi,

Thank you for your feedback. That's not a javascript problem. It's a caching issue on the server-side.
I've added a big patch on a few files to fix that.
Download again the install package on our website and install it on yours and you'll get the patches.

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

  • Posts: 114
  • Thank you received: 4
7 years 5 months ago #272489

I installed the update. Now the VAT update works again but all custom fields of type "item" are missing in the checkout even when I have no overrides in place.

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

  • Posts: 114
  • Thank you received: 4
7 years 5 months ago #272491

... and the link in the order confirmation email points to the homepage, not to the order.

Attachments:
Last edit: 7 years 5 months ago by peteo.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 5 months ago #272530

Hi,

We didn't change these and they still work for us.
Please provide a backend access and the instructions to reproduce these issues so that we can check on them.
www.hikashop.com/support/contact-us.html

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 5 months ago #272616

Hi,

We've found the issue for the custom item fields.
Download again the install package on our website again and install it again and you'll get the patch for that.

Regarding the link which doesn't work, this link has been added as a customization of the HTML version on your end with such custom code:

  <?php 
	echo sprintf(JText::_('ORDER_CREATION_SUCCESS_ON_WEBSITE_AT_DATE'), $data->order_number);
	echo ' <a href="https://kite-and-windsurfing-guide.com'.$data->order_url.'">'.JText::_('HIKASHOP_ORDERSUMMARYONLINE').'</a>'.PHP_EOL;
?>
So that has to be fixed on your end. I would recommend to use instead the variable $data->order->order_url which already contains the full link to access the order.

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

  • Posts: 114
  • Thank you received: 4
7 years 5 months ago #272622

Thanks. Installed it but still cant see custom fields in the checkout. Just try it yourself with the workflow I decribed in the email.

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

  • Posts: 114
  • Thank you received: 4
7 years 5 months ago #272623

... and you reintroduced the initial bug "no update on VAT-ID change", so I downgrade to the version from yesterday ...

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

  • Posts: 114
  • Thank you received: 4
7 years 5 months ago #272634

Can I help debugging that? I really need to solve that quickly. I have no idea what my users are ordering as long as there are no values in the product customisation.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 5 months ago #272625

Hi,

We didn't reintroduced the problem with the VAT-ID change. The custom field fix is not related to that.
Also, I've checked your link but you have another problem which isn't linked to the fix.
The add to cart link you've added manually on your page is not valid. I get that:
www.kite-and-windsurfing-guide.com/check...ata-Array/cid-1.html
That's because the SEF system doesn't handle [] in the URLs.
You should extract the custom field parameters from the URL and add them to the URL after the call to the SEF function and it will work.

Best regards,
Nicolas

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

  • Posts: 114
  • Thank you received: 4
7 years 5 months ago #272663

You should extract the custom field parameters from the URL and add them to the URL after the call to the SEF function

Ok. How?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 5 months ago #272673

Hi,

I can't say exactly. It depends on how you added that button on that link.
What code did you add to get that "Proceed to Checkout" button there ?

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

Time to create page: 0.075 seconds
Powered by Kunena Forum