Zen Cart Logo

wishlists 0.6

Views: 36,381

Results 221 to 236 of 236
13 Nov 2014, 5:19 AM
#221
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

wishlists 0.6

wtashby:

How can I adjust the left to right (horizontal) alignment of the wishlist button?

Thanks

Change the class on the div that the back and submit buttons are in. Also, create a second div, give on a class="back" and the other class="forward" put code for back button into first div and second button code into second div. ... if we're talking about the same button... There are a few of them...

13 Nov 2014, 3:25 PM
#222
mattvickauto avatar

mattvickauto

New Zenner

Join Date:
Nov 2014
Location:
Fort Worth, TX
Posts:
13
Plugin Contributions:
0

Re: wishlists 0.6

vickauto.com

13 Nov 2014, 3:28 PM
#223
mattvickauto avatar

mattvickauto

New Zenner

Join Date:
Nov 2014
Location:
Fort Worth, TX
Posts:
13
Plugin Contributions:
0

Re: wishlists 0.6

DarkAngel

I tried that one you just posted, and it still just makes it add to cart.
I do believe we have modified to use the css style.

Anymore help?

Matt

13 Nov 2014, 6:41 PM
#225
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: wishlists 0.6

"Out of the box" wish list will add a button to the product info page. The button has value of "yes". In the wishlist_cart_actions.php file there is test on $_GET for 'cart_add' testing for the value of "yes".

In a nutshell, here's the solution. Remove the button from the product info page and replace with a checkbox that if checked will have the value of "yes". Then hide the checkbox. Put up some text (likely "Add to Wishlist") that when clicked will "behind the scene" check the hidden check box and also submit the cart_add form. I did this with JS/Jquery...

<div style="cursor: pointer;" id="productWishlistLink" class="pi-tell-ask-add biggerText">
        <span>Add to Wish list</span>
        <noscript><span class="smallerText">Check the box then click add to cart. Or enable javascript and reload the page!</span></noscript>
        <input style="display: none;" name="wishlist" value="yes" id="pInfoWishCheckbox" type="checkbox">        </div>

Then the JS that makes it all work...

$(document).ready(function() {
    $('#productWishlistLink').css('cursor', 'pointer');
    $("input#pInfoWishCheckbox").css('display', 'none');
});
$(document).on('click', '#productWishlistLink span', function(){
    $("input#pInfoWishCheckbox").prop('checked', true);
    if($("input[name='wishlist']").is(':checked')){
        $('form[name=cart_quantity]').submit();
    }    
});
14 Nov 2014, 7:20 PM
#226
bumba000 avatar

bumba000

Totally Zenned

Join Date:
Feb 2007
Location:
Pennsylvania
Posts:
858
Plugin Contributions:
0

Re: wishlists 0.6

So I have this figured out, over the tpl_wishlist_default.php, wishlist_class.php and wishlist_cart_actions.php file, need's to be passed the wishlist id of the wishlist that products are being edited in. Looking into these files and the chain of the process for update and remove, the query is told to match a class function that returns the customers default wishlist id. So beginning with the tpl_wishlist_default.php I began passing along the $_GET['wid'] as (int)zen_sanitize_string($_GET['wid']).

So far the moveProduct and other functions seem to be fine as are.

...Also, everywhere in this mod that catches passed form data needs be sanitized, zen_db_prepare_input or something...

I'm not done making it safe yet, but has anyone else noticed that using a quote or double quote in any of the form fields breaks the system?? That's not good!

John

26 Feb 2015, 5:28 PM
#227
spminis avatar

spminis

Zen Follower

Join Date:
Feb 2015
Location:
USA
Posts:
194
Plugin Contributions:
0

Re: wishlists 0.6

I have installed this plug-in and it's working fine - it generates wishlists and they can be retrieved. I'm using ZC 1.5.4
My problem is that although the module is listed in configuration, there are no options when I click on the module.
Also, is there a way to look at customer's wishlists? It doesn't look like I have access to these
Thanks
Carol

26 Feb 2015, 6:19 PM
#228
jeking avatar

jeking

Totally Zenned

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

Re: wishlists 0.6

spminis:

I have installed this plug-in and it's working fine - it generates wishlists and they can be retrieved. I'm using ZC 1.5.4
My problem is that although the module is listed in configuration, there are no options when I click on the module.
Also, is there a way to look at customer's wishlists? It doesn't look like I have access to these
Thanks
Carol

Something went amiss during installation. Check that the admin files are all uploaded into the correct folders.

