Zen Cart Logo

wishlists 0.6

Views: 36,333

Results 1 to 20 of 236
17 Mar 2011, 9:51 AM
#1
nagelkruid avatar

nagelkruid

Zen Follower

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

wishlists 0.6

This mod hadn't been touched by an awful long time so this was a nice opportunity for me to fix most of the bugs that have been noted in the past by the forum members and revamp the current 0.5 version into a "smoother" 0.6 version...

There are no new features released in this version, so the add-on is still demanding the transfer of attributes to the wishlist which would take the module to the next level when integrated.
Untill that is implemented, there are now admin controllable options to disable the multiple add option so customers are forced to go to the products page first and select the proper attributes before they can add the product to their cart.

Lets look at the list of changes so you can get a grasp of what i am talking about:

  • moved template files to correct directory to avoid errors like google_analytics includes or other template related issues
  • renamed tpl_product_info_display.php to EXAMPLEtpl_product_info_display.EXAMPLE to avoid overwrite core file
  • added example page for showing wishlist in header.php
  • fixed price from: not shown when not applicable
  • default images on extended list view are shown in small format of store
  • Added DB_PREFIX to database table definitions (AGAIN v0.41!)
  • renamed filenames so pages wont appaer as un_wishlist.php and so on in the URL bar.
  • added items todo for next version in readme
  • changed hard coded text in several files to defines in language files, now ready for multiple languages!
  • added option to change default listname in admin
  • implemented option to switch module on/off in admin
  • implemented more options in admin to control features in the wish list
  • added unistall.sql to easily undo changes in the database
  • added back button to several pages for better navigation
  • added option to stay on product page when product is added (instead of showing the list)
  • changed max products for extended/compact views into admin config options
  • sidebox title is now optional link to the wish list page
  • wishlist default the view to the "compact" or "extended" from admin.
  • sold out products or call for price are now showing correct button in wish list (extended view)
  • added admin control to disable the option to add multiple products at once in compact view. (to avoid problems with atributes)
  • fixed bug that would direct to search form when clicking on 2nd page link of friends list.

There is a dark side to the big turnaround, if you are allready using a previous version of this module, all of the previous files will have to be removed from your store as the naming conventions didn't make sense to me and i have chosen to name most of them wishlist_ instead of un_. You only will have to do this once as i son't anticipate that these filenames will ever be changed again, making possible future version as simple as overwriting existing files...
Just take a good note of the uninstall instructions in the readme, delete the files listed in there and you should be good to go. If you have modified the css and button, and/or language files, be sure to keep them and rename yours to the new naming convention used. Do check language files as there are some added defines that will be needed to run the module as expected.

I am currently uploading version 0.6 to the download section of this forum, once it is approved it should appear and you can download it from there.

If you can't wait, send me a PM i will give you a link for an alternative download.

enjoy!

18 Mar 2011, 10:51 AM
#2
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: wishlists 0.6

the database problem
This post is for the people that have allready installed an older version and are having (or had) trouble with the database tables used in this module.

Basicly the original module did not anticipate for the DB_PREFIX to be used and this has created the problem, according to the changelog this was fixed in v0.41 but apparently reintroduced in v0.5.

Depending on whatever post you have read on this forum you may have gone 2 ways: add the DB_PREFIX var to your define_tables file, or you may have removed the prefix from your actual tables by doing some hard work in your phpadmin.

depending on what you want you may go 2 ways:

  • accept to start over with empty tables and let your customers create wishlists from scratch
  • copy the data from the old tables to the new <correcly named> tables
    First you need to see if you are using new tables or correct ones: Go in admin-->extras-->wishlists and see if it lists any.
    If the page is empty you will know you need to make the decision outlined above.

copy data from old to new tables
You will need to work in phpadmin for this as running this via the sql patch tool is simply not possible.
Login to phpmyadmin and select your database, now check the table names on the left side, you will see 4 tables related to the wishlist module:

whatever your dbprefix is, that will need to be used in the statements that you need to execute, for this example i will assume your prefix is zen_

so you have four tables related to the wishlist:
un_wishlists
un_products_to_wishlists
zen_un_wishlists
zen_un_products_to_wishlists

to copy the info from the old tables into the correct new ones execute this code for the above example:

---insert data into <correct tables>
insert into zen_un_wishlists select * from un_wishlists;
insert into zen_un_products_to_wishlists select * from un_products_to_wishlists;

