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

#   Restricted shipping method on all products

##

- **graveltravel**
- ![graveltravel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg) Topic Author

Less More

- Thank you received: 0
-
-

12 years 1 month ago [\#172669](#172669) by graveltravel  *[Restricted shipping method on all products](/forum/28-shipping-methods/871798-restricted-shipping-method-on-all-products#172669 "-- url of the page with the problem -- :   shop.graveltravel.nl  Hello,  I'm using a multi-vendor version and the manual shipping method plugin. For each vendor/warehouse/weight/region combination I have added shipping methods. So far, so good, everything works fine.  For 1 vendor/warehouse combination I added a shipping method that I want see on all products of this vendor. As you can see below the shipping method is displayed on all products, restricted to vendor Maxado, warehouse Alutec and region Benelux. But now it seems that the shipping method is displayed on all products, and not only the products from Maxado/Alutec. In the cart however it works fine. The right shipping methods are listed.  But restricting the shipping method to a vendor and warehouse seems not to work in the backend of Hikashop and the restriction is not taken into account.  It seems a bug to me. Please advise?  Thanks, Eric")* was created by *graveltravel*

-- url of the page with the problem -- : [ shop.graveltravel.nl](http://shop.graveltravel.nl)

Hello,

I'm using a multi-vendor version and the manual shipping method plugin. For each vendor/warehouse/weight/region combination I have added shipping methods. So far, so good, everything works fine.

For 1 vendor/warehouse combination I added a shipping method that I want see on all products of this vendor. As you can see below the shipping method is displayed on all products, restricted to vendor Maxado, warehouse Alutec and region Benelux. But now it seems that the shipping method is displayed on all products, and not only the products from Maxado/Alutec. In the cart however it works fine. The right shipping methods are listed.

But restricting the shipping method to a vendor and warehouse seems not to work in the backend of Hikashop and the
restriction is not taken into account.

It seems a bug to me. Please advise?

Thanks, Eric

####  Attachment not found

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 1 month ago [\#172678](#172678) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Restricted shipping method on all products](/forum/28-shipping-methods/871798-restricted-shipping-method-on-all-products#172678 "-- url of the page with the problem -- :   shop.graveltravel.nl  Hello,  I'm using a multi-vendor version and the manual shipping method plugin. For each vendor/warehouse/weight/region combination I have added shipping methods. So far, so good, everything works fine.  For 1 vendor/warehouse combination I added a shipping method that I want see on all products of this vendor. As you can see below the shipping method is displayed on all products, restricted to vendor Maxado, warehouse Alutec and region Benelux. But now it seems that the shipping method is displayed on all products, and not only the products from Maxado/Alutec. In the cart however it works fine. The right shipping methods are listed.  But restricting the shipping method to a vendor and warehouse seems not to work in the backend of Hikashop and the restriction is not taken into account.  It seems a bug to me. Please advise?  Thanks, Eric")*

Hello,

> For 1 vendor/warehouse combination I added a shipping method that I want see on all products of this vendor. As you can see below the shipping method is displayed on all products, restricted to vendor Maxado, warehouse Alutec and region Benelux. But now it seems that the shipping method is displayed on all products, and not only the products from Maxado/Alutec. In the cart however it works fine. The right shipping methods are listed.

If you want to restrict a product to only some product you'll have 2 solutions :
1.
You can use 1 warehouse per vendor, and then assign that warehouse to your shipping method and to your products.
2.
- You can use the "Use price per product" option
- Go to your products configuration page and use the "Blocked" checkbox through the "Shipping prices" tab for the shipping method that you don't want to be used for your products.

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

- **graveltravel**
- ![graveltravel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg) Topic Author

Less More

- Thank you received: 0
-
-

12 years 1 month ago [\#172727](#172727) by graveltravel  Replied by *graveltravel* on topic *[Restricted shipping method on all products](/forum/28-shipping-methods/871798-restricted-shipping-method-on-all-products#172727 "-- url of the page with the problem -- :   shop.graveltravel.nl  Hello,  I'm using a multi-vendor version and the manual shipping method plugin. For each vendor/warehouse/weight/region combination I have added shipping methods. So far, so good, everything works fine.  For 1 vendor/warehouse combination I added a shipping method that I want see on all products of this vendor. As you can see below the shipping method is displayed on all products, restricted to vendor Maxado, warehouse Alutec and region Benelux. But now it seems that the shipping method is displayed on all products, and not only the products from Maxado/Alutec. In the cart however it works fine. The right shipping methods are listed.  But restricting the shipping method to a vendor and warehouse seems not to work in the backend of Hikashop and the restriction is not taken into account.  It seems a bug to me. Please advise?  Thanks, Eric")*

Hi Mohammed,

Thanks for your quick reply.

I have done exactly what you describe under pt. 1. I have 10 vendors, each with his own warehouse. And each product is assigned a vendor and warehouse. For each vendor I've added one or more shipping methods with restrictions set to vendor, warehouse, region and weight. Works all perfect. Uhh, but NOT for Shipping Methods that have 'Use Price per Product'. These Shipping Methods appear on each product independent of the Vendor and Warehouse.

Below you'll see 2 shipping methods belonging to Maxado/Alutec viewed on a Product from KSTools/KSTools. That is not correct. I hope you agree?

Kind regards, Eric

####  Attachment not found

####  Attachment not found

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 1 month ago -  12 years 1 month ago [\#172881](#172881) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Restricted shipping method on all products](/forum/28-shipping-methods/871798-restricted-shipping-method-on-all-products#172881 "-- url of the page with the problem -- :   shop.graveltravel.nl  Hello,  I'm using a multi-vendor version and the manual shipping method plugin. For each vendor/warehouse/weight/region combination I have added shipping methods. So far, so good, everything works fine.  For 1 vendor/warehouse combination I added a shipping method that I want see on all products of this vendor. As you can see below the shipping method is displayed on all products, restricted to vendor Maxado, warehouse Alutec and region Benelux. But now it seems that the shipping method is displayed on all products, and not only the products from Maxado/Alutec. In the cart however it works fine. The right shipping methods are listed.  But restricting the shipping method to a vendor and warehouse seems not to work in the backend of Hikashop and the restriction is not taken into account.  It seems a bug to me. Please advise?  Thanks, Eric")*

Hello,
We just made a fix regarding that issue, you'll just have to edit the "plugins\hikashop\shippingmanual_prices\shippingmanual_prices.php" file and after these lines : Code:

$query = 'SELECT b.*, a.*, c.currency_symbol FROM ' . hikashop_table('shipping') . ' AS a LEFT JOIN '. hikashop_table('shipping_price').' AS b ON a.shipping_id = b.shipping_id AND b.shipping_price_ref_id = '.$product_id.' INNER JOIN '. hikashop_table('currency').' AS c ON c.currency_id = a.shipping_currency_id '. 'WHERE a.shipping_params LIKE '. $db-&gt;Quote('%s:20:"shipping_per_product";s:1:"1"%') . ' AND (b.shipping_price_ref_id IS NULL OR (b.shipping_price_ref_id = ' . $product_id . ' AND b.shipping_price_ref_type = \'product\')) '. 'ORDER BY a.shipping_id, b.shipping_price_min_quantity'; $db-&gt;setQuery($query); $shippings = $db-&gt;loadObjectList();

Add these lines : Code:

$temp_shipping = new stdClass(); foreach($shippings as $key =&gt; $shipping){ $temp_shipping = unserialize($shipping-&gt;shipping_params); // To avoid shipping_warehouse_filter = "shipping_warehouse_filter" V "shipping_vendor_filter" if(!empty($temp_shipping-&gt;shipping_vendor_filter) &amp;&amp; !empty($temp_shipping-&gt;shipping_warehouse_filter)){ $temp_shipping-&gt;shipping_warehouse_filter = substr($temp_shipping-&gt;shipping_warehouse_filter, 0, 1); } if(!empty($product-&gt;product_warehouse_id) &amp;&amp; $product-&gt;product_warehouse_id != 0){ if(!empty($temp_shipping-&gt;shipping_warehouse_filter) &amp;&amp; ($temp_shipping-&gt;shipping_warehouse_filter != $product-&gt;product_warehouse_id) &amp;&amp; ($temp_shipping-&gt;shipping_warehouse_filter != 0)){ unset($shippings[$key]); } } else{ if(!empty($temp_shipping-&gt;shipping_warehouse_filter) &amp;&amp; ($temp_shipping-&gt;shipping_warehouse_filter != 0)){ unset($shippings[$key]); } } if(!empty($product-&gt;product_vendor_id) &amp;&amp; $product-&gt;product_vendor_id != 0){ if(!empty($temp_shipping-&gt;shipping_vendor_filter) &amp;&amp; ($temp_shipping-&gt;shipping_vendor_filter != $product-&gt;product_vendor_id) &amp;&amp; ($temp_shipping-&gt;shipping_vendor_filter != 0)){ unset($shippings[$key]); } } else{ if(!empty($temp_shipping-&gt;shipping_vendor_filter) &amp;&amp; ($temp_shipping-&gt;shipping_vendor_filter != 0)){ unset($shippings[$key]); } } }

Last edit: 12 years 1 month ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

The following user(s) said Thank You: graveltravel

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

- **graveltravel**
- ![graveltravel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg) Topic Author

Less More

- Thank you received: 0
-
-

12 years 1 month ago [\#172885](#172885) by graveltravel  Replied by *graveltravel* on topic *[Restricted shipping method on all products](/forum/28-shipping-methods/871798-restricted-shipping-method-on-all-products#172885 "-- url of the page with the problem -- :   shop.graveltravel.nl  Hello,  I'm using a multi-vendor version and the manual shipping method plugin. For each vendor/warehouse/weight/region combination I have added shipping methods. So far, so good, everything works fine.  For 1 vendor/warehouse combination I added a shipping method that I want see on all products of this vendor. As you can see below the shipping method is displayed on all products, restricted to vendor Maxado, warehouse Alutec and region Benelux. But now it seems that the shipping method is displayed on all products, and not only the products from Maxado/Alutec. In the cart however it works fine. The right shipping methods are listed.  But restricting the shipping method to a vendor and warehouse seems not to work in the backend of Hikashop and the restriction is not taken into account.  It seems a bug to me. Please advise?  Thanks, Eric")*

Hi Mohammed.

Great, thanks! I'll do the update tomorrow and let you know the result.

Kind regards, Eric

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

- **graveltravel**
- ![graveltravel's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg) Topic Author

Less More

- Thank you received: 0
-
-

12 years 1 month ago -  12 years 1 month ago [\#173041](#173041) by graveltravel  Replied by *graveltravel* on topic *[Restricted shipping method on all products](/forum/28-shipping-methods/871798-restricted-shipping-method-on-all-products#173041 "-- url of the page with the problem -- :   shop.graveltravel.nl  Hello,  I'm using a multi-vendor version and the manual shipping method plugin. For each vendor/warehouse/weight/region combination I have added shipping methods. So far, so good, everything works fine.  For 1 vendor/warehouse combination I added a shipping method that I want see on all products of this vendor. As you can see below the shipping method is displayed on all products, restricted to vendor Maxado, warehouse Alutec and region Benelux. But now it seems that the shipping method is displayed on all products, and not only the products from Maxado/Alutec. In the cart however it works fine. The right shipping methods are listed.  But restricting the shipping method to a vendor and warehouse seems not to work in the backend of Hikashop and the restriction is not taken into account.  It seems a bug to me. Please advise?  Thanks, Eric")*

Hi Mohammed,

I just receive a message that Multi Vendor 1.4.4 and Business 2.3.3 is available for installation. Is the bugfix included in these new versions, or do I have to make the modifications after installation the updates?

Thanks, Eric

Last edit: 12 years 1 month ago by graveltravel.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 1 month ago [\#173047](#173047) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Restricted shipping method on all products](/forum/28-shipping-methods/871798-restricted-shipping-method-on-all-products#173047 "-- url of the page with the problem -- :   shop.graveltravel.nl  Hello,  I'm using a multi-vendor version and the manual shipping method plugin. For each vendor/warehouse/weight/region combination I have added shipping methods. So far, so good, everything works fine.  For 1 vendor/warehouse combination I added a shipping method that I want see on all products of this vendor. As you can see below the shipping method is displayed on all products, restricted to vendor Maxado, warehouse Alutec and region Benelux. But now it seems that the shipping method is displayed on all products, and not only the products from Maxado/Alutec. In the cart however it works fine. The right shipping methods are listed.  But restricting the shipping method to a vendor and warehouse seems not to work in the backend of Hikashop and the restriction is not taken into account.  It seems a bug to me. Please advise?  Thanks, Eric")*

Hello Eric,
No the bug fix won't be included on that version, so you'll have to add this modification manually after the installation of the updates.

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

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