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

#   Button Buy one Click

##

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

Less More

- Posts: 77
- Thank you received: 1
-
-

10 years 4 months ago -  10 years 4 months ago [\#243008](#243008) by [Denys](/forum/user/38002-denys "View Denys's Profile")  *[Button Buy one Click](/forum/31-development/885069-button-buy-one-click#243008 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : chrome  Good afternoon , made ​​the button &quot;buy in a single click&quot; , is called a modal window , after you submit the form  Activated by the button &quot; Add to Cart &quot;  How can I get around this ? Or what is the place you can insert code that would not strabyvala button?")* was created by *[Denys](/forum/user/38002-denys "View Denys's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.6
-- Browser(s) name and version -- : chrome

Good afternoon , made ​​the button "buy in a single click" , is called a modal window , after you submit the form
Code:

&lt; Enter the name = "name" size = " 40 " class = the MaxLength = type " 40 " , " input" = "text" placeholder = " Name " must &gt; &lt; Enter the ID = " phone" name = " phone" size = class type = " 40 " , " input" = "text" placeholder = " + 380 ( __ ) ___ - __ - __ " required &gt; &lt; Enter the name = "mail_submit" type = " submit " class = " RTN " value = " Order " &gt;

Activated by the button " Add to Cart "

How can I get around this ? Or what is the place you can insert code that would not strabyvala button?

[ **VIDEO**](http://c2n.me/3zc3nhr)

Last edit: 10 years 4 months ago by [Denys](/forum/user/38002-denys "View Denys's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NTA2OS1idXR0b24tYnV5LW9uZS1jbGljaz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86287
- Thank you received: 14264
-
-

10 years 4 months ago [\#243018](#243018) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Button Buy one Click](/forum/31-development/885069-button-buy-one-click#243018 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : chrome  Good afternoon , made ​​the button &quot;buy in a single click&quot; , is called a modal window , after you submit the form  Activated by the button &quot; Add to Cart &quot;  How can I get around this ? Or what is the place you can insert code that would not strabyvala button?")*

Hi,

I'm sorry but I don't understand everything in your message so I'm not sure what you want.
If you want to remove the popup after the add to cart, I guess you want to change the "After a product is added to the cart" setting to "Always go to the checkout" in the HikaShop configuration.

If that setting is already set to that, then the problem comes from the code modifications you made in the layout of the product page which must add the popup hidden input field on the product page. But I can't confirm that theory since you didn't provide a link to the page and thus I can't check the HTML of the page.

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

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

Less More

- Posts: 77
- Thank you received: 1
-
-

10 years 4 months ago -  10 years 4 months ago [\#243046](#243046) by [Denys](/forum/user/38002-denys "View Denys's Profile")  Replied by *[Denys](/forum/user/38002-denys "View Denys's Profile")* on topic *[Button Buy one Click](/forum/31-development/885069-button-buy-one-click#243046 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : chrome  Good afternoon , made ​​the button &quot;buy in a single click&quot; , is called a modal window , after you submit the form  Activated by the button &quot; Add to Cart &quot;  How can I get around this ? Or what is the place you can insert code that would not strabyvala button?")*

:silly: :silly: :silly:
**I made a button on the html to php form processing**

[ ![600](http://clip2net.com/clip/m521918/57867-clip-48kb.png) ](http://clip2net.com/clip/m521918/57867-clip-48kb.png "600")

**Which takes the name of the phone and writes in the variable address of the page**

[ ![600](http://clip2net.com/clip/m521918/19123-clip-50kb.png) ](http://clip2net.com/clip/m521918/19123-clip-50kb.png "600")

**After clicking on the button should come on the mail a letter with the user data**

[ ![600](http://clip2net.com/clip/m521918/49c5c-clip-51kb.png) ](http://clip2net.com/clip/m521918/49c5c-clip-51kb.png "600")

**But it does not happen, instead activated the button Add to Cart.**

[ ![600](http://clip2net.com/clip/m521918/6197c-clip-51kb.png) ](http://clip2net.com/clip/m521918/6197c-clip-51kb.png "600")

**Send button activates cart

Goods must not be added to cart!

I put the code in the components \\com\_hikashop\\views\\product\\tmpl\\quantity.php

The link to the website can not give, because it is located on a local server. ![:(](/media/kunena/emoticons/5.png ":(")**

Last edit: 10 years 4 months ago by [Denys](/forum/user/38002-denys "View Denys's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4NTA2OS1idXR0b24tYnV5LW9uZS1jbGljaz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86287
- Thank you received: 14264
-
-

10 years 4 months ago [\#243056](#243056) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Button Buy one Click](/forum/31-development/885069-button-buy-one-click#243056 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : chrome  Good afternoon , made ​​the button &quot;buy in a single click&quot; , is called a modal window , after you submit the form  Activated by the button &quot; Add to Cart &quot;  How can I get around this ? Or what is the place you can insert code that would not strabyvala button?")*

Hi,

Without the link to the page and without the code that you used to add your custom display, I can't tell you what is the problem.

I can only guess:
You have your custom HTML inside the form tag of the product page. Because of that, when you submit the data of your fields, it actually submit the main form of the product page, which is the add to cart form.
So if that's the problem, you should move your custom HTML outside of the form of the product page, or use custom javascript post to get the data in your fields and to a submit outside of the form of the product page with your own form tag.

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

- **[bromik](/forum/user/40488-bromik "View bromik's Profile")**
- [![bromik's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/splatter_hand.png)](/forum/user/40488-bromik "View bromik's Profile")
- [ Offline](/forum/user/40488-bromik)

Less More

- Posts: 7
- Thank you received: 1
-
-

10 years 4 months ago -  10 years 4 months ago [\#243294](#243294) by [bromik](/forum/user/40488-bromik "View bromik's Profile")  Replied by *[bromik](/forum/user/40488-bromik "View bromik's Profile")* on topic *[Button Buy one Click](/forum/31-development/885069-button-buy-one-click#243294 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 5.6 -- Browser(s) name and version -- : chrome  Good afternoon , made ​​the button &quot;buy in a single click&quot; , is called a modal window , after you submit the form  Activated by the button &quot; Add to Cart &quot;  How can I get around this ? Or what is the place you can insert code that would not strabyvala button?")*

You can put the opening and closing tag &lt;form&gt; in the right places :woohoo: :woohoo: :woohoo:

Last edit: 10 years 4 months ago by [bromik](/forum/user/40488-bromik "View bromik's Profile").

The following user(s) said Thank You: [Denys](/forum/user/38002-denys "View Denys's Profile")

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

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

[](#top)
