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

#   Item custom fields not showing up in cart on checkout with login block

##

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

Less More

- Posts: 15
- Thank you received: 0
-
-

9 years 7 months ago -  9 years 7 months ago [\#267129](#267129) by [sashau](/forum/user/26276-sashau "View sashau's Profile")  *[Item custom fields not showing up in cart on checkout with login block](/forum/3-bug-report/889768-item-custom-fields-not-showing-up-in-cart-on-checkout-with-login-block#267129 "Steps to reproduce:  &#42; Go to and add the item to the cart - notice it has a custom item field of length  &#42; Go to the Checkout by clicking on Cart in the top right  &#42; The first step just shows the Cart block - the item is in the cart and the custom field is displayed  &#42; Click Next - this step shows the Cart and the Login block. The custom field is now not displayed in the cart  I think the issue comes from /administrator/components/com&#95;hikashop/helpers/checkout/login.php on Line 366 where the extraFields are set with the user array which overides any existing items.  If I change the order of the blocks (ie show login block and then cart block) then the item custom field is displayed - but I don't want them in that order.  Thanks, I hope you can fix this issue.")* was created by *[sashau](/forum/user/26276-sashau "View sashau's Profile")*

Steps to reproduce:

1. Go to \[URL removed\] and add the item to the cart - notice it has a custom item field of length\[/url\]
2. Go to the Checkout by clicking on Cart in the top right
3. The first step just shows the Cart block - the item is in the cart and the custom field is displayed
4. Click Next - this step shows the Cart and the Login block. The custom field is now not displayed in the cart

I think the issue comes from /administrator/components/com_hikashop/helpers/checkout/login.php on Line 366 where the extraFields are set with the user array which overides any existing items.

If I change the order of the blocks (ie show login block and then cart block) then the item custom field is displayed - but I don't want them in that order.

Thanks, I hope you can fix this issue.

Last edit: 9 years 7 months ago by [sashau](/forum/user/26276-sashau "View sashau's Profile"). Reason: Removed link to staging server

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

9 years 7 months ago [\#267138](#267138) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Item custom fields not showing up in cart on checkout with login block](/forum/3-bug-report/889768-item-custom-fields-not-showing-up-in-cart-on-checkout-with-login-block#267138 "Steps to reproduce:  &#42; Go to and add the item to the cart - notice it has a custom item field of length  &#42; Go to the Checkout by clicking on Cart in the top right  &#42; The first step just shows the Cart block - the item is in the cart and the custom field is displayed  &#42; Click Next - this step shows the Cart and the Login block. The custom field is now not displayed in the cart  I think the issue comes from /administrator/components/com&#95;hikashop/helpers/checkout/login.php on Line 366 where the extraFields are set with the user array which overides any existing items.  If I change the order of the blocks (ie show login block and then cart block) then the item custom field is displayed - but I don't want them in that order.  Thanks, I hope you can fix this issue.")*

Hi,

Thanks for the feedback and details on the issue.
Replace the code: Code:

$view-&gt;extraFields = array( 'user' =&gt; $view-&gt;fieldsClass-&gt;getFields('frontcomp', $view-&gt;user, 'user') );

with:
Code:

$view-&gt;extraFields['user'] = $view-&gt;fieldsClass-&gt;getFields('frontcomp', $view-&gt;user, 'user');

in the file administrator/components/com_hikashop/helpers/checkout/login.php and that will fix the problem.
We'll add the patch on our end too.

The following user(s) said Thank You: [sashau](/forum/user/26276-sashau "View sashau's Profile")

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

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

Less More

- Posts: 15
- Thank you received: 0
-
-

9 years 7 months ago [\#267162](#267162) by [sashau](/forum/user/26276-sashau "View sashau's Profile")  Replied by *[sashau](/forum/user/26276-sashau "View sashau's Profile")* on topic *[Item custom fields not showing up in cart on checkout with login block](/forum/3-bug-report/889768-item-custom-fields-not-showing-up-in-cart-on-checkout-with-login-block#267162 "Steps to reproduce:  &#42; Go to and add the item to the cart - notice it has a custom item field of length  &#42; Go to the Checkout by clicking on Cart in the top right  &#42; The first step just shows the Cart block - the item is in the cart and the custom field is displayed  &#42; Click Next - this step shows the Cart and the Login block. The custom field is now not displayed in the cart  I think the issue comes from /administrator/components/com&#95;hikashop/helpers/checkout/login.php on Line 366 where the extraFields are set with the user array which overides any existing items.  If I change the order of the blocks (ie show login block and then cart block) then the item custom field is displayed - but I don't want them in that order.  Thanks, I hope you can fix this issue.")*

Great, thanks Nicolas.

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

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