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

#   Remove item from cart module redirect page

##

- **[kitkat](/forum/user/31698-kitkat "View kitkat's Profile")**
- [![kitkat's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31698.jpg)](/forum/user/31698-kitkat "View kitkat's Profile") Topic Author
- [ Offline](/forum/user/31698-kitkat)

Less More

- Posts: 31
- Thank you received: 2
-
-

12 years 7 months ago [\#149257](#149257) by [kitkat](/forum/user/31698-kitkat "View kitkat's Profile")  *[Remove item from cart module redirect page](/forum/25-install-update/866849-remove-item-from-cart-module-redirect-page#149257 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- :latest -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi there  When removing an item from my the Hikashop cart module i would like it to stay on the same page instead of it redirecting to the main products page, how can i achive this?  Thanks")* was created by *[kitkat](/forum/user/31698-kitkat "View kitkat's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- :latest
-- Joomla version -- : 3.2.2
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi there

When removing an item from my the Hikashop cart module i would like it to stay on the same page
instead of it redirecting to the main products page, how can i achive this?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Njg0OS1yZW1vdmUtaXRlbS1mcm9tLWNhcnQtbW9kdWxlLXJlZGlyZWN0LXBhZ2U/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

12 years 7 months ago [\#149260](#149260) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Remove item from cart module redirect page](/forum/25-install-update/866849-remove-item-from-cart-module-redirect-page#149260 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- :latest -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi there  When removing an item from my the Hikashop cart module i would like it to stay on the same page instead of it redirecting to the main products page, how can i achive this?  Thanks")*

Hi,

You would have to edit the file "cart" of the view "product" via the menu Display&gt;Views and change the line:
&lt;input type="hidden" name="url" value="&lt;?php echo $this-&gt;params-&gt;get('url');?&gt;"/&gt;

to:
&lt;input type="hidden" name="url" value="&lt;?php echo hikashop_currentURL();?&gt;"/&gt;

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

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

- **[kitkat](/forum/user/31698-kitkat "View kitkat's Profile")**
- [![kitkat's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31698.jpg)](/forum/user/31698-kitkat "View kitkat's Profile") Topic Author
- [ Offline](/forum/user/31698-kitkat)

Less More

- Posts: 31
- Thank you received: 2
-
-

12 years 7 months ago [\#149289](#149289) by [kitkat](/forum/user/31698-kitkat "View kitkat's Profile")  Replied by *[kitkat](/forum/user/31698-kitkat "View kitkat's Profile")* on topic *[Remove item from cart module redirect page](/forum/25-install-update/866849-remove-item-from-cart-module-redirect-page#149289 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- :latest -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi there  When removing an item from my the Hikashop cart module i would like it to stay on the same page instead of it redirecting to the main products page, how can i achive this?  Thanks")*

Hi Nicolas

Thank you for looking into this, i did as you suggested but still after editing the
product / cart.php file

to
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.3.0 * @author hikashop.com * @copyright (C) 2010-2014 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;?php global $Itemid; $url_itemid=''; if(!empty($Itemid)){ $url_itemid='&amp;Itemid='.$Itemid; } $this-&gt;setLayout('listing_price'); $this-&gt;params-&gt;set('show_quantity_field', 0); $desc = $this-&gt;params-&gt;get('msg'); $cart_type = $this-&gt;params-&gt;get('cart_type','cart'); if($cart_type == 'wishlist'){ $convertText = JText::_('WISHLIST_TO_CART'); $displayText = JText::_('DISPLAY_THE_WISHLIST'); $displayAllText = JText::_('DISPLAY_THE_WISHLISTS'); $emptyText = JText::_('WISHLIST_EMPTY'); }else{ $convertText = JText::_('CART_TO_WISHLIST'); $displayText = JText::_('DISPLAY_THE_CART'); $displayAllText = JText::_('DISPLAY_THE_CARTS'); $emptyText = JText::_('CART_EMPTY'); } if(empty($desc) &amp;&amp; $desc != '0'){ $this-&gt;params-&gt;set('msg',$emptyText); } if(!headers_sent()){ header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); header( 'Pragma: no-cache' ); } $cart_type=$this-&gt;params-&gt;get('cart_type','cart'); if($this-&gt;params-&gt;get('from','no') == 'no'){ $this-&gt;params-&gt;set('from',JRequest::getString('from','display')); } if(empty($this-&gt;rows)){ $desc = trim($this-&gt;params-&gt;get('msg')); if(!empty($desc) &#124;&#124; $desc == '0'){ echo $this-&gt;notice_html; ?&gt; &lt;div id="hikashop_cart" class="hikashop_cart"&gt; &lt;?php echo $desc; ?&gt; &lt;/div&gt; &lt;div class="clear_both"&gt;&lt;/div&gt; &lt;?php } }else{ ?&gt; &lt;div id="hikashop_cart" class="hikashop_cart"&gt; &lt;?php if($this-&gt;config-&gt;get('print_cart',0) &amp;&amp; JRequest::getVar('tmpl','')!='component' &amp;&amp; $cart_type != 'wishlist'){ ?&gt; &lt;div class="_hikashop_checkout_cart_print_link"&gt; &lt;?php echo $this-&gt;popup-&gt;display( '&lt;img src="'.HIKASHOP_IMAGES.'print.png" alt="'.JText::_('HIKA_PRINT').'" /&gt;', 'HIKA_PRINT', hikashop_completeLink('checkout&amp;task=printcart',true), 'hikashop_print_popup', 760, 480, '', '', 'link' ); ?&gt; &lt;/div&gt; &lt;?php } else if($this-&gt;params-&gt;get('from','display') != 'module'){ echo '&lt;div class="hikashop_product_cart_links"&gt;'; echo '&lt;div class="hikashop_product_cart_show_carts_link"&gt;'; echo $this-&gt;cart-&gt;displayButton($displayAllText,'cart',$this-&gt;params,hikashop_completeLink('cart&amp;task=showcarts&amp;cart_type='.$cart_type.$url_itemid),''); echo '&lt;/div&gt;'; ?&gt; &lt;div class="hikashop_product_cart_mail_link"&gt; &lt;?php echo $this-&gt;popup-&gt;display( '&lt;img src="'.HIKASHOP_IMAGES.'go.png" alt="'.JText::_('HIKA_EMAIL').'" /&gt;', 'HIKA_EMAIL', hikashop_completeLink('product&amp;task=sendcart',true), 'hikashop_email_popup', 760, 480, '', '', 'link' ); ?&gt; &lt;/div&gt; &lt;div class="hikashop_product_cart_print_link"&gt; &lt;?php echo $this-&gt;popup-&gt;display( '&lt;img src="'.HIKASHOP_IMAGES.'print.png" alt="'.JText::_('HIKA_PRINT').'" /&gt;', 'HIKA_PRINT', hikashop_completeLink('product&amp;task=printcart',true), 'hikashop_print_popup', 760, 480, '', '', 'link' ); ?&gt; &lt;/div&gt; &lt;?php echo '&lt;/div&gt;&lt;div class="clear_both"&gt;&lt;/div&gt;'; } echo $this-&gt;notice_html; $row_count = 0; if($this-&gt;params-&gt;get('small_cart')){ $this-&gt;row=$this-&gt;total; if($this-&gt;params-&gt;get('show_cart_quantity',1)){ $qty = 0; $group = $this-&gt;config-&gt;get('group_options',0); foreach($this-&gt;rows as $i =&gt; $row){ if(empty($row-&gt;cart_product_quantity) &amp;&amp; $cart_type != 'wishlist') continue; if($group &amp;&amp; $row-&gt;cart_product_option_parent_id) continue; $qty+=$row-&gt;cart_product_quantity; } $text = JText::sprintf('X_ITEMS_FOR_X',$qty,$this-&gt;loadTemplate()); }else{ $text = JText::sprintf('TOTAL_IN_CART_X',$this-&gt;loadTemplate()); } if($cart_type != 'wishlist'){ ?&gt; &lt;a class="hikashop_small_cart_checkout_link" href="&lt;?php echo hikashop_completeLink('checkout'.$url_itemid); ?&gt;"&gt; &lt;span class="hikashop_small_cart_total_title"&gt;&lt;?php echo $text; ?&gt;&lt;/span&gt; &lt;/a&gt;&lt;?php if($this-&gt;params-&gt;get('show_cart_delete',1)){ $delete = hikashop_completeLink('product&amp;task=cleancart'); if(strpos($delete,'?')){ $delete.='&amp;amp;'; }else{ $delete.='?'; } ?&gt; &lt;a class="hikashop_small_cart_clean_link" href="&lt;?php echo $delete.'return_url='. urlencode(base64_encode(hikashop_currentURL('url',false))); ?&gt;" &gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'delete2.png';?&gt;" border="0" alt="clean cart" /&gt; &lt;/a&gt;&lt;?php } if($this-&gt;params-&gt;get('show_cart_proceed',1) &amp;&amp; $this-&gt;params-&gt;get('cart_type','cart') != 'wishlist' &amp;&amp; $this-&gt;params-&gt;get('from','display') == 'module'){ echo $this-&gt;cart-&gt;displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this-&gt;params,hikashop_completeLink('checkout'.$url_itemid),'window.location=\''.hikashop_completeLink('checkout'.$url_itemid).'\';return false;'); } }else{ foreach($this-&gt;rows as $row){ $cart_id = $row-&gt;cart_id; } ?&gt; &lt;a class="hikashop_small_cart_checkout_link" href="&lt;?php echo hikashop_completeLink('cart&amp;task=showcart&amp;cart_id='.$cart_id.'&amp;cart_type='.$cart_type.$url_itemid); ?&gt;"&gt; &lt;span class="hikashop_small_cart_total_title"&gt;&lt;?php echo $text; ?&gt;&lt;/span&gt; &lt;/a&gt; &lt;?php } }else{ if($cart_type == 'wishlist'){ $form = 'hikashop_wishlist_form'; } else{ $form = 'hikashop_cart_form'; } ?&gt; &lt;form action="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart'.$url_itemid,false,true); ?&gt;" method="post" name="&lt;?php echo $form;?&gt;"&gt; &lt;table width="100%"&gt; &lt;thead&gt; &lt;tr&gt; &lt;?php if(@$this-&gt;params-&gt;get('image_in_cart')){ $row_count++; ?&gt; &lt;th class="hikashop_cart_module_product_image_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_IMAGE'); ?&gt; &lt;/th&gt; &lt;?php } if($this-&gt;params-&gt;get('show_cart_product_name',1)){ $row_count++; ?&gt; &lt;th class="hikashop_cart_module_product_name_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_NAME'); ?&gt; &lt;/th&gt; &lt;?php } if($this-&gt;params-&gt;get('show_cart_quantity',1)){ $row_count++; ?&gt; &lt;th class="hikashop_cart_module_product_quantity_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_QUANTITY'); ?&gt; &lt;/th&gt; &lt;?php } if($this-&gt;params-&gt;get('show_price',1)){ $row_count++; ?&gt; &lt;th class="hikashop_cart_module_product_price_title hikashop_cart_title"&gt; &lt;?php echo JText::_('CART_PRODUCT_PRICE'); ?&gt; &lt;/th&gt; &lt;?php } if($this-&gt;params-&gt;get('show_cart_delete',1)){ $row_count++; ?&gt; &lt;th class="hikashop_cart_title"&gt; &lt;/th&gt; &lt;?php } if($row_count&lt;1){ ?&gt; &lt;th&gt;&lt;/th&gt; &lt;?php }?&gt; &lt;/tr&gt; &lt;/thead&gt; &lt;?php if($this-&gt;params-&gt;get('show_price',1) &amp;&amp; $this-&gt;params-&gt;get('cart_type','cart') != 'wishlist'){ ?&gt; &lt;tfoot&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $row_count;?&gt;"&gt; &lt;hr /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;?php switch($row_count){ case 0: case 1: ?&gt; &lt;td class="hikashop_cart_module_product_total_value"&gt; &lt;?php $this-&gt;row=$this-&gt;total; echo $this-&gt;loadTemplate(); ?&gt; &lt;/td&gt; &lt;?php break; default: $colspan = $row_count-1; if($this-&gt;params-&gt;get('show_cart_delete',1)){ $colspan=$colspan-1; } if($colspan){ ?&gt; &lt;td class="hikashop_cart_module_product_total_title" colspan="&lt;?php echo $colspan; ?&gt;"&gt; &lt;?php echo JText::_('HIKASHOP_TOTAL'); ?&gt; &lt;/td&gt; &lt;?php } ?&gt; &lt;td class="hikashop_cart_module_product_total_value"&gt; &lt;?php $this-&gt;row=$this-&gt;total; echo $this-&gt;loadTemplate(); ?&gt; &lt;/td&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_delete',1)){ ?&gt; &lt;td&gt; &lt;/td&gt; &lt;?php } break; }?&gt; &lt;/tr&gt; &lt;/tfoot&gt; &lt;?php } ?&gt; &lt;tbody&gt; &lt;?php $k = 0; $this-&gt;cart_product_price = true; $group = $this-&gt;config-&gt;get('group_options',0); $cart_id = 0; $app = JFactory::getApplication(); $productClass = hikashop_get('class.product'); $defaultParams = $this-&gt;config-&gt;get('default_params'); $this-&gt;image = hikashop_get('helper.image'); $height = $this-&gt;config-&gt;get('thumbnail_y'); $width = $this-&gt;config-&gt;get('thumbnail_x'); foreach($this-&gt;rows as $i =&gt; $row){ $cart_id = $row-&gt;cart_id; if(empty($row-&gt;cart_product_quantity) &#124;&#124; @$row-&gt;hide == 1) continue; if($group &amp;&amp; $row-&gt;cart_product_option_parent_id) continue; $productClass-&gt;addAlias($row); ?&gt; &lt;tr class="&lt;?php echo "row$k"; ?&gt;"&gt; &lt;?php if(@$this-&gt;params-&gt;get('image_in_cart')){ ?&gt; &lt;td class="hikashop_cart_module_product_image hikashop_cart_value" style="vertical-align:middle !important; text-align:center;"&gt; &lt;?php $image_options = array('default' =&gt; true,'forcesize'=&gt;$this-&gt;config-&gt;get('image_force_size',true),'scale'=&gt;$this-&gt;config-&gt;get('image_scale_mode','inside')); $img = $this-&gt;image-&gt;getThumbnail(@$row-&gt;images[0]-&gt;file_path, array('width' =&gt; $width, 'height' =&gt; $height), $image_options); if($img-&gt;success) { echo '&lt;img class="hikashop_product_cart_image" title="'.$this-&gt;escape(@$row-&gt;images[0]-&gt;file_description).'" alt="'.$this-&gt;escape(@$row-&gt;images[0]-&gt;file_name).'" src="'.$img-&gt;url.'"/&gt;'; } ?&gt; &lt;/td&gt; &lt;?php } if($this-&gt;params-&gt;get('show_cart_product_name',1)){ ?&gt; &lt;td class="hikashop_cart_module_product_name_value hikashop_cart_value"&gt; &lt;?php if(@$defaultParams['link_to_product_page']){ ?&gt; &lt;a href="&lt;?php echo hikashop_completeLink('product&amp;task=show&amp;cid='.$row-&gt;product_id.'&amp;name='.$row-&gt;alias.$url_itemid);?&gt;" &gt;&lt;?php } ?&gt; &lt;?php echo $row-&gt;product_name; ?&gt; &lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt; &lt;span class="hikashop_product_code_cart"&gt;&lt;?php echo $row-&gt;product_code; ?&gt;&lt;/span&gt; &lt;?php } ?&gt; &lt;?php if(@$defaultParams['link_to_product_page']){ ?&gt;&lt;/a&gt;&lt;?php } ?&gt; &lt;p class="hikashop_cart_product_custom_item_fields"&gt; &lt;?php if(hikashop_level(2) &amp;&amp; !empty($this-&gt;itemFields)){ foreach($this-&gt;itemFields as $field){ $namekey = $field-&gt;field_namekey; if(!empty($row-&gt;$namekey) &amp;&amp; strlen($row-&gt;$namekey)){ echo '&lt;p class="hikashop_cart_item_'.$namekey.'"&gt;'.$this-&gt;fieldsClass-&gt;getFieldName($field).': '.$this-&gt;fieldsClass-&gt;show($field,$row-&gt;$namekey).'&lt;/p&gt;'; } } } $input=''; if($group){ foreach($this-&gt;rows as $j =&gt; $optionElement){ if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue; ?&gt; &lt;p class="hikashop_cart_option_name"&gt; &lt;?php echo $optionElement-&gt;product_name; ?&gt; &lt;/p&gt; &lt;?php $input .='document.getElementById(\'cart_product_option_'.$optionElement-&gt;cart_product_id.'\').value=qty_field.value;'; echo '&lt;input type="hidden" id="cart_product_option_'.$optionElement-&gt;cart_product_id.'" name="item['.$optionElement-&gt;cart_product_id.'][cart_product_quantity]" value="'.$row-&gt;cart_product_quantity.'"/&gt;'; } } ?&gt; &lt;/p&gt; &lt;/td&gt; &lt;?php } if($group){ foreach($this-&gt;rows as $j =&gt; $optionElement){ if($optionElement-&gt;cart_product_option_parent_id != $row-&gt;cart_product_id) continue; if(!empty($optionElement-&gt;prices[0])){ if(!isset($row-&gt;prices[0])){ $row-&gt;prices[0]-&gt;price_value=0; $row-&gt;prices[0]-&gt;price_value_with_tax=0; $row-&gt;prices[0]-&gt;price_currency_id = hikashop_getCurrency(); } foreach(get_object_vars($row-&gt;prices[0]) as $key =&gt; $value){ if(is_object($value)){ foreach(get_object_vars($value) as $key2 =&gt; $var2){ if(strpos($key2,'price_value')!==false) $row-&gt;prices[0]-&gt;$key-&gt;$key2 +=@$optionElement-&gt;prices[0]-&gt;$key-&gt;$key2; } }else{ if(strpos($key,'price_value')!==false) $row-&gt;prices[0]-&gt;$key+=@$optionElement-&gt;prices[0]-&gt;$key; } } } } } if($this-&gt;params-&gt;get('show_cart_quantity',1)){ ?&gt; &lt;td class="hikashop_cart_module_product_quantity_value hikashop_cart_value"&gt; &lt;?php if(empty($session)) $session = new stdClass(); $session-&gt;cart_id = $app-&gt;getUserState( HIKASHOP_COMPONENT.'.'.$cart_type.'_id', 0, 'int' ); if($row-&gt;cart_id == $session-&gt;cart_id &amp;&amp; $this-&gt;params-&gt;get('from','display') != 'module'){ ?&gt; &lt;input id="hikashop_wishlist_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;][cart_product_quantity]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onChange="var qty_field = document.getElementById('hikashop_wishlist_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field){&lt;?php echo $input; ?&gt; } document.&lt;?php echo $form; ?&gt;.submit(); return false;" /&gt; &lt;div class="hikashop_cart_product_quantity_refresh"&gt; &lt;a href="#" onClick="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field &amp;&amp; qty_field.value != '&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;'){&lt;?php echo $input; ?&gt; qty_field.form.submit(); } return false;" title="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;"&gt; &lt;img src="&lt;?php echo HIKASHOP_IMAGES . 'refresh.png';?&gt;" border="0" alt="&lt;?php echo JText::_('HIKA_REFRESH'); ?&gt;" /&gt; &lt;/a&gt; &lt;/div&gt; &lt;?php }else{ ?&gt; &lt;input id="hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;" type="text" name="item[&lt;?php echo $row-&gt;cart_product_id;?&gt;][cart_product_quantity]" class="hikashop_product_quantity_field" value="&lt;?php echo $row-&gt;cart_product_quantity; ?&gt;" onChange="var qty_field = document.getElementById('hikashop_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if (qty_field){&lt;?php echo $input; ?&gt; } document.&lt;?php echo $form; ?&gt;.submit(); return false;" /&gt; &lt;?php } if($this-&gt;params-&gt;get('show_delete',1) &amp;&amp; $this-&gt;params-&gt;get('from','display') != 'module'){ ?&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(hikashop_currentURL('return_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; &lt;/td&gt; &lt;?php } if($this-&gt;params-&gt;get('show_price',1)){ ?&gt; &lt;td class="hikashop_cart_module_product_price_value hikashop_cart_value"&gt; &lt;?php $this-&gt;row=&amp;$row; echo $this-&gt;loadTemplate(); ?&gt; &lt;/td&gt; &lt;?php } if($this-&gt;params-&gt;get('show_cart_delete',1)){ ?&gt; &lt;td class="hikashop_cart_module_product_delete_value hikashop_cart_value"&gt; &lt;a href="&lt;?php echo hikashop_completeLink('product&amp;task=updatecart&amp;cart_type='.$this-&gt;params-&gt;get('cart_type','cart').'&amp;cart_product_id='.$row-&gt;cart_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_cart_quantity_&lt;?php echo $row-&gt;cart_product_id;?&gt;'); if(qty_field){qty_field.value=0;&lt;?php echo $input; ?&gt; document.hikashop_cart_form.submit(); return false;}else{ return true;}" 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;/td&gt; &lt;?php } if($cart_type == 'wishlist' &amp;&amp; $this-&gt;params-&gt;get('from','display') != 'module'){ ?&gt; &lt;td class="hikashop_wishlist_display_add_to_cart"&gt; &lt;!-- Add 'ADD_TO_CART' button --&gt; &lt;?php $form = ',\'hikashop_wishlist_form\''; $this-&gt;ajax = ' if(qty_field == null){ var qty_field = document.getElementById(\'hikashop_wishlist_quantity_'.$row-&gt;cart_product_id.'\').value; } if(hikashopCheckChangeForm(\'item\',\'hikashop_wishlist_form\')){ return hikashopModifyQuantity(\'' . $this-&gt;row-&gt;product_id . '\',qty_field,1,\'hikashop_wishlist_form\',\'cart\'); } else { return false; } '; $this-&gt;setLayout('quantity'); echo $this-&gt;loadTemplate(); $this-&gt;setLayout('listing_price'); ?&gt; &lt;/td&gt; &lt;?php } if($row_count&lt;1){ ?&gt; &lt;td&gt;&lt;/td&gt; &lt;?php }?&gt; &lt;/tr&gt; &lt;?php $k = 1-$k; } $this-&gt;cart_product_price=false; ?&gt; &lt;/tbody&gt; &lt;/table&gt; &lt;?php if($this-&gt;params-&gt;get('show_cart_quantity',1)){ ?&gt; &lt;noscript&gt; &lt;input type="submit" class="btn button" name="refresh" value="&lt;?php echo JText::_('REFRESH_CART');?&gt;"/&gt; &lt;/noscript&gt; &lt;?php } if($this-&gt;params-&gt;get('cart_type','cart') != 'wishlist' &amp;&amp; $this-&gt;params-&gt;get('from','display') == 'module'){ if($this-&gt;params-&gt;get('show_cart_proceed',1)) echo $this-&gt;cart-&gt;displayButton(JText::_('PROCEED_TO_CHECKOUT'),'checkout',$this-&gt;params,hikashop_completeLink('checkout'.$url_itemid),''); } else{ ?&gt;&lt;div class="hikashop_display_cart_show_convert_button"&gt;&lt;?php $cart_type = '&amp;cart_type='.$this-&gt;params-&gt;get('cart_type','cart'); if($this-&gt;params-&gt;get('from','display') != 'module'){ echo $this-&gt;cart-&gt;displayButton($convertText,'wishlist',$this-&gt;params,hikashop_completeLink('cart&amp;task=convert'.$url_itemid.$cart_type),'window.location.href = \''.hikashop_completeLink('cart&amp;task=convert'.$url_itemid.$cart_type).'\';return false;'); } else{ echo $this-&gt;cart-&gt;displayButton($displayText,'wishlist',$this-&gt;params,hikashop_completeLink('cart&amp;task=showcart&amp;cart_id='.$cart_id.$url_itemid.$cart_type),'window.location.href = \''.hikashop_completeLink('cart&amp;task=showcart&amp;cart_id='.$cart_id.$url_itemid.$cart_type).'\';return false;'); } ?&gt;&lt;/div&gt;&lt;?php } ?&gt; &lt;input type="hidden" name="url" value="&lt;?php echo hikashop_currentURL();?&gt;"/&gt; &lt;input type="hidden" name="ctrl" value="product"/&gt; &lt;input type="hidden" name="cart_type" value="&lt;?php echo $this-&gt;params-&gt;get('cart_type','cart'); ?&gt;"/&gt; &lt;input type="hidden" name="task" value="updatecart"/&gt; &lt;/form&gt; &lt;?php } ?&gt; &lt;/div&gt; &lt;div class="clear_both"&gt;&lt;/div&gt; &lt;?php } ?&gt; &lt;?php if(JRequest::getWord('tmpl','')=='component'){ if(!headers_sent()){ header('Content-Type: text/css; charset=utf-8'); } exit; }

It still redirects to the product category page.

Is there a way to fix it so it stays on the same page ? This is such a great component and i prefer it above Virtuemart so it would be great if we can get it to work this way.

Also is there a way to after you add a product from the product layout it stays on that page and does not go directly to the
Code:

index.php?option=com_hikashop&amp;ctrl=checkout&amp;Itemid=237

checkout page?

I would like customers to only go to the checkout page once they click on the Hikashop cart module checkout button.

Are these features available in the paid version?

Thanks

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

- **[kitkat](/forum/user/31698-kitkat "View kitkat's Profile")**
- [![kitkat's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31698.jpg)](/forum/user/31698-kitkat "View kitkat's Profile") Topic Author
- [ Offline](/forum/user/31698-kitkat)

Less More

- Posts: 31
- Thank you received: 2
-
-

12 years 7 months ago [\#149290](#149290) by [kitkat](/forum/user/31698-kitkat "View kitkat's Profile")  Replied by *[kitkat](/forum/user/31698-kitkat "View kitkat's Profile")* on topic *[Remove item from cart module redirect page](/forum/25-install-update/866849-remove-item-from-cart-module-redirect-page#149290 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- :latest -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi there  When removing an item from my the Hikashop cart module i would like it to stay on the same page instead of it redirecting to the main products page, how can i achive this?  Thanks")*

maybe this file needs to be edited?
product / add_to_cart_listing.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2Njg0OS1yZW1vdmUtaXRlbS1mcm9tLWNhcnQtbW9kdWxlLXJlZGlyZWN0LXBhZ2U/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

12 years 7 months ago [\#149336](#149336) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Remove item from cart module redirect page](/forum/25-install-update/866849-remove-item-from-cart-module-redirect-page#149336 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- :latest -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi there  When removing an item from my the Hikashop cart module i would like it to stay on the same page instead of it redirecting to the main products page, how can i achive this?  Thanks")*

1. No that's the correct file. Maybe you didn't edit the file for the correct template, or you configured your cart module in mini cart mode maybe ? A link to the shop would help us understand why it doesn't work for you as we're hitting in the dark here...

2. If you want to stay on the same page instead of going to the checkout after a product is added to the cart, simply configure the way you want the option "after a product is added to the cart" in the configuration of HikaShop, no need to upgrade to a paid version for that.

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

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

- **[kitkat](/forum/user/31698-kitkat "View kitkat's Profile")**
- [![kitkat's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31698.jpg)](/forum/user/31698-kitkat "View kitkat's Profile") Topic Author
- [ Offline](/forum/user/31698-kitkat)

Less More

- Posts: 31
- Thank you received: 2
-
-

12 years 7 months ago [\#149601](#149601) by [kitkat](/forum/user/31698-kitkat "View kitkat's Profile")  Replied by *[kitkat](/forum/user/31698-kitkat "View kitkat's Profile")* on topic *[Remove item from cart module redirect page](/forum/25-install-update/866849-remove-item-from-cart-module-redirect-page#149601 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- :latest -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi there  When removing an item from my the Hikashop cart module i would like it to stay on the same page instead of it redirecting to the main products page, how can i achive this?  Thanks")*

Hi Nicolas
Where in the Joomla 3 version of Hikashop can i find this option
"after a product is added to the cart"
I don't see this option in the checkout tab...
I will be purchasing this component anyway just because it's so awesome and the excellent support ![:)](/media/kunena/emoticons/8.png ":)")

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

12 years 7 months ago [\#149650](#149650) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Remove item from cart module redirect page](/forum/25-install-update/866849-remove-item-from-cart-module-redirect-page#149650 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- :latest -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi there  When removing an item from my the Hikashop cart module i would like it to stay on the same page instead of it redirecting to the main products page, how can i achive this?  Thanks")*

Hi,

The option is in Configuration &gt; Main &gt; Cart.

The following user(s) said Thank You: [kitkat](/forum/user/31698-kitkat "View kitkat's Profile"), [Gsol](/forum/user/31709-gsol "View Gsol's Profile")

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

- **[Gsol](/forum/user/31709-gsol "View Gsol's Profile")**
- [![Gsol's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31709.jpg)](/forum/user/31709-gsol "View Gsol's Profile")
- [ Offline](/forum/user/31709-gsol)

Less More

- Posts: 5
- Thank you received: 0
-
-

12 years 7 months ago [\#149948](#149948) by [Gsol](/forum/user/31709-gsol "View Gsol's Profile")  Replied by *[Gsol](/forum/user/31709-gsol "View Gsol's Profile")* on topic *[Remove item from cart module redirect page](/forum/25-install-update/866849-remove-item-from-cart-module-redirect-page#149948 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- :latest -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi there  When removing an item from my the Hikashop cart module i would like it to stay on the same page instead of it redirecting to the main products page, how can i achive this?  Thanks")*

This worked, thank you!

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

- **[kitkat](/forum/user/31698-kitkat "View kitkat's Profile")**
- [![kitkat's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar31698.jpg)](/forum/user/31698-kitkat "View kitkat's Profile") Topic Author
- [ Offline](/forum/user/31698-kitkat)

Less More

- Posts: 31
- Thank you received: 2
-
-

12 years 6 months ago [\#150037](#150037) by [kitkat](/forum/user/31698-kitkat "View kitkat's Profile")  Replied by *[kitkat](/forum/user/31698-kitkat "View kitkat's Profile")* on topic *[Remove item from cart module redirect page](/forum/25-install-update/866849-remove-item-from-cart-module-redirect-page#150037 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- :latest -- Joomla version -- : 3.2.2 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Hi there  When removing an item from my the Hikashop cart module i would like it to stay on the same page instead of it redirecting to the main products page, how can i achive this?  Thanks")*

You are right, that is the file and it works fine now, i had to reiinstall Joomla 3 and Hikashop for it to work as my installation was faulty.
Thank you for your help with this, saved a lot of time ![:)](/media/kunena/emoticons/8.png ":)")

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

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

[](#top)
