Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

This topic contains 0 replies, has 1 voice.

Last updated by Shekhar Bhandari 6 hours, 21 minutes ago.

Assisted by: Shekhar Bhandari.

Author Posts
February 19, 2025 at 12:40 pm #16724360

alirezaS-3
Site owner

When I press 'upload plugin' it expects a zip file, and you have provided me with a .php file ? Please clarify

February 19, 2025 at 12:41 pm #16724492

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Please download the file and add it in wp-content/plugins folder, this should help.

Thanks

February 20, 2025 at 7:19 am #16727583

alirezaS-3
Site owner

I uploaded the php file to the plugin directory and afterwards I activated it.

After running an import followed by wpml export and import, it still ended up showing the wrong SKU's. It has to show the SKU of the original-language-variation.

Did you test in your test site ? I can't see it.

2025-02-20_08-08-21.jpg
February 20, 2025 at 8:32 am #16728071

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Yes, we tested on our test site (locally available) before providing you the steps.

Can you provide me the csv file that you are using so I can run the import on my test site?

Look forward to your reply.

Thanks

February 20, 2025 at 12:32 pm #16729523

alirezaS-3
Site owner

Hi

Here's the csv file:

hidden link

February 20, 2025 at 2:38 pm #16730332

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello,

I made few changes to the CSV as we suggested earlier, those changes were:
- Removed SKU from the secondary languages entries
- Set id as an parent link connector.

This helped and the import is working properly for me, here is the changed csv file: hidden link

Attached screenshot with changes.

Let me know if this helps.

Thanks

changes_csv.jpg
February 22, 2025 at 7:33 am #16735849

alirezaS-3
Site owner

Hi

With your CSV changes, it works, but it’s not an ideal solution. It would be much better to fix the issue in the PHP code rather than altering the CSV file content. All the documentation on your website, including example files, use variation SKUs.

SKUs are the key to managing products—not random IDs. Imagine the hassle of renumbering everything if new products or variants are added.

I’m not sure if your latest code change caused it, but categories are now mixed up—they’re not displaying correctly. We have 5 in DE and 5 in EN, but they’re mixed on the screen. This also affects the customer-facing webshop.

Please check this in your test environment.

2025-02-22_08-12-22.jpg
February 24, 2025 at 5:05 am #16738930

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi,

Thank you for bringing these issues to our attention, and I’m sorry for the troubles you’re experiencing.

We understand that modifying the CSV isn’t an ideal solution, and we’re working on a permanent fix in the PHP code along with updated documentation to ensure consistency with the variation SKUs. In the meantime, we’re providing a temporary workaround to help keep your processes running smoothly.

Regarding the category display issue, we’ve escalated this to our second-tier support team, and they are currently investigating the mix-up. We’re testing the situation in our environment and will keep you updated as soon as we have more information.

Thanks again for your patience and detailed feedback.

Best regards