• Resolved printercable

    (@printercable)


    I am getting the error The ASIN: is invalid when pulling new product code.

    I am trying to get product links and I get the code:
    [amazon_link asins=’B00HTJW18E’ template=’ProductLink’ store=’REDACTED’ marketplace=’US’ link_id=’d0d0282a-a7a3-11e7-9ff9-916c6413c8d4′]

    When I preview the page, I get the error.

    Looking at previous product code I have gotten, the link is “amazon_textlink” not “amazon_link”

    It does not have “asins” before the code, but just “asin.” Also, a description of the product was included in the code. Only when I manually edit the code to the format below are the shortcodes recognized.

    [amazon_textlink asin=’B00HTJW18E’ text=’I Am Legend’ template=’ProductLink’ store=’REDACTED’ marketplace=’US’ link_id=’d0d0282a-a7a3-11e7-9ff9-916c6413c8d4′]

    This only used to happen intermittently, now it happens every time. Very annoying and frustrating.

    I am running the latest version of WP and the plug in with the Canvas theme, also updated. I have tried flushing the cache and all the other simple things to fix this.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter printercable

    (@printercable)

    BTTT. Developer support? Bueller? Bueller?

    Plugin Author Amazon Associates Link Builder

    (@amazonlinkbuilder)

    Dear @printercable,

    We can see that in your shortcode everywhere opening single quote has been replaced to closing single quote(This is generally done by custom editors or other plugins being used by you). This is creating issue during rendering. May you please correct that.
    Also, please use the Search button & select products from pop-up to create your shortcode which is far easier & less prone to quote replacement errors.

    Thread Starter printercable

    (@printercable)

    No, the the change in the quotes is being done in the formatting by this forum.

    I am 100% using the search button and select products from the popup and was still getting this error.

    Now I am not getting the error anymore, but the generated link does not include display text for the item I have searched for. It just displays as

    Amazon_Link_Text with double brackets on either side of the text.

    I have to go in and manually add something like text=’A Movie Title’ to the code. This plug in is more hassle than it is worth.

    • This reply was modified 8 years, 6 months ago by printercable.
    • This reply was modified 8 years, 6 months ago by printercable.

    deleted (I have the same error now, too)

    • This reply was modified 8 years, 6 months ago by superninchen.
    • This reply was modified 8 years, 6 months ago by superninchen.

    deleted

    • This reply was modified 8 years, 6 months ago by superninchen.
    Plugin Author Amazon Associates Link Builder

    (@amazonlinkbuilder)

    Dear @printercable,

    Regarding your issue with ProductLink, please follow the guide. The link to this is already mentioned in User-guide under “Can I create text links using the plugin?” section. Please follow this in tinymce visual mode and let us know if you the issue is resolved

    @amazonlinkbuilder It doesn’t seem to work anymore.

    I have created a testpage so you can see what happens: https://hundebetten.shop/aalb-testpage/

    This is the source code of the page:

    ASIN = 1444707868
    
    Product Link as is [amazon_link asins='1444707868' template='ProductLink' store='xxxxxxxx-21' marketplace='DE' link_id='']
    
    Product Link with text-attribute [amazon_link text='custom text' asins='1444707868' template='ProductLink' store='xxxxxxxx-21' marketplace='DE' link_id='']
    
    Copied tag from the manual (modified store and marketplace):
    
    [amazon_textlink text='Amazon Echo Dot' asin='1444707868' template='ProductLink' store='xxxxxxxx-21' marketplace='DE' link_id='cc78b39f-d60d-11e6-97fc-ed60774d07e2']
    
    Note: The manual uses the "asins" attribute, however, that will result in an error. It needs to be "asin='...'"
    
    • This reply was modified 8 years, 6 months ago by superninchen.
    • This reply was modified 8 years, 6 months ago by superninchen.
    • This reply was modified 8 years, 6 months ago by superninchen.
    • This reply was modified 8 years, 6 months ago by superninchen.
    • This reply was modified 8 years, 6 months ago by superninchen.
    • This reply was modified 8 years, 6 months ago by superninchen.

    When I search for a product and select “Product Link” as the template, the plugin will use [amazon_link…] as the tag for the shortcode. However, this does not work anymore. It will never show any text.

    Plugin Author Amazon Associates Link Builder

    (@amazonlinkbuilder)

    Dear @superninchen,

    1. “amazon_textlink” is the correct shortcode for Product link and not “amazon_link”.
    2. To use the default Product link or custom Product links template, a text needs to be selected first for which you want to make the search. This will insert “amazon_textlink” automatically in shortcode.
    3. Later, if you want you can change the value assigned to the text field in shortcode to custom text.
    4. This feature works only in the visual mode of tinymce.
    5. Regarding “asins” keyword in Product link shortcode in user-guide, we agree it should be “asin”. Its done by mistake(Sincere apologies for this). But the shortcode inserted directly from Add-shortcode pop-up, this is being taken care automatically and “asin” is inserted.

    In one-line “Product Link default & custom templates based on this works only if you select a text before hitting search and that also in visual mode of tinymce”

    Hope above information helps. Please let us know if you are still facing any issue.

    @amazonlinkbuilder

    Thanks for getting back quickly.

    1) If I don’t select any text, but just want to insert a shortcode anywhere on the page, the plugin creates an [amazon_link…] shortcode
    2) If I select text first and then click the search button, the plugin will try to search for the selected text. I then have to manually edit the search field, and the plugin somehow “remembers” the selected text from before and inserts it as custom text attribute.

    I hate to say it because I really like the plugin, but both ways are totally not intuitive to use at all.

    If no text is selected and I search for a product choosing “Product Link” I expect the product title to be the text displayed by the shortcode.

    With all the custom text discussions recently and the current behaviour I have lost track on how to achieve that.

    I suggest you mark the templates explicitly, using one with the product title from the amazon database (known as Product Link –> [amazon_link…], currently not working anymore) and another, new one, for a custom text link, named “Product Link – Custom Text” for example, inserting the [amazon_textlink…] shortcode.

    So this way it would be clear how to achieve what.

    What do you say?

    • This reply was modified 8 years, 6 months ago by superninchen.
    Plugin Author Amazon Associates Link Builder

    (@amazonlinkbuilder)

    Dear @superninchen,

    1. The text for which you want to make search can be typed and selected before making a search. For example, if you want to add a Product link for “Appple airpods”, you can write “Apple airpods”, select and hit the search button. Later if you want to display some other custom text, you can replace that in the text section of the shortcode. Let’s say here you can change ‘text’ field value from “Apple airpods” to “airpods”.
    2. The whole idea of making this selection of text compulsory is to identify whether the user is using any Product link template. As the user can create custom Product link template and there is no way to identify whether it’s a text template or a template with the images like ProductAd or ProductGrid.

    Yes, I get it.

    But what about the template that used to work without any custom text, and which would by default display the product title as clickable link text? This one doesn’t seem to work anymore.

    From where I look at it, it’s gotten a bit confusing with the differences in the “amazon_link” and “amazon_textlink”. Even I, as an old user, don’t intuitively see when to use what. Perhaps it’s time for a major overhaul of the documentation so that it reflects all the changes and additions that the plugin has gone through in the past 8 months.

    • This reply was modified 8 years, 6 months ago by superninchen.

    • This reply was modified 8 years, 6 months ago by superninchen.
Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Error: The ASIN: is invalid.’ is closed to new replies.