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

#   Hide Custom Field on Checkout Based on Variants

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 11 months ago [\#178916](#178916) by [ctcpfi](/forum/user/17831-ctcpfi "View ctcpfi's Profile")  *[Hide Custom Field on Checkout Based on Variants](/forum/31-development/872896-hide-custom-field-on-checkout-based-on-variants#178916 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.32 -- Browser(s) name and version -- : Firefox 33.0.3  I'm trying to set up a way to offer furniture in a variety of fabrics (80+). I've made it to the point where I have custom item fields show/hide based on variant selection on the product. The only thing i can't get working is I need to hide the extra values from the custom item fields on the checkout page so that it only shows the correct fields as opposed to all fields. Ive tried to do this by hiding the class based on the text appended to the item name from the variant. But haven't had any luck on the actual site. Any guidance on this would be much appreciated.")* was created by *[ctcpfi](/forum/user/17831-ctcpfi "View ctcpfi's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.32
-- Browser(s) name and version -- : Firefox 33.0.3

I'm trying to set up a way to offer furniture in a variety of fabrics (80+). I've made it to the point where I have custom item fields show/hide based on variant selection on the product. The only thing i can't get working is I need to hide the extra values from the custom item fields on the checkout page so that it only shows the correct fields as opposed to all fields. Ive tried to do this by hiding the class based on the text appended to the item name from the variant. But haven't had any luck on the actual site. Any guidance on this would be much appreciated.

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

11 years 11 months ago [\#178941](#178941) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Hide Custom Field on Checkout Based on Variants](/forum/31-development/872896-hide-custom-field-on-checkout-based-on-variants#178941 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.32 -- Browser(s) name and version -- : Firefox 33.0.3  I'm trying to set up a way to offer furniture in a variety of fabrics (80+). I've made it to the point where I have custom item fields show/hide based on variant selection on the product. The only thing i can't get working is I need to hide the extra values from the custom item fields on the checkout page so that it only shows the correct fields as opposed to all fields. Ive tried to do this by hiding the class based on the text appended to the item name from the variant. But haven't had any luck on the actual site. Any guidance on this would be much appreciated.")*

Hi,

Please give us a screenshot of what you want exactly and a direct link to a product page with the variant selection and the custom fields.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

11 years 11 months ago [\#179253](#179253) by [ctcpfi](/forum/user/17831-ctcpfi "View ctcpfi's Profile")  Replied by *[ctcpfi](/forum/user/17831-ctcpfi "View ctcpfi's Profile")* on topic *[Hide Custom Field on Checkout Based on Variants](/forum/31-development/872896-hide-custom-field-on-checkout-based-on-variants#179253 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.32 -- Browser(s) name and version -- : Firefox 33.0.3  I'm trying to set up a way to offer furniture in a variety of fabrics (80+). I've made it to the point where I have custom item fields show/hide based on variant selection on the product. The only thing i can't get working is I need to hide the extra values from the custom item fields on the checkout page so that it only shows the correct fields as opposed to all fields. Ive tried to do this by hiding the class based on the text appended to the item name from the variant. But haven't had any luck on the actual site. Any guidance on this would be much appreciated.")*

Product page with variants and custom fields:
[ www.dev.ctcpfi.com/Browse-Products/item/4239-8700.html](http://www.dev.ctcpfi.com/Browse-Products/item/4239-8700.html)

Checkout Page that I'm trying to edit.
[ www.dev.ctcpfi.com/Account/checkout/step/step-0.html](http://www.dev.ctcpfi.com/Account/checkout/step/step-0.html)

I attached 2 screenshots, one named bad which I highlighted the problems with red, and one named good which shows how I would like things to look.

The site requires an account to create orders so i made a temp account for you:
username:hika
password:hika

Thanks

- [ ![bad.jpg](/forum/attachment/20643) ](/forum/attachment/20643 "bad.jpg") [ ](/forum/attachment/20643?download=1 "bad.jpg")
- [ ![good.jpg](/forum/attachment/20644) ](/forum/attachment/20644 "good.jpg") [ ](/forum/attachment/20644?download=1 "good.jpg")

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

11 years 11 months ago [\#179439](#179439) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Hide Custom Field on Checkout Based on Variants](/forum/31-development/872896-hide-custom-field-on-checkout-based-on-variants#179439 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6 -- PHP version -- : 5.4.32 -- Browser(s) name and version -- : Firefox 33.0.3  I'm trying to set up a way to offer furniture in a variety of fabrics (80+). I've made it to the point where I have custom item fields show/hide based on variant selection on the product. The only thing i can't get working is I need to hide the extra values from the custom item fields on the checkout page so that it only shows the correct fields as opposed to all fields. Ive tried to do this by hiding the class based on the text appended to the item name from the variant. But haven't had any luck on the actual site. Any guidance on this would be much appreciated.")*

Hi,

In your case the best solution is to use the options and not the custom fields.
Thanks to the options, you can restrict them to a desired product.

So you have to create two characteristics, one named "Running fabric" and the other one "Microfiber fabric".
Add the desired values to each characteristic.

Then create two option products, the first one "Running fabric" and select the "Running fabric" characteristic, do the same thing with the microfiber one.

And finally add to your main product the option "Running fabric" if it's a running fabric, etc.

Here is doc for characteristics: [ www.hikashop.com/support/support/documen...html#characteristics](http://www.hikashop.com/support/support/documentation/integrated-documentation/19-hikashop-product-form.html#characteristics)

And here doc for options: [ www.hikashop.com/support/support/documen...ct-form.html#options](http://www.hikashop.com/support/support/documentation/integrated-documentation/19-hikashop-product-form.html#options)

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

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

[](#top)
