Ok i found the file. It is all in the aalb_xml_helper.php.
But i am not sure if i am allowed to modify it without violating the conditions of use.
Can anyone confirm this?
Got it running in the end
http://www.lebenslanggesund.de//demo
May I ask which attributes you modified/added? What’s the benefit of it all?
Don’t get me wrong, this is no criticism. I am genuinely interested in “tuning” my ads and links, too. π
Cheers,
Sascha
You can display any attribute listed here http://docs.aws.amazon.com/AWSECommerceService/latest/DG/RG_ItemAttributes.html
a lot more than the plugin is offering like genre for musik and movies, additional product features, color sizes and much more. I need it for another project (https://www.eck-sofa.de/ to filter for the color of the corner couch
Thanks mate, I’ll look into it. (Y)
Okay @ecksofa, I’ve gone through the list of possible attributes and find this very interesting.
Can you give me a short code example how you incorporated your “custom attributes” into your shortcodes? That’d be grrrreat! π
Cheers,
Sascha
U need to edit aalb_xml_helper.php to make the property available. There a method add_custom_nodes:
$aalb_node->ASIN = isset( $item->ASIN ) ? $item->ASIN : null;
$aalb_node->Title = isset( $item->ItemAttributes->Title ) ? $item->ItemAttributes->Title : null;
$aalb_node->DetailPageURL = isset( $item->DetailPageURL ) ? $item->DetailPageURL : null;
$aalb_node->LargeImageURL = isset( $item->LargeImage->URL ) ? $item->LargeImage->URL : null;
$aalb_node->MediumImageURL = isset( $item->MediumImage->URL ) ? $item->MediumImage->URL : null;
$aalb_node->SmallImageURL = isset( $item->SmallImageURL->URL ) ? $item->SmallImage->URL : null;
$aalb_node->Publisher = isset( $item->ItemAttributes->Publisher ) ? $item->ItemAttributes->Publisher : null;
//new properties
if ( ! empty( $item->ItemAttributes->Feature[0] ) ) {
$aalb_node = $this->add_xml_node( $aalb_node, 'Feature0', $item->ItemAttributes->Feature[0] );
}
-
This reply was modified 8 years, 5 months ago by
ecksofa.
Ah, very nice. Thank you! π
Dear @ecksofa,
There is no issue in modifying the file. The only problem is that you have to modify the same on every update provided by the plugin.
By the way, we released v1.5.3 of the plugin yeserday that fixed few bugs present in previous versions and you can also “Geo-targeted links” that enable Amazon Associates to create content customized for and better monetize their international traffic. More details here.