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 161 to 180 of 303
This thread is locked. New replies are disabled.
3 Sep 2008, 7:20 PM
#161
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

WishList v0.4 -- v1.3.7 compatible

Doh - thanks AndyII - yep I see the side box button when I click on a product (crawls away to hide in shame). Howevere the button is too wide for the standard 150px wide side box area and 'overhangs' into the background of the site. Is there any way to edit this button as I cannot see any image in the download package although I see reference to it as a gif image.

Many thanks.

Rob

3 Sep 2008, 7:49 PM
#162
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

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

if you dont mind, give us your site and see what you mean..

3 Sep 2008, 8:17 PM
#163
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

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

Hi

Sure, it is wwwdotfingertipcraftsdotnet/store

u will need to do a mock registration to see it of course but site is not live yet so go for it :)

Rob

3 Sep 2008, 9:42 PM
#164
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

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

Thanks for regstering Andy - any brilliant ideas?

Rob

:)

3 Sep 2008, 10:58 PM
#165
robsnowden avatar

robsnowden

Zen Follower

Join Date:
Apr 2004
Location:
Up t'north, UK
Posts:
264
Plugin Contributions:
0

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

Quick Fix: I reduced the amount of text on the button and this sorted things out!

Rob

5 Sep 2008, 3:16 PM
#166
unhappydave avatar

unhappydave

New Zenner

Join Date:
Jul 2008
Posts:
52
Plugin Contributions:
0

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

Can use this for 1.3.8?

5 Sep 2008, 3:23 PM
#167
unhappydave avatar

unhappydave

New Zenner

Join Date:
Jul 2008
Posts:
52
Plugin Contributions:
0

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

got it loaded, can't get products added to wish list. I choose ad to wish list and i get taken to a page that says

Wish list default-
The wish list allows you quick access to products you find of interest.

Tell a Friend
Find a Friend's Wish List
Manage my Wish Lists
Move items between Wish Lists

any ideas why products not going to the DB after the patch?

16 Sep 2008, 9:45 PM
#168
rumoraz avatar

rumoraz

New Zenner

Join Date:
Sep 2008
Posts:
4
Plugin Contributions:
0

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

To add add to wishlist on products listing page.

First add the following code to "includes/languages/english/button_names.php"

define('BUTTON_IMAGE_WISHLIST', 'button_wishlist.gif');
define('BUTTON_WISHLIST_ALT', 'Add To Wishlist');

Just replace button_wishlist.gif with what button you would like to use.

Next find the following code in "includes/modules/product_listing.php"

