Discount code already used. Please change it

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

-- 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

Each time I try to add a new discount I get the following message:
Discount code already used. Please change it
Changing the code makes no difference.

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 #122723

Hi,

Please edit the file "components/com_hikamarket/views/discountmarket/tmpl/show.php" and replace

		<dd class="hikamarket_discount_type"><input type="text" size="45" name="data[discount][discount_type]" value="<?php echo $this->escape(@$this->discount->discount_type); ?>" /></dd>
By:
		<dd class="hikamarket_discount_type"><?php
			$options = array(
				JHTML::_('select.option', 'coupon', JText::_('COUPONS')),
				JHTML::_('select.option', 'discount', JText::_('DISCOUNTS')),
			);
			echo JHTML::_('select.genericlist', $options, 'data[discount][discount_type]', '', 'value', 'text', @$this->discount->discount_type);
		?></dd>
I clearly don't know why this dropdown was no present. But in my tests, a wrong value for the type generates the same kind of error than an already existing discount code.
So it should fix the problem.

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 #122730

That fixed it.

Thanks again Jerome
Trevor

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

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