Page 1 of 1

shop pflichtfelder

Posted: Sun 25. May 2008, 13:02
by louiscypher
Ich such jetzt schon eine stunde und glaube ich seh den wald vor lauter bäumen nicht. Wo stelle ich die pflichtfelder beim bestellformular im shop an und aus?

Re: shop pflichtfelder

Posted: Sun 25. May 2008, 13:51
by juergen
Hi

die Errorüberprüfung im template :

Code: Select all

[ERROR_shop_field_1]<p>You must fill in custom shop field 1</p>[/ERROR_shop_field_1]
und ebenda:

Code: Select all

<tr>
		<td>custom 1*:</td>
		<td><input type="text" name="shop_field_1" id="shop_field_1" value="{shop_field_1}" size="20" maxlength="20" /></td>
	</tr>
So lernen Felder fliegen :D

Re: shop pflichtfelder

Posted: Sun 25. May 2008, 14:18
by louiscypher
genau beim custom-field stimmt was nicht, wenn ich das einfach im template lösche, beschwert er sich das es ausgefüllt sein muss

Re: shop pflichtfelder

Posted: Sun 25. May 2008, 14:37
by louiscypher
Ich habe es jetzt mal so gelöst, dass ich die felder die ich nicht brauche "hidden" gesetzt und als "value" einen leeren Wert angegeben habe.

Re: shop pflichtfelder

Posted: Fri 30. May 2008, 13:41
by FN-Media
/include/inc_module/mod_shop/template/default|default.html

shop_field_1 = STRING_REQ_Label ersetzen durch shop_field_1 = STRING_My custom field oder wie ich gamacht auskommentieren und neu anfügen. dann musst nicht mit hidden schlampen. ;-)

; shop_field_1 = STRING_REQ_Label
shop_field_1 = STRING_My custom field

Code: Select all

<!--CONFIG_START//-->

cat_all = "Top Produkte"
cat_list_products = On

price_decimals = 2
vat_decimals = 0
weight_decimals = 0
dec_point = ","
thousands_sep = "."

image_list_width = 200
image_list_height = 200
image_detail_width = 150
image_detail_height = 150

mail_customer_subject = "[#{ORDER}] Ihre Bestellung bei FN-Media"
mail_neworder_subject = "[#{ORDER}] Neue Bestellung bei FN-Media"

label_payby_prepay = "Vorauszahlung"
label_payby_pod = "Nachnahme"
label_payby_onbill = "Rechnung"

; Add custom fields, only for step 1
; (where customer fill in address information)
; The label information is just optional
; and only used to set default error messages
; format: shop_field_1 = STRING_REQ_Label
; shop_field_1 = STRING_REQ_Label
shop_field_1 = STRING_My custom field
shop_field_2 = STRING_My custom field

; possible:
; ---------
; RANDOM or
; sprintf() formatted http://php.net/sprintf
; sample: %05s -> 00001
order_number_style = %05s


<!--CONFIG_END//-->