- Posts: 306
- Thank you received: 42
Discount code already used. Please change it
13 years 4 weeks ago #122663
by trevsmiff
Discount code already used. Please change it was created 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
-- 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.
13 years 4 weeks ago #122723
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Discount code already used. Please change it
Hi,
Please edit the file "components/com_hikamarket/views/discountmarket/tmpl/show.php" and replace
By:
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,
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>
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>
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.
13 years 4 weeks ago #122730
by trevsmiff
Replied by trevsmiff on topic Discount code already used. Please change it
That fixed it.
Thanks again Jerome
Trevor
Thanks again Jerome
Trevor
Please Log in or Create an account to join the conversation.
Moderators: Obsidev
Time to create page: 0.161 seconds