Bad English Language variable

  • Posts: 144
  • Thank you received: 4
  • Hikashop Business
6 years 5 months ago #293648

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.8
-- PHP version -- : 7.1.14

Working with a new Hikashop Business install, I had a problem with the latest and greatest Cart Module display. It would not visibly update or display the first row items added to my cart, however, once there were more than one items in the cart, reloading the page would display the module properly (including the dropdown cart, and modifying the quantity). It also displayed my custom message when the cart was empty. At first, I suspected a plugin using the onBeforeCalculateProductPriceForQuantity trigger which I was building was causing the ajax methods to crash before rendering any result, but after much experimentation, I discovered that the EN language constant for X_ITEM_FOR_X was carrying no value, even though it seemed to be properly assigned within Hikashop's language interface. The template test for the value of JText::_('X_ITEM_FOR_X') was returning an empty value, preventing the dropdown cart from being rendered when there was only 1 item in the cart.

After I re-assigned the constant's value in the language customization window, the module began displaying properly, though I suspect my template has a minor ongoing CSS conflict which interferes with the spinner graphic.

I don't have time to continue testing the X_ITEM_FOR_X constant at the moment, but I thought you might want to add it to a speculative bug list.

Thanks for your hard work. After briefly having to dabble with Magento, I truly love and appreciate Hikashop more than ever.

Last edit: 6 years 5 months ago by icomex.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
6 years 5 months ago #293665

Hi,

I checked the English translation file on our end and both X_ITEM_FOR_X and X_ITEMS_FOR_X have the correct value.

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

  • Posts: 144
  • Thank you received: 4
  • Hikashop Business
6 years 5 months ago #293702

You are correct. Another person in our shop had overridden the value by modifying the original language document rather than saving the override in the lower window of the language editing form.

We reloaded the language doc and put the override in the right place. All is well now. Thanks.

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

Time to create page: 0.055 seconds
Powered by Kunena Forum