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

#   Remove custom fields from cart module

##

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

Less More

- Posts: 9
- Thank you received: 1
-
-

12 years 3 months ago [\#164987](#164987) by [iceandfireski](/forum/user/33424-iceandfireski "View iceandfireski's Profile")  *[Remove custom fields from cart module](/forum/27-checkout/869871-remove-custom-fields-from-cart-module#164987 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : HikaShop Business: 2.3.2 -- Joomla version -- : Joomla! 2.5.10 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, firstly thank you for such a great product I am still getting used to the huge amount of customization available but am impressed so far!  I have set up a menu item in joomla displaying the categories from the shop and have assigned modules to the side for cart, categories, currency etc. I have also set up some custom fields in the products for customers to enter information - this all works fine. The problem I have is that the information from the custom fields gets shown in the cart which makes it a very long and messy cart.  I have tried the mini cart and that is not a solution as the customer needs to be able to see the following:  Item name quantity  I have a couple of questions please:  1. Is there a way of removing the custom fields from the cart module?  2. There also does not appear to be a refresh on the cart module - have I missed a setting somewhere?  3. When going through the checkout process all of the modules that were assigned to the shop menu appear all the way through - is there a way of stopping them from showing ie on the registration and payment pages you still have all the modules from the main shop page.  Once again thanks for a great product and apologies if some of the answers are already on the forum, I did have a good look - promise :)")* was created by *[iceandfireski](/forum/user/33424-iceandfireski "View iceandfireski's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : HikaShop Business: 2.3.2
-- Joomla version -- : Joomla! 2.5.10
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi, firstly thank you for such a great product I am still getting used to the huge amount of customization available but am impressed so far!

I have set up a menu item in joomla displaying the categories from the shop and have assigned modules to the side for cart, categories, currency etc.
I have also set up some custom fields in the products for customers to enter information - this all works fine.
The problem I have is that the information from the custom fields gets shown in the cart which makes it a very long and messy cart.

I have tried the mini cart and that is not a solution as the customer needs to be able to see the following:

Item name
quantity

I have a couple of questions please:

1. Is there a way of removing the custom fields from the cart module?

2. There also does not appear to be a refresh on the cart module - have I missed a setting somewhere?

3. When going through the checkout process all of the modules that were assigned to the shop menu appear all the way through - is there a way of stopping them from showing ie on the registration and payment pages you still have all the modules from the main shop page.

Once again thanks for a great product and apologies if some of the answers are already on the forum, I did have a good look - promise ![:)](/media/kunena/emoticons/3.png ":)")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 3 months ago [\#164990](#164990) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Remove custom fields from cart module](/forum/27-checkout/869871-remove-custom-fields-from-cart-module#164990 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : HikaShop Business: 2.3.2 -- Joomla version -- : Joomla! 2.5.10 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, firstly thank you for such a great product I am still getting used to the huge amount of customization available but am impressed so far!  I have set up a menu item in joomla displaying the categories from the shop and have assigned modules to the side for cart, categories, currency etc. I have also set up some custom fields in the products for customers to enter information - this all works fine. The problem I have is that the information from the custom fields gets shown in the cart which makes it a very long and messy cart.  I have tried the mini cart and that is not a solution as the customer needs to be able to see the following:  Item name quantity  I have a couple of questions please:  1. Is there a way of removing the custom fields from the cart module?  2. There also does not appear to be a refresh on the cart module - have I missed a setting somewhere?  3. When going through the checkout process all of the modules that were assigned to the shop menu appear all the way through - is there a way of stopping them from showing ie on the registration and payment pages you still have all the modules from the main shop page.  Once again thanks for a great product and apologies if some of the answers are already on the forum, I did have a good look - promise :)")*

Hi,

1. You will have to edit the view "product / cart" and remove the desired part.

2. No refresh buttons are available, the customer only have to set a different quantity and the cart will be refreshed automatically.

3. You have to create a menu without these modules associated. Then in Configuration &gt; Checkout &gt; Force a menu on checkout, select the previously created menu.

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

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

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

Less More

- Posts: 9
- Thank you received: 1
-
-

12 years 3 months ago [\#165260](#165260) by [iceandfireski](/forum/user/33424-iceandfireski "View iceandfireski's Profile")  Replied by *[iceandfireski](/forum/user/33424-iceandfireski "View iceandfireski's Profile")* on topic *[Remove custom fields from cart module](/forum/27-checkout/869871-remove-custom-fields-from-cart-module#165260 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : HikaShop Business: 2.3.2 -- Joomla version -- : Joomla! 2.5.10 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, firstly thank you for such a great product I am still getting used to the huge amount of customization available but am impressed so far!  I have set up a menu item in joomla displaying the categories from the shop and have assigned modules to the side for cart, categories, currency etc. I have also set up some custom fields in the products for customers to enter information - this all works fine. The problem I have is that the information from the custom fields gets shown in the cart which makes it a very long and messy cart.  I have tried the mini cart and that is not a solution as the customer needs to be able to see the following:  Item name quantity  I have a couple of questions please:  1. Is there a way of removing the custom fields from the cart module?  2. There also does not appear to be a refresh on the cart module - have I missed a setting somewhere?  3. When going through the checkout process all of the modules that were assigned to the shop menu appear all the way through - is there a way of stopping them from showing ie on the registration and payment pages you still have all the modules from the main shop page.  Once again thanks for a great product and apologies if some of the answers are already on the forum, I did have a good look - promise :)")*

Hi Xavier,

Thank you for the reply, I have sorted the modules in the checkout process - all good!

With the custom fields in the cart module I have found the view and think I have found the part that needs removing but I am no PHP expert and could do with a bit of help please.
This is the code from the view cart:

$input='';
if($group){
foreach($this-&gt;rows as $j =&gt; $optionElement){
if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue;
echo '&lt;p class="hikashop_cart_option_name"&gt;'. $optionElement-&gt;product_name.'&lt;/p&gt;';
$input .='document.getElementById(\'cart_product_option_'.$optionElement-&gt;cart_product_id.'\').value=qty_field.value;';
echo '&lt;input type="hidden" id="cart_product_option_'.$optionElement-&gt;cart_product_id.'" name="item[cart_product_quantity]" value="'.$row-&gt;cart_product_quantity.'"/&gt;';
}
}
$html = ob_get_clean();
if(!empty($html)){
echo '&lt;p class="hikashop_cart_product_custom_item_fields"&gt;'.$html.'&lt;/p&gt;';
}
?&gt;
&lt;/td&gt;
&lt;?php
}
if($group){
foreach($this-&gt;rows as $j =&gt; $optionElement){
if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue;
if(!empty($optionElement-&gt;prices[0])){
if(!isset($row-&gt;prices[0])){
$row-&gt;prices[0]-&gt;price_value=0;
$row-&gt;prices[0]-&gt;price_value_with_tax=0;
$row-&gt;prices[0]-&gt;price_currency_id = hikashop_getCurrency();

Could you possibly reply back with part that needs to be removed to take out the custom fields from the cart

Many thanks

Andy

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

12 years 3 months ago [\#165317](#165317) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Remove custom fields from cart module](/forum/27-checkout/869871-remove-custom-fields-from-cart-module#165317 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : HikaShop Business: 2.3.2 -- Joomla version -- : Joomla! 2.5.10 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, firstly thank you for such a great product I am still getting used to the huge amount of customization available but am impressed so far!  I have set up a menu item in joomla displaying the categories from the shop and have assigned modules to the side for cart, categories, currency etc. I have also set up some custom fields in the products for customers to enter information - this all works fine. The problem I have is that the information from the custom fields gets shown in the cart which makes it a very long and messy cart.  I have tried the mini cart and that is not a solution as the customer needs to be able to see the following:  Item name quantity  I have a couple of questions please:  1. Is there a way of removing the custom fields from the cart module?  2. There also does not appear to be a refresh on the cart module - have I missed a setting somewhere?  3. When going through the checkout process all of the modules that were assigned to the shop menu appear all the way through - is there a way of stopping them from showing ie on the registration and payment pages you still have all the modules from the main shop page.  Once again thanks for a great product and apologies if some of the answers are already on the forum, I did have a good look - promise :)")*

Hi,

You don't need to remove any code.
Just add such CSS on your website:
.hikashop_cart_product_custom_item_fields{display:none; }

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

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

Less More

- Posts: 13
- Thank you received: 1
-
-

12 years 6 days ago -  12 years 6 days ago [\#178639](#178639) by [dzshanno](/forum/user/31606-dzshanno "View dzshanno's Profile")  Replied by *[dzshanno](/forum/user/31606-dzshanno "View dzshanno's Profile")* on topic *[Remove custom fields from cart module](/forum/27-checkout/869871-remove-custom-fields-from-cart-module#178639 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : HikaShop Business: 2.3.2 -- Joomla version -- : Joomla! 2.5.10 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi, firstly thank you for such a great product I am still getting used to the huge amount of customization available but am impressed so far!  I have set up a menu item in joomla displaying the categories from the shop and have assigned modules to the side for cart, categories, currency etc. I have also set up some custom fields in the products for customers to enter information - this all works fine. The problem I have is that the information from the custom fields gets shown in the cart which makes it a very long and messy cart.  I have tried the mini cart and that is not a solution as the customer needs to be able to see the following:  Item name quantity  I have a couple of questions please:  1. Is there a way of removing the custom fields from the cart module?  2. There also does not appear to be a refresh on the cart module - have I missed a setting somewhere?  3. When going through the checkout process all of the modules that were assigned to the shop menu appear all the way through - is there a way of stopping them from showing ie on the registration and payment pages you still have all the modules from the main shop page.  Once again thanks for a great product and apologies if some of the answers are already on the forum, I did have a good look - promise :)")*

Thanks this was very helpful in pointing me in the right direction but having tried to use the code suggested I think I can add some more info

There appears to be a bug in the way hikashop builds the cart module classes.

On its own I found hikashop_cart_product_custom_item_fields{display:none; } only removes the custom fields from the checkout screen not the cart module.

The .hikashop_cart_product_custom_item_fields class appears not to be applied to the actual custom fields in the cart module but is in the checkout screen.

As a fix you can apply the {display:none;} to each of the custom fields

e.g. .hikashop_cart_item_date_of_birth{display: none;}

If you only want to hide them in the cart module and not the checkout screen you can use

.hikashop_cart_module .hikashop_cart_item_date_of_birth{display: none;}

Last edit: 12 years 6 days ago by [dzshanno](/forum/user/31606-dzshanno "View dzshanno's Profile"). Reason: sense

The following user(s) said Thank You: [Xavier](/forum/user/4105-xavier "View Xavier's Profile")

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

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