• Resolved gamerwithadegree

    (@gamerwithadegree)


    Hi,

    I am trying this plugin out on a local xampp install. I only need the oEmbed feature really to insert one product link into a post.

    However, using the list template for example it seems to reader an empty (not entirely empty but no product data) amazon-product-container div above the actual div which renders the product image, title,e tc.

    In settings > general I have tried changing max number of products to 1 but then it just renders the almost empty amazon-product-container div and not the actual product data.

    On both occasions, this leaves a horrible amount of white space.

    I have tried activating different templates and selecting them but they all seem to produce the same result – empty white space.

    All I need is the product image, title, price and a button.

    This seems like a bug but is there a way to generate my own template to ensure I can strip out anything I don’t actually need?

    Below is the HTML generated when I post one product link into a post using the list template. I have tried changing class names in the item format field but it stills generates the unneeded amazon-product-container div.

    <div class=”amazon-products-container-list amazon-unit-” style=””>
    <div class=”amazon-product-container”>
    <div class=”amzn-product”>
    <div class=”amzn-product-image” style=””>
    <div class=”amazon-product-thumbnail” style=”max-width:160px; max-height:160px; “>
    <br>
    <br>

    </div>
    <p></p></div>
    <div class=”amzn-product-title”>
    <h5 class=”amazon-product-title”>
    <br>
    </h5>
    <p></p></div>
    </div></div>
    <div class=”amazon-product-container”>
    <div class=”amzn-product”>
    <div class=”amzn-product-image” style=””>
    <div class=”amazon-product-thumbnail” style=”max-width:160px; max-height:160px; “>
    <br>
    The iconic Black Ops series is back with Call of Duty: Black Ops Cold War - the direct sequel to the original and fan-favourite Call of Duty: Black Ops. Black Ops Cold War will drop fans into the depths of the Cold War’s volatile geopolitical battle ...<br>

    </div>
    <p></p></div>
    <div class=”amzn-product-title”>
    <h5 class=”amazon-product-title”>
    Call of Duty?: Black Ops Cold War (PS5)<br>
    </h5>
    <p> <span class=”amazon-prices”><span class=”offered-price”>£59.95</span></span>
    </p></div>
    </div></div>
    </div>
    <p><!– Rendered with Amazon Auto Links by miunosoft –></p>`

    Thanks

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

    (@miunosoft)

    Hi,

    Can you enable error messages by going to Dashboard -> Amazon Auto Links -> Settings -> Default -> Show Errors and select Show Errors? Let me know if you see any error messages.

    In addition, you might want to try the Disallow No Thumbnail option under the Product Filter unit option section.

    Also, let me know whether you have entered your PA-API keys or not via Dashboard -> Amazon Auto Links -> Settings -> Associates.

    Thread Starter gamerwithadegree

    (@gamerwithadegree)

    Hi,

    Thanks for your reply. I have enabled Show Errors but I do not show errors anywhere, either on the post or in the backend.

    Yes, I have my PA-API keys entered, my associate ID is there and everything is showing as Connected.

    I have checked the Dissalow no thumbnail option and that seems to have fixed it. There is no longer an empty amazon-product-container div above the actual product.

    Problem solved, thank you.

    Plugin Author miunosoft

    (@miunosoft)

    Great. Let me know if you get further problems.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Template adds empty amazon-product-container div’ is closed to new replies.