Skip to main content

ShipStation Product Variant Import Problem

More
7 years 9 months ago #301787 by mojooutdoors-holden
-- 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.,
Code:
Elite Series - Blue Wing Teal Wings<span class="hikashop_product_variant_subname">: Left Wing</span>
should be changed to
Code:
Elite Series - Blue Wing Teal Wings: Left Wing

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

More
7 years 9 months ago - 7 years 9 months ago #301810 by Philip
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 :
Code:
[b]<Name><![CDATA[' . (string)$product->order_product_name . ']]></Name>[/b]
To get this :
Code:
[b]<Name><![CDATA[' . substr(strip_tags($product->order_product_name), 0, 127) . ']]></Name>[/b]

Awaiting news from you.
Regards
Last edit: 7 years 9 months ago by Philip.
The following user(s) said Thank You: mojooutdoors-holden

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

More
7 years 9 months ago #301907 by mojooutdoors-holden
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.149 seconds
Powered by Kunena Forum