For access to customers lists, you'd need to be able to log in as the customer. This plugin will allow you to do just that
http://www.zen-cart.com/downloads.php?do=file&id=94

Jim
Wheaton Website Services

9 Mar 2015, 5:06 PM
#229
spminis avatar

spminis

Zen Follower

Join Date:
Feb 2015
Location:
USA
Posts:
194
Plugin Contributions:
0

Re: wishlists 0.6

[QUOTE=jeking;1274559]Something went amiss during installation. Check that the admin files are all uploaded into the correct folders.

I reinstalled the files and they are in the correct place. The listing for the module appears in configuration but there aren't any options listed. Any other ideas?

Carol

9 Mar 2015, 5:31 PM
#230
jeking avatar

jeking

Totally Zenned

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

Re: wishlists 0.6

Any errors when you run the sql statement (wishlist.sql)?

Jim
Wheaton Website Services

2 Apr 2015, 11:29 PM
#231
spminis avatar

spminis

Zen Follower

Join Date:
Feb 2015
Location:
USA
Posts:
194
Plugin Contributions:
0

Re: wishlists 0.6

jeking:

Any errors when you run the sql statement (wishlist.sql)?

No errors. I tried doing a fresh install and same thing. The wishlist module is listed in config but it's empty. The wishlist works fine for the customers.
Thanks for any ideas
Carol

16 Apr 2015, 8:10 AM
#232
travbacon avatar

travbacon

Zen Follower

Join Date:
Mar 2015
Posts:
169
Plugin Contributions:
0

Re: wishlists 0.6

I just installed the latest version 0.9 on 1.54. In the admin. I see the admin>configuration>wish list module but isn't there supposed to be another link in admin>extras>wishlists (so you can see customers wishlists and delete them if they are old)? i don't see that link and i triple checked that the files were uploaded to the correct directory. thank you.

22 Apr 2015, 6:23 PM
#233
jeking avatar

jeking

Totally Zenned

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

Re: wishlists 0.6

For anyone interested, I have a version with fixes for CSS buttons and for the Add to Cart when clicking the Add to Wishlist button. If you are interested in TESTING it, please PM me. It is NOT ready for a lives sites.

Jim
Wheaton Website Services

22 Apr 2015, 8:08 PM
#234
darkangel avatar

darkangel

Totally Zenned

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

Re: wishlists 0.6

I might be interested IF it works in 1.3.9 (right now am in this version but....) things are acting strange with the software so maybe I will need to go to 1.5.4 providing all my mods work in it now..LOL

22 Apr 2015, 8:11 PM
#235
jeking avatar

jeking

Totally Zenned

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

Re: wishlists 0.6

DarkAngel:

I might be interested IF it works in 1.3.9 (right now am in this version but....) things are acting strange with the software so maybe I will need to go to 1.5.4 providing all my mods work in it now..LOL

It certainly might. I have not tested it on that version, but you're welcome to try. PM me if you do.

Jim
Wheaton Website Services

8 Nov 2021, 8:39 PM
#236
okey2477 avatar

okey2477

New Zenner

Join Date:
Jun 2021
Location:
Nigeria
Posts:
1
Plugin Contributions:
0

Re: wishlists 0.6

I started using zen cart recently, Installed wishlist 0.9. However I can't create new wishlist, it seems it has something to do with this code.
please any help will be appreciated.
/**
* create a new wishlist
*
* @param string $name name for wishlist
# @param string $comment comment for wishlist
# @param boolean $default indicates default wishlist for customer
* @return integer $iWishlistId unique wishlist identifier
* @access public
/----------------------------------------------------------/
function createWishlist($name='', $comment='', $default_status=0, $public_status=1) {

	if ( !isset($this->_iCustomerId) ) {
		return false;
	}

	$sql = "INSERT INTO '" . UN_TABLE_WISHLISTS . "' (
				`id`,
				`customers_id`, 
				`created`, 
				`modified`, 
				`name`, 
				`comment`, 
				`default_status`, 
				`public_status` 
			) VALUES (
			    NULL,
				'".$this->_iCustomerId."', 
				NOW(), 
				NOW(), 
				'".$name."', 
				'".$comment."', 
				'".$default_status."', 
				'".$public_status."' 
			)";

	$result = $this->_oDB->Execute($sql);
	if ( !$result ) {
		$this->_oMessages->add($this->_sName, UN_ERROR_CREATE_WISHLIST);
		return false;
	}
	
	return $this->_oDB->Insert_ID();
}