ShipStation Product Variant Import Problem

  • Posts: 303
  • Thank you received: 18
5 years 11 months ago #301787

-- HikaShop version -- : 3.5.1

Product variants in orders that are imported into ShipStation are showing additional html. See below screenshot.



I need to remove the <span></span> part and keep the variant name. E.g.,
Elite Series - Blue Wing Teal Wings<span class="hikashop_product_variant_subname">: Left Wing</span>
should be changed to
Elite Series - Blue Wing Teal Wings: Left Wing

Attachments:

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
5 years 11 months ago #301810

Hello,

You can you try to modify the Name :

For this follow me step by step :
- Open your file "shipstation.php" in YourWebsite\plugins\system\shipstation folder
- Around line 340, look for this :



Modify :
[b]<Name><![CDATA[' . (string)$product->order_product_name . ']]></Name>[/b]
To get this :
[b]<Name><![CDATA[' . substr(strip_tags($product->order_product_name), 0, 127) . ']]></Name>[/b]

Awaiting news from you.
Regards

Last edit: 5 years 11 months ago by Philip.
The following user(s) said Thank You: mojooutdoors-holden

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

  • Posts: 303
  • Thank you received: 18
5 years 11 months ago #301907

This seems to have worked. We are currently in a maintenance period, so I won't know for sure until after this period once orders start coming in. I will keep you updated. Thanks Philip!

The following user(s) said Thank You: nicolas, Philip

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

Time to create page: 0.065 seconds
Powered by Kunena Forum