Problem adding product with Single Multistep category selector

More
5 years 9 months ago #41779 by andkit01
Hi,

Using 'Single Multistep' category selector option for vmvendor Add Product, it seems to only work when there is only 1 category level. For example:
- Category 1
- Category 2

When there are multiple levels, for example:
- Category 1
--- Category 1.1
- Category 2
--- Category 2.1

Then on the Add Product form, when the 'Add Product' submit button is pressed, nothing happens, and multiple errors are generated (e.g., on Chrome Inspect):

add-product:1 An invalid form control with name='' is not focusable.

To reproduce error:
andkit01.com/en/vmv-test/add-product
(user: user1, psw: user1)

Note 1: The same error occurs regardless of the Auto-Publish setting in vmvendor.
Note 2: The problem does not apply to the other type of category selector: Multicat, Classic.

Please help. Thanks.

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

More
5 years 9 months ago #41802 by nordmograph
Hello,

It seems to be a new chrome form validation feature that sees to be incompatible with the field nature. The solution could be to make hidden select fields (within this field) not required. I'll give it another try.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

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

More
5 years 9 months ago #41803 by andkit01
Hello, thank you Adrien,

Btw I also see the issue on Firefox, with an error message saying "Empty string passed to getElementById() on jquery.min.js:1236

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

More
5 years 9 months ago #41846 by andkit01
Btw, what do you mean by hidden select fields?

In ./components/com_vmvendor/views/addproduct/tmpl/default.php file, on lines 386-390, the section for $level==1 seems much simpler than the other cases ($level==0, $level>1), is anything missing from this section by any chance? Seems like $c_js needs to have some non-empty instructions to be called later in line 470 '<script>'.$c_js.'</script>' ?

Also, I'm wondering what variable will contain the complete selected category and sub-categories IDs? Is it $cat ?

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

Time to create page: 0.335 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.