Liebe Leute!
Ich hab ein Problem mit tt_products (was auch in der Doku süffisant
erwähnt ist - ohne Lösung), bei dem ich nicht weiterkomme. Auch die bisherigen Forum-Einträge helfen mir nicht weiter.
Wenn einE FE-UserIn eingeloggt ist, werden die Adressdaten automatisch
in das Bezahlformular eingetragen. Das möchte ich nicht, bzw. sollen die
Daten zumindest editierbar bleiben.
Die Beschreibung hilft mir auch nicht weiter, denn ich versteh nicht so
recht, wie ich lockLoginUserInfo und loginUserInfoAddress konfigurieren
kann, damit sich das gewünschte Ergebnis einstellt. Oder: geht das am
Ende gar nicht?
Hat jemand von Euch Erfahrung und kann mir weiterhelfen?
Danke schonmal und schöne Grüße,
Eike
PS: Ich hab typo3.7 und tt_products 1.2.7.
nopasaran schrieb
denn ich versteh nicht so
recht, wie ich lockLoginUserInfo und loginUserInfoAddress konfigurieren
kann, damit sich das gewünschte Ergebnis einstellt.
plugin.tt_products.lockLoginUserInfo = 0
plugin.tt_products.loginUserInfoAddress = 0
Am besten im Setup eintragen, weil es unter Konstanten nicht immer funktioniert.
Danke für den Tipp!
Allerdings bleibt damit alles beim Alten. Der/die UserIn wird eingetragen, nichts (vom Namen/Adresse) ist editierbar.
Mein Shop findet sich unter
http://www.lmj-rlp.de/index.php?id=16
UserIn ist "kjml", PW "d-reihe"
Ich bin für alle weiteren Tipps dankbar!
nopasaran schrieb
Ich bin für alle weiteren Tipps dankbar!
Folgende Korrekturen in der Datei tt_products/pi/class.tx_ttproducts.php müssen durchgeführt werden:
function getBasket:
if (trim($this->cObj->getSubpart($t["basketFrameWork"],"###BILLING_ADDRESS_LOGIN###"))) {
if ($GLOBALS["TSFE"]->loginUser) {
$t["basketFrameWork"] = $this->cObj->substituteSubpart($t["basketFrameWork"], "###BILLING_ADDRESS###", "");
} else {
$t["basketFrameWork"] = $this->cObj->substituteSubpart($t["basketFrameWork"], "###BILLING_ADDRESS_LOGIN###", "");
}
}
ändern auf
// If there is a specific section for the billing address if user is logged in (used because the address may then be hardcoded from the database
if (trim($this->cObj->getSubpart($t['basketFrameWork'],'###BILLING_ADDRESS_LOGIN###'))) {
if ($GLOBALS["TSFE"]->loginUser && $this->conf['lockLoginUserInfo']) {
$t['basketFrameWork'] = $this->cObj->substituteSubpart($t['basketFrameWork'], '###BILLING_ADDRESS###', '');
} else {
$t['basketFrameWork'] = $this->cObj->substituteSubpart($t['basketFrameWork'], '###BILLING_ADDRESS_LOGIN###', '');
}
}
und in function initBasket($basket)
if ($GLOBALS["TSFE"]->loginUser && (!$this->personInfo || $this->conf["lockLoginUserInfo"])) {
ändern auf
if ($GLOBALS["TSFE"]->loginUser && !$this->personInfo && $this->conf['lockLoginUserInfo']) {