Skip to Content

New J2Commerce 6.6.5 is out. Here is everything in the release.

See What’s New
Account
Enter the email address on your account.
Forgot your username?
Enter your password.
Forgot your password?

Or continue with

Closed Public Category: Technical Support / Bugs Ticket #367

error message after update

This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Conversation

Peter Vortkamp

Joomla 5.3.1
J2Commerce v 4.0.16 PRO
 
Hi,
after the update from v 4.0.4 PRO to v 4.0.16 PRO
the following error message appeared:Warning: Undefined array key ‘fontawesome’ in /......../administrator/components/com_j2store/helpers/strapper.php on line 423
 
And the shop does not work properly anymore. Although quantities can still be selected via the quantity dropdown menu, no more items can be added to the basket.
Do you have any idea what can be done?

Regards
Peter

The ticket information has been edited by Peter Vortkamp (recbag@oasegmbh.de).
Olivier Buisard Staff

Hello Peter,

try and disable the FontAwesome setting in J2Commerce, that will take care of the error. This issue has been reported after the 4.0.16 update, therefore the patch was not included in our latest release.

If you need the font icons, we will need to patch your site.

For the shop: could you give us the URL where the behavior you are experiencing occurs?

Could you also edit the ticket and add credentials so we can access your backend?

Thank you!

Olivier.

The ticket information has been edited by Peter Vortkamp (recbag@oasegmbh.de).
Peter Vortkamp

Hello Olivier,

Thanks for your fast reply!

I have disabled the FontAwesome setting in J2Commerce and - as you said - the error message disappeared.
And items are added to the basket again. But: strangely enough, the quantity of items selected via the drop down menu is doubled in the shopping basket. This only happens with the new version 4.01 and not with the old version 2.05 of the drop down menu.

Links and credentials are added.

Regards
Peter

Olivier Buisard Staff

Thanks Peter,

I have disabled the apps for Bootstrap 2,3 and 4 and enabled Bootstrap 5. It will ensure you get the proper layouts corresponding to your template.

I am lookimg into the doubling of cart items.

Olivier.

Olivier Buisard Staff

It looks like j2store.jss is loaded twice on the page, therefore submitting products twice.

Olivier.

Olivier Buisard Staff

Peter,

The duplicated loading of the j2store.js script was forcing 2 events on the 'Add to cart' form.Hence the doubled number of items in the cart.

It turns out the faulty extension was the Product Quantity app, which I updated on your site.

Adding items to the cart now seems alright.

Note: I disabled javascript concatenation of scripts in JCHOptimize to find out what the problem was.

Olivier.

The ticket information has been edited by Peter Vortkamp (recbag@oasegmbh.de).
Peter Vortkamp

Hi Olivier,

I am very grateful for your great support and for fixing the bugs.

However, we have found two more bugs:
1. Now the total price above the dropdown menu is no longer calculated, instead the value jumps back to the unit price after changing the order quantity.
2. If you click on the menu item Catalog/Inventory in the backend in j2Commerce, the quantities of the individual articles only appear in one column. For example, if there are still 125 pieces of an item in stock, only the first value 1 is displayed. Can this be easily changed?


By the way, the page test. is not our live site, but we have already transferred the changes you have made so far.
Thanks a lot!
Peter

Olivier Buisard Staff

Hello Peter,

2. has been fixed oin 4.1, coming soon.

In the meantime, use:

.com_j2store .inventory-form-control {
    width: 80px;
}

I am going to look into 1.

Olivier.

Peter Vortkamp

Hi Olivier,

Are you still working on problem no. 1 or will the bug perhaps be fixed with the next update?
Peter

Olivier Buisard Staff

Hello Peter,

we are looking at several related issues, I am hoping to find a fix soon. If the problem ends up being caused by the plugin, it will be resolved right away, otherwise it will need to wait for the next J2Commerce update.

Olivier.

Olivier Buisard Staff

Peter,

I implemented a solution that only modifies the add-on. Other solutions would require core changes.

Let me know what you think about it. Without changes to the core, we cannot format the final price (quantity x price). 

Olivier.

Peter Vortkamp

Hi Olivier,

That seems to be a very elegant solution!
But:
1. the first value in the dropdown menu cannot be selected. The message appears: Please enter a valid quantity
2. if in the plugin settings - Add placeholder --Select-- instead of defaulting to the first option - is selected, the solution you have developed leads to the error message: 0 Unsupported operand types: string * int

But we can also wait until there is an update, you don't have to invest your time in individual solutions.
Peter
Olivier Buisard Staff

Hello Peter,

I am not sure I understand the issue you are having in 1. I have no trouble selecting the first item in the dropdowns. Can you send a screenshot?

I forgot about case 2., I fixed it.

Olivier.

Peter Vortkamp

Hi Olivier,

1 only happens when the placeholder --select-- is not selected in the plugin settings (see screenshot).
If you first choose a higher value and then go back to the first value, then everything works fine.

Peter

Attachments

Screenshot 2025-07-01 151633.png
Olivier Buisard Staff

Hummm, that's strange, I can't reproduce. Tried on Firefox and Chromium based browsers.

Olivier.

Peter Vortkamp

I tried on several browsers too, always the same.

But this is not a big thing, the placeholder --select-- is fine for us.
How to get your implementation to our live-site now?