Q11
May 25, 2015, 3:14am
1
Hallo,
ich würde gerne “Sie haben Fragen zu diesem Artikel?” ändern! Alles soll in einem tab untergebracht werden. Diesen habe ich auch schon angelegt. Jedoch ist mir nicht klar wie ich dort ein Kontaktformular einbinden, welches auch automatisch die Artikelnummer übernimmt.
Die Anfrage soll direkt über die Webseite erfolgen und nicht über das Mailprogramm wie es im Moment als Lösung angeboten wird. Hat da jemand eine Idee oder kann mir einen Tipp geben?
Vielen Dank!
Azure 4.8.6
Als Tipp, schau Dir mal an, wie das für den Preisalarm gelöst ist.
Q11
May 25, 2015, 4:34pm
3
[QUOTE=MeisterYoda;159654]Als Tipp, schau Dir mal an, wie das für den Preisalarm gelöst ist.[/QUOTE]
Habe ich getan, aber ich komme ab dem Punkt nicht weiter wo ich den Betr. und die Textarea übernehmen möchte. Erhalte immer ein redirect auf die Startseite! Hast due eventuell einen Tipp?
[{*assign var="currency" value=$oView->getActCurrency()*}]
<p>[{* oxmultilang ident="MESSAGE_PRICE_ALARM_PRICE_CHANGE" *}]</p>
[{oxscript include="js/widgets/oxinputvalidator.js" priority=10 }]
[{oxscript add="$('form.js-oxValidate').oxInputValidator();"}]
<form class="js-oxValidate" action="[{ $oViewConf->getSslSelfLink() }]" method="post">
<div>
[{ $oViewConf->getHiddenSid() }]
<input type="hidden" name="fnc" value="send"/>
<input type="hidden" name="cl" value="contact"/>
[{assign var="oCaptcha" value=$oView->getCaptcha() }]
<input type="hidden" name="c_mach" value="[{$oCaptcha->getHash()}]"/>
</div>
<ul class="form clear">
<li>
<label>[{ oxmultilang ident="TITLE" }]</label>
[{if $oxcmp_user && !$editval.oxuser__oxsal}]
[{include file="form/fieldset/salutation.tpl" name="editval[oxuser__oxsal]" value=$oxcmp_user->oxuser__oxsal->value }]
[{else}]
[{include file="form/fieldset/salutation.tpl" name="editval[oxuser__oxsal]" value=$editval.oxuser__oxsal }]
[{/if}]
</li>
<li [{if $aErrors.oxuser__oxfname}]class="oxInValid"[{/if}]>
<label class="req">[{ oxmultilang ident="FIRST_NAME" suffix="COLON" }]</label>
<input type="text" name="editval[oxuser__oxfname]" size="70" maxlength="40" value="[{if $oxcmp_user && !$editval.oxuser__oxfname}][{$oxcmp_user->oxuser__oxfname->value}][{else}][{$editval.oxuser__oxfname}][{/if}]" class="js-oxValidate js-oxValidate_notEmpty">
<p class="oxValidateError">
<span class="js-oxError_notEmpty">[{ oxmultilang ident="ERROR_MESSAGE_INPUT_NOTALLFIELDS" }]</span>
[{include file="message/inputvalidation.tpl" aErrors=$aErrors.oxuser__oxfname}]
</p>
</li>
<li [{if $aErrors.oxuser__oxlname}]class="oxInValid"[{/if}]>
<label class="req">[{ oxmultilang ident="LAST_NAME" }]</label>
<input type="text" name="editval[oxuser__oxlname]" size=70 maxlength=40 value="[{if $oxcmp_user && !$editval.oxuser__oxlname}][{$oxcmp_user->oxuser__oxlname->value}][{else}][{$editval.oxuser__oxlname}][{/if}]" class="js-oxValidate js-oxValidate_notEmpty">
<p class="oxValidateError">
<span class="js-oxError_notEmpty">[{ oxmultilang ident="ERROR_MESSAGE_INPUT_NOTALLFIELDS" }]</span>
</p>
</li>
<li [{if $aErrors.oxuser__oxusername}]class="oxInValid"[{/if}]>
<label class="req">[{ oxmultilang ident="EMAIL" suffix="COLON" }]</label>
<input id="contactEmail" type="text" name="editval[oxuser__oxusername]" size=70 maxlength=40 value="[{if $oxcmp_user && !$editval.oxuser__oxusername}][{$oxcmp_user->oxuser__oxusername->value}][{else}][{$editval.oxuser__oxusername}][{/if}]" class="js-oxValidate js-oxValidate_notEmpty js-oxValidate_email">
<p class="oxValidateError">
<span class="js-oxError_notEmpty">[{ oxmultilang ident="ERROR_MESSAGE_INPUT_NOTALLFIELDS" }]</span>
<span class="js-oxError_email">[{ oxmultilang ident="ERROR_MESSAGE_INPUT_NOVALIDEMAIL" }]</span>
</p>
</li>
<li>
<span>
[{$oDetailsProduct->oxarticles__oxtitle->value}] - [{$oDetailsProduct->oxarticles__oxartnum->value}]
</span>
</li>
<!--<li>
<label>[{ oxmultilang ident="EMAIL" suffix="COLON" }]</label>
<input class="js-oxValidate js-oxValidate_notEmpty js-oxValidate_email" type="text" name="pa[email]" value="[{ if $oxcmp_user }][{ $oxcmp_user->oxuser__oxusername->value }][{/if}]" size="20" maxlength="128">
<p class="oxValidateError">
<span class="js-oxError_notEmpty">[{ oxmultilang ident="ERROR_MESSAGE_INPUT_NOTALLFIELDS" }]</span>
<span class="js-oxError_email">[{ oxmultilang ident="ERROR_MESSAGE_INPUT_NOVALIDEMAIL" }]</span>
</p>
</li>-->
<li>
<label>[{ oxmultilang ident="VERIFICATION_CODE" suffix="COLON" }]</label>
[{if $oCaptcha->isImageVisible()}]
<img class="verificationCode" src="[{$oCaptcha->getImageUrl()}]" alt="[{ oxmultilang ident="VERIFICATION_CODE" }]">
[{else}]
<span class="verificationCode" id="verifyTextCode">[{$oCaptcha->getText()}]</span>
[{/if}]
<input type="text" data-fieldsize="verify" name="c_mac" value="" class="js-oxValidate js-oxValidate_notEmpty">
<p class="oxValidateError">
<span class="js-oxError_notEmpty">[{ oxmultilang ident="ERROR_MESSAGE_INPUT_NOTALLFIELDS" }]</span>
</p>
</li>
<li class="formSubmit">
<button class="submitButton largeButton" type="submit">[{ oxmultilang ident="SEND" }]</button>
</li>
</ul>
</form>
Q11
May 26, 2015, 11:58am
5
[QUOTE=aggrosoft;159670]zur not kann ich das empfehlen
http://www.ecomponents.de/Module/ASForms-Pro-Formularmanager-Oxid-4.html
mfg[/QUOTE]
Hallo vielen Dank für den Hinweis! Ich würde es sehr gerne selber einbauen. Da kann ja so viel nicht mehr fehlen. Wenn mann den Preisalarm kopiert und diesen noch erweitert müsste es doch funktionieren. Ich erhalte nur nicht wie gewünscht betr. und die Textbock!
tabsl
May 26, 2015, 2:19pm
6
du musst ein modul für “details” schreiben, was das formular verarbeiten kann.
den code hierfür kannst du dir von der “contact” klasse abschauen (sowohl tpl als auch php)