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

#   Force shipping for virtual / weightless items

##

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

Less More

- Posts: 56
- Thank you received: 1
-
-

3 years 11 months ago [\#347138](#347138) by [jiawen](/forum/user/68179-jiawen "View jiawen's Profile")  *[Force shipping for virtual / weightless items](/forum/28-shipping-methods/905466-force-shipping-for-virtual-weightless-items#347138 "Have turned off the setting Force shipping for virtual / weightless items, but I faced following problems, for this item I did not set for the weight, the shipping method will not be displayed, but...")* was created by *[jiawen](/forum/user/68179-jiawen "View jiawen's Profile")*

Have turned off the setting Force shipping for virtual / weightless items, but I faced following problems, for this item I did not set for the weight, the shipping method will not be displayed, but the shipping step still showing. Any way to turn off the shipping step when there is no shipping method?

[ ![2&#95;2022-12-02.png](/forum/attachment/56029) ](/forum/attachment/56029 "2&#95;2022-12-02.png")

[ ![1&#95;2022-12-02.png](/forum/attachment/56030) ](/forum/attachment/56030 "1&#95;2022-12-02.png")

- [ ![2&#95;2022-12-02.png](/forum/attachment/56029) ](/forum/attachment/56029 "2&#95;2022-12-02.png") [ ](/forum/attachment/56029?download=1 "2&#95;2022-12-02.png")
- [ ![1&#95;2022-12-02.png](/forum/attachment/56030) ](/forum/attachment/56030 "1&#95;2022-12-02.png") [ ](/forum/attachment/56030?download=1 "1&#95;2022-12-02.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI4LXNoaXBwaW5nLW1ldGhvZHMvOTA1NDY2LWZvcmNlLXNoaXBwaW5nLWZvci12aXJ0dWFsLXdlaWdodGxlc3MtaXRlbXM/dG1wbD1tYXJrZG93bg==) 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: 86359
- Thank you received: 14296
-
-

3 years 11 months ago [\#347144](#347144) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Force shipping for virtual / weightless items](/forum/28-shipping-methods/905466-force-shipping-for-virtual-weightless-items#347144 "Have turned off the setting Force shipping for virtual / weightless items, but I faced following problems, for this item I did not set for the weight, the shipping method will not be displayed, but...")*

Hi,

There is no mechanism to remove a step. That's because the system doesn't what is in each step unless it displays it, and it only displays the current step.
However, there is a mechanism to automatically skip empty steps.
It is implemented for the "login" view from example. If you're already logged in, and you login have the login view alone on a step, if you try to access that step, it will automatically redirect you to the next one.
However, that mechanism hasn't been implemented for the shipping view. To do that, add the code: Code:

public function haveEmptyContent(&amp;$controller, &amp;$params) { $checkoutHelper = hikashopCheckoutHelper::get(); if(!$checkoutHelper-&gt;isShipping()) return true; return false; }

before the line: Code:

public function validate(&amp;$controller, &amp;$params, $data = array()) {

in the file administrator/components/com_hikashop/helpers/checkout/shipping.php
Please let us know how it goes so that we can validate the changes for the next release of HikaShop.

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