thats it. verify your customer data has been transferred succesful and you are good to go.
You may optionally delete the incorrect tables with the drop statement if you like to have a clean house.

18 Mar 2011, 6:42 PM
#3
darkangel avatar

darkangel

Totally Zenned

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

Re: wishlists 0.6

I tried it in my test store and the database transfer of info did no good, the items still won't show---but sometimes the test store is stubborn...lol

I did install it in my live store -- see link in signature -- and it is working wonderfully complete with link in navigation menu. Note: I did have to adjust it because the name would not show right...no big deal.

The actual button is able to be moved to the location you want...I put mine up further vs down at the bottom.

Other than the nut in the chair everything went through marvelously. I did have to transfer the data from the old tables to the new but that was easy, then everything showed in the admin section in both places...under configuration and extras.

The different settings are great. Thanks for the update and this wonderful mod and if I was with income I would donate to you for your efforts. :clap:

19 Mar 2011, 1:10 AM
#4
darkangel avatar

darkangel

Totally Zenned

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

Re: wishlists 0.6

How does one go about making the sort order drop box a bit wider so all the wording shows?

19 Mar 2011, 10:21 AM
#5
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: wishlists 0.6

DarkAngel:

How does one go about making the sort order drop box a bit wider so all the wording shows?
Go into /includes/languages/english/extra_definitions/wishlist_defines.php and change the value from "Products Name" to "Name"

define('UN_TABLE_HEADING_PRODUCTS', 'Name');
19 Mar 2011, 6:42 PM
#6
darkangel avatar

darkangel

Totally Zenned

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

Re: wishlists 0.6

nagelkruid:

Go into /includes/languages/english/extra_definitions/wishlist_defines.php and change the value from "Products Name" to "Name"

define('UN_TABLE_HEADING_PRODUCTS', 'Name');


Oh my goodness, need I tell you how many things I have custom named for one reason or another...totally did not even think of it this time. Got cross eyed trying css and looking for "form" info eveywhere.

thanks will do that now.
20 Mar 2011, 9:14 PM
#7
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: wishlists 0.6

Just found annoying problem with the button code in two template files that will disable the add to cart function from the list.
version 0.7 will fix this, available from the downloads section or get it from here while it is waiting for approval in the next week.

21 Mar 2011, 5:11 AM
#8
darkangel avatar

darkangel

Totally Zenned

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

Re: wishlists 0.6

nagelkruid:

Just found annoying problem with the button code in two template files that will disable the add to cart function from the list.
version 0.7 will fix this, available from the downloads section or get it from here while it is waiting for approval in the next week.

just to make sure...cause lord knows i get things backwards at times, this is what I did

removed all .06 files
uploaded .07 files
fixed the css file to match my store colors

now since the sql is already in place--was I supposed to run it? I did not

now for the question....click on add to cart button while in wishlist --- it is supposed to add it to the shopping cart, even if empty??

mine takes me to product page not add to shopping cart

did I forget a step?

21 Mar 2011, 11:07 AM
#9
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: wishlists 0.6

DarkAngel:

just to make sure...cause lord knows i get things backwards at times, this is what I did

removed all .06 files
uploaded .07 files
fixed the css file to match my store colors

now since the sql is already in place--was I supposed to run it? I did not

now for the question....click on add to cart button while in wishlist --- it is supposed to add it to the shopping cart, even if empty??

mine takes me to product page not add to shopping cart

did I forget a step?
Hello DarkAngel,

No need to run the sql, there were no changes in there, only changes were in a few template files and a languange define addition, so you should be just fine.

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.

Hope that helps :smile:
thanks,
jeroen

21 Mar 2011, 6:42 PM
#10
darkangel avatar

darkangel

Totally Zenned

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

Re: wishlists 0.6

ahhhha, then it is doing its thing right. yippeee! now to hunt the page to add that little tidbit to the page for there will be "that someone" which will let me know it is not working right...lol

21 Mar 2011, 7:20 PM
#11
manage_it avatar

manage_it

Inactive

Join Date:
May 2006
Posts:
80
Plugin Contributions:
0

Re: wishlists 0.6

I would like to have a wishlist module that also visitors can save a wishlist and not only my customers (with account).

The biggest webshop in the Netherlands is https://www.bol.com and there you also do not need a wishlist.

Is this possible? Or can it be added to the wishlist of the next version of this great module?

