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

#   Disable billing address for free products

##

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

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 3 months ago [\#246851](#246851) by [wbobteng](/forum/user/34814-wbobteng "View wbobteng's Profile")  *[Disable billing address for free products](/forum/27-checkout/885850-disable-billing-address-for-free-products#246851 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.0 -- PHP version -- : 7.0.8  Hello,  Is there any way to disable billing address for free products only? I have tried like this: components&#92;com&#95;hikashop&#92;views&#92;user&#92;tmpl&#92;registration.php  That code removing billing address parts from checkout page but when I am trying to get register it's showing this error:  Looks like I haven't implement it correctly. Any suggestion please?  Thanks")* was created by *[wbobteng](/forum/user/34814-wbobteng "View wbobteng's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.0
-- PHP version -- : 7.0.8

Hello,

Is there any way to disable billing address for free products only? I have tried like this:
components\com_hikashop\views\user\tmpl\registration.php Code:

$cartClass = hikashop_get('class.cart'); $cart = $cartClass-&gt;loadFullCart(); if($cart-&gt;full_total-&gt;prices[0]-&gt;price_value == 0){ $this-&gt;config-&gt;set('address_on_registration',0); }

That code removing billing address parts from checkout page but when I am trying to get register it's showing this error: Code:

Error Please complete the Title field Please complete the First name field Please complete the Last name field Please complete the Address field Please complete the City field Please complete the Telephone field

Looks like I haven't implement it correctly. Any suggestion please?

Thanks

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

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

Less More

- Posts: 4
- Thank you received: 0
-
-

10 years 3 months ago -  10 years 3 months ago [\#246853](#246853) by [wbobteng](/forum/user/34814-wbobteng "View wbobteng's Profile")  Replied by *[wbobteng](/forum/user/34814-wbobteng "View wbobteng's Profile")* on topic *[Disable billing address for free products](/forum/27-checkout/885850-disable-billing-address-for-free-products#246853 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.0 -- PHP version -- : 7.0.8  Hello,  Is there any way to disable billing address for free products only? I have tried like this: components&#92;com&#95;hikashop&#92;views&#92;user&#92;tmpl&#92;registration.php  That code removing billing address parts from checkout page but when I am trying to get register it's showing this error:  Looks like I haven't implement it correctly. Any suggestion please?  Thanks")*

Tried this ways too. disable "Ask address on registration" from configuration. Edited this file: components\com_hikashop\views\checkout\tmpl\address.php
at very top before this line: Code:

if($this-&gt;identified) {

bellow lines: Code:

$cartClass = hikashop_get('class.cart'); $cart = $cartClass-&gt;loadFullCart(); if($cart-&gt;full_total-&gt;prices[0]-&gt;price_value == 0){ $this-&gt;identified = 0; }

but now giving this error: Code:

Message Please create or select an address

Any better idea?

Last edit: 10 years 3 months ago by [wbobteng](/forum/user/34814-wbobteng "View wbobteng's Profile").

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

10 years 3 months ago [\#246858](#246858) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Disable billing address for free products](/forum/27-checkout/885850-disable-billing-address-for-free-products#246858 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.6.0 -- PHP version -- : 7.0.8  Hello,  Is there any way to disable billing address for free products only? I have tried like this: components&#92;com&#95;hikashop&#92;views&#92;user&#92;tmpl&#92;registration.php  That code removing billing address parts from checkout page but when I am trying to get register it's showing this error:  Looks like I haven't implement it correctly. Any suggestion please?  Thanks")*

Hi,

I don't see a way to do it without having to hack the function "after_address" of the file components/com_hikashop/controllers/checkout.php which checks that you have an address entered if you have the "address" view in the "checkout workflow" setting of the HikaShop configuration.

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

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