• Love using the shortcode to quickly insert products! We are able to use the sort=”raw” variable in the shortcode to display ASINs in the order they are listed asin1,asin2,asin3 but when we try to change the sort variable to sort=”random” is has no effect and the items are still displayed in the raw or original order as typed in the shortcode.

    So for example we have a shortcode as follows:

    [amazon_auto_links associate_id="XXXXXXXX-20" description_length="200" title_length="125" count="4" sort="random" asin="B07PXGQC1Q,B0CMSYTP6Q,B0BTYCRJSS,B0BQPGJ9LQ"]

    Are we missing something that’s causing the random sort order not to work? Any updated docs or quick tutorials on example shortcodes including random sort order? Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author miunosoft

    (@miunosoft)

    Hi,

    Thank you for the report. Please try the development version, 5.4.3b02, which should fix this problem.

    Thread Starter wordmax

    (@wordmax)

    That works great. Thanks! Looks like the ASINs are being shown in random order when page is refreshed or going to another page.

    Looks like it works with W3 total cache plugin too. So that’s nice. 😁

    Thank you!!

    Thread Starter wordmax

    (@wordmax)

    Follow up… there is one issue with 5.4.3b02 if we use shortcode parameter as follows, with count=”3″ then even though we have 9 ASINs in the shortcode, it only displays and randomizes the first 3 ASIN values in the shortcode on the front end. If we change the count value to count=”9″ then it displays and randomizes all 9 ASINs; but for our purposes (sticky sidebar) we only want to display 3 products (randomized from the all ASINs in the shortcode)

    Hope this makes sense. Thanks.

    [amazon_auto_links associate_id="xxxxxxxx-20" description_length="200" title_length="125" count="3" sort="random" asin="ASIN#1,ASIN#2,ASIN#3,ASIN#4,ASIN#5,ASIN#6,ASIN#7,ASIN#8,ASIN#9"]
    • This reply was modified 2 months, 1 week ago by wordmax.
    Plugin Author miunosoft

    (@miunosoft)

    I understand what you want to achieve. This is somewhat complicated to realize as the current behavior of the plugin regarding the product count is hard-coded and not easy to change.

    Let me see what I can do. Thank you for bringing this up to my attention.

    Plugin Author miunosoft

    (@miunosoft)

    @wordmax Could you try the development version, 5.4.3b03?

    Let me know whether it works for you or not.

    Thread Starter wordmax

    (@wordmax)

    Hi @miunosoft – thanks for the update. I tried Version 5.4.3b03 and it appears to work like a charm! I used shortcode in sidebar widget (sticky) where I only want to show 3 items but randomize the 3 slots from total 9 ASINs listed in the shortcode. Fantastic! Great work. Very much appreciate your help and great support on this plugin! 😊 This is an awesome useful feature to have.

    [amazon_auto_links associate_id="xxxxxxxx-20" description_length="0" title_length="100" count="3" sort="random" asin="ASIN#1,ASIN#2,ASIN#3,ASIN#4,ASIN#5,ASIN#6,ASIN#7,ASIN#8,ASIN#9"]
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.