Wishlist vs. Categories

CypherFOXCypherFOX Posts: 3,393
edited November 2015 in The Commons

Greetings,
So I went to the Item's released in 2014 category, but because it requires being put in the cart before seeing the discount, I wasn't sure which ones were in my wishlist.

Pulling up my JavaScript console and the Networking tab of the JavaScript debugger, I found that the pagedata API has my wishlist (by SKU) in it, and the individual pages have a variable named 'catalogData' which contains all the SKUs for that catalog (the 'Items released in 2014 that are from 60 days or more ago').

Combining these two, resulted in something like this:

var info = daz.api.data['User/info']
for(var i=0; i) != -1) {
    var sku = info.wishlistItems[ i ];
    $.getJSON('http://www.daz3d.com/dazApi/slab/' + sku).success(function(x) {
      console.log("http://www.daz3d.com/" + x.url)
    });
  };

 

That gave me the following response:

http://www.daz3d.com//photo-studio-point-and-shoot-2http://www.daz3d.com//nature-rocks-pack-1http://www.daz3d.com//ethnics-for-genesis-2-male-shttp://www.daz3d.com//soldier-for-genesis-2-male-shttp://www.daz3d.com//ten-rooms-three-halls-ubiquitous-interiorhttp://www.daz3d.com//dg-dual-layer-shader-architecturalhttp://www.daz3d.com//classic-recurve-bow-smart-prop-and-poseshttp://www.daz3d.com//aiko-6-face-morph-resource-kithttp://www.daz3d.com//high-garden-outfit-textureshttp://www.daz3d.com//the-barlow-house-ravenskull-stair-hallhttp://www.daz3d.com//the-barlow-house-ravenskull-court-exteriorhttp://www.daz3d.com//sewer-model-pack


...
which is, of course, the list of items in my Wishlist that are in that particular category.

 

I'd love it if a capability like that got included in the site natively. Just sayin'... :)

EDIT
Even more fun...

 


var info = daz.api.data['User/info']
var yes = {}; for(var i=0; i] = true; }
daz.filter.filters.platClub.yes = yes;

Then click the 'Only show PC+' button. The code above replaces the PC+ filter with a wishlist filter. It only works until you reload the page, of course, but it's pretty slick, and shows how easily a 'Wishlist' filter could be added that would make the category pages vastly more useful when it's listing items that require a separate purches to get a discount.

 

-- Morgan

Post edited by Richard Haseltine on

