Zen Cart Logo
Forums / All Other Contributions/Addons / WishList v0.4 -- v1.3.7 compatible

WishList v0.4 -- v1.3.7 compatible

Locked

Views: 67,642

Results 21 to 40 of 303
This thread is locked. New replies are disabled.
27 Jun 2007, 5:38 PM
#21
linux avatar

linux

Zen Follower

Join Date:
Apr 2004
Posts:
173
Plugin Contributions:
0

WishList v0.4 -- v1.3.7 compatible

untitled:

I have another question if that's okay.

I have added "Add To My Wishlist" at the bottom of each product page but instead of a link I would like it be that gray box like you had on the first distribution. It use to show up on the side. I tried looking through the files and got lost. :(. I don't want a sidebox. I hope I explained it ok.

27 Jun 2007, 6:14 PM
#22
untitled avatar

untitled

New Zenner

Join Date:
Feb 2004
Posts:
61
Plugin Contributions:
1

Re: WishList v0.4 -- v1.3.7 compatible

Linux:

I have added "Add To My Wishlist" at the bottom of each product page but instead of a link I would like it be that gray box like you had on the first distribution. It use to show up on the side. I tried looking through the files and got lost. :(. I don't want a sidebox. I hope I explained it ok.

Sounds like you want a "form button", as is used in the sidebox. That would require a little more effort. I'd recommend simply "styling" the link as desired. For example:

<?php 
// (un): start wishlist link
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') . '" style="background:#ccc; padding: 5px;">' . UN_TEXT_ADD_WISHLIST . '</a>'; 
// (un): end wishlist link
?>

Notice I added some CSS to the <a> element via the "style" attribute. You can use inline style definitions like this or external style sheets to control the appearance of any link. You might want to check out the following site for more info: http://www.w3schools.com/css/css_intro.asp

Another option is to create an image. Replace "UN_TEXT_ADD_WISHLIST" with your image tag and you have complete control over the appearance of the "link".

27 Jun 2007, 8:03 PM
#23
linux avatar

linux

Zen Follower

Join Date:
Apr 2004
Posts:
173
Plugin Contributions:
0

Re: WishList v0.4 -- v1.3.7 compatible

I add this to tpl_product_info_display.php

<?php // (un): start wishlist link 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_TEXT_ADD_WISHLIST) . '</a>'; // (un): end wishlist link ?>

and nothing is showing up. :(

sorry for all the questions.

27 Jun 2007, 8:15 PM
#24
untitled avatar

untitled

New Zenner

Join Date:
Feb 2004
Posts:
61
Plugin Contributions:
1

Re: WishList v0.4 -- v1.3.7 compatible

Linux:

I add this to tpl_product_info_display.php <snip> and nothing is showing up.

You'll have to do some personal troubleshooting to determine where it's failing (because it's specific to your implementation). A very simple test would be to add the following code to the file:

<?php echo 'THIS IS A TEST'; ?>

If that works, go from there... start adding more of the "link" code... what's not showing up...

28 Jun 2007, 8:23 AM
#25
linux avatar

linux

Zen Follower

Join Date:
Apr 2004
Posts:
173
Plugin Contributions:
0

Re: WishList v0.4 -- v1.3.7 compatible

untitled:

You'll have to do some personal troubleshooting to determine where it's failing (because it's specific to your implementation). A very simple test would be to add the following code to the file:

<?php echo 'THIS IS A TEST'; ?>
> 
> If that works, go from there... start adding more of the "link" code... what's not showing up...

Untitled: Please forgive me as you completely misunderstood me. My site is fine I meant the Wishlist image or link is not showing up under the product page. Just for the record, I used your original Wishlist and it seemed to have worked fine I have no idea why this one is giving me a hard time :) Oh well, going to keep trying. Thanks again.
28 Jun 2007, 2:59 PM
#26
untitled avatar

untitled

New Zenner

Join Date:
Feb 2004
Posts:
61
Plugin Contributions:
1

Re: WishList v0.4 -- v1.3.7 compatible

Linux:

My site is fine I meant the Wishlist image or link is not showing up under the product page.

Do the test. Does it show up? If yes, then put a link in there. If no, then you probably placed the code in the wrong place on the product page. See what I what mean?...

29 Jun 2007, 9:26 PM
#27
simetra avatar

simetra

Zen Follower

Join Date:
Mar 2005
Posts:
167
Plugin Contributions:
0

Re: WishList v0.4 -- v1.3.7 compatible

Is there a site that has the wishlist working on it that I can view? =)

29 Jun 2007, 9:34 PM
#28
untitled avatar

untitled

New Zenner

Join Date:
Feb 2004
Posts:
61
Plugin Contributions:
1

Re: WishList v0.4 -- v1.3.7 compatible

simetra:

Is there a site that has the wishlist working on it that I can view? =)

http://www.childsworld.com

29 Jun 2007, 11:04 PM
#29
linux avatar

linux

Zen Follower

Join Date:
Apr 2004
Posts:
173
Plugin Contributions:
0

Re: WishList v0.4 -- v1.3.7 compatible

untitled: Great site! I really like the wish next to the cart. Can you share the secret? Thanks!

2 Jul 2007, 10:49 PM
#30
dharma avatar

dharma

Totally Zenned

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

Re: WishList v0.4 -- v1.3.7 compatible

Thank you for updating this mod! It is very key in my website functionality.

I am trying to get the default wishlist to default to "private" instead of public, is there a code tweak to do this? and a way to block/not display the name of the city that a customer lives in, and name also? when their wishlist is public?

I have been poking around in wishlists/tpl_un_wishlists_default.php .....am I on the right track?

2 Jul 2007, 11:17 PM
#31
untitled avatar

untitled

New Zenner

Join Date:
Feb 2004
Posts:
61
Plugin Contributions:
1

Re: WishList v0.4 -- v1.3.7 compatible

dharma:

I am trying to get the default wishlist to default to "private" instead of public, is there a code tweak to do this?

file "./includes/classes/un_wishlist.class.php":
find (line 655):

function createWishlist($name='', $comment='', $default_status=0, $public_status=1)

change to:

function createWishlist($name='', $comment='', $default_status=0, $public_status=0)

dharma:

and a way to block/not display the name of the city that a customer lives in, and name also? when their wishlist is public?

file "./includes/templates/template_default/un_wishlist_find/tpl_un_wishlist_find_form.php":
modify lines 53 through 64 as desired.
eg, to suppress display of user's location, delete:

<?php $location = un_get_citystate($records->fields['entry_city'], $records->fields['entry_state'], 'Unknown'); ?>
<?php if ( !un_is_empty($location) ) { ?>
<li>Customer location: <?php echo $location; ?></li>
<?php } ?>
3 Jul 2007, 2:16 AM
#32
dharma avatar

dharma

Totally Zenned

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

Re: WishList v0.4 -- v1.3.7 compatible

Thank you untitled for your help!

I was not successful in changing the customers 1st (default) wishlist to "private" instead of public with your code change.:no:

Is there another tweak for this?

I was successful in editing the tpl_un_wishlist_find_form.php as you suggested to hide the customers info, yet still access the wishlist:

I am not a programmer but I made some addtional changes...it works, For the benefit of others please correct this if incorrect:

<?php if ( isset($records) && $records->RecordCount() > 1 ) { ?>

			<dl>
			<?php $rows = 0; ?>
			<?php while (!$records->EOF) { ?>
				<?php $rows++; ?>
				<dt><?php echo $rows; ?>. <a href="<?php echo zen_href_link(UN_FILENAME_WISHLIST_FIND, 'wid='.$records->fields['id']); ?>"><?php echo un_get_fullname($records->fields['name']); ?>: Wish List</a></dt>
				<?php $records->MoveNext(); ?>
			<?php } // end while records ?>
			</dl>

I also edited the tpl_un_wishlist_find_default.php:

and removed :

<h1><?php echo TEXT_WISHLIST_FOR . $customers_name; ?></h1>

to hide the customers name also from the wishlist display page.

3 Jul 2007, 5:00 AM
#33
untitled avatar

untitled

New Zenner

Join Date:
Feb 2004
Posts:
61
Plugin Contributions:
1

Re: WishList v0.4 -- v1.3.7 compatible

dharma:

I was not successful in changing the customers 1st (default) wishlist to "private" instead of public with your code change...

my mistake. try this:

file "./includes/classes/un_wishlist.class.php":

find (line 602):

$result = $this->createWishlist('Default', '', 1, 1);

replace with:

$result = $this->createWishlist('Default', '', 1, 0);
3 Jul 2007, 10:33 PM
#34
dharma avatar

dharma

Totally Zenned

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

Re: WishList v0.4 -- v1.3.7 compatible

That code works great! The default is now private.

Thanks again for your :smoke: smoking! contribution!

7 Jul 2007, 2:28 AM
#35
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: WishList v0.4 -- v1.3.7 compatible

Hi,

I just added this contribution and I really love it. I would like to know if it's possible to add a button under my add to cart button for the add to wishlist? Does anyone know if this is possible?

Thanks in advance!
Kelly

7 Jul 2007, 2:37 AM
#36
untitled avatar

untitled

New Zenner

Join Date:
Feb 2004
Posts:
61
Plugin Contributions:
1

Re: WishList v0.4 -- v1.3.7 compatible

sleepless:

I would like to know if it's possible to add a button under my add to cart button for the add to wishlist?

As the readme states:

<?php 
// (un): start wishlist link
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') . '">' . UN_TEXT_ADD_WISHLIST . '</a>'; 
// (un): end wishlist link
?> 

If you want an image as opposed to a textual link (like above), replace "UN_TEXT_ADD_WISHLIST" with an image tag.

7 Jul 2007, 2:43 AM
#37
kadesign avatar

kadesign

Totally Zenned

Join Date:
Feb 2005
Location:
New Jersey
Posts:
593
Plugin Contributions:
0

Re: WishList v0.4 -- v1.3.7 compatible

Thank you. I saw the read me but wasn't sure as far as the image went.

Thanks again.
Kelly

15 Jul 2007, 5:41 PM
#38
james739 avatar

james739

Zen Follower

Join Date:
Jun 2007
Posts:
210
Plugin Contributions:
0

Re: WishList v0.4 -- v1.3.7 compatible

Getting this error with wishlist v0.4.

1146 Table 'trendsde_zc1.un_wishlists' doesn't exist
in:
[SELECT id FROM un_wishlists w WHERE w.customers_id=1 and w.default_status=1 ]

Please help

15 Jul 2007, 6:02 PM
#39
untitled avatar

untitled

New Zenner

Join Date:
Feb 2004
Posts:
61
Plugin Contributions:
1

Re: WishList v0.4 -- v1.3.7 compatible

james739:

... Table 'trendsde_zc1.un_wishlists' doesn't exist
in...

check your mysql database. does the database "trendsde_zc1" exist? does the table "un_wishlists" exist? this problem has been noted before. check the forum. reread the setup steps in the readme. if you spend the time, you can figure it out on your own and you can learn about your web app in the process.

22 Jul 2007, 5:30 AM
#40
james739 avatar

james739

Zen Follower

Join Date:
Jun 2007
Posts:
210
Plugin Contributions:
0

Re: WishList v0.4 -- v1.3.7 compatible

I went back and read over all the post. I still couldn't find a resolution. I am getting the same error:

1146 Table 'trendsde_zc2.un_wishlists' doesn't exist
in:
[SELECT id FROM un_wishlists w WHERE w.customers_id=1 and w.default_status=1 ]

How can I create a trendsde_zc2 table?