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

#   Items Blocked

##

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

Less More

- Posts: 54
- Thank you received: 0
-
-

10 years 4 months ago [\#243748](#243748) by [eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")  *[Items Blocked](/forum/28-shipping-methods/885214-items-blocked#243748 "I am using the price per item shipping item to block certain items that can't be shipped overseas. Is it possible to display what items can't be shipped to someone who add these to their cart, rather...")* was created by *[eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")*

I am using the price per item shipping item to block certain items that can't be shipped overseas. Is it possible to display what items can't be shipped to someone who add these to their cart, rather than "the cart contains..." message as the customers have items that can be shipped too and they wont know what product is the 'problem'?

Thanks

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

10 years 4 months ago [\#243760](#243760) 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 *[Items Blocked](/forum/28-shipping-methods/885214-items-blocked#243760 "I am using the price per item shipping item to block certain items that can't be shipped overseas. Is it possible to display what items can't be shipped to someone who add these to their cart, rather...")*

Hello,

That's not possible for the moment but that's a good idea, we'll integrate it so that in that case instead of displaying :
"There are %s items in your cart which we cannot ship to you"

It will display something like :
"The 'product name' product in your cart cannot be shipped to you"

We'll develop and test it on our end as fast as possible, and then get back to you !

Thank you for your feedback !

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

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

10 years 4 months ago -  10 years 4 months ago [\#243846](#243846) 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 *[Items Blocked](/forum/28-shipping-methods/885214-items-blocked#243846 "I am using the price per item shipping item to block certain items that can't be shipped overseas. Is it possible to display what items can't be shipped to someone who add these to their cart, rather...")*

Hello,
We just developed it and will add it through the next Hikashop version, but if you want it now, you'll have to edit the file :

- administrator\components\com_hikashop\classes\shipping.php" and change these lines Code:

case 'product_excluded': $value = 'X_PRODUCTS_ARE_NOT_SHIPPABLE_TO_YOU'; break; default: $value = $key; break; }

By Code:

default: $value = $key; break; } }elseif(is_string($value)) { $number = $value; $value = $key;

- administrator\components\com_hikashop\helpers\helper.php" and change these lines Code:

$price = 0; foreach($order-&gt;products as $k =&gt; $row) { if(!empty($rate-&gt;products) &amp;&amp; !in_array($row-&gt;product_id, $rate-&gt;products)) continue; if(isset($rate_prices['products'][$row-&gt;product_id])) { $price += $rate_prices['products'][$row-&gt;product_id]; $rate_prices['products'][$row-&gt;product_id] = 0; } elseif(isset($rate_prices['products'][$row-&gt;product_parent_id])) { $price += $rate_prices['products'][$row-&gt;product_parent_id]; $rate_prices['products'][$row-&gt;product_parent_id] = 0; } elseif(!isset($rate-&gt;shipping_params-&gt;shipping_virtual_included) &#124;&#124; $rate-&gt;shipping_params-&gt;shipping_virtual_included &#124;&#124; $row-&gt;product_weight &gt; 0) { $price += $rate_prices['price'] * $row-&gt;cart_product_quantity; } } if($price &gt; 0) { if(!isset($rate-&gt;shipping_price_base)) $rate-&gt;shipping_price_base = hikashop_toFloat($rate-&gt;shipping_price); else $rate-&gt;shipping_price = $rate-&gt;shipping_price_base; $rate-&gt;shipping_price = $currencyClass-&gt;round($rate-&gt;shipping_price + $price, $currencyClass-&gt;getRounding($rate-&gt;shipping_currency_id, true)); } if($price &lt; 0) { if(!isset($rate-&gt;errors['product_excluded'])) $rate-&gt;errors['product_excluded'] = 0; $rate-&gt;errors['product_excluded']++; }

By Code:

$price = 0; $rate_prices['products']['product_names'] = array(); foreach($order-&gt;products as $k =&gt; $row) { if(!empty($rate-&gt;products) &amp;&amp; !in_array($row-&gt;product_id, $rate-&gt;products)) continue; if(isset($rate_prices['products'][$row-&gt;product_id])) { $price += $rate_prices['products'][$row-&gt;product_id]; if($rate_prices['products'][$row-&gt;product_id] &lt; 0) $rate_prices['products']['product_names'][] = '"' . $row-&gt;product_name . '"'; $rate_prices['products'][$row-&gt;product_id] = 0; } elseif(isset($rate_prices['products'][$row-&gt;product_parent_id])) { $price += $rate_prices['products'][$row-&gt;product_parent_id]; $rate_prices['products'][$row-&gt;product_parent_id] = 0; } elseif(!isset($rate-&gt;shipping_params-&gt;shipping_virtual_included) &#124;&#124; $rate-&gt;shipping_params-&gt;shipping_virtual_included &#124;&#124; $row-&gt;product_weight &gt; 0) { $price += $rate_prices['price'] * $row-&gt;cart_product_quantity; } } if($price &gt; 0) { if(!isset($rate-&gt;shipping_price_base)) $rate-&gt;shipping_price_base = hikashop_toFloat($rate-&gt;shipping_price); else $rate-&gt;shipping_price = $rate-&gt;shipping_price_base; $rate-&gt;shipping_price = $currencyClass-&gt;round($rate-&gt;shipping_price + $price, $currencyClass-&gt;getRounding($rate-&gt;shipping_currency_id, true)); } if($price &lt; 0) { $rate-&gt;errors['X_PRODUCTS_ARE_NOT_SHIPPABLE_TO_YOU'] = implode($rate_prices['products']['product_names'], ', '); }

- Edit your translation file and change that line Code:

X_PRODUCTS_ARE_NOT_SHIPPABLE_TO_YOU="There are %s items in your cart which we cannot ship to you"

By Code:

X_PRODUCTS_ARE_NOT_SHIPPABLE_TO_YOU="The %s item(s) in your cart cannot be shipped to you"

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

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

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

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

Less More

- Posts: 54
- Thank you received: 0
-
-

10 years 4 months ago [\#243881](#243881) by [eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")  Replied by *[eileensemporium](/forum/user/37550-eileensemporium "View eileensemporium's Profile")* on topic *[Items Blocked](/forum/28-shipping-methods/885214-items-blocked#243881 "I am using the price per item shipping item to block certain items that can't be shipped overseas. Is it possible to display what items can't be shipped to someone who add these to their cart, rather...")*

Thanks for that, that's great news. When you propose that the build will be released?

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

10 years 4 months ago [\#243894](#243894) 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 *[Items Blocked](/forum/28-shipping-methods/885214-items-blocked#243894 "I am using the price per item shipping item to block certain items that can't be shipped overseas. Is it possible to display what items can't be shipped to someone who add these to their cart, rather...")*

Hello,

That modification will be added on the next Hikashop release but we don't have an established date for the moment.

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

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

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