[Skip to main content](#vessel-content)

#   Discount code already used. Please change it

##

- **[trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")**
- [![trevsmiff's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9214.jpg)](/forum/user/9214-trevsmiff "View trevsmiff's Profile") Topic Author
- [ Offline](/forum/user/9214-trevsmiff)

Less More

- Posts: 306
- Thank you received: 42
-
-

13 years 2 months ago [\#122663](#122663) by [trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")  *[Discount code already used. Please change it](/forum/22-market-bug-report/861844-discount-code-already-used-please-change-it#122663 "-- HikaMarket -- : 1.3.0&#95;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")* was created by *[trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")*

-- 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg2MTg0NC1kaXNjb3VudC1jb2RlLWFscmVhZHktdXNlZC1wbGVhc2UtY2hhbmdlLWl0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

13 years 2 months ago [\#122723](#122723) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Discount code already used. Please change it](/forum/22-market-bug-report/861844-discount-code-already-used-please-change-it#122723 "-- HikaMarket -- : 1.3.0&#95;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")*

Hi,

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

&lt;dd class="hikamarket_discount_type"&gt;&lt;input type="text" size="45" name="data[discount][discount_type]" value="&lt;?php echo $this-&gt;escape(@$this-&gt;discount-&gt;discount_type); ?&gt;" /&gt;&lt;/dd&gt;

By: Code:

&lt;dd class="hikamarket_discount_type"&gt;&lt;?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-&gt;discount-&gt;discount_type); ?&gt;&lt;/dd&gt;

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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg2MTg0NC1kaXNjb3VudC1jb2RlLWFscmVhZHktdXNlZC1wbGVhc2UtY2hhbmdlLWl0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")**
- [![trevsmiff's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar9214.jpg)](/forum/user/9214-trevsmiff "View trevsmiff's Profile") Topic Author
- [ Offline](/forum/user/9214-trevsmiff)

Less More

- Posts: 306
- Thank you received: 42
-
-

13 years 2 months ago [\#122730](#122730) by [trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")  Replied by *[trevsmiff](/forum/user/9214-trevsmiff "View trevsmiff's Profile")* on topic *[Discount code already used. Please change it](/forum/22-market-bug-report/861844-discount-code-already-used-please-change-it#122730 "-- HikaMarket -- : 1.3.0&#95;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")*

That fixed it.

Thanks again Jerome
Trevor

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0Lzg2MTg0NC1kaXNjb3VudC1jb2RlLWFscmVhZHktdXNlZC1wbGVhc2UtY2hhbmdlLWl0P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.060 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
