Cart Icon to Appear in Cart Module

  • Posts: 38
  • Thank you received: 0
8 years 6 months ago #264706

-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.25
-- Browser(s) name and version -- : All

Trying to add a Font Awesome Icon to appear in the cart module and following some info found here on the forums I added this to my languages

X_ITEM_FOR_X="<i class="fa fa-shopping-cart" aria-hidden="true"></i> %s item for %s"
X_ITEMS_FOR_X="<i class="fa fa-shopping-cart" aria-hidden="true"></i> %s items for %s"

However it doesn't work. It worked on the Empty Cart when I added the Icon tag in the module settings.

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

  • Posts: 200
  • Thank you received: 75
8 years 6 months ago #264716

Hi,

it doesn't work because of conflicting quotation marks, if you look closely you will see every language string is enclosed in quotes, but you also use quotes in your class and aria-hidden properties. Put a \ (slash) in front of the inner quotes or change them to apostrophes and all should work well:

X_ITEM_FOR_X="<i class=\"fa fa-shopping-cart\" aria-hidden=\"true\"></i> %s item for %s"
X_ITEMS_FOR_X="<i class='fa fa-shopping-cart' aria-hidden='true'></i> %s items for %s"

Kind regards,

Last edit: 8 years 6 months ago by GW.
The following user(s) said Thank You: KeithBlow

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

  • Posts: 38
  • Thank you received: 0
8 years 6 months ago #264735

Yep. That was it. It's always something little is is overlooked.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum