If this is your first visit, check our documentation. To post, register or login.

wishlists 0.6

Started by nagelkruid on 17 Mar 2011, 9:51 AM · Views: 36,457

Results 101 to 120 of 236
27 Nov 2011, 5:20 PM
#101
greenhat avatar

greenhat

Zen Follower

Join Date:
May 2007
Posts:
108
Plugin Contributions:
0

wishlists 0.6

Just installed this module few days ago. It works great ! Thank you for this contribution!

There are a few kinks that needed to be worked out. Finally resolved them and here are my solutions in case someone finds this useful.

  1. Problem #1:
    if not logged in, adding an item to wishlist sends you to shopping cart after logging in. There was a solution to ask people to login first, but i did not like that. I found this code to work perfectly well instead:
<!--bof Wishlist button -->
<?php
if (UN_MODULE_WISHLISTS_ENABLED) {
echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, 'products_id=' . (int)$_GET['products_id'] . '&action=wishlist_add_product', 'NONSSL') . '">' .  zen_image_button(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"') . '</a>';
}
?>
<!--eof Wishlist button -->
  1. wishlist default template has 'SSL' hard coded which may result in switching to SSL when it's not needed.
    Solution is to find and replace every instance of 'SSL' by $request_type in tpl_wishlist_default.php file .

  2. two calls to zen_href_link function in wishlist default template have a bug in them, which results in "Security Warning" in certain situations.

in file tpl_wishlist_default.php need to replace the following lines:

        <?php echo zen_draw_form('wishlist', zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action'), 'SSL') . 'action=un_update_wishlist')); ?>

by

        <?php echo zen_draw_form('wishlist', zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action')) . 'action=un_update_wishlist', $request_type)); ?>

and

echo zen_draw_form('cart_quantity', zen_href_link(UN_FILENAME_WISHLIST,  zen_get_all_get_params(array('action'), 'SSL') . 'action=add_product'));

by

        echo zen_draw_form('cart_quantity', zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action')) . 'action=add_product', $request_type));
28 Nov 2011, 7:22 AM
#102
nagelkruid avatar

nagelkruid

Zen Follower

Join Date:
Nov 2006
Posts:
284
Plugin Contributions:
0

Re: wishlists 0.6

greenhat:

There are a few kinks that needed to be worked out. Finally resolved them and here are my solutions in case someone finds this useful.
excellent input, thanks a lot for sharing!

1 Dec 2011, 6:22 PM
#103
sent avatar

sent

New Zenner

Join Date:
Nov 2011
Posts:
6
Plugin Contributions:
0

Re: wishlists 0.6

DarkAngel:

what version of zencart are you using and which version of wishlist?

As I wrote in my first post, I have just recently downloaded all the software so I would assume it is the latest versions?

Anyhow these are the versions

Zen cartgv1.3.9h

Wishlist 0.9

1 Dec 2011, 9:52 PM
#104
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: wishlists 0.6

Sent:

As I wrote in my first post, I have just recently downloaded all the software so I would assume it is the latest versions?

Anyhow these are the versions

Zen cartgv1.3.9h

Wishlist 0.9

that is what I thought but I have learned never to take it for granted and ask anyway.

that was supposed to be fixed with that version. I use 1.6

let me look at my notes and see what I find, hang in there

1 Dec 2011, 10:55 PM
#105
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: wishlists 0.6

@Sent

I looked and my files are gone that I had my notes on---might have been on hard drive that died...lol

but going thru the posts I found :

from nagelkruid:
You may not have uploaded all files or some of the files are not uploaded correctly or are in the wrong place.

Specifically, you will need to check the file in includes/extra_cart_actions which should pick up the action from this button

and

delia's post here---> http://www.zen-cart.com/forum/showpost.php?p=1035431&postcount=50

those might help some, I also found that the sidebox does not work with .09 too plus the code needs to be within the form on the product page

12 Dec 2011, 4:50 PM
#106
vinnyna avatar

vinnyna

New Zenner

Join Date:
Nov 2011
Posts:
30
Plugin Contributions:
0

Re: wishlists 0.6

Install / config issue
Hi All,
I need some help with the Wishlist 0.9 module. I have Zen cart v1.3.9h installed with a custom template.
I followed all the instruction and got the following working;

  1. On the products page. I get the User not logged in message therefore user asked to log in to save to wish list. I login with a test user account.
  2. After I log in and I then get a add to my wishlist icon and I click on it and I get the wish list page. where I can see all wish list stuff. So far so good...
  3. I click on the home page and continue to shop.
  4. How ever I cannot find a way go to go back to the wish list page unless I select another product and add that to the wishlist.
  5. I looked in my 'View Accounts' page and there is no reference to my wish list.
  6. I could not find the wishlist page reference in the site map.

I am not sure what I missed with the install but could someone point to me where I can can go to

a) have the wish list displayed in the side boxed or central section?
b) the wish list displayed in the 'view Accounts' page?
c) Have the wishlist displayed in the site map details?