Comments

  • CypherFOXCypherFOX Posts: 3,393
    edited December 2014

    Greetings,
    Just for fun, I turned the above into a Bookmarklet that (when you click it) replaces your 'Show only PC+' checkbox with a 'Wishlist' checkbox. When you select it, it filters any page you're on down to just the items visible in that category and in your wishlist.

    This is, by the way, kind of AWESOME on the 'All' page, as it turns the whole thing into a special category showing just your wishlist.

    Anyway, you can get the bookmarklet here: http://3dwishlist.com/bookmarklet

    If you're not familiar with how to use a bookmarklet, it has some directions. The simplest approach is to drag the 'Wishlistify' link up to your bookmarks bar, then go to the page you want it to run on, and click the newly added bookmark. It should change the PC+ filter to 'Wishlist' filter. Click the checkbox, and 'voila!'

    N.b.: Only tested on Chrome. It might (should) work on other browsers.

    -- Morgan

    Post edited by CypherFOX on
  • PendraiaPendraia Posts: 2,958
    edited December 1969

    Cypherfox said:
    Greetings,
    Just for fun, I turned the above into a Bookmarklet that (when you click it) replaces your 'Show only PC+' checkbox with a 'Wishlist' checkbox. When you select it, it filters any page you're on down to just the items visible in that category and in your wishlist.

    This is, by the way, kind of AWESOME on the 'All' page, as it turns the whole thing into a special category showing just your wishlist.

    Anyway, you can get the bookmarklet here: http://3dwishlist.com/bookmarklet

    If you're not familiar with how to use a bookmarklet, it has some directions. The simplest approach is to drag the 'Wishlistify' link up to your bookmarks bar, then go to the page you want it to run on, and click the newly added bookmark. It should change the PC+ filter to 'Wishlist' filter. Click the checkbox, and 'voila!'

    N.b.: Only tested on Chrome. It might (should) work on other browsers.

    -- Morgan

    Thanks Morgan...just started using chrome this should be useful.
  • KeryaKerya Posts: 10,700
    edited December 1969

    It works with Firefox too!
    THANK YOU!!!!!!!!!!!!!!!!!!!!!!!
    Happy dance!

    I asked for the Wishlist icon to be next to the cart icon in the categories - just for sales like this ... I was told it makes things too cluttered ... your solution is wonderful!

    Thank you!

  • BeeMKayBeeMKay Posts: 6,790
    edited December 1969

    Wow, this is great! Thank you! :D

  • SpitSpit Posts: 2,342
    edited December 1969

    Yeah, I use it too in Firefox. Love it. Thanks!

  • DollyGirlDollyGirl Posts: 2,468
    edited December 1969

    Used it in Explorer and worked just fine for me. Sweet and thanks. Two things from my wishlist popped up and I put them in the cart and what do you know they were half off. Would not have known that so your little bookmarklet scored a sale. Yipee!

  • RuphussRuphuss Posts: 2,609
    edited December 1969

    so useful
    now my wishlist has a purpose again
    thx cypherfox

  • RuphussRuphuss Posts: 2,609
    edited December 1969

    hi cypherfox
    would it be possible to make a "pc+ coupon filter"
    like no new items. no pc+ items .just daz originals. like that ?

  • CypherFOXCypherFOX Posts: 3,393
    edited December 1969

    Greetings,
    Well...the Wishlist filter is an 'inclusionary' filter, I.e. you mark the items to be included, and it only shows them. What you're looking for is an exclusionary filter. Now that's entirely doable, but it can't replace the PC+ filter as easily. I haven't dug into the 'items I own' filter, but while it is exclusionary, I'm afraid that tampering with the underlying data would mess up showing things like whether you already own an item or not. Besides, you'd want to filter the 'PC+ Coupon' list by hiding items you own...

    That said, it IS doable, by adding an entirely custom filter. That's a bit big for a bookmarklet, but I might give it a try this weekend. It'd be worlds easier if Greasemonkey scripts still worked on both Firefox and Chrome. (While I'm wishing, though, it'd be even easier if DAZ gave a filter button 'Non-PC items' because then you could just filter on DAZ as the vendor, check the 'No PC' button, and page forward past the ones with 'New' splashed across their corner.)

    For what it's worth, in categories like March Madness 'More madness', none of the items are PC items, or new, so filtering those categories on DAZ as th vendor accomplishes the same goal. That just doesn't work on the 'All Items' list.

    -- Morgan

  • JazzyBearJazzyBear Posts: 705
    edited December 1969

    Is there a way to see ONLY the items I own anywhere in the Shop? Being able to toggle this would sure help me see what I have that might already go well with new items.

  • DAZ_JonDAZ_Jon Posts: 581
    edited December 1969

    The good news is we've discussed this previously and have it on the list of things to add (we have the data already, so doing it is easy). We're wrapping up the new forum software conversion, so it will make it in shortly. We're thinking of something similar to how Steam displays items on your wishlist in the list view essentially... so it will show the status but not allow adding / or removing since, in the visual footprint of a thumbnail, adding functionality to browse, add to cart, and add to wishlist, especially depending on the screen size you're viewing it on, feels like cramming too much into that space.

  • cecilia.robinsoncecilia.robinson Posts: 2,208
    edited December 1969

    DAZ_Jon said:
    The good news is we've discussed this previously and have it on the list of things to add (we have the data already, so doing it is easy). We're wrapping up the new forum software conversion, so it will make it in shortly. We're thinking of something similar to how Steam displays items on your wishlist in the list view essentially... so it will show the status but not allow adding / or removing since, in the visual footprint of a thumbnail, adding functionality to browse, add to cart, and add to wishlist, especially depending on the screen size you're viewing it on, feels like cramming too much into that space.

    It would be delightful to have an ability to view just items you wishlisted during big sales. Unfortunately, the plugin described above doesn't work properly for me.

  • CypherFOXCypherFOX Posts: 3,393
    edited December 1969

    Greetings,

    It would be delightful to have an ability to view just items you wishlisted during big sales. Unfortunately, the plugin described above doesn't work properly for me.
    Like most of the things that I play with implementing around here, I'm fairly confident that DAZ will eventually put it into their site, so mine's just a stop-gap. (And because I code the way other folks doodle... :) )

    That said, if the bookmarklet isn't working for you, I'd be happy to try to make it better for you. PM me with what happens when you click it in your bookmarks bar?

    -- Morgan

  • I just wanted to say a HUGE Thank you to CypherFOX for making these nifty, little bookmarks. Such a great help! I almost feel bad for getting them for free!

Sign In or Register to comment.