vserver
Goto Top

Produkt Amazon Artikel - per API abfragen Partnerprogramm

Hallo,

wie ist es möglich sobald ich den Link (Partnerprogramm) hier im Produkt von einem Amazon Produkt angebe, das es den Preis, den Titel, die Sterne sowie das Bild automatisch von Amazon per API ladet?

mein Script:

<!-- SINGLE-BESTSELLER-PRODUCT START-->
			<div class="single-featured-product">  
			<div class="product_img">  
			<a href="product_details.html">  
				<img src="img/best_sale.jpg" alt="Special" class="primary-image"/>  
				<img src="img/special_product.jpg" alt="Special" class="secondary-image"/>  
			</a>
			<div class="add-cart-area">  
			<div class="fet-price">  
				<span class="addcart-text">$120.00</span>  
				<span class="addcart-text-del">$132.00</span>  
			</div>
			<div class="wish">  
				<a class="shopping-cart" href="#">  
					<i class="fa fa-shopping-cart"></i>  
				</a>
				<a class="favourite" href="#">  
					<i class="fa fa-heart-o"></i>  
				</a>
			</div>
		</div>
	</div>
	<div class="infor-text">  
	<a href="product_details.html"><span>Vestibulum et mollis nunc</span></a>  
		<span class="star">  
			<i class="fa fa-star active"></i>  
			<i class="fa fa-star active"></i>  
			<i class="fa fa-star active"></i>  
			<i class="fa fa-star"></i>  
			<i class="fa fa-star"></i>  
		</span>
	</div>
</div>
<!-- SINGLE-BESTSELLER-PRODUCT END-->

Schöne Weihnachtsfeiertage,

Gruß vServer

Content-ID: 291728

Url: https://administrator.de/contentid/291728

Printed on: October 11, 2024 at 14:10 o'clock

122990
122990 Dec 26, 2015 updated at 08:51:59 (UTC)
Goto Top
Moin,
steht doch alles hier was du brauchst
https://entwickler.de/online/web/amazon-per-api-auf-die-eigene-webseite- ...

Gruß und fF
grexit
vServer
vServer Dec 26, 2015 updated at 14:52:36 (UTC)
Goto Top
Hallo,

genau, aber da scheitert es schon, weiß gar nicht wie das funktioniert bzw. wie ich das bei mir so reinbekomme in meinem Script.

wie funktioniert das, wenn ich mehrere Artikel habe Beispiel so: (3 Artikel nebeneinander)

