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

#   Hide address field for free or weightless products

##

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

Less More

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

6 years 5 months ago [\#320502](#320502) by [saraee](/forum/user/59662-saraee "View saraee's Profile")  *[Hide address field for free or weightless products](/forum/27-checkout/900120-hide-address-field-for-free-or-weightless-products#320502 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.2  My shop has both virtual and physical products. The virtual products are free and are weightless. so I don't want the user to fill address fields when checkout. (both billing and shipping address should not be shown) But for physical products I want the user to fill address , zip code and telephone. Is this possible in this version that for free or weightless product address level not be shown? I don't have any shipping method. The physical products weight is set to its value but virtual ones has zero with default settings. the products has characteristics and the weight is set in variant. Force shipping regardless of weight is set to no. Ask address on registration is also set to no. But in checkout I have address in my checkout process because if I don't have, the address part is totally removed. The user registration is as a guest. I know there are some posts in the forum for this question but I couldn't find for new versions. Thanks.")* was created by *[saraee](/forum/user/59662-saraee "View saraee's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.19
-- PHP version -- : 7.2

My shop has both virtual and physical products.
The virtual products are free and are weightless. so I don't want the user to fill address fields when checkout. (both billing and shipping address should not be shown)
But for physical products I want the user to fill address , zip code and telephone.
Is this possible in this version that for free or weightless product address level not be shown?
I don't have any shipping method.
The physical products weight is set to its value but virtual ones has zero with default settings.
the products has characteristics and the weight is set in variant.
Force shipping regardless of weight is set to no.
Ask address on registration is also set to no.
But in checkout I have address in my checkout process because if I don't have, the address part is totally removed.
The user registration is as a guest.
I know there are some posts in the forum for this question but I couldn't find for new versions.
Thanks.

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

6 years 5 months ago [\#320503](#320503) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide address field for free or weightless products](/forum/27-checkout/900120-hide-address-field-for-free-or-weightless-products#320503 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.2  My shop has both virtual and physical products. The virtual products are free and are weightless. so I don't want the user to fill address fields when checkout. (both billing and shipping address should not be shown) But for physical products I want the user to fill address , zip code and telephone. Is this possible in this version that for free or weightless product address level not be shown? I don't have any shipping method. The physical products weight is set to its value but virtual ones has zero with default settings. the products has characteristics and the weight is set in variant. Force shipping regardless of weight is set to no. Ask address on registration is also set to no. But in checkout I have address in my checkout process because if I don't have, the address part is totally removed. The user registration is as a guest. I know there are some posts in the forum for this question but I couldn't find for new versions. Thanks.")*

Hi,

The way you configured your shop, the "shipping address" area should disappear when the customer only has weightless products in his cart.
However, the billing address is always asked, regardless of the weight of the products.
That's because normally, you need to know the legal address of the customer, even for weightless products, so that you can collect the tax accordingly as required by law (as it is usually the case).
Now for free product, weightless products, if you don't need to collect anything, then if it's a download, you could edit the file and activate its "free download" setting. That way, it would be available directly on the product page, without the need for the user to go through the checkout.

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

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

Less More

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

6 years 5 months ago [\#320524](#320524) by [saraee](/forum/user/59662-saraee "View saraee's Profile")  Replied by *[saraee](/forum/user/59662-saraee "View saraee's Profile")* on topic *[Hide address field for free or weightless products](/forum/27-checkout/900120-hide-address-field-for-free-or-weightless-products#320524 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.2  My shop has both virtual and physical products. The virtual products are free and are weightless. so I don't want the user to fill address fields when checkout. (both billing and shipping address should not be shown) But for physical products I want the user to fill address , zip code and telephone. Is this possible in this version that for free or weightless product address level not be shown? I don't have any shipping method. The physical products weight is set to its value but virtual ones has zero with default settings. the products has characteristics and the weight is set in variant. Force shipping regardless of weight is set to no. Ask address on registration is also set to no. But in checkout I have address in my checkout process because if I don't have, the address part is totally removed. The user registration is as a guest. I know there are some posts in the forum for this question but I couldn't find for new versions. Thanks.")*

Thank you dear Nicolas for your reply. I have used your other replies in the forum before and all were useful.
The reason I want the user to go to checkout step for free weightless products is that I need their email address for marketing. Any idea?

I have tried to do as [ this link](https://www.hikashop.com/forum/checkout/898779-hide-same-address-checkbox-if-weight-is-zero.html), but could not find the codes.

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

6 years 5 months ago [\#320548](#320548) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide address field for free or weightless products](/forum/27-checkout/900120-hide-address-field-for-free-or-weightless-products#320548 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.2  My shop has both virtual and physical products. The virtual products are free and are weightless. so I don't want the user to fill address fields when checkout. (both billing and shipping address should not be shown) But for physical products I want the user to fill address , zip code and telephone. Is this possible in this version that for free or weightless product address level not be shown? I don't have any shipping method. The physical products weight is set to its value but virtual ones has zero with default settings. the products has characteristics and the weight is set in variant. Force shipping regardless of weight is set to no. Ask address on registration is also set to no. But in checkout I have address in my checkout process because if I don't have, the address part is totally removed. The user registration is as a guest. I know there are some posts in the forum for this question but I couldn't find for new versions. Thanks.")*

Hi,

In that case, you can edit the custom address fields via the Display&gt;Custom fields menu. There, set their address type to "shipping" so that they will only appear for shipping addresses.
That way, if the user has only weightless products in the cart, no address field will appear on the guest form, only the "email address" field. And if the user has products with weight, the address custom fields will appear on the guest form.
Then, you can remove the "address" view from your checkout workflow so that you only collect the address on the guest form.

I think this will allow you to achieve what you want.

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

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

Less More

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

6 years 5 months ago [\#320568](#320568) by [saraee](/forum/user/59662-saraee "View saraee's Profile")  Replied by *[saraee](/forum/user/59662-saraee "View saraee's Profile")* on topic *[Hide address field for free or weightless products](/forum/27-checkout/900120-hide-address-field-for-free-or-weightless-products#320568 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.2  My shop has both virtual and physical products. The virtual products are free and are weightless. so I don't want the user to fill address fields when checkout. (both billing and shipping address should not be shown) But for physical products I want the user to fill address , zip code and telephone. Is this possible in this version that for free or weightless product address level not be shown? I don't have any shipping method. The physical products weight is set to its value but virtual ones has zero with default settings. the products has characteristics and the weight is set in variant. Force shipping regardless of weight is set to no. Ask address on registration is also set to no. But in checkout I have address in my checkout process because if I don't have, the address part is totally removed. The user registration is as a guest. I know there are some posts in the forum for this question but I couldn't find for new versions. Thanks.")*

Unfortunately I don't find any part in add or edit custom fields to be able to **set their address type to "shipping"**.
Can you explain more about it? I searched on the forum too and didn't find a way.

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

6 years 5 months ago [\#320571](#320571) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide address field for free or weightless products](/forum/27-checkout/900120-hide-address-field-for-free-or-weightless-products#320571 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.2  My shop has both virtual and physical products. The virtual products are free and are weightless. so I don't want the user to fill address fields when checkout. (both billing and shipping address should not be shown) But for physical products I want the user to fill address , zip code and telephone. Is this possible in this version that for free or weightless product address level not be shown? I don't have any shipping method. The physical products weight is set to its value but virtual ones has zero with default settings. the products has characteristics and the weight is set in variant. Force shipping regardless of weight is set to no. Ask address on registration is also set to no. But in checkout I have address in my checkout process because if I don't have, the address part is totally removed. The user registration is as a guest. I know there are some posts in the forum for this question but I couldn't find for new versions. Thanks.")*

Hi,

Go in the menu Display&gt;Custom fields. There, you'll see the list of the custom address fields. Edit one. And you'll have the option there:
[ monosnap.com/file/mfM8zhoxwkkZkORXYXwcWxmCVE1JiD](https://monosnap.com/file/mfM8zhoxwkkZkORXYXwcWxmCVE1JiD)

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

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

Less More

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

6 years 5 months ago [\#320614](#320614) by [saraee](/forum/user/59662-saraee "View saraee's Profile")  Replied by *[saraee](/forum/user/59662-saraee "View saraee's Profile")* on topic *[Hide address field for free or weightless products](/forum/27-checkout/900120-hide-address-field-for-free-or-weightless-products#320614 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.2  My shop has both virtual and physical products. The virtual products are free and are weightless. so I don't want the user to fill address fields when checkout. (both billing and shipping address should not be shown) But for physical products I want the user to fill address , zip code and telephone. Is this possible in this version that for free or weightless product address level not be shown? I don't have any shipping method. The physical products weight is set to its value but virtual ones has zero with default settings. the products has characteristics and the weight is set in variant. Force shipping regardless of weight is set to no. Ask address on registration is also set to no. But in checkout I have address in my checkout process because if I don't have, the address part is totally removed. The user registration is as a guest. I know there are some posts in the forum for this question but I couldn't find for new versions. Thanks.")*

Thank you. I found that my hikashop is not updated. I had hikashop version 3.2 and updated to the last version but on check out page I had below error
syntax error, unexpected 'if' (T_IF)
and now I found that my hikashop is not updated.

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

6 years 5 months ago [\#320615](#320615) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide address field for free or weightless products](/forum/27-checkout/900120-hide-address-field-for-free-or-weightless-products#320615 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.2  My shop has both virtual and physical products. The virtual products are free and are weightless. so I don't want the user to fill address fields when checkout. (both billing and shipping address should not be shown) But for physical products I want the user to fill address , zip code and telephone. Is this possible in this version that for free or weightless product address level not be shown? I don't have any shipping method. The physical products weight is set to its value but virtual ones has zero with default settings. the products has characteristics and the weight is set in variant. Force shipping regardless of weight is set to no. Ask address on registration is also set to no. But in checkout I have address in my checkout process because if I don't have, the address part is totally removed. The user registration is as a guest. I know there are some posts in the forum for this question but I couldn't find for new versions. Thanks.")*

Hi,

Ah yes, that's a new option of custom address fields which isn't in the 3.2.
As you wrote that you had the 4.3 in your first message on this thread, I thought you had it.

Regarding the error with the update, I can say two things:
- first, after the update, make sure that the "checkout legacy" setting is turned off under the Advanced tab of the HikaShop configuration.
- if you still have the error, please activate the "debug mode" and "error reporting" settings of the Joomla configuration and access the page with the error again. In will display an error message with much more information on the issue, and that will help us understand what is going on and give you a solution

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

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

Less More

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

6 years 5 months ago -  6 years 5 months ago [\#320677](#320677) by [saraee](/forum/user/59662-saraee "View saraee's Profile")  Replied by *[saraee](/forum/user/59662-saraee "View saraee's Profile")* on topic *[Hide address field for free or weightless products](/forum/27-checkout/900120-hide-address-field-for-free-or-weightless-products#320677 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.19 -- PHP version -- : 7.2  My shop has both virtual and physical products. The virtual products are free and are weightless. so I don't want the user to fill address fields when checkout. (both billing and shipping address should not be shown) But for physical products I want the user to fill address , zip code and telephone. Is this possible in this version that for free or weightless product address level not be shown? I don't have any shipping method. The physical products weight is set to its value but virtual ones has zero with default settings. the products has characteristics and the weight is set in variant. Force shipping regardless of weight is set to no. Ask address on registration is also set to no. But in checkout I have address in my checkout process because if I don't have, the address part is totally removed. The user registration is as a guest. I know there are some posts in the forum for this question but I couldn't find for new versions. Thanks.")*

Dear Nicolas it seems there is some thing wrong with my template because when I change error reporting level I see a blank page. So I install the new version and now I am setting my shop.
Just for others who sees this post I should say in 4.3.0 version with the setting told in this post, for the free and weightless products don't need any extra settings. Just in checkout workflow the address type should be shipping.

Last edit: 6 years 5 months ago by [saraee](/forum/user/59662-saraee "View saraee's Profile").

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

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