$lc_button= zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($listing->fields['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product&products_id=' . $listing->fields['products_id']), 'post', 'enctype="multipart/form-data"') . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($listing->fields['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_draw_hidden_field('products_id', $listing->fields['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '</form>';

And replace that code with

              $lc_button= zen_draw_form('cart_quantity', zen_href_link(zen_get_info_page($listing->fields['products_id']), zen_get_all_get_params(array('action')) . 'action=add_product&products_id=' . $listing->fields['products_id']), 'post', 'enctype="multipart/form-data"') . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($listing->fields['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_draw_hidden_field('products_id', $listing->fields['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '</form><a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action')) . 'action=un_add_wishlist&products_id=' . $listing->fields['products_id']) . '">'. zen_image_button(BUTTON_IMAGE_WISHLIST, BUTTON_WISHLIST_ALT) . '</a>';

If you wold like to add div tags to the products listing page email me and I can help you with that.

Mike

22 Sep 2008, 8:27 AM
#169
tim_ware avatar

tim_ware

New Zenner

Join Date:
Dec 2007
Posts:
25
Plugin Contributions:
0

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

Thanks Rumoraz..

Just tried out your code to add the wishlist button to the product listing and it look's great.. Thanks..:smile:

Now all I need is to work out how to add it to the new products and all products pages..?:blush:
Also a wishlist button to move items from within the cart back to a wishlist would also be tops!

Thanks again for your help!
:cool:

27 Sep 2008, 12:57 AM
#170
rumoraz avatar

rumoraz

New Zenner

Join Date:
Sep 2008
Posts:
4
Plugin Contributions:
0

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

Tim Ware:

Thanks Rumoraz..

Just tried out your code to add the wishlist button to the product listing and it look's great.. Thanks..:smile:

Now all I need is to work out how to add it to the new products and all products pages..?:blush:
Also a wishlist button to move items from within the cart back to a wishlist would also be tops!

Thanks again for your help!
:cool:

To add it to the all products page locate file in /includes/templates/YOURTEMPLATENAME/templates/tpl_modules_products_all_listing.php
find this code

$link = '<a href="' . zen_href_link(FILENAME_PRODUCTS_ALL, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_all->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a> ';

and replace it with this

$link = '<a href="' . zen_href_link(FILENAME_PRODUCTS_ALL, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_all->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a><a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action')) . 'action=un_add_wishlist&products_id=' . $listing->fields['products_id']) . '">'. zen_image_button(BUTTON_IMAGE_WISHLIST, BUTTON_WISHLIST_ALT) . '</a>';

if you want to position the button use this code insted which adds a div with a class of "addwishlistBTN" around the wishlist button

$link = '<a href="' . zen_href_link(FILENAME_PRODUCTS_ALL, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_all->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a><div class="addwishlistBTN" ><a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action')) . 'action=un_add_wishlist&products_id=' . $listing->fields['products_id']) . '">'. zen_image_button(BUTTON_IMAGE_WISHLIST, BUTTON_WISHLIST_ALT) . '</a></div>';

Have not checked but I believe that you can do the same mod for the new products as well the filename for this file is tpl_modules_products_new_listing.php

Rumor

27 Sep 2008, 1:13 AM
#171
rumoraz avatar

rumoraz

New Zenner

Join Date:
Sep 2008
Posts:
4
Plugin Contributions:
0

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

cancel the above code there is an error here is the correction.

Tim Ware:

Thanks Rumoraz..

Just tried out your code to add the wishlist button to the product listing and it look's great.. Thanks..:smile:

Now all I need is to work out how to add it to the new products and all products pages..?:blush:
Also a wishlist button to move items from within the cart back to a wishlist would also be tops!

Thanks again for your help!
:cool:

To add it to the all products page locate file in /includes/templates/YOURTEMPLATENAME/templates/tpl_modules_products_all_listing.php
find this code

$link = '<a href="' . zen_href_link(FILENAME_PRODUCTS_ALL, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_all->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a> ';

and replace it with this

$link = '<a href="' . zen_href_link(FILENAME_PRODUCTS_ALL, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_all->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a><a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action')) . 'action=un_add_wishlist&products_id=' . $products_all->fields['products_id']) . '">'. zen_image_button(BUTTON_IMAGE_WISHLIST, BUTTON_WISHLIST_ALT) . '</a>';

if you want to position the button use this code insted which adds a div with a class of "addwishlistBTN" around the wishlist button

$link = '<a href="' . zen_href_link(FILENAME_PRODUCTS_ALL, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_all->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a><div class="addwishlistBTN" ><a href="' . zen_href_link(UN_FILENAME_WISHLIST, zen_get_all_get_params(array('action')) . 'action=un_add_wishlist&products_id=' . $products_all->fields['products_id']) . '">'. zen_image_button(BUTTON_IMAGE_WISHLIST, BUTTON_WISHLIST_ALT) . '</a>';</div>

Have not checked but I believe that you can do the same mod for the new products as well the filename for this file is tpl_modules_products_new_listing.php

Rumor

28 Sep 2008, 6:32 PM
#172
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

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

I have tried your codes above to insert the add to wish list next to the add to cart But I can't get the image to show up in the product listing.

I can see the text where the image is suppose to be but I can't get the image"button" to show

29 Sep 2008, 6:56 AM
#173
tim_ware avatar

tim_ware

New Zenner

Join Date:
Dec 2007
Posts:
25
Plugin Contributions:
0

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

Thanks again rumoraz.. Worked a treat..:cool:

Glamorousshoe it sounds like you missed the extra definitions maybe..?
Add the following definitions to "includes/languages/english/YOUR TEMPLATE/button_names.php"

define('BUTTON_IMAGE_WISHLIST', 'button_wishlist.gif');
define('BUTTON_WISHLIST_ALT', 'Add To Wishlist');

PS.. If anybody work's out how to move items from the shopping cart to the wish list. I think that would really polish this already fantastic module..

Cheers Timbo..:D

30 Sep 2008, 4:08 PM
#174
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

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

Tim Ware:

Thanks again rumoraz.. Worked a treat..:cool:

Glamorousshoe it sounds like you missed the extra definitions maybe..?
Add the following definitions to "includes/languages/english/YOUR TEMPLATE/button_names.php"

define('BUTTON_IMAGE_WISHLIST', 'button_wishlist.gif');
define('BUTTON_WISHLIST_ALT', 'Add To Wishlist');

> 
> PS.. If anybody work's out how to move items from the shopping cart to the wish list. I think that would really polish this already fantastic module..
> 
> Cheers Timbo..:D

I did add that and made sure it was right.
24 Oct 2008, 7:20 PM
#175
darktowerhobbies avatar

darktowerhobbies

New Zenner

Join Date:
Jan 2008
Posts:
83
Plugin Contributions:
0

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

Where is the file I can't find it in the addons anymore?

24 Oct 2008, 10:15 PM
#176
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

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

check here

http://www.unevolution.com/miscellany/downloads.php
7 Nov 2008, 6:07 PM
#177
cookie_juice avatar

cookie_juice

New Zenner

Join Date:
Oct 2008
Posts:
25
Plugin Contributions:
0

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

13moons:

It has the same stretched look on our site.

For the "2nd page or next" problem I have figured out what is happening but I am so far stumped as how to fix it. If I mouse over the "Next>>" link I read index.php?main_page=un_wishlist_find&sort=1a&page=2. Clicking the link sends me back to the find a link page instead of page 2 or next. However if I choose an option to display the page differently I get this when I mouse over: index.php?main_page=un_wishlist_find&wid=35&sort=1a&page=2. Clicking the link works correctly.
So for some reason the customers id is not getting inserted into the link for the default page. I have gone over all the pages and compared to other similar pages but I'm not getting what bit is missing. Maybe someone can figure this out.

barco57:

If you flip views (extended to compact) I bet it works then. This is a bug of some sort and I'm not sure anyone has fixed it yet.

karmakey:

If you click the shop on this post http://www.zen-cart.com/forum/showthread.php?t=81080 the autor seems to have solved the bug, but I ignore how!

Please help me!

At least I can swithc in compact view for default? How can I do?

Sorry for my english! Thanks in advance.

I have/we all have this issue. Please post if anyone has found a fix.

My guess for a quick fix would be to change the URL from hidden to the regular URL:

index.php?main_page=un_wishlist_find

change to

index.php?main_page=un_wishlist_find&wid=187

coming off the find form.

change the code in here:

<!-- control -->
<?php echo zen_draw_form('control', zen_href_link(UN_FILENAME_WISHLIST_FIND), 'get', 'class="control"'); ?>
<?php echo zen_hide_session_id(); ?>
<?php echo zen_draw_hidden_field('main_page', UN_FILENAME_WISHLIST_FIND); ?>
<?php echo zen_draw_hidden_field('wid', $wid); ?>
<fieldset>

But I am not skilled enough to change this, and I like that the URL is hidden so maybe this is not the best way... any suggestions?:unsure:

10 Nov 2008, 2:51 AM
#178
kimsonvu avatar

kimsonvu

Zen Follower

Join Date:
Aug 2006
Location:
HCMC
Posts:
263
Plugin Contributions:
0

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

When i use this modules. My customer can use button " add to cart" in Firefox 2 but they can't do that in IE 7 or 6.

19 Dec 2008, 12:49 AM
#179
madmickc avatar

madmickc

New Zenner

Join Date:
Aug 2008
Posts:
22
Plugin Contributions:
0

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

SonicE:

I think there is something wrong on your distribution:

  1. Remove all files ( ._* ) that are used by your MACOS from "un_wishlist_0.4" directory ().
  2. In your zen-root\admin\includes\extra_datafiles\un_database_tables.php and zen-root\includes\extra_datafiles\un_database_tables.php you dont't use DB_PREFIX variable

define('UN_TABLE_WISHLISTS', 'un_wishlists');
define('UN_TABLE_PRODUCTS_TO_WISHLISTS', 'un_products_to_wishlists');

> 
> Cheers

Thanks for this.  I had trouble with the not being able to access the tables (even though they were in there).  Edited these lines to include my table prefix and everything is working fine. :clap:
29 Dec 2008, 12:59 AM
#180
alexzcm avatar

alexzcm

New Zenner

Join Date:
Dec 2008
Posts:
7
Plugin Contributions:
0

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

Hello!
I am new here in the forum and I am using zencart v1.3.7 for the first time.
My problem is that I am not achieve show the Product link on another page.
I know, so I read, which will be aware that this link

<!--bof Product URL --> <?php if (zen_not_null($products_url)) { if ($flag_show_product_info_url == 1) { ?>
<p id="productInfoLink" class="productGeneral centeredContent"><?php echo sprintf(TEXT_MORE_INFORMATION, zen_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($products_url), 'NONSSL', true, false)); ?></p>
<?php } // $flag_show_product_info_url } ?> <!--eof Product URL -->

is only for the area of the catalog and I need help to display the product link in the wishlist page...
Can someone help me, please?
Manny thanks in advance