Home › Forum › Problemi Vari con WP › Commenti
-
AutorePost
-
-
19 Dicembre 2009 alle 8:39 #12477Samuel93Partecipante
Ciao a tutti, vi anticipo che sto cercando di creare una sorta di negozio online ma senza l’uso di plugin (quali -commerce), insomma un e-commerce a mia misura, un qualcosa di semplice utilizzando la struttura solita di wp e un tema adatto alle mie esigenze.
Arriviamo al dunque, devo modificare, del file comments.php, questa parte:
<form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
<?php if ( $user_ID ) : ?>
Collegato come /wp-admin/profile.php"><?php echo $user_identity; ?>. /wp-login.php?action=logout" title="Esci da questo account">�Logout �
<?php else : ?>
<label for="name">Nome <?php if ($req) echo "(richiesto)"; ?></label>
<input type="text" name="author" id="name" value="<?php echo $comment_author; ?>" size="50" tabindex="1" />
<label for="email">La tua mail <?php if ($req) echo "(richiesto)"; ?></label>
<input type="text" name="email" id="email" value="<?php echo $comment_author_email; ?>" size="50" tabindex="2" />
<label for="url">Il tuo sito</label>
<input type="text" name="url" id="url" value="<?php echo $comment_author_url; ?>" size="50" tabindex="3" />
<?php endif; ?>
<!--<small>XHTML: Puoi usare questi tags: <?php echo allowed_tags(); ?></small>
-->
<label for="words">Commento</label><textarea name="comment" id="words" cols="40" rows="10" tabindex="5"></textarea>
<input name="submit" type="submit" id="submit" tabindex="5" value="Invia Ordine" />
<input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
<?php do_action('comment_form', $post->ID); ?>
</form>
Vorrei modificare in modo che al posto dell'area con scritto "Commento" ci fosse una piccola area per inserire la quantità e vicino un piccolo menu a tendina in cui posso inserire le diverse opzioni (es, taglia grande, taglia piccola ecc..) e poi vorrei che il numero "quantità " e il selezionato nel "menu a tendina" mi venisse nell'area "Commento" nell'area amministrativa in "Commenti da moderare" per capirsi.
Ah si, un'altra cosa, vorrei anche mettere un piccolo (e non invasivo graficamente) captcha
Spero di essere stato chiaro e spero qualcuno sia disposto a portarmi aiuto
-
25 Dicembre 2009 alle 10:01 #70267Samuel93Partecipante
ok, ho risolto, chiudete pure
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.