- Posts: 162
- Thank you received: 0
Wishlist layout
- info@vesica.org
-
Topic Author
- Offline
Less
More
12 years 2 months ago #171269
by info@vesica.org
Wishlist layout was created by info@vesica.org
-- 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!
-- 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.
12 years 2 months ago #171270
by Xavier
Replied by Xavier on topic Wishlist layout
Hi,
You can potentially edit the file "components/com_hikashop/views/cart/view.html.php" and in the function "showcart" add:
after:
This way it will load the wishlist.php view. Don't forget to duplicate the function "showcart()" and rename the second one "wishlist()".
You can potentially edit the file "components/com_hikashop/views/cart/view.html.php" and in the function "showcart" add:
Code:
if($cart_type == 'wishlist'){
$this->setLayout('wishlist');
echo $this->loadTemplate();
return false;
}
Code:
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.056 seconds