Home › Forum › Questo Forum › Riservare utilizzo pulsante solo agli user online
-
AutorePost
-
-
1 Febbraio 2010 alle 15:18 #12857alteredsunsetPartecipante
Salve a tutti.
Mi sto dando da fare per trasformare il mio sito da galleria virtuale a negozio on-line.
Il progetto lo sto sviluppando in off-line, sfruttando XAMPP, utilizzando la versione 2.9.1 XXL di WordPress in italiano.
Mi sono appoggiato ad un template provvisorio gratuito generato con Artisteer2, e ai seguenti plugin:
– Register Plus 3.5.1 (per poter richiedere agli iscritti dei campi aggiuntivi);
– NextGen Gallery 1.4.3 (per gestire il materiale grafico in maniera semplice);
– Configure SMTP 2.7 (per gestire l’inoltro delle e-mail sulla mia casella di posta);
– WP eStore 2.8.9 (per gestire l’aspetto di vendita degli articoli, pagamenti ecc).
Attualmente il progetto è validato, funzionante nelle meccaniche di base (visualizzazione articoli, navigazione nel negozio virtuale, operazioni del carrello, pagamenti payal), tuttavia vorrei migliorare la gestione del sito in maniera più efficace e sicura sia per me (tra poco sarò titolare di regolare partita iva per attività di commerciante on-line) sia per gli utenti che frequenteranno il sito, che desidero tutelare al meglio.
In particolare vi scrivo per chiedere il vostro consiglio su alcune questioni che, credo, potranno essere di aiuto a chi si trova più o meno nella mia situazione.
1- Principalmente vorrei riservare la possibilità di riempire il carrello ai soli membri registrati, tuttavia non privando i visitatori non-registrati della possibilità di vedere effettivamente i prodotti che metto a disposizione.
L’area del sito dedicata al negozio ho pensato di poterla sviluppare in due modi:
-tramite NextGen Gallery, aggiungendo il pulsante “Aggiungi al carrello” (gestione semplice);
– tramite WP eStore, il quale oltre essere già predisposto per l’inserimento di campi specifici (contatori di disponibilità , spese di spedizione ecc), mi lascia una certa “tracciabilità ” delle operazioni effettuate dagli utenti. Attualmente sto utilizzando questo metodo.
La mia domanda è la seguente: come posso fare visualizzare il pulsante “Aggiungi al carrello” solo agli utenti loggati, e al suo posto visualizzare il link di Login/Registrazione agli altri utenti?
Pensavo di utilizzare il controllo IF con la funzione is_user_logged_in(); ho provato, ma senza successo, a editare sia la funzione di WP eStore plugin che esegue l’operazione di inserimento a pulsante premuto (includendo il file pluggable.php per il controllo, sia ho provato a editare la pagina creata in wordpress in cui inserisco il shortcode che mi fa visualizzare la “gallery” dei prodotti (editandola in modalità HTML e inserendovi le righe di controllo in PHP).
Penso che il tipo di controllo da effettuare sia giusto, almeno teoricamente.
2- Vorrei creare una pagina dedicata al profilo dell’utente, in cui poter dare la possibilità di far scegliere all’utente un avatar di immagine personalmente caricata da lui o selezionabile da un TOT pre-impostate da me.
In linea di massima penso di dover creare una pagina apposita di profilo nel template, ma non so come richiamare i campi e le funzioni per fare aggiornare e visualizzare i dati dell’utente. Potreste darmi qualche dritta?
Vi ringrazio intanto per l’attenzione, e accetto qualsiasi consiglio, non necessariamente “pappa pronta”, dopotutto un po’ di programmazione la mastico ^_~
Saluti,
altered_sunset
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.