Edit3: Sidebox has appeared..
Edit4: Sidebox seems to take me to a wishlist page.. but adding item to wishlist doesn't. Also there is no "see my wishlist" in the my account area. Is there some way I could sort that out?
Edit3: Sidebox has appeared..
Edit4: Sidebox seems to take me to a wishlist page.. but adding item to wishlist doesn't. Also there is no "see my wishlist" in the my account area. Is there some way I could sort that out?
to replace the default image you just need to put the one you made---named exactly as the one being replaced...into the folder of your template
includes/templates/your_template/buttons/english/wishlist_add.gif
then it should show in the store right
I just tried the button--not registered though and it took me to registration/login page so not sure...but yes it has been addressed...somewhere in this section will take a look and see if I can find it
about the other problem make sure you have all the files in the correct places. It should work...recently I had to reupload the files cause with my host move one got corrupted and the admin link under tools was missing...lol these stores have a mind of their own!
@Gothi
did you read these about .09?
What happens when you use the add to cart depends on a few things including your store settings regarding what to do when placing the product in the cart (go to cart or stay on product page). There is also the factor of the attributes: if your products has attributes the add to cart button will take you to the product page. this is currently what we want as product attributes are not saved in the wishlist. Even if these attributes are not mandatory, if there is any attribute option, you will end up on the product page, only if there are no attributes used, again...depending on your store settings... you will end up adding the product to the cart instantly and receive either a message succes in the top header bar or you will be taken to the cart where you will see the product is added.
----------------------------------
So if you want to use the wishlist from 0.9 onwards, you will need to place the add to wishlist button within the form on the product page and you can no longer use the sidebox for adding products to the wishlist. All this is clearly stated in the readme, please correct me if i didn't put it in there?
As previously stated, not all attribute types are fully working as expected yet, if you are using checkboxes or text input, these are treansferred into the class and into the serialized string in the table, but they aren't yet shown on the wishlist itself when you look at the products.
--------------------------------
instructions for file edit:
http://www.zen-cart.com/forum/showpo...1&postcount=50
I've gone through this entire thread and found no answer to my issue.
The code for a user to visit the wishlist page is (as shown in documentation)
<?php if (UN_MODULE_WISHLISTS_ENABLED) { ?>
<a href=""><?php echo UN_HEADER_TITLE_WISHLIST; ?></a>
<?php } else {} ?></li>
However, if you notice the a tag, there is no link code there. Just empty quotes. Can someone shed some light on how to link to the wishlist page ?
Thanks.
I wrote mine like this for the area in the includes/yourtemplate/common/tpl_header.php
I works for whichever customer too :
<!--//wishlist link-->
<li><a href="http://your_shop_link_here/index.php?main_page=wishlist">View Wishlist</a></li>
<!--//end wishlist link-->
or you can add the http bit to the actual coding for yours when you put it where you want it to show. AND leave off the <li> tags if yours in not in list order...sorry
Know this is on the "ToDo" list, but had client want ability to add to Wish List for cart. Sharing changes encase it is helpful to others.
Modify tpl_shoppign_cart_defualt.php to add new column to product display table. Around line 52.
Add line to header row of table.
Then add new cell to tableCode:<table border="0" width="100%" cellspacing="0" cellpadding="0" id="cartContentsDisplay"> <tr class="tableHeading"> <th scope="col" id="scQuantityHeading"><?php echo TABLE_HEADING_QUANTITY; ?></th> <th scope="col" id="scUpdateQuantity"> </th> <th scope="col" id="scWishList"> </th> <th scope="col" id="scProductsHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th> <th scope="col" id="scUnitHeading"><?php echo TABLE_HEADING_PRICE; ?></th> <th scope="col" id="scTotalHeading"><?php echo TABLE_HEADING_TOTAL; ?></th> <th scope="col" id="scRemoveHeading"> </th> </tr>
I did add the new class cartWishList, to styles.css with a few items.Code:<!-- Add Wish List Button 8/20/2011 --> <td class="cartWishList"> <?php // start wishlist link if (UN_MODULE_WISHLISTS_ENABLED) { // first step clean up the Product ID: starting array string is sturctured like producID:numberic string. $productID = substr($product['id'],0,strcspn($product['id'],':')); //strips numeric string after : echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, 'products_id=' . $productID . '&action=wishlist_cartAdd_product') . '">' . UN_TEXT_ADD_WISHLIST .'</a>'; } // end wishlist link ?> </td> <!-- EOF Wish List Button -->
I did not want the redirect back to the product when the item was added. So create a new case option in wishlist_cart_actions.php New case is named wishlist_cartAdd_product. Note the redirect is back to the shopping cart.
Hope this may help others. However, this has not been tested on any other configurations other than what I am using in this one store (1.3.8a), make backups, use at your own risk, blah, blah, blah...Code:case 'wishlist_cartAdd_product': global $messageStack; if (!$_SESSION['customer_id']) { $_SESSION['navigation']->set_snapshot(); zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL')); } if ($_SESSION['customer_id'] && isset($_GET['products_id'])) { // use wishlist class require_once(DIR_WS_CLASSES . 'wishlist_class.php'); $oWishlist = new un_wishlist($_SESSION['customer_id']); $oWishlist->addProduct($_GET['products_id']); } if ( DISPLAY_WISHLIST == 'true' ) { zen_redirect(zen_href_link(UN_FILENAME_WISHLIST)); } else { $messageStack->add_session('header', SUCCESS_ADDED_TO_WISHLIST_PRODUCT, 'success'); zen_redirect(zen_href_link(FILENAME_SHOPPING_CART)); } break;![]()
I have also searched this thread and have not found my problem listed. I previously had an older version of this module installed on my site. I went through the instructions and uninstalled/deleted everything, then ran the uninstall sql patch file. I then ran the new install sql file and added the new files for the .09 version. But when I run the sql patch file I get this error:
Does anyone know what this means and how I can fix it?Code:1062 Duplicate entry '1' for key 'PRIMARY' in: [INSERT INTO znc_un_wishlists VALUES (1, 0, now(), now(), 'donotuse', 'donotuse', 0, 0);] 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.
The sidebox is showing up just fine, but when I click to add a product to the wish list, it takes me to my wish list and tells me that nothing has been added. Any help here would be very much appreciated.