WordPress.org

Ready to get started?Download WordPress

Forums

Getting more from Amazon..? (16 posts)

  1. davidchait
    Member
    Posted 10 years ago #

    I'm pretty sure the Wishlist capabilities are there under the covers of CGA. I'd be willing to work on making it into a user-defineable variable and a specific function/tag. It would then be synchronized on the same cycle as the rest of CGA stuff. No need for cron, although I do have a way (somewhere...) to force an update of the system. Right now it does sort of a lazy update.
    As for unread/read/etc., CGA has the wpCategory field for you to enter your own categorization. Unless you've already used if for some other classification. I could add a second category field, just starts making queries a bit more complex. :)
    -d
    CHAITGEAR

  2. davidchait
    Member
    Posted 10 years ago #

    Meant to post here. Ugh.
    0.93 should be up tonight or tomorrow, keep an eye out. Wishlists were simply another searchtype I didn't have covered, and I've added a new specific function to show wishlists and other such special lookups.
    -d

  3. davidchait
    Member
    Posted 10 years ago #

    New version 0.93 is up, new Wishlist function (and config var) referenced in the readme.
    CG-Amazon Download
    -d

  4. Alex
    Member
    Posted 10 years ago #

    That's great David! Thanks for the speedy response and great plugin. :) It is truly appreciated.
    Alex

  5. w8in
    Member
    Posted 10 years ago #

    I'm having a problem :
    I get the following error when creating the table, as described in step 6 of the readme :
    Fatal error: Cannot redeclare findstr() (previously declared in <mysite>/wp/helper_fns.php:116) in <mysite>/wp/cg-plugins/helper_fns.php on line 116
    Also, step 5 mentions " Then upload the new CGA files to your server."
    What files are you referring to? Didn't we already upload all files in step 1?

  6. davidchait
    Member
    Posted 10 years ago #

    First, I work in an offline environment, where I set up all my files locally then upload them to the server. Most people do that. So I generally write in terms of organizing files, configuring them on the local machine, then upload them for use on your live server.
    Second, that particular error I believe is referenced on the download page. If you use other CG plugins with CG-Amazon, there are new versions of them all and everything must be placed in the cg-plugins directory that CGA comes with. In some future version(s), I'll start encapsulating CG-Referer and CG-Feedread underneat a cg-plugins folder as well so this gets less confusing.
    Basically, the CG stuff is ALL meant to be run from cg-plugins, though only CGA makes that a 'requirement' -- but if you run CGA alongside other CG stuff, the other two need to be added to CGA's cg-plugins folder as they share a bunch of common php files.
    That make sense? Remove the CG files from your base WP directory, and move them instead into the cg-plugins directory -- though make sure you are using the latest versions (i.e., don't overwrite CGA versions of files... use those).
    -d

  7. w8in
    Member
    Posted 10 years ago #

    Makes sense...I'll give that a go. Thanks!

  8. davidchait
    Member
    Posted 10 years ago #

    No problem! Feel free to post here or in the main CGA thread if you have further questions.
    -d

  9. denyerec
    Member
    Posted 10 years ago #

    Status' is a doozy, wishlists, not quite as straightforward and as I don't use them myself, it's not something I considered.
    I'm making a list of things myself and others have suggested for AMM2, though I want to keep is as simple as possible, so if super-twinkle-status-reporting and the zenith of customisation is your heart's desire, you may well be found wanting :)
    I'm a simple person, afterall :)

  10. w8in
    Member
    Posted 10 years ago #

    david, I actually got it working after I "uninstalled" cg-feedread, which I never really got to work (and don't really need anyway).
    It looks really nice and I'm impressed. I saw the example code for the wishlist pulls in 3 random items, but a refresh of the page gave the same 3 results. Is there an expiration time set in which it pulls 3 different items? Or is it per session?
    Also, the wishlist output takes a long time to load, which doesn't make it attractive to put it on top. Any chance of that being improved in the future?
    Thnx..great work.

  11. davidchait
    Member
    Posted 10 years ago #

    Just uploaded 0.933. Fixes caching of the wishlist data, which was the long load time.
    I just tried it on my internal site here, and got random stuff. Just F5ing the page over and over.
    Try the new version, see if that works better.
    CG-Amazon Download
    -d

  12. davidchait
    Member
    Posted 10 years ago #

    w8in - btw, if you grab the a new copy of feedread and copy it INTO the cg-plugins directory, all should work just fine. I like it because it tells me visitor counts, referrers, and searches. But I need that as I'm running a blog-thats-not-a-blog site. ;)
    And let me know if the new version is missing anything else.
    -d

  13. w8in
    Member
    Posted 10 years ago #

    The wishlist retrieval doesn't seem a lot faster, but I've incorporated it in my blog anyway.
    I may try the feedread again tonight.

  14. davidchait
    Member
    Posted 10 years ago #

    Huh? The wishlist should retrieve once every 24h based on the default timing. Check your cache_amazon directory on the webserver, and make sure that a WishlistXXXXXXX.bin (the X's would be your wishlist ID) file has been created. If not, that's the problem. If the cache file isn't there, it does a lookup every time -- and you DON'T want that! ;)
    Once cached, the display should be pretty-darn-quick. The only thing that would 'delay' the pageload is the actual images from amazon, and you could prove that out by setting image to false.
    Definitely make sure you're using .934, as it solves both image size (and disable) stuff, and has the .933 changes to solve the wishlist caching problem.
    -d

  15. Beel
    Member
    Posted 10 years ago #

    The cache in .934 appears to be working fine. Deleted the cached wishlist and got an updated one with the new items on my wishlist. Images appear to be working now also (or rather not displaying when set to 'false').

  16. davidchait
    Member
    Posted 10 years ago #

    Great, glad to hear it!
    I'm still musing on some further features related to giving you more control over the layout of items... we'll see where it goes.
    -d

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.