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

#   Can a mailing list signup be added to registration using Custom Fields?

##

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

Less More

- Posts: 31
- Thank you received: 2
-
-

5 years 7 months ago -  5 years 7 months ago [\#331356](#331356) by [sixdeuces](/forum/user/40002-sixdeuces "View sixdeuces's Profile")  *[Can a mailing list signup be added to registration using Custom Fields?](/forum/27-checkout/902296-can-a-mailing-list-signup-be-added-to-registration-using-custom-fields#331356 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.3  NOTE: I made a mistake in the title. I'm looking to add it to checkout, not registration.  I'd like to add a &quot;Join our mailing list&quot; checkbox at the end of the checkout, immediately preceding the finish/checkout button.  I know I can add a custom field in the order table, but that's not quite appropriate since the data really belongs in the user table. However if the field is added to the user table, is there a way to get it to appear during checkout? Perhaps a customized override of the checkout page, but I'm hesitant to do that.  I'd appreciate any suggestions. Thank you!")* was created by *[sixdeuces](/forum/user/40002-sixdeuces "View sixdeuces's Profile")*

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.3

NOTE: I made a mistake in the title. I'm looking to add it to checkout, not registration.

I'd like to add a "Join our mailing list" checkbox at the end of the checkout, immediately preceding the finish/checkout button.

I know I can add a custom field in the order table, but that's not quite appropriate since the data really belongs in the user table. However if the field is added to the user table, is there a way to get it to appear during checkout? Perhaps a customized override of the checkout page, but I'm hesitant to do that.

I'd appreciate any suggestions. Thank you!

Last edit: 5 years 7 months ago by [sixdeuces](/forum/user/40002-sixdeuces "View sixdeuces's Profile").

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

5 years 7 months ago [\#331357](#331357) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Can a mailing list signup be added to registration using Custom Fields?](/forum/27-checkout/902296-can-a-mailing-list-signup-be-added-to-registration-using-custom-fields#331357 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.3  NOTE: I made a mistake in the title. I'm looking to add it to checkout, not registration.  I'd like to add a &quot;Join our mailing list&quot; checkbox at the end of the checkout, immediately preceding the finish/checkout button.  I know I can add a custom field in the order table, but that's not quite appropriate since the data really belongs in the user table. However if the field is added to the user table, is there a way to get it to appear during checkout? Perhaps a customized override of the checkout page, but I'm hesitant to do that.  I'd appreciate any suggestions. Thank you!")*

Hi,

If you use a custom field of the table "user" it will appear on the checkout if the user isn't already logged in since he will get the registration form.
So that might be ok.
Otherwise, you could have both a custom user field (for storing the data) and a custom order field (for display on the checkout), and then use a massaction with a trigger "onAfterOrderCreate and an action "update the values" on the custom user field column in "operation mode" with the value order.xxx (with xxx being the custom order field column name).
That way, the value of the custom order field would be copied to the custom user field after each order.

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

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