• Resolved vigwe

    (@vigwe)


    How can I hide Amazon Product in a Post Plugin button? What I needed were just the features and price. I have been able to get those, but I can’t figure out how to remove the button.

    The tried to set the button variables as shown below;
    button=” ”
    hide_button=”1″

    But it still shows the default button.

    Please help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @vigwe
    There is not a ‘hide_button’ parameter in the amazonproducts shortcode that you can use. Maybe we will add it in the future, but for now, you have two options to hide buttons:

    1. You can either use the amazon-elements shortcode and use the fields 'features,price' and that will give you just those 2 items
    2. Or you can just hide the buttons using CSS.

    If you want to add CSS to hide buttons, you can add the following to your “Additional CSS” located in the Customizer:

    [class*="amazon-price-button-html"],
    [class*="amazon-element-button"],
    [class*="amazon-price-button"],
    [class*="amazon-grid-button"]{
        display: none;
    }

    That will hide all of the different types of buttons available.
    Let me know if you have issues or questions.
    Warm regards,
    Don

    • This reply was modified 4 years, 10 months ago by Don Fischer. Reason: fixed css class name
    Thread Starter vigwe

    (@vigwe)

    Thank you!
    The CSS solved it.

    Thread Starter vigwe

    (@vigwe)

    The actual reason I’m hiding the button is this:
    I want to be able to display an Amazon product price and product description on my site and direct visitors to Amazon but I don’t want my affiliate link to apply when visitors are directed.

    Hence, I decided to remove the elements that have links like the title and button (since the links automatically add my affiliate tag). Now with the links gone with the affiliate tags, I added an ahref tag to the respective Amazon URL on my pages. This way I can still redirect visitors to amazon but not via my link.

    Is there any tweak that can enable the plugin link to Amazon as usual but not with an affiliate tag? Just a direct link.

    I appreciate your help.

    @vigwe
    This is an odd usage case, because you would usually want to get credit for the purchases, as that is how Amazon determines how many calls you get per min/hour/day for the PA API. Additionally, they use attributed sales to meet your eligibility for the Product Advertising Program. If you don’t have sales associated to your account, you won’t be able to use the PA API — if you can’t use the PA API, you won’t be able to use the plugin (as it requires access to the API). If you can’t use the plugin, nothing will display on your site. So, as you can see, it is all connected!

    So we really did not put in an option to make the links not have the Affiliate tag in them because you really need it to use the Product Advertising API.

    Hope that makes sense.
    Don

    Thread Starter vigwe

    (@vigwe)

    Yes, it makes sense completely and I totally agree.

    Thanks for this incredible plugin!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to hide Amazon Product in a Post Plugin button’ is closed to new replies.