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

#   How to add another option to Discount Type?

##

- **[magicwords](/forum/user/33185-magicwords "View magicwords's Profile")**
- [![magicwords's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/redswirl.jpg)](/forum/user/33185-magicwords "View magicwords's Profile") Topic Author
- [ Offline](/forum/user/33185-magicwords)

Less More

- Posts: 66
- Thank you received: 0
-
-
-
- [](http://www.magicwebconsultants.com)
-

12 years 1 month ago [\#175518](#175518) by [magicwords](/forum/user/33185-magicwords "View magicwords's Profile")  *[How to add another option to Discount Type?](/forum/35-orders-management/872311-how-to-add-another-option-to-discount-type#175518 "-- url of the page with the problem -- :   www.pponlinestore.com/administrator/inde...kashop&amp;ctrl=discount  -- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.2 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  Hello,  I am using business edition of hikashop. In the hikashop configuration -&gt; Order-&gt;Discounts there are only two options when I create new i.e. 1) Discount &amp; 2) Coupons  Please refer the attached screenshot. I want to add new options after the 'Coupons' and customize the fields according to new type.  Due to some customization requirements I need to add another few options after the coupon. How to do that? If I am to edit some php file, please also guide where to find it and what section to edit as I am not a programmer.  Thanks in Advance")* was created by *[magicwords](/forum/user/33185-magicwords "View magicwords's Profile")*

-- url of the page with the problem -- : [ www.pponlinestore.com/administrator/inde...kashop&amp;ctrl=discount](http://www.pponlinestore.com/administrator/index.php?option=com_hikashop&ctrl=discount)
-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.2
-- PHP version -- : 5.5.15
-- Browser(s) name and version -- : Chrome

Hello,

I am using business edition of hikashop. In the hikashop configuration -&gt; Order-&gt;Discounts there are only two options when I create new i.e. 1) Discount &amp; 2) Coupons

Please refer the attached screenshot. I want to add new options after the 'Coupons' and customize the fields according to new type.

Due to some customization requirements I need to add another few options after the coupon. How to do that? If I am to edit some php file, please also guide where to find it and what section to edit as I am not a programmer.

Thanks in Advance

- [ ![orderpage.png](/forum/attachment/20128) ](/forum/attachment/20128 "orderpage.png") [ ](/forum/attachment/20128?download=1 "orderpage.png")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 1 month ago [\#175536](#175536) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[How to add another option to Discount Type?](/forum/35-orders-management/872311-how-to-add-another-option-to-discount-type#175536 "-- url of the page with the problem -- :   www.pponlinestore.com/administrator/inde...kashop&amp;ctrl=discount  -- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3.2 -- PHP version -- : 5.5.15 -- Browser(s) name and version -- : Chrome  Hello,  I am using business edition of hikashop. In the hikashop configuration -&gt; Order-&gt;Discounts there are only two options when I create new i.e. 1) Discount &amp; 2) Coupons  Please refer the attached screenshot. I want to add new options after the 'Coupons' and customize the fields according to new type.  Due to some customization requirements I need to add another few options after the coupon. How to do that? If I am to edit some php file, please also guide where to find it and what section to edit as I am not a programmer.  Thanks in Advance")*

Hi,

To add an option here it require to edit core files, so changes are lost when updating unless you do class overrides.
The file to edit is "administrator/components/com_hikashop/types/discount.php", in that file you can add the entry as a new 'select.option', then you will have to edit/add javascript to change the displayed fields.
To add fields, the view to edit is "discount / form" in backend template.

Could you give us more details about what you want to add ? Because it will require a lot of other modifications if you want a new discount type...

In your case the best solution will maybe to use a plugin based on custom fields or on a specific action.
Here is documentation about plugins:
[ hikashop.com/support/support/documentati...r-documentation.html](https://hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html)

In all cases, it require good PHP knowledges.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg3MjMxMS1ob3ctdG8tYWRkLWFub3RoZXItb3B0aW9uLXRvLWRpc2NvdW50LXR5cGU/dG1wbD1tYXJrZG93bg==) 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?

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

Time to create page: 0.069 seconds

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