I am not a programmer and new to Zen cart any help is much appreciated.

Many thanks
Vinny

12 Dec 2011, 11:44 PM
#107
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: wishlists 0.6

vinnyna:

Install / config issue
Hi All,
I need some help with the Wishlist 0.9 module. I have Zen cart v1.3.9h installed with a custom template.
I followed all the instruction and got the following working;

  1. On the products page. I get the User not logged in message therefore user asked to log in to save to wish list. I login with a test user account.
  2. After I log in and I then get a add to my wishlist icon and I click on it and I get the wish list page. where I can see all wish list stuff. So far so good...
  3. I click on the home page and continue to shop.
  4. How ever I cannot find a way go to go back to the wish list page unless I select another product and add that to the wishlist.
  5. I looked in my 'View Accounts' page and there is no reference to my wish list.
  6. I could not find the wishlist page reference in the site map.

I am not sure what I missed with the install but could someone point to me where I can can go to

a) have the wish list displayed in the side boxed or central section?
b) the wish list displayed in the 'view Accounts' page?
c) Have the wishlist displayed in the site map details?

I am not a programmer and new to Zen cart any help is much appreciated.

Many thanks
Vinny

I still use a previous version and never noticed the thing won't show in account info but in the read me it tells you where to place a link in the navigation menu

Mine also is custom...not purchase type of custom either...lol

I placed this as the link:

http://fantasiesrealm.com/market/index.php?main_page=wishlist

it shows all the time so if it does not appear in my account they can still access it.

You can place a link at the top of your store...in the define_main file or in the side box where other links are or as an ezpage too.

but the code is in the readme...not near it right now.

I have mine as:

