OXID Community Forum

> German forum > Entwickler > Geburtsdatum in Bestellemail
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: Geburtsdatum in Bestellemail


Reply
 
Thread Tools Display Modes
#Top   #1  
Old 04-26-2012, 10:57 AM
hacki hacki is offline
Junior Member
Join Date: Dec 2011
Posts: 26
hacki is on a distinguished road
Default Geburtsdatum in Bestellemail

Hallo zusammen,

wie man das Geburtsdatum als Pflichtfeld setzt ist ja recht einfach.

Allerdings verstehe ich den Sinn dahinter nicht, da das Geburtsdatum nirgends ausgegeben wird... zumindest finde ich nix

Ich benötige das Geburtsdatum in meiner Bestell-Email (an mich, nicht an den Kunden), damit ich gleich sehe wie alt die Person ist.

Leider habe ich im Forum nichts gefunden - wäre über Hilfe super dankbar!
__________________
There is no try! So always think big! If you really want it, it will work out.
(Except when you´re programming with the Facebook API. )
Reply With Quote
#Top   #2  
Old 04-26-2012, 11:35 AM
Hebsacker's Avatar
Hebsacker Hebsacker is offline
Moderator
Join Date: Feb 2009
Location: Freie Republik Hohenlohe
Posts: 10,227
Hebsacker is on a distinguished road
Default AW: Geburtsdatum in Bestellemail

http://www.oxid-esales.com/de/resour...mails-anpassen

Wie man das Geburtsdatum aus der Datenbank abfrägt weis ich allerdings grade nicht auswendig...
__________________
Ray
www.stahlwarenhaus-hebsacker.de______________._.__Tipps zur Forensuche
www.haller-stahlwaren.de____________________._____Tipps zum Forum
_________________________________________._____Forum für Dummies

_________________________________________._____Theme-Styler
Reply With Quote
#Top   #3  
Old 04-26-2012, 11:45 AM
hacki hacki is offline
Junior Member
Join Date: Dec 2011
Posts: 26
hacki is on a distinguished road
Default Re: Geburtsdatum in Bestellemail

Danke für die Antwort.

Die Anpassung des Mail-Templates ist mir klar, mir gehts darum wie ich das Feld Birthdate aus der Datenbank bekomme.

Die oxorder.php Funktion klont das User Objekt, das User Objekt ist aber laut dem Comment depreciated... ich blick da nicht durch...
__________________
There is no try! So always think big! If you really want it, it will work out.
(Except when you´re programming with the Facebook API. )
Reply With Quote
#Top   #4  
Old 04-26-2012, 11:56 AM
Hebsacker's Avatar
Hebsacker Hebsacker is offline
Moderator
Join Date: Feb 2009
Location: Freie Republik Hohenlohe
Posts: 10,227
Hebsacker is on a distinguished road
Default AW: Geburtsdatum in Bestellemail

$user->oxuser__oxbirthdate->value

(hat mir der dev-channel grade zugeflüstert)
__________________
Ray
www.stahlwarenhaus-hebsacker.de______________._.__Tipps zur Forensuche
www.haller-stahlwaren.de____________________._____Tipps zum Forum
_________________________________________._____Forum für Dummies

_________________________________________._____Theme-Styler
Reply With Quote
#Top   #5  
Old 04-26-2012, 12:06 PM
jkrug's Avatar
jkrug jkrug is online now
Senior Member
Join Date: Aug 2009
Location: Magdeburg / Freiburg
Posts: 1,047
jkrug is on a distinguished road
Default AW: Geburtsdatum in Bestellemail

Quote:
Originally Posted by Hebsacker View Post
$user->oxuser__oxbirthdate->value

(hat mir der dev-channel grade zugeflüstert)
Moinsen,

Hilfe zur Selbsthilfe:

Normalerweise stehen einem Objekt alle Werte wie folgt zur Verfügung

$instanz->tablenname__feldname->value

Gruß Joscha

Last edited by jkrug; 04-26-2012 at 12:40 PM.
Reply With Quote
#Top   #6  
Old 04-27-2012, 08:52 AM
hacki hacki is offline
Junior Member
Join Date: Dec 2011
Posts: 26
hacki is on a distinguished road
Default Re: Geburtsdatum in Bestellemail

Vielen Dank erstmal für diesen Hinweis. Nun habe ich allerdings im Template die folgende Situation:

...
[{ $order->oxorder__oxbillcompany->value }]<br>
[{ $order->oxorder__oxbillsal->value|oxmultilangsal}] [{ $order->oxorder__oxbillfname->value }] [{ $order->oxorder__oxbilllname->value }]<br>
[{if $order->oxorder__oxbilladdinfo->value }][{ $order->oxorder__oxbilladdinfo->value }]<br>[{/if}]
...

Nun ist mein Ansatz hier auf eine "neue" Objektvariable namens "oxbillbirthdate" zurückzugreifen, also schreibe ich:

....
Geburtsdatum: $order->oxorder__oxbirthdate->value }]<br>
....

Nun gehe ich in die /core/oxorder.php und möchte (testweise - später wird das überladen) einfach mal eine neue Variable hinzufügen. Hier stehen schon so tolle Dinge wie:

$this->oxorder__oxbillcompany = clone $oUser->oxuser__oxcompany;
$this->oxorder__oxbillemail = clone $oUser->oxuser__oxusername;
$this->oxorder__oxbillfname = clone $oUser->oxuser__oxfname;

Wie gehe ich aber nun vor? Füge ich hier ein

$this->oxorder__oxbillbirthdate = clone $oUser->oxuser__oxbirthdate:

ein?
__________________
There is no try! So always think big! If you really want it, it will work out.
(Except when you´re programming with the Facebook API. )
Reply With Quote
Reply

Bookmarks

Tags
bestellemail, geburtsdatum

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Geburtsdatum als Pflichtfeld popkopff Allgemeines 10 12-28-2011 06:44 PM
Bestellemail mehrere Produktbilder mathias2711 Templates und Design 3 02-21-2011 10:17 PM
Bestellemail Admin (email_order_owner) EggSupport Installation und Konfiguration 3 10-18-2010 09:46 PM
Geburtsdatum phaser001 Newbies 1 04-11-2010 08:54 PM
Bestellemail an 2 Adressen gleichzeitig? michaeljaekel Administration 3 11-25-2008 11:13 AM

All times are GMT +2. The time now is 04:55 AM.