• Resolved chollomaniacos

    (@chollomaniacos)


    Hello,

    When I use the plugin with this line:

    [amazon-grid asin=”B076CPSFP5,B073ZMK8DN,”]

    I need to get the cost for both products with the m=A1AT7YVPFBWXBL tag, but I have no idea how to do it. Can you help me?

    Regards,

    David M

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi David (@chollomaniacos),
    Not sure what the parameter ‘m’ is for, maybe a custom parameter?

    But if you need to append it to any Amazon URL link, you can use the following filter – add it to your functions.php after the opening <?php tag – preferably in a child theme if you have one set up:

    add_filter( 'amazon_product_array_URL', 'my_custom_modify_amz_URL' );
    add_filter( 'amazon_product_array_CartURL', 'my_custom_modify_amz_URL' );
    function my_custom_modify_amz_URL( $val ){
        return $val .'&m=A1AT7YVPFBWXBL';
    }

    That will add the parameter to every Amazon product link that the plugin creates, as well as the Add To Cart URLs if you are using that option.

    Warm regards,
    Don

    Thread Starter chollomaniacos

    (@chollomaniacos)

    Hello,

    Sorry, I should have been more specific. It’s for showimg the Amazon cost always, not an external shop if it’s cheaper or if the Amazon product is unavailable right now, but have a cost associated to it.

    So, whith this URL:

    I get a cost of 329 euros, while with this URL:

    It says it has a cost of 570,80 euros plus 14,37 euros of shipping costs.

    Well, I’ll try to add that code and come back. Thank you for your support. ??

    Regards,

    David M

    edit: I’m not very tech-savvy and another person told me I would lose all my changes if you update to a new version. Could you please consider adding this m=A1AT7YVPFBWXBL as a new field in a future? Something like:

    [amazon-grid asin=”B076CPSFP5,B073ZMK8DN,” amazontag=”1″]

    or

    [amazon-grid asin=”B076CPSFP5,B073ZMK8DN,” amazontags=”1,0″]

    Thank you for your time.

    Regards,

    David M

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘m=A1AT7YVPFBWXBL?’ is closed to new replies.