<![CDATA[ CookieList - Wishlist/favorites addon for Revolution using lovely Cookies! - My Forums]]> https://forums.modx.com/thread/?thread=71914 <![CDATA[Re: CookieList - Wishlist/favorites addon for Revolution using lovely Cookies!]]> https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=4#dis-post-561724 I have had same issue and found the following on line 166 of CookieList class
return $protocol.'://'.$_SERVER['SERVER_NAME'].$port.$params;

Removed
.$port

and all sorted. Not sure of the logic for that being included in the url string.]]>
aussiebranding Sep 24, 2018, 09:55 PM https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=4#dis-post-561724
<![CDATA[Re: CookieList - Wishlist/favorites addon for Revolution using lovely Cookies!]]> https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=4#dis-post-521419
I do however have another issue and probably a feature request? I raised this here: http://forums.modx.com/thread/?thread=77771&page=1#dis-post-521081 but thought I would run it by the Cookielist Page too. But only briefly as all the info is on the other post.

I'd like to use cookielist to have a 'Buy It Now' button, which will add an item to cookielist and then redirect to the basket page. I wondered if this is possible?]]>
dave-b Feb 26, 2015, 08:17 AM https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=4#dis-post-521419
<![CDATA[Re: CookieList - Wishlist/favorites addon for Revolution using lovely Cookies!]]> https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=4#dis-post-520373 Quote from: paulp at Mar 16, 2013, 03:31 PM
Right I've really got no idea how I can resolve this, I'm willing to pay someone to get this sorted for me / us and release an update as it doesn't appear to be supported.

Could someone give me a price and I'll PM you FTP and admin logins ( no one with 2 posts though, has to be a trusted member ) wink

Thanks

Hi Paul,

Did you ever find a fix for this. I'm having a very similar problem. However, I think this may be more of a getresources issue. This is my call:

[[!getCookieList:isnot=``:then=`
	[[!getResources?
		&resources=`[[!getCookieList]]`
		&parent=`795`
		&tpl=`chnk_Basket`
		&limit=`5`
		&depth=`5`
	]]
`:else=`
	<li>
		<h4>The list is empty!</h4>
	</li>
`]]
<li>
[[!getCookieList]]
</li>


My second call [[!getCookieList]] lists the ID of the pages I have added to cookielist. But when I go to my Container for those items the getresources call shows ALL the resources in the container. If I change the &resources=`[[!getCookieList]]` to just a single resource ID it's also ignored by the call and still displays all the resources in that container. This is why I think it may be getresources. Would be great to know if you found a fix?
]]>
dave-b Feb 10, 2015, 03:26 PM https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=4#dis-post-520373
<![CDATA[Re: CookieList - Wishlist/favorites addon for Revolution using lovely Cookies!]]> https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=4#dis-post-511825 https://www.mydomain.com443/home/ from https://www.mydomain.com/home/ (it adds 443 after the .com)


This is my htaccess file:

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
 
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
 
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
 
# Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^sandramillerfloral\.com [NC]
RewriteRule (.*) http://sandramillerfloral.com/$1 [R=301,L]

# HTTPS goes first, with ending [L]
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]

# For Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
 
# Reduce server overhead by enabling output compression if supported.
php_flag zlib.output_compression On
php_value zlib.output_compression_level 5


And this is the headers when doing a net-trace while clicking the link:

Remote Address:107.170.25.225:443
Request URL:https://sandramillerfloral.com/home2/?cl_add=96
Request Method:GET
Status Code:302 Found
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Cookie:cookieList[items]=238%2C96; _jsuid=2253275308; cookieList[cl_check]=1; minishop2-category-grid-41=%7B%22start%22%3A0%2C%22limit%22%3A%22%22%2C%22action%22%3A%22mgr/product/getlist%22%2C%22parent%22%3A%2241%22%7D; minishop2-category-grid-291=%7B%22start%22%3A0%2C%22limit%22%3A%22%22%2C%22action%22%3A%22mgr/product/getlist%22%2C%22parent%22%3A%22291%22%7D; _sp_id.1249=fff95082430ff96f.1409625806.5.1412220935.1412018382; minishop2-category-grid-67=%7B%22start%22%3A0%2C%22limit%22%3A%22%22%2C%22action%22%3A%22mgr/product/getlist%22%2C%22parent%22%3A%2267%22%7D; cookieList[items]=238; _gat=1; _ga=GA1.2.517265031.1408034058; PHPSESSID=cjoovd9lkah7qagcdh2uq111g1
Host:sandramillerfloral.com
Referer:https://sandramillerfloral.com/home2/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36
Query String Parametersview sourceview URL encoded
cl_add:96
Response Headersview source
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:Keep-Alive
Content-Encoding:gzip
Content-Length:26
Content-Type:text/html
Date:Thu, 02 Oct 2014 16:51:53 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive:timeout=5, max=98
Location:https://sandramillerfloral.com443/home2/
Pragma:no-cache
Server:Apache
Set-Cookie:PHPSESSID=cjoovd9lkah7qagcdh2uq111g1; path=/; httponly
Set-Cookie:cookieList[items]=238%2C96; expires=Sat, 01-Nov-2014 16:51:53 GMT
Vary:Accept-Encoding
X-Powered-By:PHP/5.3.10-1ubuntu3.9




