Title: kelecap's Replies | WordPress.org

---

# kelecap

  [  ](https://wordpress.org/support/users/capbell/)

 *   [Profile](https://wordpress.org/support/users/capbell/)
 *   [Topics Started](https://wordpress.org/support/users/capbell/topics/)
 *   [Replies Created](https://wordpress.org/support/users/capbell/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/capbell/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/capbell/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/capbell/engagements/)
 *   [Favorites](https://wordpress.org/support/users/capbell/favorites/)

 Search replies:

## Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Amazon Link] Localised banners?](https://wordpress.org/support/topic/localised-banners/)
 *  Thread Starter [kelecap](https://wordpress.org/support/users/capbell/)
 * (@capbell)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/localised-banners/#post-3369359)
 * Ah yes ad-blocker, I once spent over an hour trying to figure out why my ad code
   wasn’t working once!!!!
 * Thanks for the thorough reply as always, your method might work! I wil test it
   later, however, It looks like there is no way to shove in a rel=nofollow attribute
   into a banner is there? Damn iFrames!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BJ Lazy Load] Not loading particular images? Please help](https://wordpress.org/support/topic/not-loading-particular-images-please-help/)
 *  Thread Starter [kelecap](https://wordpress.org/support/users/capbell/)
 * (@capbell)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/not-loading-particular-images-please-help/#post-3326011)
 * I fixed it.
 * I simply added another preg_match to find a specific word.
 * AFTER:
    foreach ( $matches[0] as $imgHTML ) {
 * PUT:
    if (preg_match(“/ignored/i”, $imgHTML)) {} else {
 * AND THEN ADD A } AFTER
 * array_push( $replace, $replaceHTML );
 * What this all does is checks each image url for the word “ignored” and then does
   nothing if found, and does the usual lazy load stuff if it isn’t found. Simply
   add the word “ignored” to the class of the image html in the HTML editor of your
   post so it looks something like Class=”whateverclassyoualreadyhave ignored”
 * Good luck.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Amazon Link] Using localisation](https://wordpress.org/support/topic/using-localisation/)
 *  Thread Starter [kelecap](https://wordpress.org/support/users/capbell/)
 * (@capbell)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/using-localisation/#post-3198327)
 * Brilliant! 🙂
 * Here’s another idea I ran into – Have you ever looked at adding links to images?
   Not amazon images, but uploaded media images and have them clickable to an Amazon
   ASIN with localisation?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Amazon Link] Using localisation](https://wordpress.org/support/topic/using-localisation/)
 *  Thread Starter [kelecap](https://wordpress.org/support/users/capbell/)
 * (@capbell)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/using-localisation/#post-3198308)
 * I will simply leave cache off, much simpler and doesn’t seem to have an effect
   on anything! (I only have one live price per page).
 * Well, Amazon simply told me “live price” so to ensure that you are 100% not breaking
   any rules, i’d assume they mean any price.
 * Another little thing I found was that you set it so that each user can add their
   own affiliate links in their wordpress user profiles. Can you tell me where this
   is coded in please? I have some friends writing on my site, and would much prefer
   if they didn’t have that option. Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Amazon Link] Using localisation](https://wordpress.org/support/topic/using-localisation/)
 *  Thread Starter [kelecap](https://wordpress.org/support/users/capbell/)
 * (@capbell)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/using-localisation/#post-3198306)
 * Fantastic, I will test that version soon.
 * Another small side note that I forgot to ask you too, is I contacted Amazon and
   they say that if you show live prices through the API and they are more than 
   1 hour old, then you have to put a time stamp saying when the price is from. 
   How old/often does your plugin retrieve the prices?
 * Thanks Paul
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Popular posts Jetpack = Thumbnails don't work](https://wordpress.org/support/topic/popular-posts-jetpack-thumbnails-dont-work/)
 *  Thread Starter [kelecap](https://wordpress.org/support/users/capbell/)
 * (@capbell)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/popular-posts-jetpack-thumbnails-dont-work/#post-3194046)
 * Where did I say it was a bug? I clearly stated “This and this = doesn’t work”
   I’m simply stating a problem I am having when using your plugin and looking to
   get “support?”
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Amazon Link] Using localisation](https://wordpress.org/support/topic/using-localisation/)
 *  Thread Starter [kelecap](https://wordpress.org/support/users/capbell/)
 * (@capbell)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/using-localisation/#post-3198272)
 * That is exactly what i’m trying to accomplish!
 * Is it not feasible to simply do a simple if? If = 10 digits, then do amazon code,
   if not then echo the code literally for that localization?
 * Have you got any timescales for this update?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Amazon Link] Using localisation](https://wordpress.org/support/topic/using-localisation/)
 *  Thread Starter [kelecap](https://wordpress.org/support/users/capbell/)
 * (@capbell)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/using-localisation/#post-3198270)
 * Fantastic, what an excellent plugin indeed. =]
 * I did run into one other little hiccup also that I wasn’t able to resolve. When
   a product doesn’t exist in one amazon, it obviously goes to amazon’s 404, is 
   there a way to send visitors from the amazon that is broken to another site. (
   I would manually check amazon.com and .co.uk, and if 404 then I’d manually want
   to send relevant users to different website)
 * I.e use shortcode to set links
 * [FR]=ASINNUMBER&[US]=ASINNUMBER&[UK]www.otherwebsite.com/product
 * ?
 * Thanks again Paul, you are the greatest.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Amazon Link] [Plugin: Amazon Link] Data in Custom fields](https://wordpress.org/support/topic/plugin-amazon-link-data-in-custom-fields/)
 *  Thread Starter [kelecap](https://wordpress.org/support/users/capbell/)
 * (@capbell)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-amazon-link-data-in-custom-fields/#post-3113672)
 * Incredible helpful response. Thanks again!
 * 1- I thought so, my solution was to create a secondary template with only %price%,
   and using an if = ‘-‘ I made it show the price as a backup instead of ever showing
   the ‘-‘ in case no list price was set.
 * 2- I managed to fix everything and you were right, i used an if strlen > 15 statement
   to distinguish between a single asin and multiple and then set the output correctly(
   with asin= or without for multiple). Tested it through a US proxy and my UK connection
   and they show the right ASIN.
 * 🙂
 * 3- link_start doesn’t work for me for some reason, but instead I did this – set
   up a template with [http://www.amazon.%TLD%/dp/%asin%/?tag=%TAG%](http://www.amazon.%TLD%/dp/%asin%/?tag=%TAG%)
   and simply echo’d that in the correct place.
 * My only concern with this is that it will literally say amazon.com/dp/ASIN/?tag
   =something. Is amazon okay with that or do they expect to the see all the “creative
   =”, etc tags in the url too?
 * 4- I decided to just show the price as I might not always show the list price(
   if not set up), but I am sure that would work.
 * 5- You’re absolutely right, I realised that the asin I was testing was from amazon.
   com and didn’t exist in amazon.co.uk. After adjusting the code to accept specific
   ASIN for cases like this, it is now fixed too.
 * I will rate the plugin 5 stars, especially for your helpful support here.
 * Thanks again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Amazon Link] [Plugin: Amazon Link] Data in Custom fields](https://wordpress.org/support/topic/plugin-amazon-link-data-in-custom-fields/)
 *  Thread Starter [kelecap](https://wordpress.org/support/users/capbell/)
 * (@capbell)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-amazon-link-data-in-custom-fields/#post-3113666)
 * I also forgot to ask, the code you provided me only displays the price of the
   asin I use, it doesn’t output the localised price. How can I set it to show localised
   price (only the local price, nothing else) Sorry to ask such basic questions,
   but i read through your faq and installation, and can’t figure it out 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Amazon Link] [Plugin: Amazon Link] Data in Custom fields](https://wordpress.org/support/topic/plugin-amazon-link-data-in-custom-fields/)
 *  Thread Starter [kelecap](https://wordpress.org/support/users/capbell/)
 * (@capbell)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-amazon-link-data-in-custom-fields/#post-3113659)
 * Hey there Paul,
 * Thanks again, i’ve made progress with it but really stuck at the moment. Forgive
   me for troubling you please.
 * 1- Some products for some reason do not have a list price and show up as “-“,
   is there a reason for this? For example this product: amazon.co.uk/Nosefrida-
   Nasal-Aspirator/dp/B00171WXII
 * if i put the template to display both list price of the US and UK amazon, the
   us shows fine but not the uk. Other products show both. Is there a way to fix
   this? As, i’m sure you’ll understand that no one ever wants to show a “-“!
 * 2- This is the code I am using to get the asin from a custom field:
 *     ```
       $asincf = isset($custom["amazoncf"][0]) ? $custom["amazoncf"][0] : '';
   
       if (function_exists(amazon_shortcode))  {
          $list_price = amazon_shortcode('template=price&live=1&asin=' . $asincf);
       }
       ```
   
 * and I insert the asin into the custom field called “amazoncf”. This works but
   if I try to put this into the custom field “asin[uk]=0340993782&asin[fr]=2020479893&
   asin[de]=3548602045” to override the specific location asin, it doesn’t work.
   Do you know why?
 * 3- Silliest question of all… How do I just echo the url of the localised asin?
   I tried %LINK_START%Amazon Product%LINK_END% in a template and echoed it but 
   it literally echos the code (no execution)
 * 4- Is there a way to show text before a localized template? For example i want
   to write “RRP:” before the price if it the localisation is the UK. I want to 
   write “List Price” if the user is from America, etc. Is that possible in the 
   template?
    Thanks ever so much. 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Amazon Link] [Plugin: Amazon Link] Data in Custom fields](https://wordpress.org/support/topic/plugin-amazon-link-data-in-custom-fields/)
 *  Thread Starter [kelecap](https://wordpress.org/support/users/capbell/)
 * (@capbell)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-amazon-link-data-in-custom-fields/#post-3113602)
 * Thanks for your helpful post!
 * The custom field is pulled like this in the template for the product page:
 * > $showprice = isset($custom[“price”][0]) ? $custom[“price”][0] : ”;
 * So i think using something along the lines of what you shared is possible. But
   i’m not 100% sure how. Would I need to
 * $showprice has the shortcode data, so I need to execute it in the code to get
   the list price number using the ASIN i entered in the custom field ($showprice)
   and then pass it on to your code to then php echo the $listprice variable from
   your code?
 * And would installing the location detector make this code get the price from 
   the relevant Amazon to the user? Most of my visitors are from the USA and the
   UK so ideally I’d like to show them their own Amazon.com/.co.uk prices and links.
 * And if all of this is running – On my homepage there are thumbnails with each
   product, they all list the price too, if I were to use the same code on each 
   of these thumbnails on the homepage (So let’s say the code is executed 30 times
   on the homepage) would that be bad? Would it slow everything down? Would it be
   wiser to not show prices on the homepage?
 * Thanks so much again. Trying to stay within the rules of Amazon Associates is
   hard work!

Viewing 12 replies - 1 through 12 (of 12 total)