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 121 to 140 of 236
27 Dec 2011, 6:48 AM
#121
darkangel avatar

darkangel

Totally Zenned

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

wishlists 0.6

neparker:

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 -->

question is...why did you change the coding to the one you changed it to...

as it is the original code was not all in your post either...it should have been the part in red was not in your post...maybe it needs to be in the new code you did insert:

<!--bof Wishlist button --> <!--&ltbr class="clearBoth" /> optional depending where the code is added--> <?php if (UN_MODULE_WISHLISTS_ENABLED) { if ( $_SESSION['customer_id'] ) { echo '&ltdiv 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>'; } else { echo '&ltdiv>'; echo UN_BOX_WISHLIST_LOGIN_TEXT; echo '</div>'; } } else {} ?> <!--eof Wishlist button -->
27 Dec 2011, 6:53 AM
#122
neparker avatar

neparker

New Zenner

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

Re: wishlists 0.6

I was just saying that either code I get an error:

I am using the original code as suggested in the installation read me files:

<!--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>'; } else { echo '<div>'; echo UN_BOX_WISHLIST_LOGIN_TEXT; echo '</div>'; } } else {} ?> <!--eof Wishlist button -->

and when I use the above code, which is what I should be using, I get the following 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 ( '5769', '1', NOW(), NOW(), '1', '2', '', 'a:1:{i:1;s:1:"1";}' )]

I am thinking the error is the unknown column attributes in the field list. Whatever or however I fix that.

27 Dec 2011, 7:23 AM
#123
darkangel avatar

darkangel

Totally Zenned

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

Re: wishlists 0.6

neparker:

I was just saying that either code I get an error:

I am using the original code as suggested in the installation read me files:

<!--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>'; } else { echo '<div>'; echo UN_BOX_WISHLIST_LOGIN_TEXT; echo '</div>'; } } else {} ?> <!--eof Wishlist button -->

and when I use the above code, which is what I should be using, I get the following 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 ( '5769', '1', NOW(), NOW(), '1', '2', '', 'a:1:{i:1;s:1:"1";}' )]

I am thinking the error is the unknown column attributes in the field list. Whatever or however I fix that.

alright here is another thought...I have combed thru the read me and can't find where it tells you that code you are using---either one.

but I did see that for that file you need to insert this code to get the button to appear on the product page

<!--bof Wishlist button -->
<?php if (UN_MODULE_WISHLISTS_ENABLED) { ?>
 <div id="productWishlistLink" class="buttonRow back"><?php 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_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT) . '</a>'); ?></div>
<?php }
    else
    {}
?>
<!--eof Wishlist button -->

it is different from what you have written down too.

This is the actual code from the example file found in the zip of installation

27 Dec 2011, 7:28 AM
#124
neparker avatar

neparker

New Zenner

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

Re: wishlists 0.6

I used the code in the readme under 'how to use'
I did try this code before, it's added now.

When you click to add a product, you now don't get an error, but the product doesn't add at all.

  • if you did create a store account to see, go check it out if you would please.
27 Dec 2011, 7:37 PM
#125
neparker avatar

neparker

New Zenner

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

Re: wishlists 0.6

Any suggestions anyone?

Everything is there, I don't get an error with the following code in my tpl_product_info_display.php but when you click Add To Wishlist to add the product to your wishlist, it doesn't add it to anywhere and just brings you to the wishlist.

<!--bof Wishlist button --> <?php if (UN_MODULE_WISHLISTS_ENABLED) { ?> <div id="productWishlistLink" class="buttonRow back"><?php 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_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT) . '</a>'); ?></div> <?php } else {} ?> <!--eof Wishlist button -->
27 Dec 2011, 8:16 PM
#126
neparker avatar

neparker

New Zenner

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

Re: wishlists 0.6

so, I added back the original code:

<!--bof Wishlist button -->
		<?php if (UN_MODULE_WISHLISTS_ENABLED) { ?>
        <div id="productWishlistLink" class="buttonRow back">
        <?php echo zen_image_submit(UN_BUTTON_IMAGE_WISHLIST_ADD, UN_BUTTON_WISHLIST_ADD_ALT, 'name="wishlist" value="yes"'); 
        //print_r($_REQUEST);
        ?></div>

	<?php }
		else
		{}
		?>
<!--eof Wishlist button -->

I get the 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 ( '6463', '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";}' )]

I went into my cpanel and into the table un_products_to_wishlists

I do not have the column attributes as I originally thought the problem was coming from.

So I added the column attributes using the info from the wishlist.sql file in the installation. It works fine now.

28 Dec 2011, 12:21 AM
#127
darkangel avatar

darkangel

Totally Zenned

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

Re: wishlists 0.6

neparker:

I used the code in the readme under 'how to use'
I did try this code before, it's added now.

When you click to add a product, you now don't get an error, but the product doesn't add at all.

  • if you did create a store account to see, go check it out if you would please.

BTW, love your store...the buttons are so cute did you make them or did they come with the template.

now I went to my account at your store and added 2 items to the wishlist.

I randomly chose the products, clicked the add to wishlist button and it returned me to the product page...I think it is supposed to do that

Then I went to the link in the header (under your logo) and clicked it which took me to my wishlist and sure enough there they were.

Now mind you this is in Firefox on my ancient Macintosh that still is able to go to some sites.

I have not had a chance to check it on the pc cause it is being occupied by my daughter for a little bit but I will try it then too and let you know.

no error messages either

28 Dec 2011, 12:25 AM
#128
neparker avatar

