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

#   Hide 1 specific shipping method in checkout

##

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

Less More

- Posts: 55
- Thank you received: 3
-
-

11 years 3 months ago [\#210088](#210088) by [netpastor](/forum/user/9934-netpastor "View netpastor's Profile")  *[Hide 1 specific shipping method in checkout](/forum/27-checkout/878478-hide-1-specific-shipping-method-in-checkout#210088 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Hello,  I have 2 warehouses set up, one for shipping using an API, the other with a manual shipping plugin with price per product. In almost all cases the price per product is $0. Having this shipping method display in the checkout can be confusing to customers when they have products from both warehouses in the cart, and are at the point of choosing their shipping method.  Is there a way to edit the checkout / shipping.php so that I can stop the &quot;Flat Rate Shiping&quot; method from displaying in the checkout?")* was created by *[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

Hello,

I have 2 warehouses set up, one for shipping using an API, the other with a manual shipping plugin with price per product.
In almost all cases the price per product is $0.
Having this shipping method display in the checkout can be confusing to customers when they have products from both warehouses in the cart, and are at the point of choosing their shipping method.

Is there a way to edit the checkout / shipping.php so that I can stop the "Flat Rate Shiping" method from displaying in the checkout?

- [ ![shipping&#95;method&#95;display.jpg](/forum/attachment/25757) ](/forum/attachment/25757 "...od&#95;display.jpg") [ ](/forum/attachment/25757?download=1 "...od&#95;display.jpg")

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

11 years 3 months ago [\#210093](#210093) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide 1 specific shipping method in checkout](/forum/27-checkout/878478-hide-1-specific-shipping-method-in-checkout#210093 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Hello,  I have 2 warehouses set up, one for shipping using an API, the other with a manual shipping plugin with price per product. In almost all cases the price per product is $0. Having this shipping method display in the checkout can be confusing to customers when they have products from both warehouses in the cart, and are at the point of choosing their shipping method.  Is there a way to edit the checkout / shipping.php so that I can stop the &quot;Flat Rate Shiping&quot; method from displaying in the checkout?")*

Hi,

That's possible yes.
Instead of the code: Code:

foreach($this-&gt;shipping_groups as $shipping_group_key =&gt; $group) { ?&gt; &lt;div class="hikashop_shipping_group"&gt;

you can use such code: Code:

foreach($this-&gt;shipping_groups as $shipping_group_key =&gt; $group) { ?&gt; &lt;div class="hikashop_shipping_group" &lt;?php if($shipping_group_key=='XXX') echo 'style="display:none;"'; ?&gt;&gt;

where XXX is to be replaced by the group key of the warehouse that you want to hide.
You can echo it before if you want to know which one it is that you want to set there.

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

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

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

Less More

- Posts: 55
- Thank you received: 3
-
-

11 years 2 months ago [\#212465](#212465) by [netpastor](/forum/user/9934-netpastor "View netpastor's Profile")  Replied by *[netpastor](/forum/user/9934-netpastor "View netpastor's Profile")* on topic *[Hide 1 specific shipping method in checkout](/forum/27-checkout/878478-hide-1-specific-shipping-method-in-checkout#212465 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Hello,  I have 2 warehouses set up, one for shipping using an API, the other with a manual shipping plugin with price per product. In almost all cases the price per product is $0. Having this shipping method display in the checkout can be confusing to customers when they have products from both warehouses in the cart, and are at the point of choosing their shipping method.  Is there a way to edit the checkout / shipping.php so that I can stop the &quot;Flat Rate Shiping&quot; method from displaying in the checkout?")*

Thanks Nicholas.
If I don't want this "Flat Rate Shipping" method from displaying in emails sent to the customer where could I do that?
Is it in the preload version of the email?

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

11 years 2 months ago [\#212479](#212479) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hide 1 specific shipping method in checkout](/forum/27-checkout/878478-hide-1-specific-shipping-method-in-checkout#212479 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  Hello,  I have 2 warehouses set up, one for shipping using an API, the other with a manual shipping plugin with price per product. In almost all cases the price per product is $0. Having this shipping method display in the checkout can be confusing to customers when they have products from both warehouses in the cart, and are at the point of choosing their shipping method.  Is there a way to edit the checkout / shipping.php so that I can stop the &quot;Flat Rate Shiping&quot; method from displaying in the checkout?")*

Hi,

Yes. It's there.
After the line:
$shipping_id = $k;
You can have:
if($shipping_id == XXX) continue;

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

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

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