Anyone had any experience with this in the past?]]>
nick2687 Oct 02, 2014, 11:53 AM https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=4#dis-post-511825
<![CDATA[Re: CookieList - Wishlist/favorites addon for Revolution using lovely Cookies!]]> https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=4#dis-post-475269
var t = setTimeout(function(){
.....something (like $.colorbox....)
},20000);

should be 20 seconds.

Regards.]]>
cascompany Aug 18, 2013, 05:48 AM https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=4#dis-post-475269
<![CDATA[Re: CookieList - Wishlist/favorites addon for Revolution using lovely Cookies!]]> https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=4#dis-post-472384
So here is the script:

jQuery(document).ready(function(){
    if (document.cookie.indexOf('visited=true') == -1) {
        var fifteenDays = 1000*60*60*24*15;
        var expires = new Date((new Date()).valueOf() + fifteenDays);
        document.cookie = "visited=true;expires=" + expires.toUTCString();
        $.colorbox({width:"30%", inline:true, href:"#subscribe"});
    }
});


Is it possible to make the div appear after 20 or 30 seconds ?

Tks]]>
carlo_13 Jul 20, 2013, 07:33 PM https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=4#dis-post-472384
<![CDATA[Re: CookieList - Wishlist/favorites addon for Revolution using lovely Cookies!]]> https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=3#dis-post-468954 http://stackoverflow.com/questions/6086984/using-cookies-to-load-colorbox-on-first-page-load-only]]> nir-z Jun 13, 2013, 05:29 AM https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=3#dis-post-468954 <![CDATA[Re: CookieList - Wishlist/favorites addon for Revolution using lovely Cookies!]]> https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=3#dis-post-468924
I need to make a div appear on the first visit after 20 seconds.

Can cookielist help me to realise that ?

Thanks for your answers.]]>
carlo_13 Jun 12, 2013, 02:52 PM https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=3#dis-post-468924
<![CDATA[Re: CookieList - Wishlist/favorites addon for Revolution using lovely Cookies!]]> https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=3#dis-post-458991
Could someone give me a price and I'll PM you FTP and admin logins ( no one with 2 posts though, has to be a trusted member ) wink

Thanks]]>
paulp Mar 16, 2013, 10:31 AM https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=3#dis-post-458991
<![CDATA[Re: CookieList - Wishlist/favorites addon for Revolution using lovely Cookies!]]> https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=3#dis-post-458180
I've got it set up as follows, in my template for the single campsites I have:

[[!addToCookieList? &addText=`Add to Favourites` &removeText=`Remove from Favourites` &value=`[[+id]]`]]


Then on the right hand side of all pages I have the following getResources call:

[[!getResources?
            &tpl=`chk-wishlist`
            &resources=`[[!getCookieList]]`
            &includeTVs=`1`
            &tvPrefix=``
    ]]


And in my chk-wishlist chunk I have:

<a href="[[~[[+id]]]]">[[+pagetitle]]</a>


If im on a page that doesn't have any other getResources or getPage call on it it is working fine, the problem is when I'm on a page thats listing the sites, it then adds them to the list even though I haven't added them to the wishlist, if I just use the below it works as expected so the issue is with using getPage on the same page which I've tried calling them cached, uncached and loads of names wink.

[[!getCookieList]]


]]>
paulp Mar 10, 2013, 10:02 AM https://forums.modx.com/thread/71914/cookielist---wishlist-favorites-addon-for-revolution-using-lovely-cookies?page=3#dis-post-458180