'your wishlist' menu
A mod to add a 'your wishlist' menu to your site,
wishlist_menu.php - to be put in modules/Wishlist Code:
<?php wishlist_menu.tpl - to be placed in skin1/modules/wishlist Code:
{capture name=menu} Also add the following to auth.php Code:
if($active_modules["Wishlist"]) { This is for a V4.0.18 site |
O'm trying to take this site live today so I've had to delete the db, and create a new one form the old one applying all updates etc. It all seems to be working, except for this which has now broke and I'm getting this error:
Code:
Warning: Invalid argument supplied for foreach() in /home/amy2203/public_html/willowtreecrafts/modules/Wishlist/wishlist_menu.php on line 10 can anyone help? |
Quote:
Wishlist is installed by default in v4.0.18, however it's not visible unless a customer is logged in, so uninstall this mod (delete the two newly created files and the extra code you put into "auth.php" , log yourself in as a customer and you will see the "Add To Wishlist" button appear on the product pages. IMO I think that "Add To Wishlist" should always be visible on the product page, and if an unregistered user tries to add something to their wishlist they should get a "You need to register to use this feature" message. |
I think we're talking at cross purposes here. I know it's only available when a customer is logged in as you have to be ablke to identify the customer,
This mod added an extra menu to the main structure of the page showing the customer what was in thier wishlist. As you can see the first part of the php file checks to see if they are logged in so it only runs the code if they are. This hasn't got anything to do with the add to wishlist buttons, |
All times are GMT -8. The time now is 06:21 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.