Skip to main content

Discount code already used. Please change it

More
13 years 4 weeks ago #122663 by trevsmiff
-- 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.

More
13 years 4 weeks ago #122723 by Jerome
Hi,

Please edit the file "components/com_hikamarket/views/discountmarket/tmpl/show.php" and replace
Code:
<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:
Code:
<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.

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

More
13 years 4 weeks ago #122730 by trevsmiff
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.161 seconds
Powered by Kunena Forum