so you reinstalled it totally then ran the sql?
it now shows in admin?
were you able to replace the customer/your test wish lists back into the database, tis tricky but I have had to do things like that before too. pm me if you want.
Printable View
Quick comparison on the old mod & new SQL file I found the new is missing.....
This was to insert the Customers Wish List in Admin. I am looking to see if a file is missing also that is used to populate this valueQuote:
INSERT INTO un_wishlists VALUES (1, 0, now(), now(), 'donotuse', 'donotuse', 0, 0);
To help others
I had to remove all reference to Wish Lish in the Database. It seems the uninstall SQL only removes from Admin even if you uncommentQuote:
so you reinstalled it totally then ran the sql?
So others may not have a prob with fresh installs until they want to Uninstall the mod.Quote:
#DROP TABLE IF EXISTS `un_wishlists`;
#DROP TABLE IF EXISTS `un_products_to_wishlists`;
Oddly tho when I ran
it did not return an error although this IS included in the install SQL. I would get the processed 1 statement confirmation every time!Quote:
# Register the configuration page for Admin Access Control
INSERT IGNORE INTO admin_pages (page_key,language_key,main_page,page_params,menu_key,display_on_menu,sort_order ) VALUES ('configZCAWishListModule','BOX_CONFIGURATION_ZCA_WISHLIST','FILENAME_CONFIGURAT ION',CONCAT('gID=',@cid),'configuration','Y',@cid);
quick comparison to the files I found this difference in
/admin/includes/extra_datafiles/wishlist_filenames
new
OldQuote:
// Wishlist
define('UN_FILENAME_WISHLIST', 'wishlist');
define('UN_FILENAME_WISHLISTS', 'wishlists');
since I had to old file uploaded at this point perhaps this is what made it finally show up correctly in adminQuote:
// Wishlist
define('UN_FILENAME_WISHLIST', 'wishlist');
define('UN_FILENAME_WISHLISTS', 'wishlists');
define('BOX_CONFIGURATION_ZCA_WISHLIST', 'Wish List Module');
well it is my turn now.
store: 1.3.9h
wishlist version .09
I have two codes to use in the tpl_product_info_display.php
I have the first one added to the file right under the end of add to cart.
the problem is that when used it takes you to the wishlist but does not add a darn thing and if you happen to have others in there it says there is nothing. I have all its files uploaded to their correct places. It is displayed in admin/extras and shows all accounts with wishlistsCode:<!--bof Wishlist button -->
<div id="productWishlistLink" class="buttonRow back"><?php 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') . '">' . zen_image_button(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT) . '</a>'); ?></div>
<!--eof Wishlist button -->
this link also works but send the person to the shopping cart, not the wishlist.Code:<!--bof Wishlist button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) { ?>
<div id="productWishlistLink" class="buttonRow back">
<?php echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
//print_r($_REQUEST);
?></div>
<?php }
else
{}
?>
<!--eof Wishlist button -->
If I use this one from the example, it too sends to shopping cart:
Before we moved to new host this worked right...um before I turned on the CSS Buttons feature in admin/config/layout settings, which I have enabled so my buttons all appear correctly and not run off the button.Code:<!--bof Wishlist button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) { ?>
<div id="productWishlistLink" class="buttonRow back">
<?php echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
//print_r($_REQUEST);
?></div>
<?php }
else
{}
?>
<!--eof Wishlist button -->
Is there something I can do to altar the code for it to go to wishlist to add the item and NOT the shopping cart.
http://fantasiesrealm.com/market
Attachment 14305
DarkAngel the following code worked for me in both 1.39 & 1.51
I to am using css buttons and wanted the button to show Even when customers are not logged in (the text script threw off my alignment with the Tell a Friend button)Quote:
<!--bof Wishlist button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) {
if ( $_SESSION['customer_id'] ) {
echo '<input type="hidden" name="wishlist" value="yes" />';
echo '<div id="productWishlistLink" class="buttonRow back">';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT);
echo '</div>';
} else {
echo '<div>';
echo UN_BOX_WISHLIST_LOGIN_TEXT;
echo '</div>';
}
} else {}
?>
<!--eof Wishlist button -->
I am glad I can offer some help for a change :)Quote:
<!--bof my Wish button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) {
if ( $_SESSION['customer_id'] ) {
echo '<input type="hidden" name="wishlist" value="yes" />';
echo '<div id="productWishlistLink" class="buttonRow back">';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT);
echo '</div>';
} else {
echo '<div>';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT);
echo '</div>';
}
} else {}
?>
<!--eof my Wish button -->
The bottom code worked perfectly and now I see the message stack success at the top as well as it adds to the wishlist and NOT the shopping cart. A little weird since it used to go to the wishlist when it did work before...LOL
now I have another questions about this mod on 1.5.3 store. Trying to fix the stack success message at the top.
the first image is the normal view prior to adding to wishlist....then the success just takes over. I have changed the stylesheet in many ways with margins and padding that either distorts the entire page or does not have any affect what so ever.
Where can I find another place to edit so that the wishlist success does not stomp on the navigation links.
Attachment 14308Attachment 14309
The template used is a classic theme clone and I have compared the entries in there with the default stylesheet to no avail. I think everything is in there.
I have absolutely no space at the top of my website. This is what I have
andQuote:
/*warnings, errors, messages*/
.messageStackWarning, .messageStackError, .messageStackSuccess, .messageStackCaution {
line-height: 1.8em;
padding: 0.2em;
border: 0px solid #9a9a9a;
}
which loads all messages above the website by shifting the page downQuote:
#navMain ul, #navSupp ul, #navCatTabs ul {
margin: 0;
padding: 0em 0em;
list-style-type: none;
text-align: center;
line-height: 1.7em;
}
Attachment 14312
yes, with some testing we see that all of the stack stomps on the links. hers are:
.messageStackWarning, .messageStackError, .messageStackSuccess, .messageStackCaution {
line-height: 1.8em;
padding: 0.2em;
border: 1px solid #000000;
}
#navMain ul, #navSupp ul, #navCatTabs ul {
margin: 0;
padding: 0.5em 0em;
list-style-type: none;
text-align: center;
line-height: 1.5em;
}
changed it like yours and still does it:Attachment 14313
That is Odd! I had settings to open list after adding so I changed to test and it looks like this
Attachment 14314
what is your CSS for #mainwrapper? If you have a height setting try commenting out?
#mainWrapper {
background-color: #ffffff;
width: 1200px;
text-align: left;
vertical-align: top;
border: 1px solid #3E7871;
}
I have tried the message stack code, mainwrapper, navmain, several other places.
I even went to the tpl.product.info file -- I think that is the one --- to move it and did, i moved it up,down,bottom, just under the addtocart to no avail it still appear topside and on top of the links
It is almost like there is another file governing where it should be and the css nor the product page will move it.
it is definitely in the a header, nav or wrapper settings I would think. The tpl or product files should not affect the main/global settings. Do you have more than one stylesheet file? Also when doing these kinds of edits I often forget to clear my cache to get a fresh page loaded. I worked on a page for 2 days once because I forgot to do this, lol. The logo wrapper gave me fits also & I ended up commenting it out and using the nav & wrapper to achieve what I wanted.
Another thing to try is your browser Developer Tools which will show Exactly what is being loaded in the page.
me too but I tried it on two computers with several browsers and same effect.
like the add to cart button and the wishlish button, you can move it up or down in that file to show it in a different location.
but not this time. moving it all over that file did nothing, it likes it up there regardless of where located in the file.
if you have it on your server can you PM the link?
I did a work around that works and makes it blend better with the store formatting.
Now back to the wishlist.
I tried your code, as I said, and it worked but not like it should.
I was informed just now that the button does indeed add to wishlist but now so does the ADD to cart button.
I have had to remove the coding for the wishlist again.
this is the one that is in the readme:
<!--bof Wishlist button -->
<!--<br class="clearBoth" />
optional depending where the code is added-->
<?php if (UN_MODULE_WISHLISTS_ENABLED) {
if ( $_SESSION['customer_id'] ) {
echo '<div id="productWishlistLink" class="buttonRow back">';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
echo '</div>';
} else {
echo '<div>';
echo UN_BOX_WISHLIST_LOGIN_TEXT;
echo '</div>';
}
} else {}
?>
<!--eof Wishlist button -->
I am at my wits end as to what to do now.
use your code and the css buttons work but the cart button does not add it to cart it sends to wishlist.
add the above code and they both go to cart.
WoW that is really strange! Are you using a different/new template from your old store? If so try uploading your previous/old tpl_product_info_display to see if it works with the new codes. The placement of the script should only effect the location/placement but Never the operational function.
I have the scripts in different locations in 2 files for products & product_documents just to give them a different look but work exactly the same as they should!
this is Exactly what I have
Again both worked in 1.39 & 1.51Quote:
<!--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;
?>
</div>
<?php } // display qty and button ?>
<?php } // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
<!--bof Tell a Friend button -->
<?php
if ($flag_show_product_info_tell_a_friend == 1) { ?>
<div id="productTellFriendLink" class="buttonRow forward"><?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div>
<?php
}
?>
<!--eof Tell a Friend button -->
<!--bof my Wish button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) {
if ( $_SESSION['customer_id'] ) {
echo '<input type="hidden" name="wishlist" value="yes" />';
echo '<div id="productWishlistLink" class="buttonRow back">';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT);
echo '</div>';
} else {
echo '<div>';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT);
echo '</div>';
}
} else {}
?>
<!--eof my Wish button -->
I noticed a subtle difference in your file scipt
it should beQuote:
<!--bof Wishlist button -->
<!--<br class="clearBoth" />
optional depending where the code is added-->
<?php if (UN_MODULE_WISHLISTS_ENABLED) {
if ( $_SESSION['customer_id'] ) {
echo '<div id="productWishlistLink" class="buttonRow back">';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
echo '</div>';
} else {
echo '<div>';
echo UN_BOX_WISHLIST_LOGIN_TEXT;
echo '</div>';
}
} else {}
?>
<!--eof Wishlist button -->
Also page brakes should Never be inserted inside scripts always outside of tagsQuote:
<!--bof Wishlist button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) {
if ( $_SESSION['customer_id'] ) {
echo '<input type="hidden" name="wishlist" value="yes" />';
echo '<div id="productWishlistLink" class="buttonRow back">';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT);
echo '</div>';
} else {
echo '<div>';
echo UN_BOX_WISHLIST_LOGIN_TEXT;
echo '</div>';
}
} else {}
?>
<!--eof Wishlist button -->
<!--<br class="clearBoth" /> so you should move above or below and usenotQuote:
<br class="clearBoth" />
Another thing to check is to turn OFF CSS buttons. If it works with images then you may have just a prb with css buttons I had a prob with Back Buttons after upgrade, it worked with CSS buttons off but not on. I found there was a script to add to correct.Quote:
<!--<br class="clearBoth" />
OOPS, sorry for the confusion but then that is my title too...Queen of Confusion and I do it very well I might add.
No this is my own store, we fixed hers and it works as it should, I just moved where to see its message stack...rather any one of them should appear in that spot now.
This is my own 1.3.9h store---
http://fantasiesrealm.com/market
I used the one you provided that worked, it sent to wishlist even if all you saw was the message and it stayed on product page.
I am an idiot--of course it won't show in the default it is not installed in it.
The add to order button did work too, I even tested both with a test account.
But last night I ad a fellow send me a contact that the buttons were sharing the code and both sending to wishlist --- which he just used the button in there to get it into his cart.
I tried both of the codes you provided and the code from very early on in this thread and this one that I just posted comes from the read me to the wish list itself, copy pasted.
I even tried the older code that has zen_image_button instead of zen_image_submit and that shows the spot, but also does not do anything, just sits there as if it is not linked at all.
I really would like this to work again. I have taken it down, uninstalled files/sql then cleared cache, quit browser, rebooted the cmoputer and come back and reuploaded the files several times and done its sql again after each uninstallation.
This is making me crazy---not a far trip but still. It was working but not anymore. It just seems to crosstalk with the add to cart button.
I turned off css buttons in layout settings then using your code it goes to shopping cart as does the read me code
Code:<!--bof my Wish button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) {
if ( $_SESSION['customer_id'] ) {
echo '<input type="hidden" name="wishlist" value="yes" />';
echo '<div id="productWishlistLink" class="buttonRow back">';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT);
echo '</div>';
} else {
echo '<div>';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT);
echo '</div>';
}
} else {}
?>
<!--eof my Wish button -->
my original code sends to wishlist but does not add it, just shows an enpty list and it is most assuredly NOT empty :Code:<!--bof Wishlist button -->
<!--<br class="clearBoth" />
optional depending where the code is added-->
<?php if (UN_MODULE_WISHLISTS_ENABLED) {
if ( $_SESSION['customer_id'] ) {
echo '<div id="productWishlistLink" class="buttonRow back">';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
echo '</div>';
} else {
echo '<div>';
echo UN_BOX_WISHLIST_LOGIN_TEXT;
echo '</div>';
}
} else {}
?>
<!--eof Wishlist button -->
also without my css buttons turned on the buttons are all crappy looking now too---so I have to fix the stylesheet again..Code:<!--bof Wishlist button -->
<div id="productWishlistLink" class="buttonRow back"><?php 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') . '">' . zen_image_button(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT) . '</a>'); ?></div>
<!--eof Wishlist button -->
store is with it turned on again now. and yes it is in default template it does not show at all -- no link no button.
OK, this was buggin me so I played with the code---as many of you know I do not code I edit fairly well with help...LOL
but I managed to do this to the code from the readme file. perhaps it can be added to the readme or the text in the download area for others with 1.3.9h stores. I know that things go forward but when there is no need to the added security (for the stores without the use of paying with cash,check or moneyorder via store) and only using paypal we don't need 1.5+...yet
This is what I did, unfortunately though.....IF CSS buttons in layout settings is set to yes---it will not work and the original code will not only send both wishlist and add to cart to shopping cart for 1.3.9h and using either wishlist .09 and .09a I have no clue if there are others with lower cart versions, theirs might still behave.
this what I did---But it works only if CSS buttons is set to NO:
moved to after <!--eof line: <!--<br class="clearBoth" />
removed this totally: optional depending where the code is added-->
Code:<!--bof Wishlist button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) {
if ( $_SESSION['customer_id'] ) {
echo '<div id="productWishlistLink" class="buttonRow back">';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
echo '</div>';
} else {
echo '<div>';
echo UN_BOX_WISHLIST_LOGIN_TEXT;
echo '</div>';
}
} else {}
?>
<!--eof Wishlist button -->
<!--<br class="clearBoth" />
Now they go to their respective areas. You still only see the message that it was successful, it does not show you our wishlist like before, no idea why, it just refreshes the page with the message topside.
my button got smaller and no clue how to make it look bigger but will keep hacking away at the problem...LOL
but I am happy so far...LOL
Glad to hear to got it partially working DarkAngel!
So I gather it isnt not showing in your admin either? If it is you can send customers to the list by changing the admin setting. If not run the SQL
to trigger the switch internally. The Original SQL has it set to false triggering the Message only.Quote:
INSERT INTO configuration VALUES (NULL, 'Wishlist show list after product addition', 'DISPLAY_WISHLIST', 'true', 'Set this option true or false to show the wishlist after a product was added to the wishlist', @t4, 715, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
I am still trying to figure out why only half of the mod is showing in admin :frusty:
Thank you kind sir, now it goes to the wishlist once it is added in there and no message stack showing since this is set to yes now.
when you ran the SQL did you remember to take the # off of this:
# Register the configuration page for Admin Access Control
INSERT IGNORE INTO admin_pages (page_key,language_key,main_page,page_params,menu_key,display_on_menu,sort_order ) VALUES ('configZCAWishListModule','BOX_CONFIGURATION_ZCA_WISHLIST','FILENAME_CONFIGURAT ION',CONCAT('gID=',@cid),'configuration','Y',@cid);
If this helps anyone, when I installed the wishlist there was no link in admin to see wishlists so I used the information here: http://www.zen-cart.com/content.php?...e-v1-5-0-admin and used the bottom part: Access Management->Admin Page Registration tool. It's for 1.5.0 and up though.
Hi Opal,
I think his problem is not that it does not show in admin under extras....but that the link is there but it just won't cough up the contents...you see the table headers but there is nothing showing for the customers that do have items in their wishlist. He would need to go to the store and look at each and every customer to see what they wish for vs going to admin section and seeing the list there.
I forgot to ask everyone....now that I got it to work, how to show the button for the unlogged person instead of the link telling them to log in? 1.3.9h
It works in both version for me
Quote:
<!--bof my Wish button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) {
if ( $_SESSION['customer_id'] ) {
echo '<input type="hidden" name="wishlist" value="yes" />';
echo '<div id="productWishlistLink" class="buttonRow back">';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT);
echo '</div>';
} else {
echo '<div>';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT);
echo '</div>';
}
} else {}
?>
<!--eof my Wish button -->
I dont understand why others are saying to run this SQL when it is ALREADY included in the install file. But you should Not uncomment the 1st line since it has no relavance in effecting the DB function. I believe it is there for ppl like me that is SQL challenged :blush:
What I think is missing from the SQL 1.5 version that the 1.39 version has is
which I believe is the Sample customer wish list for admin/extrasQuote:
INSERT INTO un_wishlists VALUES (1, 0, now(), now(), 'donotuse', 'donotuse', 0, 0);
And I am clueless on how to rewrite this for it to populate in 1.5 if you have any ideas on this Opal?????
running it alone returns an error that a column is missing that could very well be the column/settings for the Attributes????(just a wild guess tho)
To be absolutely clear:
the Wish List Module setting is showing now in admin/config (after deleting all instances of the old version 1.39 wish & un_wish from DB then reran the SQL)
However it is Not showing the customers wish list in admin/extras OR anywhere else in admin controls
but I will study your link you provided Opal - altho it all looks greek to me :(
Its a Miracle................... Thank You Opal
I studied the instructions from the link and then studied wishlist for 1.39 then took a chance on running my own SQL & Shocker it worked !!!!!! :jawdrop:
this is what I ran for 1.51
being stubborn can be an asset at time!Quote:
INSERT INTO `admin_pages` VALUES('WishLists', 'UN_BOX_WISHLISTS', 'UN_FILENAME_WISHLISTS','' , 'extras', 'Y', 50);
Hopefully it will help the others who have disappeared from this thread
DarkAngelThis is what I found to correct my issue with CSS Buttons & Wishlist in 1.51 but you may want to try itQuote:
IF CSS buttons in layout settings is set to yes---it will not work and the original code will not only send both wishlist and add to cart to shopping cart for 1.3.9h and using either wishlist .09 and .09a I have no clue if there are others with lower cart versions, theirs might still behave.
this what I did---But it works only if CSS buttons is set to NO:
in /includes/functions/html_output.php to provide the emulation required to allow the Wish List button to operate properly:
Code:Quote:
if ($type == 'submit'){
// form input button
//-bof-v1.0.3a
if ($parameters != '') {
// If the input parameters include a "name" attribute, need to emulate an <input type="image" /> return value
// by adding a _x to the name parameter (thanks to paulm for providing the fix for Zen Cart v1.3.6!).
if (preg_match('/name="([a-zA-Z0-9\-_]+)"/', $parameters, $matches)) {
$parameters = str_replace('name="' . $matches[1], 'name="' . $matches[1] . '_x', $parameters);
}
// If the input parameters include a "value" attribute, remove it since that attribute will be set to the input
// text string.
if (preg_match('/(value="[a-zA-Z0=9\-_]+")/', $parameters, $matches)) {
$parameters = str_replace($matches[1], '', $parameters);
}
}
//-eof-v1.0.3a
$css_button = '<input class="' . $mouse_out_class . '" ' . $css_button_js . ' type="submit" value="' .$text . '"' . $tooltip . $parameters . ' />';
}
well compared your code to what i finally got to work and noticed that the line that said echo....text in yours and the others is just a repeat of the upper code.
I tried your code in 1.3.9h and it worked up to the point that both wishlist and add to cart both got sent to cart.
This is the code that I have now that is behaving properly, the add to cart whether logged in or not goes to cart and the wishlist makes you log in prior to adding it to the list.
The message stack does not appear becasue it goes straight to the cart.
Thank you for you help it did help tremendously
Code:<!--bof Wishlist button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) {
if ( $_SESSION['customer_id'] ) {
echo '<div id="productWishlistLink" class="buttonRow back">';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
echo '</div>';
} else {
echo '<div>';
echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
echo '</div>';
}
} else {}
?>
<!--eof Wishlist button -->
Yes it is a repeat because I could not figure out another way for it Not to show the Log In text (removing the text part kept the link from functioning at all)
In case you missed it DarkAngel I think I found the fix for the CSS buttons issue. I posted it on the previous page No 33
Ok I don't quite get it.
I added this module to v1.5.1 and it all it seems to do is add the product to the shopping cart ready for checkout .... am I doing something wrong here?
I'm trying to enlarge the font on the page where there's the options to tell a friend, find a friend's wishlist, etc. It's very small.
Any help is appreciated
Carol
Hi All,
Could someone please help me and save my sanity.. ive spent hours trying to work out whats wrong and getting nowhere :(
I have zc ver 1.5.3. Ive downloaded wishlist and added the files and instead of having the button gif on the product page, I have a link that says UN_BUTTON_WISHLIST_ADD_ALT and when I click the link it adds the product to the cart instead of a wishlist. I have read through this thread so many times and I can see on page 32 someone else had this problem but i can't see a fix for it anywhere. On top of that i can't see anything in relation to the wishlist in my admin, ive looked under configuration and extras and theres nothing :( What am i doing wrong? its probably something so simple but with limited knowledge in zen cart, im not seeing it. Ive uninstalled and reinstalled the mod but nothing has changed. Please if anyone can offer some advice, i'll be sooo grateful!!
Thanks in advance,
Newbie.
Update: I have managed to get wishlist module to appear in the configuration menu and under extras. I had two files in the wrong place :/ when i click on wishlist module under configuration it is blank. There is a horizontal menu with Title, Value and Action headers but nothing else.. i assume there should be..? I assume my problems are caused by having files either missing or misplaced but how will i know which..? my brains frazzled.. any pointers please??
Don't worry. I've decided to uninstall it entirely, maybe I'll try another time but I've had enough of it for now..lol :P
It still needs lots of work before it would be functional unfortunately
It doesn't handle attributes at all.
There is a commercial mod available that does work nicely.
You will need to search for it or PM me for details.
(Its by one of the most prolific contributors here.)
Oh, thank you so much for this! I have been pulling my hair out, trying to understand, and this little bit of SQL fixed the problem of having no way to edit the wishlists. I was ready to chuck it. Now on to the CSS problem. :wacko:
I am so happy you are stubborn! Thank you!:hug:
I have seenthis similar problem described but have not seen anything that fixes the issue
ZenCart 1.5.4 with COWPA and a few other mods installed. Also use a custom template.
Added WishList .09a
Have checked to make sure all is installed properly. DB tables created, Config options set. Sidebox shows on single product pages.
The problem is that clicking the Add to my Wish List button in the sidebox does not result in a product being added to the WishList. I have looked at the db tables and there is no wishlistbeing created and no products added to a wihlist.
There are no error messages being display, no errors posted in /logs and no errors in the php error log.
Does anyone have any ideas
I've been using this module for quite a while with happy customers. I was notified by a customer that the wishlist will only show 10 items. When I click on page 2 I get an empty page. Yes I've made upgrades and changes to my site but I don't know at what point the plug in stopped working correctly.
I'm using 1.55e, Sheffield Responsive Template. I've tried with some other templates and I have the same problem so I don't think it's the template.
Any thoughts?
Carol
I can confirm that this seems to have happened to mine. Does the same thing, but need php 7 really for performance increase. I think all the wishlist variants out there are based on the same base software, so perhaps no other option.
Its okay I wasn't referring to yours also :-). I know you have produced a Favourites Wishlist which is perhaps a combination of the two. I was going to contact you regarding your solution and php support / upcoming 1.6 support possibilities. I need to port over the SQL data for existing wishlist for customers, though perhaps your system is a different structure in this regard.
Regarding just Wishlist for zencart, a mixture of from download, betas from Githubs and from other sites. They all seem to be from the same base code, and not php 7 full support.
Is this mod compatible with 1.5.5?
If not, any other mod available like this?
I would really like to switch to PHP but there is the wishlist problem. I thought there might be another solution.
With PHP 7, the wishlist only shows page one. If there's more than 10 items, it shows a link to page 2 but nothing shows on page 2. It's only listing the 10 items on page 2.
I was wondering if a workaround would be to increase the number of items shown on page 1 so there would be no need for a page 2. I'm stumbling in the dark here as I don't know how to go about it. I tried something on my test site and broke the site (which is why I use a test site).
Any thoughts on how to increase the number of products on the first page.
Thanks
Carol
I managed to fix this, there is a function that needs slightly altering as it is no longer supported in php 7 so you can see the pagination work okay. I don't know how to make it all show on one page I am afraid, might need reworking in the code somehow.
Does this work on ZC 1.5.5?
Thank You,
John
Yes it does. Works on ZC1.5.5 on PHP7.0 just fine.
Hi all,
First hours of 2018 and still struggling to get my shop finalized.
I 'm setting up a store in ZC155 and all seems well so far.
However, testing now everything as (Mister X) I came across a small issue that I like to solve but cannot seem to find.
In the send email to a friend, there is a row that say's:
To view Mister X's Wish List, click on the link below or copy and paste the link into your web browser:
"https://www.misterx.nl/index.php?main_page=wishlist_find&wid=11"
In my received E-mail body, this webpage link is writen in text but not as a clickable link.
In my opinion it should be somewhere in the "includes/modules/pages/wishlist_email/header_php.php" file.
$email_body .= sprintf(TEXT_EMAIL_LINK, $from_name, zen_href_link(UN_FILENAME_WISHLIST_FIND, 'wid=' . $id, 'NONSSL', false));
I have search a lot but cannot find a solution.
Have someone an idea? :please:
Marcel
Hi all,
First hours of the year and still struggling to get all done as I want.
I 'm setting up a store in ZC155 and all seems well so far.
Testing now everything as (Mister X) and came across a small issues that I like to solve but can't seem to find how.
In the "send email to a friend", there is a row that say's:
To view Mister X's Wish List, click on the link below or copy and paste the link into your web browser:
"https://www.misterX.nl/index.php?mai...st_find&wid=11"
However in the received E-mail body, this webpage link is writen in text but not as a clickable link.
In my opinion it should be somewhere in the "includes/modules/pages/wishlist_email/header_php.php" file.
$email_body .= sprintf(TEXT_EMAIL_LINK, $from_name, zen_href_link(UN_FILENAME_WISHLIST_FIND, 'wid=' . $id, 'NONSSL', false));
As I understand, this is what it should be so I'm clueless.
Also when you didn't made a new wishlist yet, the name of the wishlist is at start "Default" and I like to change that, where can I do that?
I have search a lot but cannot find a solution.
Have someone an idea? :please:
Marcel
I am working on a new module for this.
Weird problem, I installed this but it adds to cart instead of a wishlist. Using 1.5.5f anyone?
I think found the problem:
this in tpl_product_info_display.php
Should be:PHP Code:
<!--bof Wishlist button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) { ?>
<div id="productWishlistLink" class="buttonRow back">
<?php echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
?></div>
<?php }
else
{}
?>
<!--eof Wishlist button -->
PHP Code:
<!--bof Wishlist button -->
<?php if (MODULE_WISHLIST_ENABLED) { ?>
<div id="productWishlistLink" class="buttonRow back">
<?php echo '<a href="' . zen_href_link(FILENAME_WISHLIST, 'name=wishlist value=yes', 'SSL') . '">'.
zen_image_button(BUTTON_IMAGE_WISHLIST_ADD, BUTTON_WISHLIST_ADD_ALT);
// <?php echo zen_image_submit(BUTTON_IMAGE_WISHLIST_ADD, BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"');
?></div>
<?php }
else
{}
?>
<!--eof Wishlist button -->
Is "Wishlist" compatible with “Showcase with Prices”?
A friend is asking for advice on building a “Showcase with Prices” Store for Custom Knives he makes. He would like for the User to be able to create a “Wishlist” of showcased parts and customization options for a detailed quote of Price and Turnaround Time on a custom job.
It sounds like the Wishlist addon would work for him, but I am not clear if Wishlist is tied to Shopping Cart or will it also work in Showcase mode? I wanted to know one way or the other before giving him advice. He is very old school - Check or Money Order only with no CC or PayPal so Shopping Cart per se does not sound like a fit for him, as his customers don’t pay until some details are worked out, and then they don’t pay using a Checkout-friendly process.
Hoping this is a very simple question - if not, I can provide a more detailed description of what my friend is trying to do. Thank you in advance for any assistance you can provide.
Still curious as to whether or not Wishlist only works if Shopping Cart is turned on. I viewed the Zucando website demo and I can see and click the "Add to Wishlist" Button on the Product Details page but there is no link to the Wish List itself - is this because the Demo site is set to “Showcase with Prices”?
Most wishlist plugins require that the customer create an account with the store so that their wished-for items can be recorded in their customer record in the database.
lat9 I negelected to thank you for your advice. Revisiting this problem and will be installing/configuring Wish List this week.
I still use 1.3.9h but hopefully someone will tell me what could have gone amiss...I swear that at one time the wishlist images would be clickable, so customer could view the product. Now they are not, could someone please tell me what to add and where or was I imagining the whole click image thing?
This is an old thread, but I'm using this plugin. Is there a way to require an attribute to be selected before adding an item to the attributes? I've tried to get it and can't.
Has anyone successfully been able to get the script to install on 1.56a? I attempted it (copy and paste method) and it gives me an error. If someone has would you mind helping me figure out why it won't install? I am using the responsive classic template. Thanks so much in advance.
If I am not mistaken this plugin was buggy in the beginning, so probably better off using wishpot. There is an integration for that, but that is old as well. I think going to try to implement wishpot instead. Like, I said this didn't work 100 percent from the beginning and had issues.
As far as I can tell wishpot is dead. The only thing that works is their help pages, the main site has apparently been down for quite a while.
The best wishlist mod is Lat9's, it has all of the functionality of the original and even has a conversion script.
If anyone want's to help me with this, here is the github repository.
https://github.com/tmccaff/zencart-wishlists
Does anyone see an issue with this? I am trying to make an auto install script for this module.
Then the init script:PHP Code:
<?php
// -----
// Part of the WishLists plugin, created by Thomas McCaffery
$autoLoadConfig[210][] = array ('autoType' => 'init_script',
'loadFile' => 'init_wishlist_admin.php');
PHP Code:
<?php
// -----
// Part of the Wishlist plugin, created by Thomas McCaffery
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
define('WISHLIST_CURRENT_VERSION', '1.5.6');
define('WISHLIST_CURRENT_UPDATE_DATE', '2019-08-12');
$version_release_date = WISHLIST_CURRENT_VERSION . ' (' . WISHLIST_CURRENT_UPDATE_DATE . ')';
function init_wishlist_next_sort($menu_key)
{
global $db;
$next_sort = $db->Execute('SELECT MAX(sort_order) as max_sort FROM ' . TABLE_ADMIN_PAGES . " WHERE menu_key='$menu_key'");
return $next_sort->fields['max_sort'] + 1;
}
$configurationGroupTitle = 'Wishlist Configuration';
$configuration = $db->Execute("SELECT configuration_group_id FROM " . TABLE_CONFIGURATION_GROUP . " WHERE configuration_group_title = '$configurationGroupTitle' LIMIT 1");
if ($configuration->EOF) {
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION_GROUP . "
(configuration_group_title, configuration_group_description, sort_order, visible)
VALUES ('$configurationGroupTitle', '$configurationGroupTitle', '1', '1');");
$cgi = $db->Insert_ID();
$db->Execute("UPDATE " . TABLE_CONFIGURATION_GROUP . " SET sort_order = $cgi WHERE configuration_group_id = $cgi;");
} else {
$cgi = $configuration->fields['configuration_group_id'];
}
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, set_function) VALUES ('Version/Release Date', 'WISHLIST_MODULE_VERSION', '" . $version_release_date . "', 'The Wishlist version number and release date.', $cgi, 1, now), 'trim(')");
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function ) VALUES ( 'Wishlist Module Switch', 'MODULE_WISHLISTS_ENABLED', 'true', 'Set this option true or false to enable or disable the wishlist', $cgi, 5, now(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')");
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function ) VALUES ( 'Wishlist sidebox header link', 'SIDEBOX_LINK_HEADER', 'true', 'Set this option true or false to make the sidebox header a link to the wishlist page.', $cgi, 6, now(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')");
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function ) VALUES ( 'Wishlist allow multiple lists', 'ALLOW_MULTIPLE_WISHLISTS', 'true', 'Set this option true or false to allow for more than 1 wishlist', $cgi, 7, now(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')");
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function ) VALUES ( 'Wishlist display category filter', 'DISPLAY_CATEGORY_FILTER', 'false', 'Set this option true or false to enable a category filter', $cgi, 8, now(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')");
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function ) VALUES ( 'Wishlist default name', 'DEFAULT_WISHLIST_NAME', 'Default', 'Enter the name you want to be assigned to the initial wishlist.', $cgi, 9, now(), NULL, NULL)");
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function ) VALUES ( 'Wishlist show list after product addition', 'DISPLAY_WISHLIST', 'false', 'Set this option true or false to show the wishlist after a product was added to the wishlist', $cgi, 10, now(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')");
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function ) VALUES ( 'Wishlist display max items in extended view', 'MAX_DISPLAY_EXTENDED', '10', 'Enter the maximum amount of products you want to show in extended view.<br />default = 10', $cgi, 11, now(), NULL, NULL)");
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function ) VALUES ( 'Wishlist display max items in compact view', 'MAX_DISPLAY_COMPACT', '20', 'Enter the maximum amount of products you want to show in extended view.<br />default = 20', $cgi, 12, now(), NULL, NULL)");
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function ) VALUES ( 'Wishlist default view Switch', 'DEFAULT_LIST_VIEW', 'extended', 'Set the default view of the list to compact or extended view', $cgi, 13, now(), NULL, 'zen_cfg_select_option(array(\'compact\', \'extended\'),')");
$db->Execute("INSERT INTO " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function ) VALUES ( 'Wishlist allow multiple products to cart', 'ALLOW_MULTIPLE_PRODUCTS_CART_COMPACT', 'false', 'Set this option true or false to allow multiple products to be moved in the cart via checkboxes in compact view', $cgi, 14, now(), NULL, 'zen_cfg_select_option(array(\'true\', \'false\'),')");
$db->Execute("DROP TABLE IF EXISTS " . TABLE_WISHLISTS . ", " . TABLE_PRODUCTS_TO_WISHLISTS
);
$db->Execute(
"CREATE TABLE " . TABLE_WISHLISTS . " (
id int(11) NOT NULL auto_increment,
customers_id int(11) NOT NULL,
created datetime default NULL,
modified datetime default NULL,
name varchar(255) NOT NULL default '',
comment varchar(255) NOT NULL default '',
default_status int(1) NOT NULL,
public_status int(1) NOT NULL,
PRIMARY KEY (id),
) ENGINE=MyISAM"
);
$db->Execute(
"CREATE TABLE " . TABLE_PRODUCTS_TO_WISHLISTS . " (
products_id int(11) NOT NULL,
wishlists_id int(11) NOT NULL,
created datetime default NULL,
modified datetime default NULL,
quantity int(2) NOT NULL,
priority int(1) NOT NULL,
comment varchar(255) NOT NULL default '',
attributes varchar(255) NOT NULL default '',
PRIMARY KEY (products_id,wishlists_id)
) ENGINE=MyISAM"
);
}
// Register the admin-level pages for use.
//
if (function_exists('zen_page_key_exists')) {
if (!zen_page_key_exists('configWishListModule')) {
zen_register_admin_page('configWishListModule', 'BOX_CONFIGURATION_WISHLIST', 'FILENAME_CONFIGURATION', "gID=$cgi", 'configuration', 'Y', init_wishlist_next_sort ('configuration'));
}
}
If you are looking to upgrade this plugin I would suggest starting with the sql issues. I is not allowing the database tables to be made. I ended up transferring my old table in from previous database. Here is the sql file
Code:# WishList v0.8 SQL Load for MySQL databases
-- CREATE Wish list CONFIGURATION GROUP --
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Wish list';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;
INSERT INTO configuration_group VALUES (NULL, 'Wish list', 'Settings for Wish list', '110', '1');
UPDATE configuration_group SET sort_order = last_insert_id() WHERE configuration_group_id = last_insert_id();
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Wish list';
INSERT INTO configuration VALUES (NULL, 'Wishlist Module Switch', 'UN_DB_MODULE_WISHLISTS_ENABLED', 'true', 'Set this option true or false to enable or disable the wishlist', @t4, 710, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
INSERT INTO configuration VALUES (NULL, 'Wishlist sidebox header link', 'UN_DB_SIDEBOX_LINK_HEADER', 'true', 'Set this option true or false to make the sidebox header a link to the wishlist page.', @t4, 711, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
INSERT INTO configuration VALUES (NULL, 'Wishlist allow multiple lists', 'UN_DB_ALLOW_MULTIPLE_WISHLISTS', 'true', 'Set this option true or false to allow for more than 1 wishlist', @t4, 712, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
INSERT INTO configuration VALUES (NULL, 'Wishlist display category filter', 'UN_DB_DISPLAY_CATEGORY_FILTER', 'false', 'Set this option true or false to enable a category filter', @t4, 713, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
INSERT INTO configuration VALUES (NULL, 'Wishlist default name', 'DEFAULT_WISHLIST_NAME', 'Default', 'Enter the name you want to be assigned to the initial wishlist.', @t4, 714, now(), now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist show list after product addition', 'DISPLAY_WISHLIST', 'false', 'Set this option true or false to show the wishlist after a product was added to the wishlist', @t4, 715, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
INSERT INTO configuration VALUES (NULL, 'Wishlist display max items in extended view', 'UN_MAX_DISPLAY_EXTENDED', '10', 'Enter the maximum amount of products you want to show in extended view.<br />default = 10', @t4, 716, now(), now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist display max items in compact view', 'UN_MAX_DISPLAY_COMPACT', '20', 'Enter the maximum amount of products you want to show in extended view.<br />default = 20', @t4, 717, now(), now(), NULL, NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist default view Switch', 'UN_DEFAULT_LIST_VIEW', 'extended', 'Set the default view of the list to compact or extended view', @t4, 718, now(), now(), NULL, "zen_cfg_select_option(array('compact', 'extended'),");
INSERT INTO configuration VALUES (NULL, 'Wishlist allow multiple products to cart', 'UN_DB_ALLOW_MULTIPLE_PRODUCTS_CART_COMPACT', 'false', 'Set this option true or false to allow multiple products to be moved in the cart via checkboxes in compact view', @t4, 719, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),");
# --------------------------------------------------------
#
# Table structure for table un_wishlists
#
# avoid data loss when reinstall (this will give a table exists error)
# if you want the table to be removed, then reinstalled; uncomment line below
#DROP TABLE IF EXISTS `un_wishlists`;
CREATE TABLE IF NOT EXISTS `un_wishlists` (
`id` int(11) NOT NULL auto_increment,
`customers_id` int(11) NOT NULL default '0',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
`name` varchar(255) default NULL,
`comment` varchar(255) default NULL,
`default_status` tinyint(1) NOT NULL default '0',
`public_status` tinyint(1) NOT NULL default '1',
PRIMARY KEY (`id`)
) TYPE=MyISAM;
INSERT INTO un_wishlists VALUES (1, 0, now(), now(), 'donotuse', 'donotuse', 0, 0);
# --------------------------------------------------------
#
#April 2011 v0.8 added column
#added column for attributes, if you need to just add the column to an existing table use:
#alter table un_products_to_wishlists add column attributes VARCHAR(255);
#in the sql patch tool in zen cart
#
# Table structure for table un_products_to_wishlists
#
# avoid data loss when reinstall (this will give a table exists error)
# if you want the table to be removed, then reinstalled; uncomment line below
#DROP TABLE IF EXISTS `un_products_to_wishlists`;
CREATE TABLE IF NOT EXISTS `un_products_to_wishlists` (
`products_id` int(11) NOT NULL default '0',
`un_wishlists_id` int(11) NOT NULL default '0',
`created` datetime NOT NULL default '0000-00-00 00:00:00',
`modified` datetime NOT NULL default '0000-00-00 00:00:00',
`quantity` int(2) NOT NULL default '1',
`priority` int(1) NOT NULL default '2',
`comment` varchar(255) default NULL,
`attributes` varchar(255) default NULL,
PRIMARY KEY (`products_id`,`un_wishlists_id`)
) TYPE=MyISAM;
My 2 cents. I had to get rid of this plug in because it wasn't compatible with PHP 7 (or whatever the latest PHP is). I had to upgrade to the latest PHP or my entire site wouldn't work. I don't think this plugin is useful anymore. A disclaimer - I'm not a Zencart expert. Just telling my own experience.
I came across a site that uses/likes this mod. The support query I got to look into was to see why attributes aren't being carried over to the shopping cart from the user's wishlist.
Looking through the code (and its evolution over the years), I don't think it ever saved attributes in the wishlist? It looks like that was a future goal, and there's a database column to do so, but reading the plugin code I don't see where that actually happens. In all cases the variable $attributes is just set to an empty string.
Did/Does saving attributes in the wishlist actually work for anyone? I'm going to have to advise the customer to disable the mod.
replace it with this https://vinosdefrutastropicales.com/...products_id=56
It also has a converter for existing customer wishlists.
Is there a modern version of this for v157c ?
I’d like to use a functioning ‘Add to Wish List' Button in place of the non-functioning CSS ‘Out of Stock’ button to keep the shopper on the site as long as possible.
Thanks in advance.
admin/includes/classes/wishlist_productlist_class [ 210 ]
includes/classes/wishlist_productlist_class [214]Code:if ( (!isset($_GET['sort'])) || (!preg_match('/[1-9][ad]/', $_GET['sort'])) || (substr($_GET['sort'], 0, 1) > sizeof($define_list)) ) {
wishlist sql code:Code:if ( (!isset($_GET['sort'])) || (!preg_match('/[1-9][ad]/', $_GET['sort'])) || (substr($_GET['sort'], 0, 1) > sizeof($define_list)) ) {
Good luck!!Code:# WishList v0.8 SQL Load for MySQL databases
-- CREATE Wish list CONFIGURATION GROUP --
SELECT @cid:=configuration_group_id
FROM configuration_group
WHERE configuration_group_title= 'Wish list';
DELETE FROM configuration WHERE configuration_group_id = @cid AND configuration_group_id != 0;
DELETE FROM configuration_group WHERE configuration_group_id = @cid AND configuration_group_id != 0;
INSERT INTO configuration_group VALUES (NULL, 'Wish list', 'Wish list', '1', '1');
SET @cid=last_insert_id();
UPDATE configuration_group SET sort_order = @cid WHERE configuration_group_id = @cid;
INSERT INTO configuration VALUES (NULL, 'Wishlist Module Switch', 'UN_DB_MODULE_WISHLISTS_ENABLED', 'true', 'Set this option true or false to enable or disable the wishlist', @cid, 710, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),",NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist sidebox header link', 'UN_DB_SIDEBOX_LINK_HEADER', 'true', 'Set this option true or false to make the sidebox header a link to the wishlist page.', @cid, 711, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),",NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist allow multiple lists', 'UN_DB_ALLOW_MULTIPLE_WISHLISTS', 'true', 'Set this option true or false to allow for more than 1 wishlist', @cid, 712, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),",NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist display category filter', 'UN_DB_DISPLAY_CATEGORY_FILTER', 'false', 'Set this option true or false to enable a category filter', @cid, 713, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),",NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist default name', 'DEFAULT_WISHLIST_NAME', 'Default', 'Enter the name you want to be assigned to the initial wishlist.', @cid, 714, now(), now(), NULL, NULL,NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist show list after product addition', 'DISPLAY_WISHLIST', 'false', 'Set this option true or false to show the wishlist after a product was added to the wishlist', @cid, 715, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),",NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist display max items in extended view', 'UN_MAX_DISPLAY_EXTENDED', '10', 'Enter the maximum amount of products you want to show in extended view.<br />default = 10', @cid, 716, now(), now(), NULL, NULL,NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist display max items in compact view', 'UN_MAX_DISPLAY_COMPACT', '20', 'Enter the maximum amount of products you want to show in extended view.<br />default = 20', @cid, 717, now(), now(), NULL, NULL,NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist default view Switch', 'UN_DEFAULT_LIST_VIEW', 'extended', 'Set the default view of the list to compact or extended view', @cid, 718, now(), now(), NULL, "zen_cfg_select_option(array('compact', 'extended'),",NULL);
INSERT INTO configuration VALUES (NULL, 'Wishlist allow multiple products to cart', 'UN_DB_ALLOW_MULTIPLE_PRODUCTS_CART_COMPACT', 'false', 'Set this option true or false to allow multiple products to be moved in the cart via checkboxes in compact view', @cid, 719, now(), now(), NULL, "zen_cfg_select_option(array('true', 'false'),",NULL);
# Register the configuration page for Admin Access Control
INSERT IGNORE INTO admin_pages (page_key,language_key,main_page,page_params,menu_key,display_on_menu,sort_order) VALUES ('configZCAWishListModule','BOX_CONFIGURATION_ZCA_WISHLIST','FILENAME_CONFIGURATION',CONCAT('gID=',@cid),'configuration','Y',@cid);
# --------------------------------------------------------
#
# Table structure for table un_wishlists
#
# avoid data loss when reinstall (this will give a table exists error)
# if you want the table to be removed, then reinstalled; uncomment line below
#DROP TABLE IF EXISTS `un_wishlists`;
CREATE TABLE IF NOT EXISTS `un_wishlists` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`customers_id` int(11) NOT NULL,
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL,
`name` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
`comment` varchar(255) CHARACTER SET utf8 DEFAULT NULL,
`default_status` int(1) NOT NULL,
`public_status` int(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=29 ;
# --------------------------------------------------------
#
#April 2011 v0.8 added column
#added column for attributes, if you need to just add the column to an existing table use:
#alter table un_products_to_wishlists add column attributes VARCHAR(255);
#in the sql patch tool in zen cart
#
# Table structure for table un_products_to_wishlists
#
# avoid data loss when reinstall (this will give a table exists error)
# if you want the table to be removed, then reinstalled; uncomment line below
#DROP TABLE IF EXISTS `un_products_to_wishlists`;
CREATE TABLE IF NOT EXISTS `un_products_to_wishlists` (
`products_id` int(11) NOT NULL,
`un_wishlists_id` int(11) NOT NULL,
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL,
`quantity` int(2) NOT NULL,
`priority` int(1) NOT NULL,
`comment` varchar(255) CHARACTER SET utf8 NOT NULL,
`attributes` varchar(255) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`products_id`,`un_wishlists_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=29 ;
I have got this working on ZC V1.5.8 and am just going to upgrade to ZC V1.5.8a and see how it goes and if anyone want this, post here and I'll look a pulling it out of my site and put it together like a addon is.
Just to let you know.
I have this working in a ZC 1.5.8
PM me if you want a copy.
I'm only asking you PM because I'm still setting up my site to go live very soon once that is done I'll have more time.