News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Ordering custom fields is not woorking on 4.4.6

Started by Kuubs, February 21, 2025, 01:11:02 AM

Previous topic - Next topic

Kuubs

See title. You cannot set the order of the custom fields anymore. It doesnt get saved.

hazael


Kuubs


waeron

I found an error. in the file customfields.php in administrator\components\com_virtuemart\models\ on line 1758

change

if(!empty($customfield->ordering)){

to

if(isset($customfield->ordering)){

caused by the fact that php empty() also takes zero as empty and each new inserted field has ordering 0 :/


hazael

Acctually I don't need it, but as I remember well, someone already wrote about this problem once and it was solved exactly the same way. It's just strange that the Virtuemart authors don't read this forum to use user comments to fix these bugs :)