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

#   Custom fields editable also in cart

##

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

Less More

- Posts: 21
- Thank you received: 1
-
-

11 years 10 months ago [\#186743](#186743) by [aszentesi](/forum/user/9536-aszentesi "View aszentesi's Profile")  *[Custom fields editable also in cart](/forum/27-checkout/874270-custom-fields-editable-also-in-cart#186743 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.27 -- Browser(s) name and version -- : Firefox 34.0 -- Error-message(debug-mod must be tuned on) -- : Custom fields editable also in cart  I have created some Custom fields for Products During selecting Options for the product everything is OK all fields are editable.  But my customers wants also to correct some Options later during Checkout in the Cart-Display screenshot: Custom-fields-in-the-cart.jpg  so my question: which PHP-files do i have to change (customize) for this special issue For this special Project i have already made some changes in the Views: (only the duplicates in my template)  templates&#92;my-template&#92;html&#92;com&#95;hikashop&#92;product&#92;show&#95;block&#95;custom&#95;item.php templates&#92;my-template&#92;html&#92;com&#95;hikashop&#92;checkout&#92;cart.php  I have created some Custom fields for Products During selecting Options for the product everything is OK, all fields are editable.  But my customers wants also to correct some Options later during Checkout in the Cart-Display screenshot:  so my question: which PHP-files do i have to change (customize) for this special issue For this special Project i have already made some changes in the Views: (only the duplicates in my template)  templates&#92;my-template&#92;html&#92;com&#95;hikashop&#92;product&#92;show&#95;block&#95;custom&#95;item.php templates&#92;my-template&#92;html&#92;com&#95;hikashop&#92;checkout&#92;cart.php  Can i use the php-code from show&#95;block&#95;custom&#95;item.php also in the cart.php ?  Thank you for your help!")* was created by *[aszentesi](/forum/user/9536-aszentesi "View aszentesi's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.27
-- Browser(s) name and version -- : Firefox 34.0
-- Error-message(debug-mod must be tuned on) -- : Custom fields editable also in cart

I have created some Custom fields for Products
During selecting Options for the product everything is OK
all fields are editable.

But my customers wants also to correct some Options later during Checkout in the Cart-Display
screenshot: Custom-fields-in-the-cart.jpg

so my question:
which PHP-files do i have to change (customize) for this special issue
For this special Project i have already made some changes in the Views:
(only the duplicates in my template)

templates\my-template\html\com_hikashop\product\show_block_custom_item.php
templates\my-template\html\com_hikashop\checkout\cart.php

I have created some Custom fields for Products
During selecting Options for the product everything is OK, all fields are editable.
[ ![Selecting&#95;Options&#95;for&#95;product.jpg](/forum/attachment/21716) ](/forum/attachment/21716 "...or&#95;product.jpg")

But my customers wants also to correct some Options later during Checkout in the Cart-Display
screenshot:  [ ![Custom-fields-in-the-cart.jpg](/forum/attachment/21717) ](/forum/attachment/21717 "...n-the-cart.jpg")

so my question:
**which PHP-files do i have to change** (customize) for this special issue
For this special Project i have already made some changes in the Views:
(only the duplicates in my template)

templates\my-template\html\com_hikashop\product\show_block_custom_item.php
templates\my-template\html\com_hikashop\checkout\cart.php

Can i use the php-code from show_block_custom_item.php also in the cart.php ?

Thank you for your help!

- [ ![Selecting&#95;Options&#95;for&#95;product.jpg](/forum/attachment/21716) ](/forum/attachment/21716 "...or&#95;product.jpg") [ ](/forum/attachment/21716?download=1 "...or&#95;product.jpg")
- [ ![Custom-fields-in-the-cart.jpg](/forum/attachment/21717) ](/forum/attachment/21717 "...n-the-cart.jpg") [ ](/forum/attachment/21717?download=1 "...n-the-cart.jpg")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

11 years 10 months ago [\#186768](#186768) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Custom fields editable also in cart](/forum/27-checkout/874270-custom-fields-editable-also-in-cart#186768 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.27 -- Browser(s) name and version -- : Firefox 34.0 -- Error-message(debug-mod must be tuned on) -- : Custom fields editable also in cart  I have created some Custom fields for Products During selecting Options for the product everything is OK all fields are editable.  But my customers wants also to correct some Options later during Checkout in the Cart-Display screenshot: Custom-fields-in-the-cart.jpg  so my question: which PHP-files do i have to change (customize) for this special issue For this special Project i have already made some changes in the Views: (only the duplicates in my template)  templates&#92;my-template&#92;html&#92;com&#95;hikashop&#92;product&#92;show&#95;block&#95;custom&#95;item.php templates&#92;my-template&#92;html&#92;com&#95;hikashop&#92;checkout&#92;cart.php  I have created some Custom fields for Products During selecting Options for the product everything is OK, all fields are editable.  But my customers wants also to correct some Options later during Checkout in the Cart-Display screenshot:  so my question: which PHP-files do i have to change (customize) for this special issue For this special Project i have already made some changes in the Views: (only the duplicates in my template)  templates&#92;my-template&#92;html&#92;com&#95;hikashop&#92;product&#92;show&#95;block&#95;custom&#95;item.php templates&#92;my-template&#92;html&#92;com&#95;hikashop&#92;checkout&#92;cart.php  Can i use the php-code from show&#95;block&#95;custom&#95;item.php also in the cart.php ?  Thank you for your help!")*

Hi,

Well, about the view yes, it is the "checkout &#124; cart" one.

But, even if you modify the view in order to display the custom field as editable ; you also need to add some code to handle the modification in the cart.
The checkout cart just send quantities under the format " item[XX] " (when XX is the cart product id) ; so you will need to add some code to also handle the modification of the custom fields.
You can use the trigger "onBeforeCartUpdate" to do so.

I hope it will help you.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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