[Skip to main content](#vessel-content)

#   Characteristics with an Image

##

- **[wild4gsus](/forum/user/28153-wild4gsus "View wild4gsus's Profile")**
- [![wild4gsus's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/28153-wild4gsus "View wild4gsus's Profile") Topic Author
- [ Offline](/forum/user/28153-wild4gsus)

Less More

- Posts: 41
- Thank you received: 1
-
-

6 years 6 months ago [\#318378](#318378) by [wild4gsus](/forum/user/28153-wild4gsus "View wild4gsus's Profile")  *[Characteristics with an Image](/forum/26-product-category-display/899725-characteristics-with-an-image#318378 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18  I have created a characteristic that displays in the front end as an image with text (a white circle with the word &quot;white&quot; next to it). When you select the characteristic, the image and text displays next to the product name in the front end. Is there a way that I can use an image as a characteristic, but only get the text to display in the product name above?  Reason it concerns me is that I use ShipStation and with the image in the product line, ShipStation won't import the order because that product line is longer than their allowed number of characters as a product name. Simply put, the order won't be imported into ShipStation unless I go into the order in the Hika backend administration and edit the order by removing the characteristic image code and leaving the text &quot;white&quot; alone. I really didn't want the image in the product name before, but kept it to make my life easier. Now that ShipStation won't import certain orders with these products in it, I need to address that issue now.  Thanks!")* was created by *[wild4gsus](/forum/user/28153-wild4gsus "View wild4gsus's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.18

I have created a characteristic that displays in the front end as an image with text (a white circle with the word "white" next to it). When you select the characteristic, the image and text displays next to the product name in the front end. **Is there a way that I can use an image as a characteristic, but only get the text to display in the product name above?**

[ ![hika.jpg](/forum/attachment/49239) ](/forum/attachment/49239 "hika.jpg")

Reason it concerns me is that I use ShipStation and with the image in the product line, ShipStation won't import the order because that product line is longer than their allowed number of characters as a product name. Simply put, the order won't be imported into ShipStation unless I go into the order in the Hika backend administration and edit the order by removing the characteristic image code and leaving the text "white" alone. I really didn't want the image in the product name before, but kept it to make my life easier. Now that ShipStation won't import certain orders with these products in it, I need to address that issue now.

Thanks!

- [ ![hika.jpg](/forum/attachment/49239) ](/forum/attachment/49239 "hika.jpg") [ ](/forum/attachment/49239?download=1 "hika.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTk3MjUtY2hhcmFjdGVyaXN0aWNzLXdpdGgtYW4taW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

6 years 6 months ago [\#318382](#318382) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Characteristics with an Image](/forum/26-product-category-display/899725-characteristics-with-an-image#318382 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.18  I have created a characteristic that displays in the front end as an image with text (a white circle with the word &quot;white&quot; next to it). When you select the characteristic, the image and text displays next to the product name in the front end. Is there a way that I can use an image as a characteristic, but only get the text to display in the product name above?  Reason it concerns me is that I use ShipStation and with the image in the product line, ShipStation won't import the order because that product line is longer than their allowed number of characters as a product name. Simply put, the order won't be imported into ShipStation unless I go into the order in the Hika backend administration and edit the order by removing the characteristic image code and leaving the text &quot;white&quot; alone. I really didn't want the image in the product name before, but kept it to make my life easier. Now that ShipStation won't import certain orders with these products in it, I need to address that issue now.  Thanks!")*

Hi,

I don't think that's the way to go about it.
First, the tags in the product name are automatically removed by the ShipStation plugin. So removing the image from the name shouldn't change anything.
However, what I can see is that there is a limit of 200 characters for the product name.
In that case, I would rather recommend to change the line: Code:

&lt;Name&gt;&lt;![CDATA[' . (string)strip_tags($product-&gt;order_product_name) . ']]&gt;&lt;/Name&gt;'.

to: Code:

&lt;Name&gt;&lt;![CDATA[' . substr((string)strip_tags($product-&gt;order_product_name),0,200) . ']]&gt;&lt;/Name&gt;'.

in the file plugins/system/shipstation/shipstation.php
That way, even if the number of characters of the product is longer than 200 characters, it will be cut after that when sending the data to ShipStation.

The following user(s) said Thank You: [wild4gsus](/forum/user/28153-wild4gsus "View wild4gsus's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84OTk3MjUtY2hhcmFjdGVyaXN0aWNzLXdpdGgtYW4taW1hZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.045 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
