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

#   edit credit card after next step

##

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

Less More

- Posts: 29
- Thank you received: 0
-
-

15 years 1 month ago [\#26670](#26670) by [sepyh](/forum/user/1421-sepyh "View sepyh's Profile")  *[edit credit card after next step](/forum/4-how-to/26670-edit-credit-card-after-next-step#26670 "is it possible for the user to edit their credit card info (card owner) after they have clicked next step?  at the moment, its not possible by going back in the browser as the fields have changed to in-editable (XXXXXXXXXXX6776)  Hope yo understand,  Thanks")* was created by *[sepyh](/forum/user/1421-sepyh "View sepyh's Profile")*

is it possible for the user to edit their credit card info (card owner) after they have clicked next step?

at the moment, its not possible by going back in the browser as the fields have changed to in-editable (XXXXXXXXXXX6776)

Hope yo understand,

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjcwLWVkaXQtY3JlZGl0LWNhcmQtYWZ0ZXItbmV4dC1zdGVwP3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

15 years 1 month ago [\#26689](#26689) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: edit credit card after next step](/forum/4-how-to/26670-edit-credit-card-after-next-step#26689 "is it possible for the user to edit their credit card info (card owner) after they have clicked next step?  at the moment, its not possible by going back in the browser as the fields have changed to in-editable (XXXXXXXXXXX6776)  Hope yo understand,  Thanks")*

You would have to edit the file "payment" of the view "checkout" via the menu Display-&gt;Views and change the code:
if(!empty($cc_number) &amp;&amp; !empty($cc_month) &amp;&amp; !empty($cc_year) &amp;&amp; (!empty($cc_CCV)&#124;&#124; empty($method-&gt;ask_ccv)) &amp;&amp; (!empty($cc_owner)&#124;&#124; empty($method-&gt;ask_owner)) &amp;&amp; (!empty($cc_type)&#124;&#124; empty($method-&gt;ask_cctype))){

to:
if(false){

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

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

Less More

- Posts: 1
- Thank you received: 0
-
-

14 years 11 months ago -  14 years 11 months ago [\#31236](#31236) by [robv](/forum/user/3907-robv "View robv's Profile")  Replied by *[robv](/forum/user/3907-robv "View robv's Profile")* on topic *[Re: edit credit card after next step](/forum/4-how-to/26670-edit-credit-card-after-next-step#31236 "is it possible for the user to edit their credit card info (card owner) after they have clicked next step?  at the moment, its not possible by going back in the browser as the fields have changed to in-editable (XXXXXXXXXXX6776)  Hope yo understand,  Thanks")*

That's kind of silly. The customer should be able to change the payment information after the fact.

Update:

Please let me know if I'm mistaken but line ~818 of components/com_hikashop/controllers/checkout.php also needs to be changed to always be true and update the stored card information. Otherwise Hikashop will continue to use the previously stored credit data.

if(empty($cc_number) &#124;&#124; empty($cc_month) &#124;&#124; empty($cc_year) &#124;&#124; (empty($cc_CCV)&amp;&amp;!empty($paymentData-&gt;ask_ccv)) &#124;&#124; (empty($cc_owner)&amp;&amp;!empty($paymentData-&gt;ask_owner))) {

to something like:

if(true &#124;&#124; empty($cc_number) &#124;&#124; empty($cc_month) &#124;&#124; empty($cc_year) &#124;&#124; (empty($cc_CCV)&amp;&amp;!empty($paymentData-&gt;ask_ccv)) &#124;&#124; (empty($cc_owner)&amp;&amp;!empty($paymentData-&gt;ask_owner))){

Last edit: 14 years 11 months ago by [robv](/forum/user/3907-robv "View robv's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI2NjcwLWVkaXQtY3JlZGl0LWNhcmQtYWZ0ZXItbmV4dC1zdGVwP3RtcGw9bWFya2Rvd24=) 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: 86555
- Thank you received: 14304
-
-

14 years 11 months ago [\#31261](#31261) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: edit credit card after next step](/forum/4-how-to/26670-edit-credit-card-after-next-step#31261 "is it possible for the user to edit their credit card info (card owner) after they have clicked next step?  at the moment, its not possible by going back in the browser as the fields have changed to in-editable (XXXXXXXXXXX6776)  Hope yo understand,  Thanks")*

Indeed, you will also need that second change so that the information can be updated if the user changes it.

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

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