Jump to content
defender39

Wishlist 2.0 Support Thread

Recommended Posts

Can't find MAX_DISPLAY_WISHLIST_PRODUCTS in includes/application_top but I think it is set there(?)

I think i've used the default settings...

Shop (not live) is on a online webserver...

Edited by osCshop

Share this post


Link to post
Share on other sites

its in your admin configuration, and if this was working before you added in another contribution, you may want to look at that? As the modifications I gave you would not do this, you may want to upload a stock wishlist.php and see if you still get the same error.

Share this post


Link to post
Share on other sites

Found it in includes/configure.php:

  // Wish List 2.3 Start
 define('MAX_DISPLAY_WISHLIST_PRODUCTS', '6'); // How many wishlist items to show per page on the main wishlist.php file
 define('MAX_DISPLAY_WISHLIST_BOX', '4');      // How many wishlist items to display in the infobox before it changes to a counter
 // Wish List 2.3 End

Share this post


Link to post
Share on other sites

very strange, change this line

 

$wishlist_split = new splitPageResults($wishlist_query_raw, MAX_DISPLAY_WISHLIST_PRODUCTS);

 

to this

 

$wishlist_split = new splitPageResults($wishlist_query_raw, 6);

Share this post


Link to post
Share on other sites

Yea undo the change. You have wishlist.php stock right? If it was working before and now its not, you may want to look at what you have done recently. Also make sure everything is right in app_top.php

Share this post


Link to post
Share on other sites

Found something strange: if I go from wishlist to product_info by clicking on a item in wishlist I'm getting this url: http://www (no break but else you cant read the full url) .mydomain.nl/webshop/catalog/product_info.php?file:///C|/Documents%20and%20Settings/me/Mijn%20documenten/folder/oscommerce/Contri/Toegepast/WishList/Wish%20List%20v2.3%20MS2.2/catalog/cPath=21_44&products_id=40

 

How about that :blink: :wacko:

Share this post


Link to post
Share on other sites
Its almost like the page is refreshing before it has time to get the item taken out of the table, or something...
If I remove an item (last item) the error shows up but when I go back with the browserbutton the item is removed.

So it's performing the requested action.

Same thing with add to shopping cart. Except the error everything is working...

Share this post


Link to post
Share on other sites

Hey there,

 

I just went through the install process, and after completeing everythin smoothly - manual install on heavily mod'd store, i came up with this error when loggin in:

 

1146 - Table 'oscom.customers_wishlist' doesn't exist

 

select * from customers_wishlist WHERE customers_id = 2 order by products_name

 

[TEP STOP]

 

Also, if i try to add a product, it gives me this error:

1146 - Table 'oscom.customers_wishlist' doesn't exist

 

delete from customers_wishlist where products_id = '3' and customers_id = '2'

 

[TEP STOP]

I've ran the sql file, as i can see the tables, and all the files have been uploaded/modified per the install instructions.

 

I'm using version 2.3.1.

 

Any ideas on how to fix this???

 

Cheers

Fatmcgav

Share this post


Link to post
Share on other sites

:blush: :blush: Doh, how silly do i feel. I ran the sql file on the wrong db :o:o

Lol. all sorted now, just to make it fit in with the site look.

 

Cheers

 

 

Run the sql file that came with the contribution.

Share this post


Link to post
Share on other sites

Dennis,

Still the same problem :'(

For other contributions I made changes in the following files also used by wishlist:

  • catalog/includes/database_tables.php
  • catalog/includes/application_top.php
  • catalog/product_info.php

Because I'm a PHP-Newbie I can't find something that could cause the error...

Any ideas?

Share this post


Link to post
Share on other sites

osCshop, if you dont have a lot of customization done, I would just start over. Take your time, learn things as you go. Then find where you went wrong at. Or just Install a new osc, and install the wishlist on the base, make sure it works. Then add the other contributions you have added, and find out where it goes wrong. Then compare ;)

Share this post


Link to post
Share on other sites
osCshop, if you dont have a lot of customization done, I would just start over.
:o I've customized the shop almost daily the last 5 months...

Share this post


Link to post
Share on other sites

Well it has to have something to do with something else you have installed? Install a base oscshop in a different folder, different database. Then install the wishlist and make your box change to only display for logged in users with stuff in it. If it works, then its something else you have tinkered with. Then start backtracking.

Share this post


Link to post
Share on other sites

OK, I'll install wishlist in a second (stock) shop.

Because I'm busy with other things it will take some time till I'll start with that, but I'll let you know how it went...

Share this post


Link to post
Share on other sites

I have installed and tested this with no probs.

 

I was wonderings if there is way to get the wishlist infobox to show up even if not logged in. I realize you can't add anything to it until you log in but I still want the box on the right to be there.

 

I tried changing it to "require" in column_right.php but I get an error so anyone have any ideas of how to do this?

Share this post


Link to post
Share on other sites

I think you will get an error regardless cuz when it displays the box, it is looking for a customer id. If none is found, you may get an error (not sure about this). But all you would do is, in column_right.php? you should see the require statement for the wishlist.php right? It should be wrapped in some if statement. Just take out the wrapping of the code so its just require(wishlist.php), you get the idea. If you get an error, which you may, there is a way around it but it requires knowledge of php... Basically, if the user id = 0 (i think thats guest id) then display the wishlist box empty, OR display a message saying, please login to view your wishlist... Something along that line. Anyway, good luck!

 

-Dennis

Share this post


Link to post
Share on other sites
...display the wishlist box empty, OR display a message saying, please login to view your wishlist...

Thats exactly what I would like to do...if possible I'd like it to say "Login in to view your list"...if not "Your list is empty." is ok...

 

If someone can please explain how to do this i would really appreciate it alot.

 

Thanks,

Danny

Share this post


Link to post
Share on other sites

Also, I allready tried the require thing Dennis and got the error so I guess I need a little help doing the "guest id = display the wishlist box empty" thing. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×