neparker

New Zenner

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

Re: wishlists 0.6

Thanks, yes, that is what I want it to do, works in IE and in Chrome too.

I started with a free template and have edited it, A LOT, to make it better. I'm in the process of revamping my entire site, so yes, I did make the buttons, background, everything. Thanks.

28 Dec 2011, 12:57 AM
#129
darkangel avatar

darkangel

Totally Zenned

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

Re: wishlists 0.6

neparker:

Thanks, yes, that is what I want it to do, works in IE and in Chrome too.

I started with a free template and have edited it, A LOT, to make it better. I'm in the process of revamping my entire site, so yes, I did make the buttons, background, everything. Thanks.

it is a very nice looking store., REMEMBER, which I am sure you know and are doing it but still:

make a duplicate of the file you are editing code on and use it in a folder with your stores template name on it for it to be "in charge" as the override folder for edits...this way when the store updates files to keep our stuff safe so you will not have to go in and re-edit and lose the codes you edited.

Also keep a copy of store files on your hard drive to make it easier to reupload files should something happen and they get corrupted.

28 Dec 2011, 6:24 AM
#130
neparker avatar

neparker

New Zenner

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

Re: wishlists 0.6

So, another question/problem, lol.

When a product is added to the wishlist, the title and the 'tell a friend', 'find a friend', 'manage', 'move', as well as the drop down boxes and the products title and back button are all squished to the left, I need them moved over to the right a little and I can't find where in css I do this. Could also be that I'm tired, but any suggestions would be greatly appreciated.

28 Dec 2011, 9:56 AM
#131
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: wishlists 0.6

neparker:

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.
The SQL code was written not to delete the existing TABLE to avoid wishlists from existing customers from being deleted.

If i am correct there is some documentation about it in the sql file itself.

If you are upgrading from previous versions it is best to add the COLUMN attributes to the existing table manually as you have allready done by now?

28 Dec 2011, 10:06 AM
#132
nagelkruid avatar

nagelkruid

Zen Follower

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

Re: wishlists 0.6

nagelkruid:

The SQL code was written not to delete the existing TABLE to avoid wishlists from existing customers from being deleted.

If i am correct there is some documentation about it in the sql file itself.

If you are upgrading from previous versions it is best to add the COLUMN attributes to the existing table manually as you have allready done by now?
the text in the sql file:

#April 2011 v0.8 added column
#added column for attributes, if you need to just add the column to an existing table use:
#alter table un_products_to_wishlists add column attributes VARCHAR(255);
#in the sql patch tool in zen cart
3 Jan 2012, 7:04 PM
#133
richardtuttle avatar

richardtuttle

New Zenner

Join Date:
Dec 2011
Location:
Boise, ID
Posts:
28
Plugin Contributions:
0

Re: wishlists 0.6

Will this work with ZC 1.5?

3 Jan 2012, 9:55 PM
#134
darkangel avatar

darkangel

Totally Zenned

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

Re: wishlists 0.6

richardtuttle:

Will this work with ZC 1.5?

have you checked the addon page to see if it says it does yet?

When it or any mod works for 1.5 I am sure they will update the download area

17 Jan 2012, 11:09 PM
#135
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: wishlists 0.6

I have a customer using this module but have a question. When logged in, clicking the Add to Cart is adding the item to the WishList. When not logged in, the Add to Cart adds the item to the cart.

Is this the way it's designed to work?

Using module version 0.9 and zen 1.3.9

Jim
Wheaton Website Services

21 Jan 2012, 7:00 AM
#136
sph avatar

sph

Totally Zenned

Join Date:
Jan 2006
Posts:
1,556
Plugin Contributions:
0

Re: wishlists 0.6

jeking:

I have a customer using this module but have a question. When logged in, clicking the Add to Cart is adding the item to the WishList. When not logged in, the Add to Cart adds the item to the cart.

Is this the way it's designed to work?

Using module version 0.9 and zen 1.3.9

Take a look at the top post here:

http://www.zen-cart.com/forum/showthread.php?t=176649&page=11

I just installed this mod today on two sites; it seems to be working.

sph
https://www.prommart.com
https://www.promdressesforless.us

Steve
prommart.com

9 Feb 2012, 12:59 AM
#137
crooked_halo avatar

crooked_halo

Zen Follower

Join Date:
Feb 2008
Location:
Western Australia
Posts:
192
Plugin Contributions:
0

Re: wishlists 0.6

SPH - did you install the WishLists mod on ZC ver 1.5.0?

13 Feb 2012, 8:08 AM
#138
crooked_halo avatar

crooked_halo

Zen Follower

Join Date:
Feb 2008
Location:
Western Australia
Posts:
192
Plugin Contributions:
0

Re: wishlists 0.6

Well, I have installed it on 1.5.0 and it seems to be working well! Woot Woot!!

The only thing is - I don't seem to have the admin option under Configuration o.O

1 Mar 2012, 2:43 PM
#139
jrf avatar

jrf

New Zenner

Join Date:
Jan 2007
Posts:
35
Plugin Contributions:
0

Re: wishlists 0.6

Hi -
I have just installed this -
but do not see anything in the Configuration (admin) menu that says 'WishLists' -

I've checked to make sure the admin files were uploaded -

anyone able to give any info on this?

Thank you -

1 Mar 2012, 2:53 PM
#140
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: wishlists 0.6

In version 1.5, admin pages have to be registered. Uploading files no longer adds them to the admin menus.

Admin Access Management => Admin Page Registration

Jim
Wheaton Website Services