Home › Forum › Plugin e temi di WP › Ricerca prodotti Woocommerce
-
AutorePost
-
-
7 Aprile 2019 alle 12:26 #31894PhelpsPartecipante
Ciao a tutti.
Da poco ho imparato scrivere template per wordpress. Ho un problema però.
Se installo woocommerce ed effettuo una ricerca non mi viene mostarto il prodotto woocommerce con il prezzo ma mi viene mostrato il singolo articolo da loop con il bottone read more e i meta tag per aprirlo e poi vedere il tema.
Inoltre ho comprato anche un plug in di ricerca per pneumatici e quando inserisco le misure invece di trovare il singolo prodotto col prezzo, li elenca tutti.
Se invece cambio tema per esempio al twentynineteen e faccio la ricerca sia normale e sia con il plug in funziona tutto. Il prodotto singolo viene trovato nella pagina shop insieme anche con il prezzo.
A quale file php viene affidata la ricerca?
Guardando la ricerca con ISPEZIONA del browser, il file che viene chiamato nel tema scritto da me è index.php, cosa devo invece implementare?
Grazie
-
9 Aprile 2019 alle 10:15 #122643SteveAglAmministratore del forum
I temi in woocomerce utilizzano usn a serie di loro template se non li trovano disponibili nel tema utilizzato, inoltre il tema deve avere delle dichiarazioni di copatibilità con woocomerce, suggerisco di iniziare leggendo questa pagina
-
11 Aprile 2019 alle 17:26 #122655PhelpsPartecipante
Da quello che mi sembra di capire è che se io volessi usare woocommerce.php per fare l override , affinché questo venga preso in considerazione devo usare quella specifica funzione after_setup_theme.
-
11 Aprile 2019 alle 18:34 #122656SteveAglAmministratore del forum
no dichiari il tema compatibile con woocomerce e poi crei la directory nel tuo tema con i template di cui vuoi fare l’override adattandoli alle tue esigenze. Woocommerce è complesso ha il suo supporto qua non possiamo gestirne la complessità se non dando risposte generali. Usare woocomerce personalizzandolo pesantemente richiede di conoscere bene WP woocomerce PHP ecc
-
14 Aprile 2019 alle 16:35 #122657PhelpsPartecipante
Capisco quello che dici..personalizzare woocommerce significa solo capire le funzioni PHP di WordPress e non conoscere PHP. PHP lo conosco.
Piuttosto hai un riferimento ad una guida temi woocommerce ?
-
15 Aprile 2019 alle 6:55 #122658SteveAglAmministratore del forum
Ovviamente il sito di woocomerce stesso
https://docs.woocommerce.com/document/woocommerce-theme-developer-handbook/
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.