function amazonLayout($i, Amazon $amazon) { //Get your amazon attributes here $image = $amazon->get()->image("LargeImage"); $priceLowNew = $amazon->get()->price("lowestNew"); $priceUsed = $amazon->get()->price("lowestUsed"); $offersNew = $amazon->get()->numOffers("TotalNew"); $offersUsed = $amazon->get()->numOffers("TotalUsed"); $url = $amazon->get()->url(); $title = $amazon->get()->title(); $desc = $amazon->get()->description(); return '<strong>' . $title[$i] . '</strong><br>Neupreis bei Amazon ab ' . $priceLowNew[$i] . '<br><p align="center"><a href="' . $url[$i] . '" target="_blank">Auf Amazon</a></p>'; }
function amazonLayout($i, Amazon $amazon) { //Get your amazon attributes here $image = $amazon->get()->image("LargeImage"); $priceLowNew = $amazon->get()->price("lowestNew"); $priceUsed = $amazon->get()->price("lowestUsed"); $offersNew = $amazon->get()->numOffers("TotalNew"); $offersUsed = $amazon->get()->numOffers("TotalUsed"); $url = $amazon->get()->url(); $title = $amazon->get()->title(); $desc = $amazon->get()->description(); //Your custom code and formatting here $newTitle = "<div>{$title[$i]}</div>"; $newUrl = "<div>{$url[$i]}</div>"; //..etc return $newTitle; }