Wishlist layout

  • Posts: 162
  • Thank you received: 0
10 years 2 months ago #171269

-- HikaShop version -- : 2.3.1
-- Joomla version -- : 2.5.24

Hi,

I see that the layout is the same for cart page and wishlists page. I mean that showcart.php is loaded as template for both pages. I would like to have different layouts for this 2 pages by altering showcart.php file. Could you please tell me what is the file for wishlists page that loads the showcart.php? I would like to duplicate the showcart.php file, rename it wishlist.php and load it as template for wishlists page.

thanks!

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 2 months ago #171270

Hi,

You can potentially edit the file "components/com_hikashop/views/cart/view.html.php" and in the function "showcart" add:

if($cart_type == 'wishlist'){
	$this->setLayout('wishlist');
	echo $this->loadTemplate();
	return false;
}
after:
JRequest::setVar('cart_type', $cart_type);

This way it will load the wishlist.php view. Don't forget to duplicate the function "showcart()" and rename the second one "wishlist()".

Please Log in or Create an account to join the conversation.

Time to create page: 0.062 seconds
Powered by Kunena Forum