#1 (permalink)  
Alt 31.01.2010, 16:59
Neuer Benutzer
 
Registriert seit: 31.01.2010
Beiträge: 1
Standard Anzahl bzw. Einheiten in der checkout_success.php ausgeben

Hallo liebe Community,

bisher habe ich mit meinen beschränkten php Kenntnissen immer selbst alles
geschafft, aber nun brauche ich wohl Hilfe vom Profi

Also ich verwende den Shopzilla Performance (ROI) Tracker in meinem Shop.
Dort müssen einige Daten übergeben werden.
Unter anderem: Die Bestellungsanzahl (var units_ordered)
Beispiel: Jemand bestellt 2x Äpfel und 2x Birnen
Bei Bestellungsanzahl müsste nun eine 4 eingetragen werden.
Das alles wird per JavaScript übergeben und kann durch eine simple
echo $bestellanzahl; Anweisung eingetragen werden.
Problem ist nur das ich net weiß wie ich an diese zahl komme.
Vielleicht hat ja jemand eine gute Idee

Kundentyp = neu-oder bestehender Kunde (var cust_type)
Das Feld kann ich auch nicht füllen.
Weil sobald ein Kunde was bestellt ist er ja automatisch bestehender Kunde oder nicht?
Neuer Kunde = 1
Bestehender Kunde = 0

Wäre wirklich klasse wenn mir jemand helfen könnte.
Schonmal vielen vielen Dank im Voraus.

LG Michael
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 09.09.2011, 18:06
Neuer Benutzer
 
Registriert seit: 18.01.2011
Ort: Deutschland
Beiträge: 7
Standard

Hallo,

würde gerne nochmals das "Problem" von Michael aufgreifen.

Kann uns denn niemand mitteilen, welche Variablen wir nehmen müssen, wenn wir bei den Roi Tracker z.B. von Shopzilla.de, Shopping.com, Nextag.de oder ähnlich folgende Werte eintragen sollten?

Bestellwert / Gesamtsumme der Bestellungen
Auftrags-ID / Order-ID
Produktname
Die Bestellungsanzahl

Es gibt da noch weitere Daten, aber ich denke das wären mal die wichtigsten.

Evtl. hat das ja schon mal jemand in seinem Shop eingetragen, wäre schön wenn man das veröffentlichen könnte. Vielleicht kann uns ja auch ein Erfahrener Benutzer weiterhelfen :-)

Vielen Dank vorab.

Gruß Joki
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 27.09.2011, 18:26
Neuer Benutzer
 
Registriert seit: 03.04.2010
Beiträge: 13
Standard

Ich würde gerne wissen, wie ihr den Shopzilla Tracking Code einbindet in die checkout_success ohne dabei das Template zu zerschießen?

Als Gegenleistung hier die Variable $success_order.
Hier könnt ihr euch raussuchen was ihr braucht! Quantity etc...
PHP-Code:
order Object 
[
customer] => 
[oID] => 
[order_customer] => Array ( 
[
customers_id] => 
[external_id] => 
[
customers_cid] => 
[
customers_vat_id] => xxx.xxx@xxx.de 
[customers_vat_id_status] => 
[customers_status] => 2
[customers_email_address] => xxx.xxx@xxx.de 
[account_type] => 
[password_request_key] => xxxxxxxxxxxxxxx 
[payment_unallowed] => NULL 
[shipping_unallowed] => NULL 
[date_added] => 2010-04-30 00:00:00 
[last_modified] => 2011-02-04 15:16:53 
[shop_id] => 
[customers_default_currency] => EUR 
[customers_default_language] => de 
[campaign_id] => 
[allow_newsletter] => 
[affiliate_referrer] => 
[
affiliate_date] => 
[
affiliate_duration] => 
[
customers_age] => 
[customers_dob] => 02.02.2002 

[
order_data] => Array ( 
[
orders_id] => 2222 
[customers_id] => 
[customers_cid] => 
[
customers_vat_id] => xxx.xxx@xxx.de 
[customers_status] => 
[customers_email_address] => xxx.xxx@xxx.de 
[delivery_gender] => 
[delivery_phone] => 
[
delivery_fax] => xxx.xxx@xxx.de 
[delivery_firstname] => Peter 
[delivery_lastname] => Muster 
[delivery_company] => [delivery_company_2] => 
[
delivery_company_3] => 
[
delivery_street_address] => Musterstr.1 
[delivery_suburb] => 
[
delivery_city] => Musterstadt 
[delivery_postcode] => 00000 
[delivery_zone] => 31 
[delivery_zone_code] => 
[
delivery_country] => Deutschland 
[delivery_country_code] => DE 
[delivery_address_book_id] => 
[billing_gender] => 
[billing_phone] => 
[
billing_fax] => xxx.xxx@xxx.de 
[billing_firstname] => Peter 
[billing_lastname] => Muster 
[billing_company] => 
[
billing_company_2] => 
[
billing_company_3] => 
[
billing_street_address] => Musterstr.1 
[billing_suburb] => 
[
billing_city] => Musterstadt 
[billing_postcode] => 00000 
[billing_zone] => 31 
[billing_zone_code] => 
[
billing_country] => Deutschland 
[billing_country_code] => DE 
[billing_address_book_id] => 
[payment_code] => xt_prepayment 
[subpayment_code] => 
[
shipping_code] => Standard 
[currency_code] => EUR 
[currency_value] => 1.0000 
[language_code] => de 
[comments] => 
[
last_modified] => 2011-09-27 18:42:51 
[date_purchased] => 27.09.2011
[orders_status] => Offen 
[orders_date_finished] => 
[
account_type] => 
[allow_tax] => 
[customers_ip] => xx.xx.xxx.xx 
[shop_id] => 
[orders_data] => 
[
awake_id] => 
[campaign_id] => 
[cleverreach_id] => 
[allow_newsletter] => 
[comments2] => 
[
tduid] => 
[
date_purchased_plain] => 2011-09-27 18:42:51 

[
order_products] => Array ( 
[
0] => Array ( 
[
orders_products_id] => 18889 
[orders_id] => 2222 
[products_id] => 222 
[products_model] => 1111 
[products_name] => Testprodukt Standard 
[products_price] => Array ( 
[
formated] => 12,95 € 
[plain] => 12.95 
[plain_otax] => 10.5285 

[
products_discount] => 
[
products_tax] => Array ( 
[
formated] => 2,42 € 
[plain] => 2.421555 
[plain_otax] => 

[
products_tax_class] => 
[products_quantity] => 1.00 
[products_data] => 
[
allow_tax] => 
[products_shipping_time] => 
[
products_add_price] => Array ( 
[
formated] => 0,00 € 
[plain] => 
[plain_otax] => 

[
products_final_price] => Array ( 
[
formated] => 12,95 € 
[plain] => 12.95 
[plain_otax] => 10.5285 

[
products_tax_rate] => 23 
[products_final_tax] => Array ( 
[
formated] => 2,42 € 
[plain] => 2.421555 
[plain_otax] => 

[
add_Muster_tax] => Array ( 
[
formated] => 0,00 € 
[plain] => 
[plain_otax] => ) ) ) 
[
order_total_data] => Array ( 
[
0] => Array ( 
[
orders_total_id] => 2222 
[orders_id] => 2222 
[orders_total_key] => shipping 
[orders_total_key_id] => 
[orders_total_model] => Standard [
orders_total_name] => Versicherter Versand 
[orders_total_price] => Array ( 
[
formated] => 5,90 € 
[plain] => 5.9 
[plain_otax] => 4.7967 

[
orders_total_tax] => Array ( 
[
formated] => 1,10 € 
[plain] => 1.103241 
[plain_otax] => 

[
orders_total_tax_class] => 
[orders_total_quantity] => 1.00 
[allow_tax] => 
[orders_total_final_price] => Array ( [
formated] => 5,90 € 
[plain] => 5.9 
[plain_otax] => 4.7967 
[
orders_total_tax_rate] => 23 
[orders_total_final_tax] => Array ( 
[
formated] => 1,10 € 
[plain] => 1.103241 
[plain_otax] => ) ) ) 
[
order_total] => Array ( 
[
product_tax] => Array ( 
[
1] => Array ( 
[
tax_value] => Array ( 
[
formated] => 2,42 € 
[plain] => 2.421555 
[plain_otax] => 

[
tax_key] => 23 ) ) 
[
product_total] => Array ( 
[
formated] => 12,95 € 
[plain] => 12.95 
[plain_otax] => 

[
product_total_otax] => Array ( 
[
formated] => 10,53 € 
[plain] => 10.5285 
[plain_otax] => 

[
product_tax_rate] => Array ( 
[
1] => 23 
)
[
data_tax] => Array ( 
[
1] => Array ( 
[
tax_value] => Array ( 
[
formated] => 1,10 € 
[plain] => 1.103241 
[plain_otax] => 

[
tax_key] => 23 ) ) 
[
data_total] => Array ( 
[
formated] => 5,90 € 
[plain] => 5.9 
[plain_otax] => 
)
[
data_total_otax] => Array ( 
[
formated] => 4,80 € 
[plain] => 4.7967 
[plain_otax] => 
)
 
[
data_tax_rate] => Array ( 
[
1] => 23 
)
 
[
total_tax] => Array ( 
[
1] => Array ( 
[
tax_value] => Array ( 
[
formated] => 3,52 € 
[plain] => 3.524796 
[plain_otax] => 
)
[
tax_key] => 23 ) ) 
[
total] => Array ( 
[
formated] => 18,85 € 
[plain] => 18.85 
[plain_otax] => 
)
[
total_otax] => Array ( 
[
formated] => 15,33 € 
[plain] => 15.3252 
[plain_otax] => 

[
total_tax_rate] => Array ( 
[
1] => 23 
Ok konnte das ganze mit {literal} {/literal} einbinden nur kommt man in Smarty schwerer an die Variablen. Wenn man in den Hook PHP schieß ist es einfacher.

So gehts schonmal nicht:

PHP-Code:
{literal}
<
script language="javascript">
<!--
 
/* Performance Tracking Data */
 
var mid            '00000';
 var 
cust_type      '';
 var 
order_value    '{/literal}{php} echo $total_net{/php}{literal}';
 var 
order_id       '{/literal}{php} echo $success_order->order_data['orders_id']{/php}{literal}';
 var 
units_ordered  '';
//-->
</script>{/literal} 

Geändert von Pawhi (27.09.2011 um 18:46 Uhr)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
anzahl, ausgeben, checkoutsuccessphp, einheiten

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Versandkosten nach Anzahl der Artikel nadsen Fragen zur Software 3 29.03.2012 18:46
Anzahl der Sonderangebote einstellen mixxter Shopbereich 0 01.03.2009 12:19
KELKOO - EILT Stefan_w Allgemeine Diskussionen 0 09.12.2005 17:10


Alle Zeitangaben in WEZ +1. Es ist jetzt 22:08 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand