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

#   Create a new cart not working

##

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

Less More

- Posts: 190
- Thank you received: 0
-
-

14 years 2 months ago [\#62016](#62016) by [codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")  *[Create a new cart not working](/forum/2-general-talk-about-hikashop/62016-create-a-new-cart-not-working#62016 "Hi Nicolas, after upgrading to 1.5.9, there is a &quot;Create a new cart&quot; icon in user control panel If I click on it, page is refreshed, but without any change or action.  Any ideas ? Thanks Regards")* was created by *[codewarrior](/forum/user/4710-codewarrior "View codewarrior's Profile")*

Hi Nicolas,
after upgrading to 1.5.9, there is a "Create a new cart" icon in user control panel
If I click on it, page is refreshed, but without any change or action.

Any ideas ?
Thanks
Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzYyMDE2LWNyZWF0ZS1hLW5ldy1jYXJ0LW5vdC13b3JraW5nP3RtcGw9bWFya2Rvd24=) 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: 86320
- Thank you received: 14279
-
-

14 years 2 months ago [\#62137](#62137) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Create a new cart not working](/forum/2-general-talk-about-hikashop/62016-create-a-new-cart-not-working#62137 "Hi Nicolas, after upgrading to 1.5.9, there is a &quot;Create a new cart&quot; icon in user control panel If I click on it, page is refreshed, but without any change or action.  Any ideas ? Thanks Regards")*

Thank you for the feedback. We'll look at that on monday and we'll publish a new version of HikaShop shortly which will fix that.

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

14 years 2 months ago [\#62157](#62157) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Create a new cart not working](/forum/2-general-talk-about-hikashop/62016-create-a-new-cart-not-working#62157 "Hi Nicolas, after upgrading to 1.5.9, there is a &quot;Create a new cart&quot; icon in user control panel If I click on it, page is refreshed, but without any change or action.  Any ideas ? Thanks Regards")*

Hi codewarrior,

When you click on "Create a cart", it set the cart_id to 0 in session.
The page refresh, and a message is displayed "The new cartwill be displayed when products inside."

That mean that the cartwill really be created when a product is added to the cart.

Is the message "The new cart will be displayed when products inside." displayed when you click on "Create a cart" ?
Do you display the notice message in Joomla ?

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

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

Less More

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

13 years 5 months ago -  13 years 5 months ago [\#103648](#103648) by [imranh](/forum/user/18777-imranh "View imranh's Profile")  Replied by *[imranh](/forum/user/18777-imranh "View imranh's Profile")* on topic *[Create a new cart not working](/forum/2-general-talk-about-hikashop/62016-create-a-new-cart-not-working#103648 "Hi Nicolas, after upgrading to 1.5.9, there is a &quot;Create a new cart&quot; icon in user control panel If I click on it, page is refreshed, but without any change or action.  Any ideas ? Thanks Regards")*

Hi

After Click On "Create a new cart" Button ...

Result Displayed Result 1-2 of 2 ... but there is no result in above table ...

Any solution .. ?

Last edit: 13 years 5 months ago by [imranh](/forum/user/18777-imranh "View imranh's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzYyMDE2LWNyZWF0ZS1hLW5ldy1jYXJ0LW5vdC13b3JraW5nP3RtcGw9bWFya2Rvd24=) 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 5 months ago [\#103661](#103661) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Create a new cart not working](/forum/2-general-talk-about-hikashop/62016-create-a-new-cart-not-working#103661 "Hi Nicolas, after upgrading to 1.5.9, there is a &quot;Create a new cart&quot; icon in user control panel If I click on it, page is refreshed, but without any change or action.  Any ideas ? Thanks Regards")*

Hi,

Do you have the latest version of HikaShop ?

I just tried on my end, and it display well Results 1 - 1 of 1

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

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

Less More

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

13 years 5 months ago -  13 years 5 months ago [\#103667](#103667) by [imranh](/forum/user/18777-imranh "View imranh's Profile")  Replied by *[imranh](/forum/user/18777-imranh "View imranh's Profile")* on topic *[Create a new cart not working](/forum/2-general-talk-about-hikashop/62016-create-a-new-cart-not-working#103667 "Hi Nicolas, after upgrading to 1.5.9, there is a &quot;Create a new cart&quot; icon in user control panel If I click on it, page is refreshed, but without any change or action.  Any ideas ? Thanks Regards")*

Thankyou for reply

I have version 2.1.1 ...

[ ![cart.png](/forum/attachment/10117) ](/forum/attachment/10117 "cart.png")

- [ ![cart.png](/forum/attachment/10117) ](/forum/attachment/10117 "cart.png") [ ](/forum/attachment/10117?download=1 "cart.png")

Last edit: 13 years 5 months ago by [imranh](/forum/user/18777-imranh "View imranh's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzYyMDE2LWNyZWF0ZS1hLW5ldy1jYXJ0LW5vdC13b3JraW5nP3RtcGw9bWFya2Rvd24=) 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 5 months ago -  13 years 5 months ago [\#103679](#103679) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Create a new cart not working](/forum/2-general-talk-about-hikashop/62016-create-a-new-cart-not-working#103679 "Hi Nicolas, after upgrading to 1.5.9, there is a &quot;Create a new cart&quot; icon in user control panel If I click on it, page is refreshed, but without any change or action.  Any ideas ? Thanks Regards")*

Hi,

Thanks to download the latest version from our website (2.1.3) install it over your current install and try again.

PS: Sorry, I was thinking that the problem was coming from the frontend, I have corrected the bug, thanks for the report.
To correct it on your end, you can edit the file "administrator/components/com_hiakshop/display/views/cart/view.html.php" and replace the function "listing()" by: Code:

function listing(){ $this-&gt;setName(); $config = hikashop_config(); $app = JFactory::getApplication(); $pageInfo = new stdClass(); $pageInfo-&gt;filter = new stdClass(); $pageInfo-&gt;filter-&gt;order = new stdClass(); $pageInfo-&gt;limit = new stdClass(); $pageInfo-&gt;search = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.".search", 'search', '', 'string' ); $pageInfo-&gt;filter-&gt;order-&gt;value = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.".filter_order", 'filter_order', 'a.cart_modified','cmd' ); $pageInfo-&gt;filter-&gt;order-&gt;dir = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.".filter_order_Dir", 'filter_order_Dir', 'desc', 'word' ); $pageInfo-&gt;limit-&gt;value = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.'.list_limit', 'limit', $app-&gt;getCfg('list_limit'), 'int' ); $pageInfo-&gt;limit-&gt;start = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.'.limitstart', 'limitstart', 0, 'int' ); $pageInfo-&gt;manageUser = hikashop_isAllowed($config-&gt;get('acl_user_manage','all')); $popup = (JRequest::getString('tmpl') === 'component'); $database = JFactory::getDBO(); if(JRequest::getString('cart_type', 'cart') == 'cart') $filters = array('a.cart_type=\'cart\''); else $filters = array('a.cart_type=\'wishlist\''); $searchMap = array('a.cart_id','a.user_id','a.cart_name','a.cart_coupon','a.cart_type'); if(!empty($pageInfo-&gt;search)){ $searchVal = '\'%'.hikashop_getEscaped(JString::strtolower( $pageInfo-&gt;search ),true).'%\''; $filters[] = implode(" LIKE $searchVal OR ",$searchMap)." LIKE $searchVal"; } $groupBy = 'GROUP BY a.cart_id'; $order = ''; if(!empty($pageInfo-&gt;filter-&gt;order-&gt;value)){ $order = ' ORDER BY '.$pageInfo-&gt;filter-&gt;order-&gt;value.' '.$pageInfo-&gt;filter-&gt;order-&gt;dir; } if(!empty($filters)){ $filters = ' WHERE '. implode(' AND ',$filters); }else{ $filters = ''; } // 2 requests &gt; 1 for the carts &gt; 1 for the products $from = 'FROM '.hikashop_table('cart').' AS a'; $cartProduct = 'JOIN '.hikashop_table('cart_product').' AS b ON a.cart_id=b.cart_id'; $query = $from.' '.$cartProduct.' '.$filters.' '.$groupBy.' '.$order; $database-&gt;setQuery('SELECT a.*, b.* '.$query,(int)$pageInfo-&gt;limit-&gt;start,(int)$pageInfo-&gt;limit-&gt;value); $rows = $database-&gt;loadObjectList(); if(!empty($pageInfo-&gt;search)){ $rows = hikashop_search($pageInfo-&gt;search,$rows,'cart_id'); } $database-&gt;setQuery('SELECT COUNT(*) '.$from.' '.$cartProduct.' '.$filters.' '.$groupBy); $pageInfo-&gt;elements = new stdClass(); $pageInfo-&gt;elements-&gt;total = $database-&gt;loadResult(); $pageInfo-&gt;elements-&gt;page = count($rows); $currencyClass = hikashop_get('class.currency'); $this-&gt;assignRef('currencyHelper',$currencyClass); // EO Filters &amp; Pagination $config =&amp; hikashop_config(); $currencyClass = hikashop_get('class.currency'); $class = hikashop_get('class.cart'); $productClass = hikashop_get('class.product'); $main_currency = (int)$config-&gt;get('main_currency',1); $currency_id = hikashop_getCurrency(); if($config-&gt;get('tax_zone_type','shipping')=='billing'){ $zone_id = hikashop_getZone('billing'); }else{ $zone_id = hikashop_getZone('shipping'); } $discount_before_tax = (int)$config-&gt;get('discount_before_tax',0); // New filters to have only items from selected carts $cids = array(); foreach($rows as $row){ if($row-&gt;cart_id != null) $cids[] = $row-&gt;cart_id; } if(!empty($cids)) $filters = array('a.cart_id IN('.implode(",",$cids).')'); $order = ''; if(!empty($pageInfo-&gt;filter-&gt;order-&gt;value)){ $order = ' ORDER BY cart_id ASC'; } // 2nd request to have the products caracteristics $products = null; if(!empty($cids)){ $product = ' LEFT JOIN '.hikashop_table('product').' AS b ON a.product_id=b.product_id'; $query = 'FROM '.hikashop_table('cart_product').' AS a '.$product.' WHERE ('.implode(') AND (',$filters).') '.$order; $database-&gt;setQuery('SELECT a.*,b.* '.$query); $products = $database-&gt;loadObjectList(); } if(!empty($products)){ $ids = array(); foreach($products as $row){ $ids[] = $row-&gt;product_id; } $row_1 = 0; foreach($products as $k =&gt; $row){ $currencyClass-&gt;getPrices($row,$ids,$currency_id,$main_currency,$zone_id,$discount_before_tax); if(!isset($row-&gt;prices[0]) &amp;&amp; isset($row_1-&gt;prices[0])){ $row-&gt;prices[0] = $row_1-&gt;prices[0]; } $products[$k]-&gt;hide = 0; if($row-&gt;product_type == 'variant'){ $products[--$k]-&gt;hide = 1; } $row_1 = $row; } $currentId = 0; $values = array(); $currency = hikashop_getCurrency(); foreach($products as $product){ if(isset($product-&gt;cart_id)){ if($product-&gt;cart_id != $currentId){ $price = 0; $quantity = 0; $currentId = $product-&gt;cart_id; if(isset($product-&gt;prices[0])) $currency = $product-&gt;prices[0]-&gt;price_currency_id; } if(isset($product-&gt;prices[0])){ $price += $product-&gt;cart_product_quantity * $product-&gt;prices[0]-&gt;price_value; $quantity += $product-&gt;cart_product_quantity; } if(!isset($values[$currentId])) $values[$currentId] = new stdClass(); $values[$currentId]-&gt;price = $price; $values[$currentId]-&gt;quantity = $quantity; $values[$currentId]-&gt;currency = $currency; } } } foreach($rows as $k =&gt; $row){ if($values[$row-&gt;cart_id] != null){ $rows[$k]-&gt;price = $values[$row-&gt;cart_id]-&gt;price; $rows[$k]-&gt;quantity = $values[$row-&gt;cart_id]-&gt;quantity; $rows[$k]-&gt;currency = $values[$row-&gt;cart_id]-&gt;currency; } } $cart=hikashop_get('helper.cart'); $this-&gt;assignRef('cart',$cart); $this-&gt;assignRef('carts',$rows); $this-&gt;assignRef('popup',$popup); $pageInfo-&gt;elements-&gt;total = count($rows); $pagination = hikashop_get('helper.pagination', $pageInfo-&gt;elements-&gt;total, $pageInfo-&gt;limit-&gt;start, $pageInfo-&gt;limit-&gt;value); $pagination-&gt;hikaSuffix = ''; $this-&gt;assignRef('pagination',$pagination); $this-&gt;assignRef('pageInfo',$pageInfo); hikashop_setTitle(JText::_($this-&gt;nameListing),$this-&gt;icon,$this-&gt;ctrl); $config =&amp; hikashop_config(); $manage = hikashop_isAllowed($config-&gt;get('acl_wishlist_manage','all')); $this-&gt;assignRef('manage',$manage); $this-&gt;toolbar = array( array('name'=&gt;'addNew','display'=&gt;$manage), array('name'=&gt;'editList','display'=&gt;$manage), array('name'=&gt;'deleteList','display'=&gt;hikashop_isAllowed($config-&gt;get('acl_wishlist_delete','all'))), '&#124;', array('name' =&gt; 'pophelp', 'target' =&gt; $this-&gt;ctrl.'-listing'), 'dashboard' ); }

Last edit: 13 years 5 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

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

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

Less More

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

13 years 5 months ago -  13 years 5 months ago [\#103696](#103696) by [imranh](/forum/user/18777-imranh "View imranh's Profile")  Replied by *[imranh](/forum/user/18777-imranh "View imranh's Profile")* on topic *[Create a new cart not working](/forum/2-general-talk-about-hikashop/62016-create-a-new-cart-not-working#103696 "Hi Nicolas, after upgrading to 1.5.9, there is a &quot;Create a new cart&quot; icon in user control panel If I click on it, page is refreshed, but without any change or action.  Any ideas ? Thanks Regards")*

Thankyou sir,

same bug at frontend ....

[ ![cart-2&#95;2013-05-13.png](/forum/attachment/10121) ](/forum/attachment/10121 "...2013-05-13.png")

- [ ![cart-2&#95;2013-05-13.png](/forum/attachment/10121) ](/forum/attachment/10121 "...2013-05-13.png") [ ](/forum/attachment/10121?download=1 "...2013-05-13.png")

Last edit: 13 years 5 months ago by [imranh](/forum/user/18777-imranh "View imranh's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzYyMDE2LWNyZWF0ZS1hLW5ldy1jYXJ0LW5vdC13b3JraW5nP3RtcGw9bWFya2Rvd24=) 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 5 months ago [\#103795](#103795) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Create a new cart not working](/forum/2-general-talk-about-hikashop/62016-create-a-new-cart-not-working#103795 "Hi Nicolas, after upgrading to 1.5.9, there is a &quot;Create a new cart&quot; icon in user control panel If I click on it, page is refreshed, but without any change or action.  Any ideas ? Thanks Regards")*

Hi,

This time thanks to replace the function "showcarts()" in "components/com_hikashop/views/cart/view.html.php" by: Code:

function showcarts(){ $app = JFactory::getApplication(); $menus = $app-&gt;getMenu(); $menu = $menus-&gt;getActive(); if(empty($menu)){ if(!empty($Itemid)){ $menus-&gt;setActive($Itemid); $menu = $menus-&gt;getItem($Itemid); } } if(empty($cart_type)){ if (is_object( $menu-&gt;params )) { $cart_type = $menu-&gt;params-&gt;get('cart_type'); } if(!empty($cart_type)){ JRequest::setVar('cart_type',$cart_type); }else{ $cart_type = JRequest::getString('cart_type','cart'); } } // Filters &amp; Pagination $pageInfo = new stdClass(); $pageInfo-&gt;filter = new stdClass(); $pageInfo-&gt;filter-&gt;order = new stdClass(); $pageInfo-&gt;limit = new stdClass(); $pageInfo-&gt;filter-&gt;order-&gt;value = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.".filter_order", 'filter_order', 'a.cart_id','cmd' ); $pageInfo-&gt;filter-&gt;order-&gt;dir = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.".filter_order_Dir", 'filter_order_Dir', 'desc', 'word' ); $pageInfo-&gt;search = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.".search", 'search', '', 'string' ); $pageInfo-&gt;search = JString::strtolower( $pageInfo-&gt;search ); $pageInfo-&gt;limit-&gt;start = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.'.limitstart', 'limitstart', 0, 'int' ); $oldValue = $app-&gt;getUserState($this-&gt;paramBase.'.list_limit'); if(empty($oldValue)){ $oldValue =$app-&gt;getCfg('list_limit'); } $pageInfo-&gt;limit-&gt;value = $app-&gt;getUserStateFromRequest( $this-&gt;paramBase.'.list_limit', 'limit', $app-&gt;getCfg('list_limit'), 'int' ); if($oldValue!=$pageInfo-&gt;limit-&gt;value){ $pageInfo-&gt;limit-&gt;start = 0; $app-&gt;setUserState($this-&gt;paramBase.'.limitstart',0); } $database = JFactory::getDBO(); $searchMap = array('a.cart_id','a.cart_name','a.cart_type'); $user = hikashop_loadUser(true); if(isset($user-&gt;user_cms_id)) $user-&gt;id = $user-&gt;user_cms_id; else { if(empty($user)) $user = new stdClass(); $user-&gt;id = 0 ; } $session = JFactory::getSession(); if($session-&gt;getId()){ $user-&gt;session = $session-&gt;getId(); }else{ $user-&gt;session = ''; } if(hikashop_loadUser() == null){ $filters = array('a.session_id='.$database-&gt;Quote($user-&gt;session).' AND a.cart_type ='.$database-&gt;quote($cart_type)); }else{ $filters = array('(a.user_id='.(int)$user-&gt;id.' OR a.session_id='.$database-&gt;Quote($user-&gt;session).') AND a.cart_type ='.$database-&gt;quote($cart_type)); } $groupBy = 'GROUP BY a.cart_id'; $order = ''; if(!empty($pageInfo-&gt;filter-&gt;order-&gt;value)){ $order = 'ORDER BY a.cart_id ASC'; } if(!empty($pageInfo-&gt;search)){ $searchVal = '\'%'.hikashop_getEscaped(JString::strtolower( $pageInfo-&gt;search ),true).'%\''; $filter = implode(" LIKE $searchVal OR ",$searchMap)." LIKE $searchVal"; $filters[] = $filter; } // 2 requests &gt; 1 for the carts &gt; 1 for the products $from = 'FROM '.hikashop_table('cart').' AS a'; $cartProduct = 'LEFT JOIN '.hikashop_table('cart_product').' AS b ON a.cart_id=b.cart_id'; $where = 'WHERE ('.implode(') AND (',$filters).')'; $query = $from.' '.$where.' '.$groupBy.' '.$order; //'.$cartProduct.' $database-&gt;setQuery('SELECT a.* '.$query,(int)$pageInfo-&gt;limit-&gt;start,(int)$pageInfo-&gt;limit-&gt;value); $rows = $database-&gt;loadObjectList(); $database-&gt;setQuery('SELECT COUNT(*) '.$from.' '.$where); $currencyClass = hikashop_get('class.currency'); $this-&gt;assignRef('currencyHelper',$currencyClass); // EO Filters &amp; Pagination $module = hikashop_get('helper.module'); $module-&gt;initialize($this); $config =&amp; hikashop_config(); $currencyClass = hikashop_get('class.currency'); $class = hikashop_get('class.cart'); $productClass = hikashop_get('class.product'); $main_currency = (int)$config-&gt;get('main_currency',1); $currency_id = hikashop_getCurrency(); if($config-&gt;get('tax_zone_type','shipping')=='billing'){ $zone_id = hikashop_getZone('billing'); }else{ $zone_id = hikashop_getZone('shipping'); } $discount_before_tax = (int)$config-&gt;get('discount_before_tax',0); // New filters to have only items from selected carts $cids = array(); foreach($rows as $row){ if($row-&gt;cart_id != null) $cids[] = $row-&gt;cart_id; } $filters = ''; $filters = array('a.cart_id IN('.implode(",",$cids).')'); $order = ''; if(!empty($pageInfo-&gt;filter-&gt;order-&gt;value)){ $order = ' ORDER BY cart_id ASC'; } // 2nd request to have the products caracteristics $product = ' LEFT JOIN '.hikashop_table('product').' AS b ON a.product_id=b.product_id'; $query = 'FROM '.hikashop_table('cart_product').' AS a '.$product.' WHERE ('.implode(') AND (',$filters).') '.$order; $database-&gt;setQuery('SELECT a.*,b.* '.$query); if(!empty($cids)){ $products = $database-&gt;loadObjectList(); $ids = array(); foreach($products as $row){ $ids[] = $row-&gt;product_id; } $row_1 = 0; foreach($products as $k =&gt; $row){ $currencyClass-&gt;getPrices($row,$ids,$currency_id,$main_currency,$zone_id,$discount_before_tax); // If price is null &gt; Variant &gt; get the price of the main product if(!isset($row-&gt;prices[0]-&gt;price_value)){ if(isset($row_1-&gt;prices[0])) $row-&gt;prices[0] = $row_1-&gt;prices[0]; } //If row_type = variant, the oldest is a main &gt; hide the main $products[$k]-&gt;hide = 0; if($row-&gt;product_type == 'variant'){ $products[--$k]-&gt;hide = 1; } $row_1 = $row; } //Calcul the price of each carts &amp; quantity of product in. $currentId = 0; $values = null; $price = 0; $price_with_tax = 0; $quantity = 0; $currency = hikashop_getCurrency(); foreach($products as $product){ if(isset($product-&gt;cart_id)){ if($product-&gt;cart_id != $currentId){ $price = 0; $price_with_tax = 0; $quantity = 0; $currentId = $product-&gt;cart_id; if(isset($product-&gt;prices[0]-&gt;price_currency_id)) $currency = $product-&gt;prices[0]-&gt;price_currency_id; } if(isset($product-&gt;prices[0])){ $price += $product-&gt;cart_product_quantity * $product-&gt;prices[0]-&gt;price_value; } if(isset($product-&gt;prices[0]-&gt;price_value_with_tax)){ $price_with_tax += $product-&gt;cart_product_quantity * $product-&gt;prices[0]-&gt;price_value_with_tax; } if(!isset($product-&gt;prices[0]-&gt;price_value)){ $variant = new stdClass(); $variant-&gt;product_parent_id = $product-&gt;product_parent_id; $variant-&gt;quantity = $product-&gt;cart_product_quantity; } if(isset($variant) &amp;&amp; isset($product-&gt;prices[0]) &amp;&amp; $product-&gt;product_id == $variant-&gt;product_parent_id){ $price += $variant-&gt;quantity * $product-&gt;prices[0]-&gt;price_value; $price_with_tax += $variant-&gt;quantity * $product-&gt;prices[0]-&gt;price_value_with_tax; } $quantity += $product-&gt;cart_product_quantity; if(!isset($values[$currentId])) $values[$currentId] = new stdClass(); $values[$currentId]-&gt;price = $price; $values[$currentId]-&gt;price_with_tax = isset($price_with_tax)?$price_with_tax:$price; $values[$currentId]-&gt;quantity = $quantity; $values[$currentId]-&gt;currency = $currency; } } // add the values to the carts $totalCart = 0; foreach($rows as $k =&gt; $row){ if(isset($values[$row-&gt;cart_id]) &amp;&amp; $values[$row-&gt;cart_id] != null){ $rows[$k]-&gt;price = $values[$row-&gt;cart_id]-&gt;price; $rows[$k]-&gt;price_with_tax = $values[$row-&gt;cart_id]-&gt;price_with_tax; $rows[$k]-&gt;quantity = $values[$row-&gt;cart_id]-&gt;quantity; $rows[$k]-&gt;currency = $values[$row-&gt;cart_id]-&gt;currency; $totalCart++; }else{ unset($rows[$k]); } } } $pageInfo-&gt;elements = new stdClass(); $pageInfo-&gt;elements-&gt;total = count($rows); if(!empty($pageInfo-&gt;search)){ $rows = hikashop_search($pageInfo-&gt;search,$rows,'cart_id'); } $pageInfo-&gt;elements-&gt;page = count($rows); if(!$pageInfo-&gt;elements-&gt;page){ if(hikashop_loadUser()!= null){ $app = JFactory::getApplication(); if($cart_type == 'cart') $app-&gt;enqueueMessage(JText::_('HIKA_NO_CARTS_FOUND')); else $app-&gt;enqueueMessage(JText::_('HIKA_NO_WISHLISTS_FOUND')); } } jimport('joomla.html.pagination'); $pagination = hikashop_get('helper.pagination', $pageInfo-&gt;elements-&gt;total, $pageInfo-&gt;limit-&gt;start, $pageInfo-&gt;limit-&gt;value); $pagination-&gt;hikaSuffix = ''; $this-&gt;assignRef('pagination',$pagination); $this-&gt;assignRef('pageInfo',$pageInfo); $cart=hikashop_get('helper.cart'); $this-&gt;assignRef('cart',$cart); $this-&gt;assignRef('config',$config); $this-&gt;assignRef('carts',$rows); }

And thanks again for the report.

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

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

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

Less More

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

13 years 5 months ago -  13 years 5 months ago [\#103918](#103918) by [imranh](/forum/user/18777-imranh "View imranh's Profile")  Replied by *[imranh](/forum/user/18777-imranh "View imranh's Profile")* on topic *[Create a new cart not working](/forum/2-general-talk-about-hikashop/62016-create-a-new-cart-not-working#103918 "Hi Nicolas, after upgrading to 1.5.9, there is a &quot;Create a new cart&quot; icon in user control panel If I click on it, page is refreshed, but without any change or action.  Any ideas ? Thanks Regards")*

I thing more ..

[ ![new-error&#95;2013-05-14.png](/forum/attachment/10143) ](/forum/attachment/10143 "...2013-05-14.png")

this notification still appears while i added products ...

- [ ![new-error&#95;2013-05-14.png](/forum/attachment/10143) ](/forum/attachment/10143 "...2013-05-14.png") [ ](/forum/attachment/10143?download=1 "...2013-05-14.png")

Last edit: 13 years 5 months ago by [imranh](/forum/user/18777-imranh "View imranh's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzYyMDE2LWNyZWF0ZS1hLW5ldy1jYXJ0LW5vdC13b3JraW5nP3RtcGw9bWFya2Rvd24=) 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 5 months ago [\#104043](#104043) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Create a new cart not working](/forum/2-general-talk-about-hikashop/62016-create-a-new-cart-not-working#104043 "Hi Nicolas, after upgrading to 1.5.9, there is a &quot;Create a new cart&quot; icon in user control panel If I click on it, page is refreshed, but without any change or action.  Any ideas ? Thanks Regards")*

Hi,

You are checking that by pressing "F5" ?
If it is, that's because the url redirect to the newCart action, so refreshing go to the same page. And create again a new cart.

I will improve this functionality, I have added it on the todo list.

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

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

Less More

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

13 years 5 months ago [\#104045](#104045) by [imranh](/forum/user/18777-imranh "View imranh's Profile")  Replied by *[imranh](/forum/user/18777-imranh "View imranh's Profile")* on topic *[Create a new cart not working](/forum/2-general-talk-about-hikashop/62016-create-a-new-cart-not-working#104045 "Hi Nicolas, after upgrading to 1.5.9, there is a &quot;Create a new cart&quot; icon in user control panel If I click on it, page is refreshed, but without any change or action.  Any ideas ? Thanks Regards")*

Hi,

Did all possible actions (F5, create new cart) ..

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

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

[](#top)
