apnoti.com und xt:commerce
Über das Angebot von apnoti.com habe ich ja schon kurz berichtet, und nach einigen Nachfragen haben wir uns da jetzt auch gelistet.
Allerdings ist das Einbinden unter xt:commerce v3.0.4 nicht ganz unproblematisch. Hier zwei kurze Codeschnippsel zum Einfügen:
in \includes\modules\product_info.php
$apnoti_productprice = $products_price['plain'];
$apnoti_ean = $product->data['products_ean'];
$apnoti_productid = $product->data['products_id'];
$apnoti_producttitle = $product->data['products_name'];
$apnoti_availibility = $product->data['products_status'];
$apnoti_quantity = $product->data['products_quantity'];
$apnoti_offerinformation = strip_tags(substr($product->data['products_description'], 0, 250));
$apnoti_shippingcosts = “5.00″;$info_smarty->assign(‘APNOTI_LINK’, “<img src=\”http://rtpc.apnoti.com/image.png?PWU3amh*************FuVQ===bz8wdX********7IF9jMTJ7Zg==&**zJjxI=” . $apnoti_productid . “&P2****Sz5a=” . $apnoti_ean .”&RH***z5a=” . $apnoti_productprice . “&Y***IEkr=” . $apnoti_shippingcosts . “&Q****T9t=” . $apnoti_availibility . “&PC****FU=” . $apnoti_quantity . “&Uy9***n=” . $apnoti_producttitle . “&**RmYj=” . $apnoti_offerinformation . “&QEJu**P0E==1&O**zMy=0\” alt=\”\” />”);
Hinter die Zeile
$products_price = $xtPrice->xtcGetPrice($product->data['products_id'], $format = true, 1, $product->data['products_tax_class_id'], $product->data['products_price'], 1);
einfügen, da erst da der Preis komplett generiert ist. Der Code ist natürlich anzupassen an das eigene RTPC-Snippet. Das Snippet bekommt man nach der Anmeldung.
und in \templates\#TEMPLATE#\module\product_info\product_info_v1.html
<!–Apnoti.com Start–>
{$APNOTI_LINK}
<!–Apnoti.com Stop–>
Egal wo, vielleicht direkt hinter {$FORM_ACTION}


























IWEG Datacom » Blog Archive » Smarty (und xt:commerce) sagt
am 25. März 2010 @ 08:17
[...] die neue Suchmaschine apnoti.com musste eine Schnittstelle für xt:commerce erstellt werden. Da die Ausgabe über das Template erfolgt, die Daten aber (unformatiert) vorher in [...]
IWEG UG » PubSubHubBub vs. RTPC sagt
am 30. März 2010 @ 19:20
[...] Preis- und Produktaktualisierungen der Suchmaschine mitzuteilen. Kern der Schnittstelle ist  ein Snippet welches in die Angebotsseite integriert wird. Wird die Seite aufgerufen (egal von wem) wird [...]
Tarnopolsky sagt
am 2. April 2010 @ 19:57
kannst du mir bitte den Code für XT-Commerce Veyton 4.12 zeigen.
Vielen Dank im Voraus!
Björn Morawitz sagt
am 3. April 2010 @ 23:08
Leider setzen wir kein Veyton ein, aber wenn du mir die Dateien zukommen lassen kannst kann ich schauen, ob ich eine Lösung für dich finde.
Wichtig sind, soweit ich das jetzt überschauen kann, mindestens die \xtFramework\classes\class.product.php und die \templates\xt_default\xtCore\pages\product\product.html
MerleAlford23 sagt
am 16. August 2011 @ 11:50
Lots of specialists tell that business loans help a lot of people to live the way they want, just because they can feel free to buy necessary things. Moreover, various banks present student loan for different classes of people.
business loans sagt
am 7. November 2011 @ 00:43
I will recommend not to hold off until you earn enough amount of cash to buy different goods! You should just take the business loans or just financial loan and feel yourself fine
Elektrische Zahnbuerste sagt
am 20. November 2011 @ 08:41
… [Trackback]…
[...] Read More: iweg-ug.de/?p=66 [...]…
vkcbmzcxp sagt
am 17. Dezember 2011 @ 11:00
jhtmf…
ckrpfgpmt ytikz rfiroqt jfyj vmcjjzuwcgxbkfn…
Fencing Supplies UK sagt
am 26. Dezember 2011 @ 20:17
… [Trackback]…
[...] Informations on that Topic: iweg-ug.de/?p=66 [...]…