WordPress.org

Ready to get started?Download WordPress

Forums

Amazon Link
[resolved] show prices of different sites and a little bug? (16 posts)

  1. Alessandro Bagalini
    Member
    Posted 2 years ago #

    Hi Paul! Thanks for this plug-in, I like it!

    I have a request, I'd like to show the prices of different amazon sites directly on the page, we can do with some tags in tamplates?

    And I have a little bug in my site, when displaying the flags of the various amazon sites, appear quite far from the mouse. In some cases it is impossible to reach them to click, especially when they are near the edges of the window, may depend on the premium theme (Photocrati) I have chosen?

    If you want to take a look, this is the page:
    http://foto.alessandrobagalini.eu/blog/guia-de-compra-nikon/

    Thank you very much for your time!
    Alessandro

    http://wordpress.org/extend/plugins/amazon-link/

  2. paulstuttard
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Alessandro,

    I've had a look at the putting multiple prices in before, but it is quiet 'request' intensive (and so slows page loading down a lot).

    Would you be interested in a currency conversion of one site's price instead (e.g. get the UK price then show the same price equivalent in Euro and Dollars), this is much simpler to implement...

    Or perhaps just do a select number of sites, e.g. US, UK, DE (user selected)?

    You can manually do what you want but it is quiet clunky, add something like to your post:

    [amazon asin=B00403MA4M&template=price&live=1&multi_cc=0&default_cc=it&localise=0]
    [amazon asin=B00403MA4M&template=price&live=1&multi_cc=0&default_cc=uk&localise=0]
    [amazon asin=B00403MA4M&template=price&live=1&multi_cc=0&default_cc=us&localise=0]

    The 'default_cc=it&localise=0' part forces the plugin to use the selected locale. The 'price' template could just contain something like:

    [%LINK_OPEN%%MPLACE%: %PRICE%%LINK_CLOSE% ]

    ---

    I'll have a look at the flag pop-up location problem when I'm not at work (firewalled at the moment).

    Cheers,

    Paul

  3. Alessandro Bagalini
    Member
    Posted 2 years ago #

    Hi Paul,

    really interesting the two options to display the prices, for my purpose, I think that the choice of sites (uk, it, es, etc.) by user is the most indicated, my intention is to compare the prices of a specific product between various amazon sites.

    Thank you for your help, cheers.

    Alessandro

  4. paulstuttard
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Alessandro,

    Been thinking about this for some time, and have come up with a solution that might suit you. However means a major rewrite of the plugin so might be a few days before its ready for testing.

    Basically I'm going to add an extra optional item to the template items, along the lines of:

    %PRICE% = Get the local/default price (as it does now)
    %PRICE%UK# = Get & display the UK Price
    %PRICE%US# = Get & display the US Price, etc.

    You can use this for all template items, TITLE, LINK_OPEN, AUTHOR, etc.

    If you want to set country specific items in the shortcode, you need to use the following:

    text[uk]=English Price&text[fr]=Prix Fran├žaises

    I'll let you know when a new version is ready.

    Paul

  5. Alessandro Bagalini
    Member
    Posted 2 years ago #

    Hi Paul,

    Thank you very much, is a great solution!

    I do a little page test with only 5 products and all manually liked price from different amazon sites. As you said, the page becomes really slow, you can test yourself here: http://foto.alessandrobagalini.eu/blog/guia-de-compra-nikon/comp-nikon-dsrl-fx/

    I noticed also the ASIN code of US and CA are different from the Europe Code, on european amazon sites (IT, ES, UK, FR, DE) the ASIN is almos always the same. But is not a big problem, my goal is to show the price for european market.

    Thank you again,
    Alessandro

  6. paulstuttard
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Allessandro,

    That does take forever to load!

    I think the only solution to that problem is for the plugin to cache the data returned from Amazon, every price from a different locale needs a request to amazon to get the data - this is slowing the page down.

    The downside of this is that the prices will be slightly out of date, depending on the age of the data in the cache.

    Also for your example page, each request that does not return any data (because that ASIN is not available at that locale) will still be performed.

    I've got a caching version of the plugin running, but I need to add some extra settings before I can give you a copy.

    Paul

  7. paulstuttard
    Member
    Plugin Author

    Posted 2 years ago #

    Example of the latest version of the plugin:

    http://www.houseindorset.co.uk/2011/07/composter/

    Note: specified different ASIN values for each country, if not supplied uses the 'Default locale' one.

    Is this the sort of thing you are after?

    Paul

  8. Alessandro Bagalini
    Member
    Posted 2 years ago #

    Is amazing! This is it!
    And with the little flag, is beautiful and clean.

    Have you seen the flag pop-up location on my page? Appear far of the mouse, I try with chrome, firefox and safari.

    I've noticed a bug with Photocrati Premium Theme, but I don't know if the problem is related. Only when browser is in full screen the body of the page is aligned to right...
    I write to support right now.

    Alessandro

  9. paulstuttard
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Alessandro,

    I have finished a major rework of the plugin but have not yet made it available for general use as it needs testing.

    If you want to give it a try you can download it from:

    http://downloads.wordpress.org/plugin/amazon-link.zip

    You will have to manually install it into your plugins directory.

    Notes:
    There is now a basic 'cache' facility, however you have to Enable it in the plugin Options section.

    I have included an example 'Multinational' default template to get you started - based on the one in the link in the previous post.

    I have not had chance to work out why the pop-up is not working on your site yet, some odd javascript issue no doubt.

    Paul

  10. paulstuttard
    Member
    Plugin Author

    Posted 2 years ago #

    Looking at your site, I see there is a small bug with the non-local links, I've updated to development version to fix this.

    http://downloads.wordpress.org/plugin/amazon-link.zip

    Paul

  11. Alessandro Bagalini
    Member
    Posted 2 years ago #

    Thank you Paul!

    I've tried to create a new page, I can not bring the flash in line with text.
    I try the new code, thanks!

    Alessandro

  12. paulstuttard
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Alessandro,

    Looks good, still a bit slow, have you turned the cache on?

    You can always disable the multinational popup in the options if we can't fix it.

    Paul

  13. Alessandro Bagalini
    Member
    Posted 2 years ago #

    Hi Paul,

    the cache is on with default value, and I try right now and is much much faster when reload the page. Is very good! Now I try to split the main page in 5 or 6 category page for speed up first load.

    Then I disable the multinational popup.

    Thank you!
    Alessandro

  14. paulstuttard
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Alessandro,

    Found another bug in the caching code, now fixed in the dev. version:

    http://downloads.wordpress.org/plugin/amazon-link.zip

    Paul

  15. Alessandro Bagalini
    Member
    Posted 2 years ago #

    Hi Paul,

    just upgraded. Thank you!

    Alessandro

  16. paulstuttard
    Member
    Plugin Author

    Posted 1 year ago #

    Now released as version 3.0.1.

    Sorry could not resolve the 'pop-up' in the wrong place bug.

    Paul

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic