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

#   Delete Product

##

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

Less More

- Posts: 7
- Thank you received: 0
-
-

13 years 1 week ago [\#128612](#128612) by [Amr](/forum/user/28353-amr "View Amr's Profile")  *[Delete Product](/forum/27-checkout/862940-delete-product#128612 "when the customer delete product from X button and the cart is empty the checkout procedure is still running on , need to give the notice (CART&#95;EMPTY) , kindly find attached picture.")* was created by *[Amr](/forum/user/28353-amr "View Amr's Profile")*

when the customer delete product from X button and the cart is empty the checkout procedure is still running on , need to give the notice (CART_EMPTY) , kindly find attached picture.
[ ![h22f9c82.png](/forum/attachment/12972) ](/forum/attachment/12972 "h22f9c82.png")

[ ![hce01ef9.png](/forum/attachment/12973) ](/forum/attachment/12973 "hce01ef9.png")

- [ ![h22f9c82.png](/forum/attachment/12972) ](/forum/attachment/12972 "h22f9c82.png") [ ](/forum/attachment/12972?download=1 "h22f9c82.png")
- [ ![hce01ef9.png](/forum/attachment/12973) ](/forum/attachment/12973 "hce01ef9.png") [ ](/forum/attachment/12973?download=1 "hce01ef9.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 week ago [\#128651](#128651) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Delete Product](/forum/27-checkout/862940-delete-product#128651 "when the customer delete product from X button and the cart is empty the checkout procedure is still running on , need to give the notice (CART&#95;EMPTY) , kindly find attached picture.")*

Hii,

Does your template right display the Joomla messages ?
[ www.hikashop.com/support/integrated-docu...issues.html#messages](http://www.hikashop.com/support/integrated-documentation/10-hikashop/61-hikashop-compatibility-issues.html#messages)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 7
- Thank you received: 0
-
-

13 years 1 week ago -  13 years 1 week ago [\#128696](#128696) by [Amr](/forum/user/28353-amr "View Amr's Profile")  Replied by *[Amr](/forum/user/28353-amr "View Amr's Profile")* on topic *[Delete Product](/forum/27-checkout/862940-delete-product#128696 "when the customer delete product from X button and the cart is empty the checkout procedure is still running on , need to give the notice (CART&#95;EMPTY) , kindly find attached picture.")*

No the problem is in the code of delete button (X button ), it must handle the empty cart issue .
Code:

&lt;?php if($this-&gt;params-&gt;get('show_delete',1)){ ?&gt; &lt;div class="hikashop_cart_product_quantity_delete"&gt; &lt;a href="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart&amp;product_id='.$row- &gt;product_id.'&amp;quantity=0&amp;return_url='.urlencode(base64_encode(urldecode($this-&gt;params-&gt;get('url'))))); ?&gt;" onclick="var qty_field = document.getElementById('hikashop_checkout_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if(qty_field){qty_field.value=0; &lt;?php echo $input; ?&gt; qty_field.form.submit();} return false;" title="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;"&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'delete2.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_DELETE'); ?&gt;" /&gt; &lt;/a&gt; &lt;/div&gt; &lt;?php } ?&gt;

Last edit: 13 years 1 week ago by [Amr](/forum/user/28353-amr "View Amr's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 1 week ago [\#128798](#128798) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Delete Product](/forum/27-checkout/862940-delete-product#128798 "when the customer delete product from X button and the cart is empty the checkout procedure is still running on , need to give the notice (CART&#95;EMPTY) , kindly find attached picture.")*

Hi,

Have you edited anything in that view ? By default the controller check if the cart is empty or not, if it is, it redirect the customer to the url set in the option "URL where you will be redirected when the cart is empty" and display the message "The cart is empty".

So as Jerome has asked before, does your template display the Joomla messages ?
Have you set an url in the option "URL where you will be redirected when the cart is empty" ?

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

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

[](#top)
