Slider Template?
-
Hello Paul,
is it possible to create a amazon slider template?
-
Also, I created a custom template, referring to your multinational template.
<div class="amazon_details"> <b> Buy /> : <span class="amazon_price"> <span class="al_found%FOUND%us#">%LINK_OPEN%us# <img style="height:20px" src="%FLAG%us#"> %PRICE%us#%LINK_CLOSE% </span> <span class="al_found%FOUND%uk#">%LINK_OPEN%uk# <img style="height:20px" src="%FLAG%uk#"> %PRICE%uk#%LINK_CLOSE% </span> <span class="al_found%FOUND%in#">%LINK_OPEN%in# <img style="height:20px" src="%FLAG%in#"> %PRICE%in#%LINK_CLOSE% </span> <span class="al_found%FOUND%ca#">%LINK_OPEN%ca# <img style="height:20px" src="%FLAG%ca#"> %PRICE%ca#%LINK_CLOSE% </span> </b> </div>The following template is supposed to create a template with the different available locales for the specific product displayed on the right. For example:
http://s3.postimg.org/kpb31l3s3/Image_1.pngNow, if the product isn’t available, the above mentioned template shouldn’t be displaying that locale. But as you can see, when visited from India locale, the price of the product is “wrongly” displayed beside the Indian flag (with a price equal to that of the US locale).
Isn’t it supposed to “not” show links to a locale if the product itself isn’t available there? (Amazon ASIN used : B000F7KMHE)
Here are some more examples for other products when viewing from India locale:
http://s3.postimg.org/rwlyoxtgj/Image_2.png
http://s30.postimg.org/svhc82ftd/Image_3.pngAlso, here is another image related to a producct not available on any of the amazon locales (currently) as viewed from Indian locale using the above template.
http://s30.postimg.org/7tqjl7p8x/Image_4.pngIn this case, wasn’t it supposed to display no links at all, since the product isnt available anywhere?
Default locale:US
Viewing from India localeIn short, I found that if a visitor is viewing my webpage from XYZ locale, and the product is available in only ABC locale, then the above template displays links to both ABC and XYZ locale, with the price in XYZ locale displayed equal to the price in ABC locale.
Please note that in above scenario:
-Visitor is from XYZ locale
-Product was not available in XYZ locale
-Default Locale selected is ABC locale
-Product is available in ABC localeEdit: there was a small error in the above code, here is the correction
<div class="amazon_details"> <b><img src="http://partythemeideas.org/wp-content/uploads/2014/05/Amazon-Buy-Now-14.png" alt="Choose Your Preferred Country->" height="50px" width="100px" /> : <span class="amazon_price"> <span class="al_found%FOUND%us#">%LINK_OPEN%us# <img style="height:20px" src="%FLAG%us#"> %PRICE%us#%LINK_CLOSE% </span> <span class="al_found%FOUND%uk#">%LINK_OPEN%uk# <img style="height:20px" src="%FLAG%uk#"> %PRICE%uk#%LINK_CLOSE% </span> <span class="al_found%FOUND%in#">%LINK_OPEN%in# <img style="height:20px" src="%FLAG%in#"> %PRICE%in#%LINK_CLOSE% </span> <span class="al_found%FOUND%ca#">%LINK_OPEN%ca# <img style="height:20px" src="%FLAG%ca#"> %PRICE%ca#%LINK_CLOSE% </span> </b> </div>EDIT: The above problem does not occur if I disable “Localise Amazon Link”.
Hi,
Thanks for picking this up (and investigating it), I’ll dig a little deeper to find where the fault is and try and get a fix in the next version.
Paul
Hi,
Okay I can see why it is happening now, not sure if I can fix it. It’s the
%LINK_CLOSE%that is causing the problem.To get round the problem change the
%LINK_CLOSE%to be the country specific equivalent, e.g.%LINK_CLOSE%in#.So the template becomes:
<div class="amazon_details"> <b><img src="http://partythemeideas.org/wp-content/uploads/2014/05/Amazon-Buy-Now-14.png" alt="Choose Your Preferred Country->" height="50px" width="100px" /> : <span class="amazon_price"> <span class="al_found%FOUND%us#">%LINK_OPEN%us# <img style="height:20px" src="%FLAG%us#"> %PRICE%us#%LINK_CLOSE%us# </span> <span class="al_found%FOUND%uk#">%LINK_OPEN%uk# <img style="height:20px" src="%FLAG%uk#"> %PRICE%uk#%LINK_CLOSE%uk# </span> <span class="al_found%FOUND%in#">%LINK_OPEN%in# <img style="height:20px" src="%FLAG%in#"> %PRICE%in#%LINK_CLOSE%in# </span> <span class="al_found%FOUND%ca#">%LINK_OPEN%ca# <img style="height:20px" src="%FLAG%ca#"> %PRICE%ca#%LINK_CLOSE%ca# </span> </b> </div>Yes,it works perfectly now! An thanks for the new update with no-followed multinational links.
Hi,
Good to here.
As to your original question the slider template is probably beyond the scope of the plugin to do properly, maybe for a future update?
I think it would need to:
* Update the templates to support a javascript section and its dependencies (jquery, jcarousel)
* Have a special stylesheet
* A new keyword ‘ASIN_LIST’ that expands based on another template
* A new template to create the slider HTML with the ASIN_LIST expansion in the middle.Based on the howto described on this page: http://www.shopizer.com/jquery-product-slider/
I’ll consider putting some hooks in the plugin to support some of those things,
Paul
Wow, thanks a lot Paul! You are totally awesome!!
The topic ‘Slider Template?’ is closed to new replies.