I'm looking for wishlist module. Please, post a link if you have it.
Printable View
I'm looking for wishlist module. Please, post a link if you have it.
Try:
http://www.zen-cart.com/forum/showth...light=wishlist
http://www.unevolution.com/downloads/access.php?id=1000
If you are using v1.3.0, you need to skip steps 2,3 and 4 in the installation manual that is supplied with the wishlist contribution. Instead create a new php file and paste the following php code into it:
Then save the new php file in the /includes/extra_cart_actions/ folder. Continue with steps 5 and 6 in the wishlist contribution installation manual.Code:<?php
/**
* Main shopping Cart actions supported.
*
* The main cart actions supported by the current shoppingCart class.
* This can be added to externally using the extra_cart_actions directory.
*
* @package initSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id:wishlist_cart_actions.php 3066 2006-02-25 22:14:00Z wilt $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
/**
* include the list of extra cart action files (*.php in the extra_cart_actions folder)
*/
switch ($_GET['action']) {
// (un): start mod for Wishlist v0.2
// Add item to wishlist
case 'un_add_wishlist':
if ($_SESSION['customer_id'] && isset($_GET['products_id'])) {
// use wishlist class
require_once(DIR_WS_CLASSES . 'un_wishlist.class.php');
$oWishlist = new un_wishlist($_SESSION['customer_id']);
$oWishlist->addProduct($_GET['products_id']);
}
zen_redirect(zen_href_link(UN_FILENAME_WISHLIST));
break;
// Remove item from wishlist
case 'un_remove_wishlist':
if ($_SESSION['customer_id'] && isset($_GET['products_id'])) {
// use wishlist class
require_once(DIR_WS_CLASSES . 'un_wishlist.class.php');
$oWishlist = new un_wishlist($_SESSION['customer_id']);
$oWishlist->removeProduct($_GET['products_id']);
}
zen_redirect(zen_href_link(UN_FILENAME_WISHLIST));
break;
// Update wishlist
case 'un_update_wishlist':
$cart_updated = false;
for ($i=0; $i<sizeof($_POST['products_id']); $i++) {
// use wishlist class
require_once(DIR_WS_CLASSES . 'un_wishlist.class.php');
$oWishlist = new un_wishlist($_SESSION['customer_id']);
$oWishlist->updateProduct((int)$_POST['products_id'][$i], (int)$_POST['wishlist_quantity'][$i], (int)$_POST['priority'][$i], $_POST['comment'][$i]);
if ( in_array($_POST['products_id'][$i], (is_array($_POST['add_to_cart']) ? $_POST['add_to_cart'] : array())) && $_POST['wishlist_quantity'][$i] != 0 ) {
$cart_updated = true;
$_SESSION['cart']->add_cart($_POST['products_id'][$i], $_SESSION['cart']->get_quantity(zen_get_uprid($_POST['products_id'][$i], ''))+$_POST['wishlist_quantity'][$i], '');
}
if ( in_array($_POST['products_id'][$i], (is_array($_POST['wishlist_delete']) ? $_POST['wishlist_delete'] : array())) or $_POST['wishlist_quantity'][$i] == 0 ) {
$oWishlist->removeProduct((int)$_POST['products_id'][$i]);
}
}
if ( $cart_updated == true ) {
zen_redirect(zen_href_link($goto, zen_get_all_get_params($parameters)));
} else {
zen_redirect(zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params($parameters)));
}
break;
// (un): end mod for Wishlist v0.2
}
?>
does it matter what the new php file is named? Other files pointing to a specific one?
It doesn't matter. The way 1.3.0 is designed: it just iterates through every file in the extra zen cart actions folder. I named my file: wishlist_cart_actions.php
Thanks.
hmm...and it worked right away? I get the sidebox option showing up in admin but nothing in the actual side bar even when it's turned on. No error though either. Any ideas...no other file changes for it to be compatible with 3.0?
Hello there,
I was just interersted to see if anyone had any luck with making this work for 1.3?
Regards,
Russ :thumbsup:
Read below. The answer is there.Quote:
Originally Posted by HeathenMagic
Not this helps you too much, but somehow I got it to work for mine (I'm using the newest Zen). honestly I just followed the instructions with the mod for zen 1.3+. At first it didn't work when I names the mod php file to a name I made up, but when I named it the same as the poster, it worked. So it can be done, I just can't tell you how I did it because I have no clue :unsure:
Andrea
I just changed mine to the same name but it still doesn't work :(
On your front-end, drill down to the detail on a product. The wishlist option only appears if you at the lowest detail page for a product.
Cool...that was it. I guess I was expecting to see it as soon as I logged in. It at least partially works now. When I try to email a friend, I get a message that just says
Cheryl Kemp's Wish List at Diva Knitting
$EMAIL_MESSAGE_HTML
...no links or list or anything.
the mod doesn't add any kind of file to the email folder...could this be the problem? Any ideas how to fix it?
Ok i Made my wishlist to work but how can I give it to use concrete size of the images.
I mean when i enter into my wishlist the products that I added have virable size of the images of products is there any way to resize by its template?
Sicness, see the fix here to restrict the image size displayed: http://www.zen-cart.com/forum/showthread.php?t=38564 (second post on that thread).Quote:
Originally Posted by sicness
Hello,
I'm interested in this feature. How do you save a PHP file?
Thanks!
Great mod.
I have an issue I know whats wrong but dont know what file to go into inorder to fix it.
when I add an item to my wishlist I get this error
1146 Table 'diecast_zc2.un_wishlists' doesn't exist
in:
[SELECT id FROM un_wishlists w WHERE w.customers_id=2 and w.default_status=1 ]
the issue is the table is called
'diecast_zc2.zen_un_wishlists'
not
'diecast_zc2.un_wishlists'
so what file do I need to fix this in?
thanks
disregard my above post I fixed it myswlf I forgot I can loginto my phpmyadmin and change the table name lol
Hi, Ihave tried this mod but I can't get any product in to the list. I click add but it does not show up.
Have renamed tables to cure the errors - same as Jayreis - and seems to be working but no data saved, no gifts to wish for!
Any thoughts
thanks
MG
Sorry to bump but has anyone any ideas how to fix my issue . i.e. product not saved/showing in the wish list when you view under my account.
The wish list mod is going to be great for christmas (yes its coming up fast and we all need to plan ahead)
thanks
MG
Do you have a url for us to see? What version of zencart are you using? Which version of the wishlist mod are you using?
I bet one of the reasons nobody has responded is because unless they have come across the same problem, or know what you have done to your cart and can see the error, there is no way to provide a solution.
Im setup this mod
But now I see "add to wishlist" only when Im on product page
Where I can see my wishlist ? meybe Im dont make something ???
If im login - Im dont see wishlist link anywhere...
www.czbeads.eu
please help
Check the read me page, it has many examples of how to add a link to the wishlist page including how an Add to Wish List link on a product template:Quote:
Originally Posted by maxus
Quote:
<?php
// (un): start wishlist link
echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action', 'products_id')) . 'products_id='.(int)$_GET['products_id'].'&action=un_add_wishlist') . '">' . UN_TEXT_ADD_WISHLIST . '</a>';
// (un): end wishlist link
Hi, can some one answer if this mod should work in the following way please;
If some one buys something from my wishlist should that item then be taken off the wishlist or flagged in someway so I know it has been purchased?
Thanks
MG
It is not a gift registry which is what you are talking about. It is only a wishlist. There was a zencart member who created a gift registry and talked about releasing it a few months back, but he never followed up or returned my PM's.
Hi, is anybody working on an attribute-aware version of the wishlist? I would like to be able to add a product with its attributes to a wishlist, for example: t-shirt, XL. Right now, one can only add the t-shirt.
Yes I'd like this too...
Where would I put this code? includes/languages/english/extra_definition/un_defines.php?Quote:
Originally Posted by ctcentralinfo
and where in the file would I put it?
Voltage -- Has this issue been addressed yet:
When I try to email a friend, the email message that I get just says:
Joe Blow's Wish List at MJM magic
$EMAIL_MESSAGE_HTML
...no links or list or anything.
Mine's working fine apart from the link shown in the "tell a friend" email, which comes up as
http://aniam.co.uk/shopcat/index.php...BOX_FIND&wid=1
UN_FILENAME_LIGHTBOX_FIND doesn't appear to be defined anywhere.
Any suggestions?
When I access the Share My Wish List page, there is no content in the e-mail form textarea (except for an '8' in the first character position).
The define for FORM_DEFAULT_BODY is in the language file which is in the correct place. Am I missing something?
The site is still under construction but the page is at http://pinkpoppies.co.uk/NEWSTORE/in...wishlist_email
- you can login using test*globalteam.co.uk/testing
Ryk/Voltage,
You should find the answer to the email problems in this thread
http://www.zen-cart.com/forum/showthread.php?t=38564
Now, anyone gonna help me with mine? :-)
Thanks Gwiazda, not only did that solve the problem I had, it solved a problem I didn't know I had in terms of the image size! :laugh:
I did notice though in your fix in the other thread that you have posted the code relevant to the LIGHTBOX you've installed;
includes/modules/pages/un_wishlist_email/header_php.php ...the original code isnotCode:$email_body .= sprintf(TEXT_EMAIL_LINK, $from_name, zen_href_link(UN_FILENAME_WISHLIST_FIND, 'wid=' . $id ));
I don't know if that has anything to do with it. It strikes me that if you did want to have a different filename in there then you'll need to define it yourself.Code:$email_body .= sprintf(TEXT_EMAIL_LINK, $from_name, zen_href_link(UN_FILENAME_LIGHTBOX_FIND, 'wid=' . $id));
LOL, well that will teach me to put in changes without reading them :D
Thanks
I am getting this problem and although I have followed what I thought was the fix a few posts up Iam still getting this problem with theHTMl email arriving with the $EMAIL_MESSGAE_HTML in it.
Has this been fixed and can some one re-iterate the instructions just incase I have missed something please.
Many thanks
MG
I am using the latest version of ZenCart and I was wondering where I can find a functional version of the Wishlist contrib... I can't seem to find it anywhere. Also, can I get an example of a site that uses the contrib currently? I haven't seen it in action, just heard of it.
Go to www.pinkpoppies.co.uk just updated to 1.3.6 - you'll need to login I'm afraid and it is a live site.
This uses the file from the downloads section
Looks pretty sweet... I have checked the downloads section and cannot find the contribution... mind giving me some direction? Thanks all...
Sorry - it's on his own site (but I did find it searching for Wishlist :wink2: ) ...
http://www.unevolution.com/miscellany/downloads.php
and then go back to the second post in this thread before installing
Thanks Ryk, I appreciate it... I will install on my test site and let you know how it turns out. I looked through his site trying to find it but all I got was a dead link... thanks a bunch.
is there a way to adjust the image size? my original images are big so it's showing up clumsy on the wish list page...
Assuming you read the whole of this thread, you must have missed this earlier post... http://www.zen-cart.com/forum/showthread.php?t=38564
Yeah, that actually fixed all the problems.
now i'm just looking for a way to add the header logo to the emails that are sent through wishlist they seem a bit plain to me.
Thanks!
The one in the downloads section works fine - you can see it in action at www.pinkpoppies.co.uk (you need to create an account for it to be visible).
The initial install does NOT include the product page button/link, but instructions for that (and other bits) are in the mod's readme.
Here you go
I am having the same problem :( I did follow the directions in the other thread, but they didn't fix this problem. Has anyone got it working? This only happens if I set my store e-mails to use MIME HTML, text versions work fine, but I want to use the HTML because they're pretty ;) - all my other e-mails work fine with HTML, just not this one...
Now I have a question. This lovely little mod gets me about 80% of what I need. I can get the thing set up just fine (I'm running the newest version of ZenCart), and I can even get an "Add to Wishlist" link to show up.
However, I want to modify this...it's not really going to be used as a wishlist - but more as a collection of what the end user wants for a particular item.
To be more clear: the client is a photographer, and she wants to sell her images in greeting-card format. She has sets already made up, but now she would like to have a set of greeting cards that are available to the public where the end user can go through *all* of her images (over 250 at this time) and select 10 of the images to put into a custom greeting card set.
This wishlist seems to get me part of the way there - the idea would be to put an "Add to wishlist" link in the attributes box (No problem doing that!) but, as we all know, if the product has attributes, it won't be listed in the wishlist. I would like for the *wishlist* items to be attributes, not the product itself. This way, the end user can peruse the site and click "Add *image* to wishlist" and when they're done, they'll have a list of all the images they like. Then, when they go to the "custome greeting card set", they can go through the list of images they added to the wishlist, and select 10 of them to create the greeting card set.
Hopefully what I'm asking is clear - I dabble in PHP, I'm no expert, but if I am pointed in the right direction, I can usually muddle my way through. Would anyone know if what I'm trying to accomplish is feasible? Or maybe could be done in a better way?
I'd really appreciate any help or direction in this. Thanks!
What versions of Zen Cart will this work with? Will it work with the latest 1.3.7?
Thanks,
Kelly
I like this mod, very much....I would love to see an updated version, where maybe a few to of the wishlist images/items appear on the shopping cart page, with an add to cart button...or better yet on the order confirmation page....
OK,
If you want to add a "View my Wish List" link to "My Account"; here's the code you need to add to the following file:
Open > include/templates/template_default/templates/tpl_account_default.php
Add the following code after line 61 (or wherever you want the link to be):
<li><a href="<?php echo zen_href_link(UN_FILENAME_WISHLIST, '', 'SSL'); ?>">View my <?php echo UN_HEADER_TITLE_WISHLIST; ?></a></li>
Hope this helps...
Have a great day.
Issy,
You said:
To get it to work, did you apply the code listed in the second post of this thread?Quote:
I also have 1.3.7 installed, and it does work on the latest version of zencart.
Actually I did get it working using the second post. It cannot work the usual way as the application_top file has totally changed.
Kelly, do make sure when you add the link as Issy suggested in the "My Account" section that you save the "tpl_account_default.php" file to your custom template directory. This way if there is a zen upgrade it will not be overwritten...and nice site btw...very warm and cozy!
Issy,
Thank you for the info. I will try it...
Thank you for the compliment on the site. That is exactly the feel I was going for. :smile:Quote:
...and nice site btw...very warm and cozy!
Thanks,
Kelly
I need a wish list module for Zen 1.2.6. Any thing available
Go to post #48 in this thread...there is a zip file there. That is the one talked about here. It was built originally to be compatible through Zen 1.2.7.
We are just modifying it for 1.3 and above. Works fine in 1.2.7 and below by following the attached readme file.
Any help, let me know...
And Kelly...yes, your site just makes me want to grab a cup of hot chocolate on a snowy evening and browse through.
Unfortunately no snow here in the northeast yet, though maybe tonight!!!
Hello, I am kind of new to the whole Zen Cart community. I do know a few things of webdesign etc. I am still working on this site and i have just finished installing the wishlist and it was working perfect using the latest Zencart. I have came on to the site today to test all the functionality of the site and came accross when I am in the wishlist and send a email to a friend with my wishlist content. It sends the email and details perfect also the url link as it should but when i click on the hyperlink to go back to see the wishlist i get PAGE NOT FOUND. I have tried to create a few differnt accounts to test this but it has the same results. The funny thing is it worked last night. Today I logged in and now i get this issue. I have not made any changes today. I have also followed all the tutorials and changes for the new version.
Any suggestions would be greatly appreciated!
www.tinastasteofhome.com and click on the "online Store" link
Thanks in advance!!!
Great mod - seems to be working fine on 1.3.7 using the change on page 2.
Just wanted to add my code for the Add to Cart box on tpl_product_info_display.php as I have it set up so that if not logged in, text will show asking to log in to add this item to Wish List and if logged in then the "add to Wish List" will come up. I know others have posted code to add the Wish List button to products but this way, it will first check if you are logged in and give a more useful solution.
Thought it might be useful for other people too. :)
Code:<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
<br clear=all><br><center>
<?php
// (un): start wishlist link
if ( $_SESSION['customer_id'] ) {
echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action', 'products_id')) . 'products_id='.(int)$_GET['products_id'].'&action=un_add_wishlist') . '">' . UN_TEXT_ADD_WISHLIST . '</a>';
} else {
$_SESSION['navigation']->set_snapshot();
echo 'please <a href=http://www.redinstead.com.au/index.php?main_page=login>log in</a><br />to add this to<br />your Wish List';
}
// (un): end wishlist link
?>
</center>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
SORRY! That code I posted above has a direct link to my site in there. I have reposted it below.
I should add, to the above: Having it set up this way, I have turned off the Wish List Sidebox as it is no longer needed.
Code:<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
<br clear=all><br><center>
<?php
// (un): start wishlist link
if ( $_SESSION['customer_id'] ) {
echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action', 'products_id')) . 'products_id='.(int)$_GET['products_id'].'&action=un_add_wishlist') . '">' . UN_TEXT_ADD_WISHLIST . '</a>';
} else {
$_SESSION['navigation']->set_snapshot();
echo 'please <a href=http://WWW.YOURSITE.COM/index.php?main_page=login>log in</a><br />to add this to<br />your Wish List';
}
// (un): end wishlist link
?>
</center>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
Do anyone know how to add a "back to shopping" or "back" button at the top of the wishlist mainpage? seems like a dead end (no nav button)
dharma, not sure if I hit on what you're asking, but in the includes/templates/YOURTEMPLATE/un_wishlist/tpl_un_wishlist_s.php file, find this code:
and add this code right after the <div class="buttons"> to have the back button just to the left of the update button. This button takes you back to your home page:Code:<?php if ($listing_split->number_of_rows > 0) { ?>
<div class="buttons">
<?php echo zen_image_submit(UN_BUTTON_IMAGE_SAVE, UN_BUTTON_SAVE_ALT); ?></div>
So the full code looks like this:Code:<?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?>
See attached screenshot. Hope it helps, works for me...Code:<?php if ($listing_split->number_of_rows > 0) { ?>
<div class="buttons">
<?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?>
<?php echo zen_image_submit(UN_BUTTON_IMAGE_SAVE, UN_BUTTON_SAVE_ALT); ?></div>
I am using JenRed's code (thank you!) from above (no sidebox) is there some sort of "if" statement that can be added in order for "add to wishlist" to not display if out of stock? (I must delete out of stock items after a week, so they disappear off wishlist too)
ps. Thank You tcustomgolf for the button nav code!PHP Code:
<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
?>
<?php
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
?>
<?php if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
<br clear=all><br><center>
<?php
// (un): start wishlist link
if ( $_SESSION['customer_id'] ) {
echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action', 'products_id')) . 'products_id='.(int)$_GET['products_id'].'&action=un_add_wishlist') . '">' . UN_TEXT_ADD_WISHLIST . '</a>';
} else {
$_SESSION['navigation']->set_snapshot();
echo 'please <a href=http://WWW.YOURSITE.COM/index.php?main_page=login>log in</a><br />to add this to<br />your Wish List';
}
// (un): end wishlist link
?>
</center>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
Hi all, Ive just installed this mod and im getting this error:
1146 Table 'fishkrib_zc1.un_wishlists' doesn't exist
in:
[SELECT id FROM un_wishlists w WHERE w.customers_id=1 and w.default_status=1 ]
Someone mentions it early in this thread but fixes it and doesnt say how, says something about renaming in myphpadmin, so i went to myphpadmin and renamed the tables but still comes up with the same error message.
Any ideas?
And in my admin it comes up with this message:
1146 Table 'fishkrib_zc1.un_wishlists' doesn't exist
in:
[SELECT w.id, w.customers_id, w.created, w.modified, w.name, w.comment, w.default_status, w.public_status, count(p.products_id) as items_count, c.customers_email_address, c.customers_firstname, c.customers_lastname FROM un_wishlists w LEFT JOIN un_products_to_wishlists p2w ON w.id=p2w.un_wishlists_id LEFT JOIN zen_products p ON p2w.products_id=p.products_id LEFT JOIN zen_customers c ON w.customers_id=c.customers_id GROUP BY w.id ]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
Troy...the sql statement that gets loaded from the wishlist mod files does not include a table prefix, so when it is loaded, it loads without the prefix. To fix, you either have to modify the sql statement and include your table prefix and reload, or go into myphpadmin to modify the table as discussed.
The prefix on all my tables is zen_ You can determine yours in myphpadmin, but zencart tables I believe default to this. Add that before any table statement like CREATE TABLE `un_wishlists`. So this will become CREATE TABLE `zen_un_wishlists` in the sql statement, then reload the statement in your zen admin.
myphpadmin is accessed through your hosting cos. cPanel or similar hosting site admin program, and you can modify the table names there also.
If you need help with either, feel free to PM me with a number to call...
A big thank you for that "tcustomgolf" but it now doesnt ad anything to the wishlist :blink: and is there a way i can have it as a button in the description instead of a sidebox if i can ever get it to work :huh:
Coding isn't my thing, but if you look at JenRed's post above, it could give you some ideas.
The wishlist doc also goes into create a wishlist link. If you look at my site in a product screen, I have a link right under the price, and one in the add to cart box below. I implemented JenRed's code in both and both will show "Add to Wish List" when logged in (very slick). If you do not log in, it will show as you are probably seeing it on my site, asking you to log in to add to the wish list.
I think there are also some posts dealing with adding a button, and I think in the wishlist doc.
Not sure why it is not adding anything...
Thanks for your help, ive managed to get it running with 1 or 2 small problems, i wont double post so here my problems:
http://www.zen-cart.com/forum/showth...406#post330406
Thanks again for your help
Hello!
I have a problem, when i add produkts to my wish list, the images when I go to my wishlist become so big. biger than the site. how can I make so the wish list shows tumbnails insted for the big image?
I have a example here:
http://www.trendhouse.no/wish/wish.jpg
if you see the image is to big for the site!
thansk for help:)
Kenobi!
DO you have IH2?
Check this Thread: http://www.zen-cart.com/forum/showthread.php?t=38564
Oh and I made some progress on this: having the wishlist mod box/link not display when item is out of stock:
maybe if I add something like this:
to this:PHP Code:
if ($_SESSION['cart']->count_contents() <= 0) {
But am unsure :unsure: how to discribe in php such a statement in ZC php:PHP Code:
$display = false;
if ( isset($_GET['products_id']) && zen_products_id_valid($_GET['products_id']) ) {
if ( !preg_match('/^un_wishlist/',$_GET['main_page']) ) {
????? ['un_wislist]->quantity() <= 0) { ???????
Has anybody done this before?
Whoops! the code would go in JenRed's contribution:
PHP Code:
// (un): start wishlist link
if ( $_SESSION['customer_id'] ) {
echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action', 'products_id')) . 'products_id='.(int)$_GET['products_id'].'&action=un_add_wishlist') . '">' . UN_TEXT_ADD_WISHLIST . '</a>';
} else {
$_SESSION['navigation']->set_snapshot();
echo 'please <a href=http://WWW.YOURSITE.COM/index.php?main_page=login>log in</a><br />to add this to<br />your Wish List';
}
// (un): end wishlist link
This is an IF statement added to JenRed's code that will make the wishlist mod link only appear when the product is IN of stock....:lookarounPHP Code:
<?php
// (un): start wishlist link
if (zen_get_products_stock($_GET['products_id']) != 0) {
if ( $_SESSION['customer_id'] ) {
echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST,
zen_get_all_get_params(array('action', 'products_id')) .
'products_id='.(int)$_GET['products_id'].'&action=un_add_wishlist') .
'">' . UN_TEXT_ADD_WISHLIST . '</a>';
} else {
$_SESSION['navigation']->set_snapshot();
echo 'please <a
href=https://YOUR_SITE/index.php?main_page=login>log
in</a><br />to add this to<br />your Wish List';
}
// (un): end wishlist link
}
?>
Anyone else have this problem?? I have google analytics installed, and when I go and add an item to the wish list. I get these errors on the bottom of the page..
Warning: main(includes/templates/template_default/un_wishlist/google_analytics.php) [function.main]: failed to open stream: No such file or directory in /homepages/11/d93880114/htdocs/includes/templates/template_default/common/tpl_main_page.php on line 180
Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/un_wishlist/google_analytics.php' (include_path='.:/usr/local/lib/php') in /homepages/11/d93880114/htdocs/includes/templates/template_default/common/tpl_main_page.php on line 180
I could do with a little help on this one, im new to zen cart and only created my first php file today, ive read this whole thread but am really stuck.
Ive managed to create the tables, copy the files over etc etc. The wishlist side box comes up on my shop but when i click to add a product i get a blank page,
with the following URL domain/shop/index.php?main_page=un_wishlist&action=un_add_wishlist&products_id=25
any ideas ?
I just installed wishlist into my 1.2.6 ZC but after adding an item to the wishlist it is still empty.
I've seen the same problem in previous posts but no answer.
Any suggestions?
jacque
http://www.freshabundance.com
Found the issue, when copying and pasting the code from the read-me into application_top it palced some "o"'s infront of a few words. Did a search and replace and now it works fine.
Gday guys...
I have been searching for this mod all around the place and I end up really confused. I know that the mod was programmed for 1.2.7 and earlier and has no support anymore. But as always, geniune people on this forum somehow make it work for 1.3.7.
My questions are:
1.) WishList: Does this mod allow you to add/remove wishlists ONLY when you are logged in or also see other peoples wishlists when you are not login? (as in amazon.com does)
1.) Where can I get the original mod? (or an updated fitted to 1.3.7 version?)
2.) I dont know at all what (all) to change to the original mod (with all the bugfixes Ive been scrolling through) - is there somebody capable out there to shorten all the numerous threads to the essentials? Really kind! (concnerning the fitting to 1.3.7)
Any help is needed and greatly appreciated!
The way the mod is currently set up you can only add/remove to your wishlists when logged in....to find other peoples wishlists you currently have to be logged in to see the link to the page to enter the name you want to search for. I got around this by copying the link to that page and creating a link in the sidebox and footer using the ezpages function for adding internal links and now people not logged in can search for others wishlists.
here is a copy of the original file.....follow post 2 of this thread and run the sql through the ZC admin sql patch tool....I don't think I did anything else......maybe....could be.....I'm not sure but it works for me
Thx Barco for that veryfast reply.
I am not familier with EZpages (the only damn thing I havent looked at ;) ) , is it also possible to create the link for example in the horizontal dropdown menu the apple zen template uses? (as easily, if yes, just adding the link?)
Tremendous support Barco, thumbs up!
T.
I suppose it would be I haven't played with the apple zen template yet so I don't know where the links in the header drop down are set.
ok.. here my first major problem :(
""Fatal error: Call to a member function RecordCount() on a non-object in ...\includes\modules\pages\un_wishlist_find\main_template_vars.php on line 59""
This comes up when I try to click the link when the wishlist-user sends the wishlist via tellafriend.. (a new webpage opens, my shop appears and this text replaces where the wishlist should appear)
I use test accounts on mytrashmail.com with different email addresses
Please help me, I dont want to drop this great mod!
is this site live and can I have a url?
Unfortunately no, it is a localhost installation (testing environment running apache2.2.4/php5.2.1 on winxp - but i send emails via the mercurymail server (tried it with contact-us page - worked)...
I try to provide as many infos as i can... just tell me what you need....
oh its agood thing I read alot cause i believe this is a bug in php 5.2.....there is a work around somewhere.
What localserver are you using? (xampp, triad.....) can you move to a previous version of php to see if the error goes away?
using xampp.. switched to php4.4.5... tried the same thing... same error....:(
:cry: I think we need some additional help from someone who understands it better than me. See I never seem to have these problems, so I never get to troubleshoot them myself.....hard to learn how to fix if I never break it.
well thx barco for your initial help... so we need the Big guys.... help is greatly appreciated...
Anyone?
Ive now succesfuly installed this module on 1.3.7 using the instructions on the 2nd post of this thread and it works great.
Does anyone know if its possible to replace the add to wishlist button in the sidebox to one that ive customised ?.
Hi,
We also have the wishlist working correctly on 1.37.
Can anyone give me direction on how can I default the view to the "compact" rather than the extended.
I have looked and made some uneducated changes in the extra functions files but have not come up with the right code to change the default view.
Thanks
Rick
I believe all you need to do is to change the image in the un.defines.php file to the one you want to use after you upload it of course.Quote:
Does anyone know if its possible to replace the add to wishlist button in the sidebox to one that ive customised ?.
Rick
disciple...see this post:
http://www.zen-cart.com/forum/showth...act#post168376
I used this with success on my wishlist. The original author created this. It is a hack, but seems to do the job. Really just reversing some things to make the compact mode the default.
I thought I remember making one modification of this, so I'll see if I can find it, else give it a shot and see if it works ok for you.
That seemed to do the trick.
Thanks
Rick
OK, one more question. When a person receives the html email with the wishlist information the link is not clickable. You must copy and paste the link into the browser.
I believe this is the line that is creating the link;
What do I need to do to make it a clickable link?Quote:
$email_body .= sprintf(TEXT_EMAIL_LINK, $from_name, zen_href_link(UN_FILENAME_WISHLIST_FIND, 'wid=' . $id));
Thanks
Rick
I still haven't gotten an answer to this yet, and I see others have posted the same problems.
When I try to email a friend, the email message that I get just says:
Joe Blow's Wish List at MJM magic
$EMAIL_MESSAGE_HTML
...no links or list or anything.
I have tried to change my Admin->Email Options->Email Admin Format from HTML to Text, but that didn't do anything.
Any idea why the emails only contain the string "$EMAIL_MESSAGE_HTML" and nothing else? We are running ZenCart 1.3.7.
im getting error
1146 Table 'wwwtrill_zc1.un_wishlists' doesn't exist
in:
[SELECT id FROM un_wishlists w WHERE w.customers_id=1 and w.default_status=1 ]
someone else had same error, but didnt sate what i should rename table to! Please help me :x