ITALIANO- Salve vorrei apportare una modifica sul sito sitoweb nella sezione del campo codice promozionale al checkout. Allego i dati di accesso infondo all’area privata
This topic has 10 replies, 3 voices, and was last updated 7 months, 3 weeks ago ago by Tony Rodriguez
ITALIANO- Salve vorrei apportare una modifica sul sito sitoweb nella sezione del campo codice promozionale al checkout. Allego i dati di accesso infondo all’area privata
Hi @lollo,
1. To make the coupon form always show, please add the following CSS code under XStore > Theme Options > Theme Custom CSS > Global CSS:
.checkout_coupon.woocommerce-form-coupon {
display: block !important;
}
.woocommerce-form-coupon-toggle a {
pointer-events: none;
}
2. To change the text of coupon form, please add the following code under functions.php file locates in your child theme:
add_filter('woocommerce_checkout_coupon_message', 'n2t_woocommerce_checkout_coupon_message');
function n2t_woocommerce_checkout_coupon_message(){
return '<p><span style="text-decoration: underline;">Stai acquistando tramite bonifico bancario?</span> Inserisci il codice "SCONTO10" per ottenere il 10% di sconto in fattura.</p><p>Inserisci il codice qui e clicca su "Applica" per validare l\'offerta.</p>';
}
Hope it helps!
il css l’ho aggiunto io, il php non sono riuscito a farlo
Dear @lollo,
We hope this message finds you well.
We recently activated the Code Snippets plugin from your website, and unfortunately, our website is now down. Please see the screenshot below for reference:
Could you kindly assist us in resolving this issue? Additionally, we would appreciate it if you could provide access to the FTP account to help facilitate troubleshooting.
Thank you in advance for your support.
Best regards,
The 8Theme Team
nessun problema tranquillo
se dovesse servire ti giro le credenziali FTP, comunque vorrei ancora cambiare quel testo. dicono che l’errore era appunto sul plugin installato
Dear @lollo,
We are pleased to inform you that we have successfully added the requested custom code to your website.
The code implemented is as follows:
add_filter('woocommerce_checkout_coupon_message', 'n2t_woocommerce_checkout_coupon_message');
function n2t_woocommerce_checkout_coupon_message(){
return 'Stai acquistando tramite bonifico bancario? Inserisci il codice "SCONTO10" per ottenere il 10% di sconto in fattura.Inserisci il codice qui e clicca su "Applica" per validare l\'offerta.';
}
We kindly ask you to review the checkout page at your earliest convenience to ensure everything is working as expected: https://tinyurl.com/2ath6ws5
Should you have any further questions or require additional assistance, please do not hesitate to contact us.
Best regards,
The 8Theme Team
Ciao si risulta essere fatto, perfetto come lo voglio io. ti posso chiedere se possibile aggiungere 4 o 5px di distanza tra il pulsante nero e la parola “i tuoi dati”
E se ti posso chiedere di eliminare la frase: “se disponi di un codice promozionale inseriscilo qui di seguito” e dio ridere la distanza del campo codice promozionale e la nuova stringa che hai aggiunto. ti allego la foto per farti capire meglio
Hi @lollo,
Please try adding this custom CSS under XStore > Theme Options > Theme Custom CSS > Global CSS:
form.checkout_coupon.woocommerce-form-coupon > p:nth-child(1) {
display: none;
}
body .woocommerce-form-coupon-toggle .woocommerce-info p:last-child {
margin-bottom: 0;
}
@media (max-width: 600px){
body .woocommerce-form-coupon-toggle .woocommerce-info {
margin-bottom: 0;
}
form.checkout_coupon.woocommerce-form-coupon {
margin-bottom: 15px;
}
}
Kind regards,
The 8Theme Team
Dear lollo,
As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?
Click here to share your valuable perspective: https://themeforest.net/downloads
Your time and trust are highly appreciated!
Best Regards,
The 8Theme Team
The issue related to '‘cambiare codice promozionale, il testo e apertura tendina permanente’' has been successfully resolved, and the topic is now closed for further responses