21 Mar 2011, 8:01 PM
#12
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: wishlists 0.6

manage-it:

I would like to have a wishlist module that also visitors can save a wishlist and not only my customers (with account).

The biggest webshop in the Netherlands is www.bol.com and there you also do not need a wishlist.

Is this possible? Or can it be added to the wishlist of the next version of this great module?
On my personal wishlist for this module:

  • add attributes
  • enable wishlist for guests

it is even listed in the readme as something i will want and probably will implement. But given the hours i loose in just removing known bugs...

but have to agree with you, would take the module to a higher level indeed. be careful what you wish for :cool:

2 Apr 2011, 11:22 PM
#13
ekon79 avatar

ekon79

New Zenner

Join Date:
Jan 2011
Posts:
29
Plugin Contributions:
0

Re: wishlists 0.6

Hi,

Do you know how can I make it so that the user is forced to login/create an account before adding items to the wishlist?

Thanks! :smile:

3 Apr 2011, 9:09 AM
#14
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: wishlists 0.6

ekon79:

Hi,

Do you know how can I make it so that the user is forced to login/create an account before adding items to the wishlist?

Thanks! :smile:
Hello,

It is impossible to create a wishlist without being logged in at this time :cool:

3 Apr 2011, 5:41 PM
#15
ekon79 avatar

ekon79

New Zenner

Join Date:
Jan 2011
Posts:
29
Plugin Contributions:
0

Re: wishlists 0.6

Each product in my website has an attribute "size", how can I extract in the wishlist page the size that the user has chosen?

3 Apr 2011, 5:52 PM
#16
ekon79 avatar

ekon79

New Zenner

Join Date:
Jan 2011
Posts:
29
Plugin Contributions:
0

Re: wishlists 0.6

This mod is in my opinion incomplete. The user should always be able to see the size or any other attribute that they chose in the main product page, in the wishlist, there shouldn't be a need for them to put in the "comments" that they want such and such size. Also, the "Add to Cart" button just takes you back to the main product page, again, wrong, clicking this button should place the product in the shopping cart and delete it from the wishlist. These are two very important action of any wishlist, as it stands, this mod is not really satisfying the requirements of a wishlist.

3 Apr 2011, 8:08 PM
#17
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: wishlists 0.6

ekon79:

This mod is in my opinion incomplete. The user should always be able to see the size or any other attribute that they chose in the main product page, in the wishlist, there shouldn't be a need for them to put in the "comments" that they want such and such size. Also, the "Add to Cart" button just takes you back to the main product page, again, wrong, clicking this button should place the product in the shopping cart and delete it from the wishlist. These are two very important action of any wishlist, as it stands, this mod is not really satisfying the requirements of a wishlist.
i agree, the points you raise are valid and are clearly stated in the readme, the reason you are redirected to the product page instead of the product gets added to the cart is because your product needs an attribute (like the size) before it can be added to the cart.

I want to rewrite the module so the products attribute gets written with the add to wishlist action so you can add the product from the wishlist with attributes to the cart instantly.

At this point this is not the case so in that sense i would have to agree the module is incomplete at this time.

3 Apr 2011, 10:04 PM
#18
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: wishlists 0.6

nagelkruid:

Hello,
It is impossible to create a wishlist without being logged in at this time :cool:
I stand corrected :blush:
If you add the link to the product page and then use that link it is actually possible to add an item without being logged in.
previously you were always redirected to the wishlist page which requires a login.

an easy edit to correct it:
find includes/extra_cart_actions/wishlist_cart_actions.php
around line 11 find this text:

// Add item to wishlist
        case 'un_add_wishlist':

and change to:

// Add item to wishlist
        case 'un_add_wishlist':
            if (!$_SESSION['customer_id']) {
                $_SESSION['navigation']->set_snapshot();
                zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
            }
28 Apr 2011, 2:26 PM
#19
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: wishlists 0.6

you have asked for it, now it's here.
attribute support.
wishlist 0.9 should appear in downloads within a week.
for those who can't wait:
wishlist_09

let me know if you like it

28 Apr 2011, 6:22 PM
#20
darkangel avatar

darkangel

Totally Zenned

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

Re: wishlists 0.6

So is the correction in your previous post for not allowing an unlogged in person wishlist access added and will this new version "attribute support" mean that when they click to add to cart it will go to the shopping cart and not the product page?