<a href=http://fantasiesrealm.com/market/index.php?main_page=wishlist>View Wishlist</a>
``` this is the way I added it and it will send them to log in if not already logged in, then  it should auto send them to the wishlist after they log in.

not sure but if you mean put the wsishlist itself into a sidebox...at one time that did not behave, especially if you have attributed items.

click the link below to see how I did mine
14 Dec 2011, 1:24 PM
#108
vinnyna avatar

vinnyna

New Zenner

Join Date:
Nov 2011
Posts:
30
Plugin Contributions:
0

Re: wishlists 0.6

Thanks Dark Angel

I edited the file
/includes/templates/my_template/templates/tpl_account_default.php

added the below

<a href="/index.php?main_page=wishlist"> <b> My Wish list</b></a>

after these lines

<?php } ?> </table> <?php } ?> <br class="clearBoth" /> <div id="accountLinksWrapper" class="back"> <h2><?php echo MY_ACCOUNT_TITLE; ?></h2> <ul id="myAccountGen" class="list"> <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></li> <li><?php echo ' <a href="' . zen_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . MY_ACCOUNT_ADDRESS_BOOK . '</a>'; ?></li> <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL') . '">' . MY_ACCOUNT_PASSWORD . '</a>'; ?></li> </ul>

Looks good to me now.
Thanks

14 Dec 2011, 9:10 PM
#109
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: wishlists 0.6

vinnyna:

Thanks Dark Angel

I edited the file
/includes/templates/my_template/templates/tpl_account_default.php

added the below

<a href="/index.php?main_page=wishlist"> <b> My Wish list</b></a>

after these lines

<?php } ?> </table> <?php } ?> <br class="clearBoth" /> <div id="accountLinksWrapper" class="back"> <h2><?php echo MY_ACCOUNT_TITLE; ?></h2> <ul id="myAccountGen" class="list"> <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></li> <li><?php echo ' <a href="' . zen_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . MY_ACCOUNT_ADDRESS_BOOK . '</a>'; ?></li> <li><?php echo ' <a href="' . zen_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL') . '">' . MY_ACCOUNT_PASSWORD . '</a>'; ?></li> </ul>

Looks good to me now.
Thanks

yay you, it all depends on where you want it to show and what template you have at times

27 Dec 2011, 4:03 AM
#110
neparker avatar

neparker

New Zenner

Join Date:
Apr 2009
Posts:
79
Plugin Contributions:
0

Re: wishlists 0.6

I'm getting the following when I try to upload and run
wishlist.sql

1062 Duplicate entry '1' for key 1
in:
[INSERT INTO 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.

Any suggestions?

27 Dec 2011, 4:23 AM
#111
neparker avatar

neparker

New Zenner

Join Date:
Apr 2009
Posts:
79
Plugin Contributions:
0

Re: wishlists 0.6

Nevermind, ignore the above...

The image or text is not displaying between the write a review and tell a friend, how do I get it there, is that by default?

27 Dec 2011, 5:25 AM
#112
neparker avatar

neparker

New Zenner

Join Date:
Apr 2009
Posts:
79
Plugin Contributions:
0

Re: wishlists 0.6

Now I get the following error when you click to add a product to the wishlist.

1054 Unknown column 'attributes' in 'field list'
in:
[INSERT INTO un_products_to_wishlists ( products_id, un_wishlists_id, created, modified, quantity, priority, comment, attributes ) VALUES ( '6449', '2', NOW(), NOW(), '1', '2', '', '' )]

27 Dec 2011, 5:53 AM
#113
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: wishlists 0.6

neparker:

I'm getting the following when I try to upload and run
wishlist.sql

1062 Duplicate entry '1' for key 1
in:
[INSERT INTO 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.

Any suggestions?

how many times have you tried running the sql and is it thru admin or directly into phpMYadmin

27 Dec 2011, 5:56 AM
#114
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: wishlists 0.6

neparker:

Now I get the following error when you click to add a product to the wishlist.

1054 Unknown column 'attributes' in 'field list'
in:
[INSERT INTO un_products_to_wishlists ( products_id, un_wishlists_id, created, modified, quantity, priority, comment, attributes ) VALUES ( '6449', '2', NOW(), NOW(), '1', '2', '', '' )]

cart version?

wishlist version?

any other mod installed?

have you tried uninstalling, then reinstalling again ?

have you made sure all the files are uploaded

and more important...link to the store would be nice

27 Dec 2011, 5:57 AM
#115
neparker avatar

neparker

New Zenner

Join Date:
Apr 2009
Posts:
79
Plugin Contributions:
0

Re: wishlists 0.6

I realized I didn't need to run it again which is why I said nevermind, but now I get this error when I click add to wishlist to add it.

1054 Unknown column 'attributes' in 'field list'
in:
[INSERT INTO un_products_to_wishlists ( products_id, un_wishlists_id, created, modified, quantity, priority, comment, attributes ) VALUES ( '6354', '2', NOW(), NOW(), '1', '2', '', 'a:5:{i:1;s:1:"1";i:2;s:1:"2";i:3;s:1:"3";i:4;s:1:"4";i:5;s:1:"5";}' )]

27 Dec 2011, 5:59 AM
#116
neparker avatar

neparker

New Zenner

Join Date:
Apr 2009
Posts:
79
Plugin Contributions:
0

Re: wishlists 0.6

wishlist version? .9

any other mod installed? no

have you tried uninstalling, then reinstalling again ? yes, I removed the old wishlist version then installed the new wishlist version

have you made sure all the files are uploaded, yes, several times. I thought that was why I was getting the problem so I did verify they were all there and in the right place.

and more important...link to the store would be nice.
you would have to create an account to log into the store, but it's https://www.stufftoscrap.com/store

27 Dec 2011, 6:07 AM
#117
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: wishlists 0.6

neparker:

wishlist version? .9

any other mod installed? no

have you tried uninstalling, then reinstalling again ? yes, I removed the old wishlist version then installed the new wishlist version

have you made sure all the files are uploaded, yes, several times. I thought that was why I was getting the problem so I did verify they were all there and in the right place.

and more important...link to the store would be nice.
you would have to create an account to log into the store, but it's www.stufftoscrap.com/store

will do that but also you said you uninstalled the old version...did you have one previous version of a different number? if so then are you sure you removed all of its files totally.

27 Dec 2011, 6:09 AM
#118
neparker avatar

neparker

New Zenner

Join Date:
Apr 2009
Posts:
79
Plugin Contributions:
0

Re: wishlists 0.6

Yes, I am completely sure I removed all the old files.

DarkAngel:

will do that but also you said you uninstalled the old version...did you have one previous version of a different number? if so then are you sure you removed all of its files totally.

27 Dec 2011, 6:14 AM
#119
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: wishlists 0.6

neparker:

wishlist version? .9

any other mod installed? no

have you tried uninstalling, then reinstalling again ? yes, I removed the old wishlist version then installed the new wishlist version

have you made sure all the files are uploaded, yes, several times. I thought that was why I was getting the problem so I did verify they were all there and in the right place.

and more important...link to the store would be nice.
you would have to create an account to log into the store, but it's www.stufftoscrap.com/store

it acts like you tried to install the sql twice at least or over the last one. Have you tried to uninstall the sql then reinstall it?

27 Dec 2011, 6:25 AM
#120
neparker avatar

neparker

New Zenner

Join Date:
Apr 2009
Posts:
79
Plugin Contributions:
0

Re: wishlists 0.6

Ok...

I uninstalled .sql for the old one and for the new one - verified wishlist wasn't on the site, then reinstalled the new .9 .sql.

Same error.

1054 Unknown column 'attributes' in 'field list'
in:
[INSERT INTO un_products_to_wishlists ( products_id, un_wishlists_id, created, modified, quantity, priority, comment, attributes ) VALUES ( '6342', '1', NOW(), NOW(), '1', '2', '', 'a:5:{i:1;s:1:"1";i:2;s:1:"2";i:3;s:1:"3";i:4;s:1:"4";i:5;s:1:"5";}' )]

When I change the tpl_product_info_display.php for the wislist from

<!--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>'; <!--eof Wishlist button --> to <!--bof Wishlist button --> <?php if (UN_MODULE_WISHLISTS_ENABLED) { echo '<a href="' . zen_href_link(UN_FILENAME_WISHLIST, 'products_id=' . (int)$_GET['products_id'] . '&action=wishlist_add_product', 'NONSSL') . '">' . zen_image_button(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"') . '</a>'; } ?> <!--eof Wishlist button -->

then I get error: 1054 Unknown column 'attributes' in 'field list'
in:
[INSERT INTO un_products_to_wishlists ( products_id, un_wishlists_id, created, modified, quantity, priority, comment, attributes ) VALUES ( '6342', '1', NOW(), NOW(), '1', '2', '', '' )]

before I changed it to something else, can't remember or find it right now, and it brought me back to the wishlist (mine as the customer), but I couldn't add the product, but at least I didn't get an error.