What Is The Function That Checks For "ultimate" Used For?

I've seen in many places all around the php code that a check is beings constantly made for a version called ULTIMATE:

fn_allowed_for('ULTIMATE')

I was just hoping someone could explain to me the purpose of this. I thought there were just 2 versions, Normal and Multi-Vendor. Sometimes i've even seen that the "ULTIMATE" code leads to different behavior.

Should I ever need to perform this check myself If I am only modifying files for a Multi-Vendor version?

Thanks.

Hello,

Some functionality are not used in the MultiVendor, but are used in Ultimate.

I think therefore this check is used.

I've seen in many places all around the php code that a check is beings constantly made for a version called ULTIMATE:

fn_allowed_for('ULTIMATE')

I was just hoping someone could explain to me the purpose of this. I thought there were just 2 versions, Normal and Multi-Vendor. Sometimes i've even seen that the "ULTIMATE" code leads to different behavior.

Should I ever need to perform this check myself If I am only modifying files for a Multi-Vendor version?

Thanks.

ULTIMATE - is old name of CS-Cart edition with multiple store-fronts. This code allows to check if CS-Cart or Multi-Vendor is used now.

ULTIMATE - is old name of CS-Cart edition with multiple store-fronts. This code allows to check if CS-Cart or Multi-Vendor is used now.

Sorry, i'm confused.

Will it return true for CS-Cart normal edition? or for CS-Cart multivendor edition?

Sorry, i'm confused.

Will it return true for CS-Cart normal edition? or for CS-Cart multivendor edition?

if (fn_allowed_for('ULTIMATE')) means code for CS-Cart

if (fn_allowed_for('MULTIVENDOR')) means code for Multi-Vendor

1 Like

Alright thanks!