Joomla 2.5.
Hikashop 2.0.0
I had the wishlists and carts working properly and I'm not sure when ( we did 2 updates since then and installed Hikamarket ) they stopped working properly.
Currently, if I go to:
http://localhost/made/index.php?option=com_hikashop&ctrl=cart&task=showcarts&cart_type=wishlist&Itemid=512&lang=es
It will show CARTS, not WISHLISTS. --> Note that the cart_type var is specifying "wishlist".
I checked the code and, on line #279 of front_End../views/cart/view.html.php I see the following code.
if(empty($cart_type)){
if (is_object( $menu )) {
$cart_type = $menu->params->get('cart_type');
JRequest::setVar('cart_type',$cart_type);
}
}
if(empty($cart_type)){
$cart_type = JRequest::getString('cart_type','cart');
}
I thought the order is causing HS to always set the cart type to "cart". I changed the order of the to IFs to:
if(empty($cart_type)){
$cart_type = JRequest::getString('cart_type','cart');
}
if(empty($cart_type)){
if (is_object( $menu )) {
$cart_type = $menu->params->get('cart_type');
JRequest::setVar('cart_type',$cart_type);
}
}
This worked and I was able to get my carts and wishlist displaying according to the cart_type specified.
Q: is this the correct thing to do to get it fixed?