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

#   Having 2 Checkout Forms

##

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

Less More

- Posts: 108
- Thank you received: 2
-
-

15 years 3 months ago [\#23421](#23421) by [bars92](/forum/user/3048-bars92 "View bars92's Profile")  *[Having 2 Checkout Forms](/forum/4-how-to/23421-having-2-checkout-forms#23421 "Hello again.  Recently I needed 2 checkout forms and i searched a bit and found out the checkout is called by the &quot;?...&amp;checkout=1&quot; and i wanted to know how can i call a custom maded checkout with this function (im guessing that the function calls to build the checkout from a php file for this checkout, so copying the checkout php file to a customized one and call that via url)  Im asking is this the right way to do it, and if it is what file do i need to copy to create this customized checkout?  Customized configuration and so on..  And another thing i need is to enable affiliate without showing the checkbox. I marked no at the configuration for &quot;Add a 'become partner' checkbox on the registration form &quot; and yes for &quot;Default value of the partner checkbox&quot; and it has a default 'no' what can i do to set it for yes default?  Thanks in advance.")* was created by *[bars92](/forum/user/3048-bars92 "View bars92's Profile")*

Hello again.

Recently I needed 2 checkout forms and i searched a bit and found out the checkout is called by the "?...&amp;checkout=1" and i wanted to know how can i call a custom maded checkout with this function (im guessing that the function calls to build the checkout from a php file for this checkout, so copying the checkout php file to a customized one and call that via url)

Im asking is this the right way to do it, and if it is what file do i need to copy to create this customized checkout?

Customized configuration and so on..

And another thing i need is to enable affiliate without showing the checkbox. I marked no at the configuration for "Add a 'become partner' checkbox on the registration form " and yes for "Default value of the partner checkbox" and it has a default 'no' what can i do to set it for yes default?

Thanks in advance.

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

15 years 3 months ago [\#23432](#23432) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Having 2 Checkout Forms](/forum/4-how-to/23421-having-2-checkout-forms#23432 "Hello again.  Recently I needed 2 checkout forms and i searched a bit and found out the checkout is called by the &quot;?...&amp;checkout=1&quot; and i wanted to know how can i call a custom maded checkout with this function (im guessing that the function calls to build the checkout from a php file for this checkout, so copying the checkout php file to a customized one and call that via url)  Im asking is this the right way to do it, and if it is what file do i need to copy to create this customized checkout?  Customized configuration and so on..  And another thing i need is to enable affiliate without showing the checkbox. I marked no at the configuration for &quot;Add a 'become partner' checkbox on the registration form &quot; and yes for &quot;Default value of the partner checkbox&quot; and it has a default 'no' what can i do to set it for yes default?  Thanks in advance.")*

Hi,

There is a lot more involved in order to have two different checkouts. The checkout=1 parameter just tells the system to redirect to the checkout after the product is added to the cart. You would also have to modify the checkout controller and the checkout views in order to handle several checkouts. That would include a bunch of hacks.

The best would be to allow the checkout workflow to be overridden by hikashop plugins. That would enable you to do it more easily. But that's not yet possible.

If you want to activate the affiliates by default, it's quite easy. Just change the default value of the user_partner_activated column of the hikashop_user table to 1 via phpmyadmin and all the new users will be affiliates by default. You don't need that checkbox.

If you still want to use the checkbox, you should try to replace the line:
$affiliate = 'CHECKED';

to:
$affiliate = 'checked="checked"';

in the file components/com_hikashop/views/user/view.html.php that might help solve the problem.

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

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