SST will be removed when update shipping fee

  • Posts: 572
  • Thank you received: 11
1 month 2 weeks ago #370311

-- HikaShop version -- : 6.3.0
-- Joomla version -- : Joomla! 4.4.10 Stable
-- PHP version -- : 8.3.28
-- Error-message(debug-mod must be tuned on) -- : SST will be removed when update shipping fee

drive.google.com/file/d/1yDcAGTOvQDj4S_4...VVI/view?usp=sharing

SST is removed when we update shipping fee

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

  • Posts: 85273
  • Thank you received: 13925
  • MODERATOR
1 month 1 week ago #370315

Hi,

Thanks for your feedback. Can you provide information on how you configured that SST ?

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

  • Posts: 572
  • Thank you received: 11
2 days 8 hours ago #370843

Hi Nicolas,
Thanks for your reply.

Here is how I reproduced the issue:
1. Click "Edit" in the Additional Information section
2. Click on the Shipping price column
3. Enter a shipping price
4. Click "Save"
5. After saving, the SST column disappears

Before updating the shipping price, the SST is displayed correctly.
However, once the shipping price is updated and saved, the SST is removed.

I have also recorded a video showing the full steps here:
drive.google.com/file/d/1yDcAGTOvQDj4S_4...VVI/view?usp=sharing

Please let me know if you need more details.
Thank you.

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

  • Posts: 85273
  • Thank you received: 13925
  • MODERATOR
2 days 46 minutes ago #370853

Hi,

Thank you for the additional details and reproduction steps.

Could you please clarify what you mean by "SST column"? Do you mean:
1. The SST tax row in the order summary (the line showing the tax amount), or
2. A specific column in the order products table?

Also, when you edit the shipping price, do you also change the tax rate dropdown next to it, or do you only change the price value?

If you could provide a screenshot of the order BEFORE editing the shipping price (showing the SST) and AFTER saving (showing it missing), that would help us reproduce the issue. The link you provided for the video doesn't work.

Additionally, could you let us know: is your SST configured as a tax rate in HikaShop's System > Taxes menu? And is the same tax rate used for both product taxes and shipping taxes?

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

  • Posts: 572
  • Thank you received: 11
1 day 7 hours ago #370870

Hi,

Thank you for your follow-up.

1. For the first question, the “SST column” refers to the one located in the **Additional Information** section.

2. For the second question, I only change the shipping price value and add the preferred time. I do not modify the tax rate dropdown.

3. Regarding the screenshots, I have prepared a PDF file showing the steps and how the SST column goes missing before and after saving. Please refer to the attachment:

This browser does not support PDFs. Please download the PDF to view it: Download PDF



4. For the tax configuration, yes — the same tax rate is used, which is 5%.

Please let me know if you need any further details.

Thank you.

Attachments:

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

  • Posts: 85273
  • Thank you received: 13925
  • MODERATOR
1 day 1 hour ago #370872

Hi,

Thank you for the detailed documentation with screenshots, it was very helpful.

We believe we found the issue. When you edit the shipping price in the Additional Information section and save, HikaShop recalculates the order totals and tax breakdown. During this recalculation, it rebuilds the tax amounts from per-product tax data stored in each order line item. If that per-product tax data is missing (which can happen with orders created through certain processes like POS systems or custom integrations), the SST tax entry ends up with a zero amount and gets removed.

We have implemented a fix that preserves the tax information even when the per-product tax data is not available. The system now uses the product's tax amount as a fallback, and for orders with multiple tax rates, it looks up the correct tax rate from the product's tax category configuration.

Could you please download the latest version from your member area and install it over your current version? After updating, try editing the shipping price again on one of your orders and let us know if the SST column is now preserved correctly.

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

  • Posts: 572
  • Thank you received: 11
19 hours 59 minutes ago #370880

Hi,

Thank you for your update.

If possible, could you provide us with the patch file or just the modified code instead? We have quite a lot of customizations in our current setup, so we’re unable to reinstall or perform a full update.

Please let us know if that would be possible.

Thank you.

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

  • Posts: 85273
  • Thank you received: 13925
  • MODERATOR
16 hours 21 minutes ago #370882

Hi,

It's a whole block of new code in the function recalculateFullPrice of the file administrator/components/com_hikashop/classes/order.php
You can compare it with the code in the file back/classes/order.php in the install zip.

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

  • Posts: 572
  • Thank you received: 11
7 hours 44 minutes ago #370886

Hi, sorry about this. Would you be able to provide me with the code directly?

Downloading the new version requires payment, so I think it would be easier if you could just share the code here and I’ll insert it on my side.

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

  • Posts: 85273
  • Thank you received: 13925
  • MODERATOR
2 hours 6 minutes ago #370887

You can get it from HikaShop Starter: www.hikashop.com/extensions/hikashop-starter.html
It's completely free.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum