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

#   Update Table If Checkout is Successful

##

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

Less More

- Posts: 25
- Thank you received: 0
-
-

14 years 2 weeks ago [\#72502](#72502) by [jonblk](/forum/user/9766-jonblk "View jonblk's Profile")  *[Update Table If Checkout is Successful](/forum/4-how-to/72502-update-table-if-checkout-is-successful#72502 "Good Day,  There is a table which I would like update when a user checks out.  Currently, the checkout page where a user enters their credit card information is MYSITE/index.php/component/hikashop/checkout.  There is a 'Next' button at the bottom right hand of the page.  When the user clicks this 'Next' button, I would like to update a separate table which I have created using php and mySQL. I only want to update this table if the checkout validation is successful.  Which file or files will I need to modify to accomplish this? Which block of code will I need to place my statement in so my table will be updated if the checkout is successful?  Thank You in advance")* was created by *[jonblk](/forum/user/9766-jonblk "View jonblk's Profile")*

Good Day,

There is a table which I would like update when a user checks out.

Currently, the checkout page where a user enters their credit card information is MYSITE/index.php/component/hikashop/checkout.

There is a 'Next' button at the bottom right hand of the page.

When the user clicks this 'Next' button, I would like to update a separate table which I have created using php and mySQL. I only want to update this table if the checkout validation is successful.

Which file or files will I need to modify to accomplish this?
Which block of code will I need to place my statement in so my table will be updated if the checkout is successful?

Thank You in advance

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 2 weeks ago [\#72691](#72691) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: Update Table If Checkout is Successful](/forum/4-how-to/72502-update-table-if-checkout-is-successful#72691 "Good Day,  There is a table which I would like update when a user checks out.  Currently, the checkout page where a user enters their credit card information is MYSITE/index.php/component/hikashop/checkout.  There is a 'Next' button at the bottom right hand of the page.  When the user clicks this 'Next' button, I would like to update a separate table which I have created using php and mySQL. I only want to update this table if the checkout validation is successful.  Which file or files will I need to modify to accomplish this? Which block of code will I need to place my statement in so my table will be updated if the checkout is successful?  Thank You in advance")*

Hi,

I think that you'll have to add your code in the "end" file of the "Checkout" view of your front-end template that you are currently using through "*Hikashop-&gt;Display-&gt;Views*".

Hope this will help you.

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

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