<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">  
	<!--SINGLE-FEATURED-PRODUCT START-->
	<div class="single-featured-product">  
		<div class="product_img">  
			<a href="#">  
				<img src="img/product/topcategories/category_pic_1.jpg" alt="Special" class="primary-image"/>  
				<img src="img/product/topcategories/category_pic_3.jpg" alt="Special" class="secondary-image"/>  
			</a>
			<a class="modal-view" href="#" data-toggle="modal" data-target="#productModal">  
				<span class="quick-view">  
					<i class="fa fa-external-link"></i>Quick view  
				</span>
			</a>
			<div class="add-cart-area">  
				<div class="fet-price">  
					<span class="addcart-text">$120.00</span>  
					<span class="addcart-text-del">$132.00</span>  
				</div>
				<div class="wish">  
					<a href="#" class="shopping-cart">  
						<i class="fa fa-shopping-cart"></i>  
					</a>
					<a href="#" class="favourite">  
						<i class="fa fa-heart-o"></i>  
					</a>
				</div>
			</div>
		</div>
		<div class="infor-text">  
			<a href="product_details.html"><span>Vestibulum et mollis nunc</span></a>  
			<span class="star">  
				<i class="fa fa-star active"></i>  
				<i class="fa fa-star active"></i>  
				<i class="fa fa-star active"></i>  
				<i class="fa fa-star"></i>  
				<i class="fa fa-star"></i>  
			</span>
		</div>
	</div>
	<!--SINGLE-FEATURED-PRODUCT END-->
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">  
	<!--SINGLE-FEATURED-PRODUCT START-->
	<div class="single-featured-product">  
		<div class="product_img">  
			<a href="#">  
				<img src="img/product/topcategories/home_4_category_pic_1.jpg" alt="Special" class="primary-image"/>  
				<img src="img/product/categories_gird.jpg" alt="Special" class="secondary-image"/>  
			</a>
			<a class="modal-view" href="#" data-toggle="modal" data-target="#productModal">  
				<span class="quick-view">  
					<i class="fa fa-external-link"></i>Quick view  
				</span>
			</a>
			<div class="add-cart-area">  
				<div class="fet-price">  
					<span class="addcart-text">$120.00</span>  
					<span class="addcart-text-del">$132.00</span>  
				</div>
				<div class="wish">  
					<a href="#" class="shopping-cart">  
						<i class="fa fa-shopping-cart"></i>  
					</a>
					<a href="#" class="favourite">  
						<i class="fa fa-heart-o"></i>  
					</a>
				</div>
			</div>
		</div>
		<div class="infor-text">  
			<a href="product_details.html"><span>Vestibulum et mollis nunc</span></a>  
			<span class="star">  
				<i class="fa fa-star active"></i>  
				<i class="fa fa-star active"></i>  
				<i class="fa fa-star active"></i>  
				<i class="fa fa-star"></i>  
				<i class="fa fa-star"></i>  
			</span>
		</div>
	</div>
	<!--SINGLE-FEATURED-PRODUCT END-->
</div>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">  
	<!--SINGLE-FEATURED-PRODUCT START-->
	<div class="single-featured-product">  
		<div class="product_img">  
			<a href="#">  
				<img src="img/product/categories_gird.jpg" alt="Special" class="primary-image"/>  
				<img src="img/product/topcategories/home_4_category_pic_1.jpg" alt="Special" class="secondary-image"/>  
			</a>
			<a class="modal-view" href="#" data-toggle="modal" data-target="#productModal">  
				<span class="quick-view">  
					<i class="fa fa-external-link"></i>Quick view  
				</span>
			</a>
			<div class="add-cart-area">  
				<div class="fet-price">  
					<span class="addcart-text">$120.00</span>  
					<span class="addcart-text-del">$132.00</span>  
				</div>
				<div class="wish">  
					<a href="#" class="shopping-cart">  
						<i class="fa fa-shopping-cart"></i>  
					</a>
					<a href="#" class="favourite">  
						<i class="fa fa-heart-o"></i>  
					</a>
				</div>
			</div>
		</div>
		<div class="infor-text">  
			<a href="product_details.html"><span>Vestibulum et mollis nunc</span></a>  
			<span class="star">  
				<i class="fa fa-star active"></i>  
				<i class="fa fa-star active"></i>  
				<i class="fa fa-star active"></i>  
				<i class="fa fa-star"></i>  
				<i class="fa fa-star"></i>  
			</span>
		</div>
	</div>
	<!--SINGLE-FEATURED-PRODUCT END-->
</div>


Dankeschön
122990
122990 Dec 26, 2015 updated at 16:27:00 (UTC)
Goto Top
Warum soll das scheitern ?? Steht doch auf der Seite haarklein erklärt wie du das API via PHP anwendest.
Bei 3 Artikeln baust du dir einfach eine Foreach-Schleife über deine 3 Artikel gibst deinen HTML-Code über 'Echo' mit den Daten aus, feddich. Wo ist das Problem ?? Oder hast du noch keinen blassen Schimmer was PHP überhaupt ist, und bist nur zu Faul dich damit zu beschäftigen?
vServer
vServer Dec 26, 2015 at 18:13:08 (UTC)
Goto Top
Kann nur paar Grundkenntnisse von PHP, aber bin leider noch nicht so fit das es für das was ich brauch ausreicht face-sad blick da ehrlich gesagt mir dem Code nicht durch.