Merkzettel an doform 4.33.1

Wie verwendet man Module oder Aktion und passt diese an.

Merkzettel an doform 4.33.1

Beitragvon tty35 » 19. Feb 2012, 12:27

Hallo Redaxo Gemeinde,

ich verzweifel langsam bei der Übergabe des Mekzettels an doform.

Das Merkzettel Modul aus http://www.redaxo.org/de/wiki/index.php?n=R3.Merkzettel funktioniert einwandtfrei.

Code des Warenkorb Inhaltes:
Code: Alles auswählen
<div class="warenkorb">
<?php if (sizeof($_SESSION["shoppingcart"]) != 0) {
    echo '<h1>Bisher in Ihrem Warenkorb:</h1>';
    $db_korb = " SELECT * FROM rex_article_slice WHERE modultyp_id = '11'";
    $prods = new rex_sql; $prods->setQuery($db_korb);     
    for ($i=0;$i<$prods->getRows();$i++) {     
    foreach ($_SESSION['shoppingcart'] as $pid => $id) {     
    if ($pid == $prods->getValue("id")) {
         echo ' <div style="float:left;margin-right:10px; height:100px;"><img src="/index.php?rex_resize=100w__'.$prods->getValue("file1").'"></div>';   
         echo ' <p class="bestellen">Art.-Nr: '.$prods->getValue("value1").' <br> '.$prods->getValue("value2").'
    <br>Menge:'.$id["menge"].' <br></a></p>  <p><a  class="entfernen" href="'.rex_getUrl($this->getValue(article_id), $REX["CUR_CLANG"], array('remove'=>$prods->getValue("id"))).'"> Artikel aus dem Warenkorb löschen</a><br><br style="clear:both;"></p>';     
    $products_mail .= $id["menge"]." x "; $products_mail .= $prods->getValue("value1")." - ";    $products_mail .= $prods->getValue("value2")."\n";     
    $products_mail .= $prods->getValue("value3")." a "; $products_mail .= $prods->getValue("value4")."\n"; } }
    $prods->next(); } ; } else { echo '<h1>Ihr Warenkorb ist leer</h1>'; }

$_SESSION["products_mail"] = $products_mail;

var_dump($_SESSION["shoppingcart"]);

?>
</div>



Bei doform habe ich als Bezeichnung für Sessionvariable:

shoppingcart

und im Formularfeld

shoppingcart|Warenkorb
eingetragen.

Leider erfolgt keine Ausgabe beim Mailversandt.

Auch die Versuche mit xform scheiterten -

Vielen Dank für Eure Hilfe

TTY
tty35
 
Beiträge: 23
Registriert: 26. Mai 2008, 15:07
Wohnort: Hamburg

Re: Merkzettel an doform 4.33.1

Beitragvon tty35 » 19. Feb 2012, 14:51

Trotz des Wetters, ein Lichtblick

In doform
Bezeichner für Sessionvariable:
products_mail

Im Formularfeld

sessionvar|Inhalt Warenkorb

dann ist in der Mail auch der Variableninhalt.

TTY
tty35
 
Beiträge: 23
Registriert: 26. Mai 2008, 15:07
Wohnort: Hamburg


Zurück zu Module/Aktionen [R4]

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 4 Gäste