Amazon will not pass the attribute names = Amazons Checkout page and in the buyers control panel does not show them
Thank you for clarifying this.
Issue #4 - Attribute Names not showing on Amazon Checkout Page
Issue #5 - Special Characters breaks Order Push
The following is a workaround for both Issues 4 & 5
Open file -> checkout_by_amazon/button_generator.php
Find This:
PHP Code:
$xmlBuilder->Element('Description', substr(zen_get_products_description($item[id],1), 0, MAX_DESC_LEN));
Replace with this:
PHP Code:
$attributes_array = $cd->GetItemCustomXml($item);
unset($attributes_result);
foreach($attributes_array as $row)
{
if ($row['attributes']) {
foreach($row['attributes'] as $k)
{
$attributes_result .= $k['options_name'] . ": ";
$attributes_result .= $k['values_name'] . " -- ";
}
}
}
$xmlBuilder->Element('Description', $attributes_result . substr(preg_replace('/[^a-zA-Z0-9_ -]/s', '', strip_tags(zen_get_products_description($item[id],1))), 0, MAX_DESC_LEN));
This workaround simply puts the attribute names before the description at Amazons' Checkout Page when they are present.
This also strips all the html and special characters from the description when sent to Amazon.
~D
Bookmarks