Unable to delete a discount

  • Posts: 306
  • Thank you received: 42
  • Hikamarket Multivendor Hikashop Business
11 years 2 months ago #122701

-- HikaMarket -- : 1.3.0_2013-09-01
-- HikaShop version -- : 2.2.1 Business
-- Joomla version -- : 3.1.5
-- PHP version -- : 5.3.13
-- Browser(s) name and version -- : Firefox 23.0.1

The delete discount button does not seem to be working. When I click on the 'X' to delete a discount a pop-up is displayed to confirm that I want to delete but the discount is not deleted.

regards
Trevor

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #122737

Hi,

Right.
There was some untested feature in the discount edition of HikaMarket. We will proceed to some test during the week.
Sorry for the inconvenient.

You have to modify three files in order to fix it.
The first file is "components/com_hikamarket/controllers/discount.php" and replace

'delete' => array()
By
'delete' => array('delete')

After that, the file "components/com_hikamarket/views/discountmarket/tmpl/listing.php" and replace
<tr class="row<?php echo $k; ?>" id="<?php $rowId; ?>">
By
<tr class="row<?php echo $k; ?>" id="<?php echo $rowId; ?>">
And finally the file "administrator/components/com_hikamarket/classes/discount.php" and replace
if(!$app->isAdmin() && ((int)$value1 == 0 || hikamarket::acl('discount_delete') || !hikamarket::isVendorDiscount((int)$value1)))
By
if(!$app->isAdmin() && ((int)$value1 == 0 || !hikamarket::acl('discount_delete') || !hikamarket::isVendorDiscount((int)$value1)))
It should fix the different problem (the right to delete and the fix to remove the complete row line and not the case which contains the delete button.

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: 306
  • Thank you received: 42
  • Hikamarket Multivendor Hikashop Business
11 years 2 months ago #122741

Thanks again Jerome, that works.

Trevor

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

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