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

#   need a popup

##

- **[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")**
- [![demoisellegol's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/79354-demoisellegol "View demoisellegol's Profile") Topic Author
- [ Offline](/forum/user/79354-demoisellegol)

Less More

- Posts: 61
- Thank you received: 3
-
-

1 year 3 months ago [\#368239](#368239) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  *[need a popup](/forum/35-orders-management/909657-need-a-popup#368239 "-- HikaShop version -- : 6.1.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.2  Hi please see the attachment is there any wau that i can put a confirm popup on that green confirm button ? i mean on clicking on this button, a popup promt apear and ask &quot;are you sure you want to edit order? &quot; something like that")* was created by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")*

-- HikaShop version -- : 6.1.0
-- Joomla version -- : 5.3.3
-- PHP version -- : 8.2

Hi
please see the attachment
is there any wau that i can put a confirm popup on that green confirm button ? i mean on clicking on this button, a popup promt apear and ask "are you sure you want to edit order? "
something like that

- [ ![2025-08-24&#95;12-35-10.png](/forum/attachment/60755) ](/forum/attachment/60755 "...4&#95;12-35-10.png") [ ](/forum/attachment/60755?download=1 "...4&#95;12-35-10.png")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

1 year 3 months ago [\#368240](#368240) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[need a popup](/forum/35-orders-management/909657-need-a-popup#368240 "-- HikaShop version -- : 6.1.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.2  Hi please see the attachment is there any wau that i can put a confirm popup on that green confirm button ? i mean on clicking on this button, a popup promt apear and ask &quot;are you sure you want to edit order? &quot; something like that")*

Hi,

Yes, it's possible.

1. First, when you want to change the interface in HikaShop and that CSS is not enough and there is no easy option to toggle for it, you likely will have to do a view override via the menu Display&gt;Views of HikaShop's backend.

2. So, you need to find which view file to edit. For that, you can use the "Display view files" setting of the HikaShop configuration page:
[ www.hikashop.com/support/documentation/5...g.html#advanced\_main](https://www.hikashop.com/support/documentation/54-hikashop-config.html#advanced_main)
Here, it should give you the view order / edit_products in the popup.

3. So, edit this view file via the Display&gt;Views menu and you'll see the HTML / PHP / JS code of the view.
Since you want to edit the "Save" button, you can search for it in the code with your browser's search, and you'll find this line: Code:

&lt;a class="btn btn-success" href="#save" onclick="return window.hikashop.submitform('save','hikashop_order_product_form');"&gt;&lt;i class="fa fa-save"&gt;&lt;/i&gt; &lt;?php echo JText::_('HIKA_SAVE'); ?&gt;&lt;/a&gt;

4. So, that's the line you want to change. You can see there's already an "onclick" attribute which triggers the saving process.
And in HTML / JS, you have a simple method to add a confirm mechanism like you're talking about with the "confirm" function:
[ developer.mozilla.org/en-US/docs/Web/API/Window/confirm](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm)
So, basically, you want to add the confirm function to that onclick attribute. The result should be something like that: Code:

&lt;a class="btn btn-success" href="#save" onclick="if(window.confirm('Are you sure you want to edit order?')) { return window.hikashop.submitform('save','hikashop_order_product_form'); } else { return false; }"&gt;&lt;i class="fa fa-save"&gt;&lt;/i&gt; &lt;?php echo JText::_('HIKA_SAVE'); ?&gt;&lt;/a&gt;

The "else{ return false; }" will cancel the click event after the user clicks on the cancel button of the confirm popup. This way, the brower won't do anything.

The following user(s) said Thank You: [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")

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

- **[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")**
- [![demoisellegol's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/79354-demoisellegol "View demoisellegol's Profile") Topic Author
- [ Offline](/forum/user/79354-demoisellegol)

Less More

- Posts: 61
- Thank you received: 3
-
-

1 year 3 months ago [\#368241](#368241) by [demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")  Replied by *[demoisellegol](/forum/user/79354-demoisellegol "View demoisellegol's Profile")* on topic *[need a popup](/forum/35-orders-management/909657-need-a-popup#368241 "-- HikaShop version -- : 6.1.0 -- Joomla version -- : 5.3.3 -- PHP version -- : 8.2  Hi please see the attachment is there any wau that i can put a confirm popup on that green confirm button ? i mean on clicking on this button, a popup promt apear and ask &quot;are you sure you want to edit order? &quot; something like that")*

that was exactly what i was looking for.
thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50LzkwOTY1Ny1uZWVkLWEtcG9wdXA/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.054 seconds

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