is not possible delete vendor

  • Posts: 62
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
2 months 2 weeks ago #336804

-- url of the page with the problem -- : http://localhost/joomla7
-- HikaShop version -- : 4.4.4
-- HikaMarket version -- : 4.0.0
-- Joomla version -- : 4.0.4
-- PHP version -- : 7.4
-- Browser(s) name and version -- : firefox and chrome

I update my website in joomla 4 (I test this in localhost)
I have a problem, is not possible delete vendor
check my screenshot
Thank you
Bye

Attachments:

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

  • Posts: 25139
  • Thank you received: 3891
  • MODERATOR
2 months 1 week ago #336809

Hello,

You can't delete vendors who have orders or products.
Can you please remove the association of the product and retry the vendor deletion ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 62
  • Thank you received: 1
  • Hikamarket Multivendor Hikashop Business
2 months 1 week ago #336815

I tried to do what you asked me, it is not possible to delete the seller.
it is not possible to click, the delete button.
this problem I have it only in joomla 4
I am testing joomla version 4 of my site on xampp locally
The same site with joomla 3.10 everything works fine
I also did a manual package update before hikashop and then hikamarket
This problem is not urgent to solve.. when you have time, try a j3 to j4 upgrade and check delete vendor

Last edit: 2 months 1 week ago by danieledanibel.

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

  • Posts: 25139
  • Thank you received: 3891
  • MODERATOR
2 months 1 week ago #336841

Hello,

Thank you for your feedback.
Regarding the issue description, it looks like Joomla 4 doesn't know how to handle a form with pre-check fields.

To fix the issue, you can edit the backend view "views/vendormarket/tmpl/delete.php" and replace

</form>
By
</form>
<?php
$doc = JFactory::getDocument();
$doc->addScriptDeclaration('window.hikashop.ready(function(){Joomla.isChecked(true);});');
And the Joomla 4 "Delete" toolbar button will be enabled.

Regarding the Joomla 4 bug details.
It's in the "joomla-toolbar-button" javascript file :
github.com/joomla/joomla-cms/blob/4.0-de...utton.w-c.es6.js#L49
By default, the button is set-up disabled
    if (this.listSelection) {
      this.setDisabled(true);
    }
When it register to check the modification of the field value
this.formElement.boxchecked.addEventListener('change', this.onChange);
It should also read the current "boxchecked" value in order to set the "disabled" state, like it's doing in the "onChange" function.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Moderators: Obsidev
Time to create page: 0.059 seconds
Powered by Kunena Forum