#1 (permalink)  
Alt 17.02.2010, 21:32
Benutzer
 
Registriert seit: 16.10.2009
Beiträge: 62
Standard create_account felder per css anpassen

Hallo,
ich möchte die Textfelder in der Kundenanmeldung per CSS anpassen.


In der create_account.php habe ich folgende Zeile ca. 373

PHP-Code:
$smarty->assign('INPUT_FIRSTNAME'xtc_draw_input_fieldNote(array ('name' => 'firstname''text' => '&nbsp;'. (xtc_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">'.ENTRY_FIRST_NAME_TEXT.'</span>' '')))); 
so abgeändert:

PHP-Code:
$smarty->assign('INPUT_FIRSTNAME'xtc_draw_input_field('FIRSTNAME''''class="box_login_email"'), xtc_draw_input_fieldNote(array ('name' => 'firstname''text' => '&nbsp;'. (xtc_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">'.ENTRY_FIRST_NAME_TEXT.'</span>' '')))); 
Die Felder werden dementsprechend angezeigt und sonst sieht es optisch auch so aus wie gewollt.

Wenn ich aber das Formular korrekt ausfülle bekomme ich für jedes Feld die Fehlermeldung, dass ich geforderte Mindestmenge an Zeichen nicht eingehalten habe. Die Bezeichnung der weiteren Feldes hab ich jeweils analog zu dem Beispiel angepasst.

Wo liegt der Fehler?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 17.02.2010, 23:11
Benutzer
 
Registriert seit: 16.10.2009
Beiträge: 62
Standard

Jetzt hab ich es.

Die Class wird in der xtc_draw_input_field.inc.php hinter "<input" eingefügt.


Ja, ich weiß, erst denken, dann posten
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 18.02.2010, 12:36
Benutzer
 
Registriert seit: 16.10.2009
Beiträge: 62
Standard

Mir ist aufgefallen, dass nun auch das Feld für die Anzahl der Artikel das Format annimmt, welches ich wie o.g. per class definiert habe.

Als Lösung habe ich eine

xtc_draw_input_qtyfield.inc.php erstellt mit diesem Inhalt:

PHP-Code:
<?php
/* -----------------------------------------------------------------------------------------
   $Id: xtc_draw_input_field.inc.php 899 2005-04-29 02:40:57Z hhgag $

   XT-Commerce - community made shopping
   http://www.xt-commerce.com

   Copyright (c) 2003 XT-Commerce
   -----------------------------------------------------------------------------------------
   based on:
   (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
   (c) 2002-2003 osCommerce(html_output.php,v 1.52 2003/03/19); www.oscommerce.com
   (c) 2003         nextcommerce (xtc_draw_input_field.inc.php,v 1.3 2003/08/13); www.nextcommerce.org

   Released under the GNU General Public License
   ---------------------------------------------------------------------------------------*/

// Output a form input field
  
function xtc_draw_input_qtyfield($name$value ''$parameters ''$type 'text'$reinsert_value true) {
    
$field '<input class="cartqty" type="' xtc_parse_input_field_data($type, array('"' => '&quot;')) . '" name="' xtc_parse_input_field_data($name, array('"' => '&quot;')) . '"';

    if ( (isset(
$GLOBALS[$name])) && ($reinsert_value == true) ) {
      
$field .= ' value="' xtc_parse_input_field_data($GLOBALS[$name], array('"' => '&quot;')) . '"';
    } elseif (
xtc_not_null($value)) {
      
$field .= ' value="' xtc_parse_input_field_data($value, array('"' => '&quot;')) . '"';
    }

    if (
xtc_not_null($parameters)) $field .= ' ' $parameters;

    
$field .= ' />';

    return 
$field;
  }


?>
includes/modules/product_info.php Zeile 55 xtc_draw_input_field in xtc_draw_input_qtyfield ändern

PHP-Code:
$info_smarty->assign('ADD_QTY'xtc_draw_input_field('products_qty''1''''class="cartqty"').' '.xtc_draw_hidden_field('products_id'$product->data['products_id'])); 
includes/modules/order_details.php Zeile 41 xtc_draw_input_field in xtc_draw_input_qtyfield ändern

PHP-Code:
require_once (DIR_FS_INC.'xtc_draw_input_field.inc.php'); 
Und dies ebenfalls in der /product_info.php in Zeile 50.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 31.08.2010, 08:14
Erfahrener Benutzer
 
Registriert seit: 29.01.2005
Beiträge: 110
Standard

Klasse das auch mal jemand seine Lösung postet und die Frage nicht offen im Raum stehen lässt
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
anpassen, createaccount, css, felder

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Template anpassen - Wie anfangen? knuffiwuffi Template System 7 06.02.2010 21:08
css Datei des Editors htmlarea anpassen isd17 Installation und Konfiguration 1 08.07.2009 17:14
Im Fckeditor geschriebenen Quellcode mit css strukturieren? hjstoffl HTML & CSS 0 27.09.2008 09:00


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:12 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand