• Freshly installed Multinational template. All flags appear.

    Changed the FR# template entry to US# as a test.

    French flag and price gone.

    BUT no US flag or price in preview or on the page using the template.

    <div class="amazon_prod">
     <div class="amazon_img_container">
      %LINK_OPEN%<img class="%IMAGE_CLASS%" src="%THUMB%">%LINK_CLOSE%
     </div>
     <div class="amazon_text_container">
      <p>%LINK_OPEN%%TITLE%%LINK_CLOSE%</p>
      <div class="amazon_details">
       <p>by %ARTIST% [%MANUFACTURER%]<br />
        <b>Price: <span class="amazon_price">
         <span class="al_found%FOUND%uk#">%LINK_OPEN%uk# <img style="height:10px" src="%FLAG%uk#"> %PRICE%uk#%LINK_CLOSE%</span>
         <span class="al_found%FOUND%US#">%LINK_OPEN%US# <img style="height:10px" src="%FLAG%US#"> %PRICE%US#%LINK_CLOSE%</span>
         <span class="al_found%FOUND%de#">%LINK_OPEN%de# <img style="height:10px" src="%FLAG%de#"> %PRICE%DE#%LINK_CLOSE%</span>
         <span class="al_found%FOUND%es#">%LINK_OPEN%es# <img style="height:10px" src="%FLAG%es#"> %PRICE%es#%LINK_CLOSE%</span>
        </b>
       </p>
      </div>
     </div>
    </div>
    <img src="https://www.assoc-amazon.%TLD%/e/ir?t=%TAG%&l=as2&o=%MPLACE_ID%&a=%ASIN%" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author paulstuttard

    (@paulstuttard)

    Hi,

    This works okay on my site, if the product is not available on the US site (or for some reason the AWS returns an error) then it will not display the flag.

    i.e. the %FOUND% will expand to ‘0’ if not found, or ‘1’ if found. The CSS is set up so that class=”al_found0″ will hide that line.

    This shortcode works on my site:

    [amazon asin=0340937688&asin[de]=3548606296&asin[fr]=2757866656&asin[us]=0399594000&template=multinational]

    Paul

    Thread Starter chasman

    (@chasman)

    The product definitely exists in the US: B00864OIN2

    The US flag doesn’t appear in the preview or the real page:

    https://theedcbible.com/wp/shop/books/book3/rope-cord/paracord/

    Top row only is using this template code:

    <div class="amazon_prod">
     <div class="amazon_img_container">
      %LINK_OPEN%<img class="%IMAGE_CLASS%" src="%THUMB%">%LINK_CLOSE%
     </div>
     <div class="amazon_text_container">
      <p>%LINK_OPEN%%TITLE%%LINK_CLOSE%</p>
      <div class="amazon_details">
       <p>by %ARTIST% [%MANUFACTURER%]<br />
        <b>Price: <span class="amazon_price">
         <span class="al_found%FOUND%uk#">%LINK_OPEN%uk# <img style="height:10px" src="%FLAG%uk#"> %PRICE%uk#%LINK_CLOSE%</span>
         <span class="al_found%FOUND%US#">%LINK_OPEN%us# <img style="height:10px" src="%FLAG%US#"> %PRICE%US#%LINK_CLOSE%</span>
          <span class="al_found%FOUND%fr#">%LINK_OPEN%fr# <img style="height:10px" src="%FLAG%fr#"> %PRICE%fr#%LINK_CLOSE%</span>
    <span class="al_found%FOUND%de#">%LINK_OPEN%de# <img style="height:10px" src="%FLAG%de#"> %PRICE%DE#%LINK_CLOSE%</span>
         <span class="al_found%FOUND%es#">%LINK_OPEN%es# <img style="height:10px" src="%FLAG%es#"> %PRICE%es#%LINK_CLOSE%</span>
        </b>
       </p>
      </div>
     </div>
    </div>
    <img src="https://www.assoc-amazon.%TLD%/e/ir?t=%TAG%&l=as2&o=%MPLACE_ID%&a=%ASIN%" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />
    

    Notice it doesn’t exist in Spain… the flag is there with a dash for the price.

    • This reply was modified 7 years, 6 months ago by chasman.
    Plugin Author paulstuttard

    (@paulstuttard)

    Hi,

    For some reason the AWS call to retrieve the US data is returning an error on your site, which the plugin interprets as ‘not found’. So the template expands to:

    
    <span class="al_found0"><a href="https://www.amazon.com/gp/product/B00864OIN2?ie=UTF8&linkCode=as2&camp=1634&creative=6738&tag=edcb-20&creativeASIN=B00864OIN2" "gatracker stuff" rel="nofollow"> <img style="height:10px" src="https://theedcbible.com/wp/wp-content/plugins/amazon-link/images/flag_us.gif"> -</a></span>

    `

    Note the item is found on the Spanish AWS site – it does exist, however it is not available hence the ‘-‘ for the price.

    You could try searching for the item using the Amazon Product advertising scratchpad and see if your AWS keys work okay for the US data. Amazon have changed the rules of how AWS interacts with the Affiliate accounts, which might stop the data being retrieved?

    Do other Amazon links work for the US site?

    Paul

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘US Locale Broken in Multinational Template’ is closed to new replies.