Cambiare codice promozionale, il testo e apertura tendina permanente

This topic has 10 replies, 3 voices, and was last updated 7 months, 3 weeks ago ago by Tony Rodriguez

  • Avatar: macs
    lollo
    Participant
    April 23, 2025 at 00:54

    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

    Please, contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    9 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    April 23, 2025 at 09:07

    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!

    Avatar: macs
    lollo
    Participant
    April 23, 2025 at 18:11

    il css l’ho aggiunto io, il php non sono riuscito a farlo

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    April 24, 2025 at 05:42

    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:

    https://prnt.sc/OJvBP0LQRHPe

    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

    Avatar: macs
    lollo
    Participant
    April 24, 2025 at 12:24

    nessun problema tranquillo

    Please contact administrator
    for this information.
    Avatar: macs
    lollo
    Participant
    April 24, 2025 at 12:41

    se dovesse servire ti giro le credenziali FTP, comunque vorrei ancora cambiare quel testo. dicono che l’errore era appunto sul plugin installato

    Please contact administrator
    for this information.
    Avatar: Justin
    Luca Rossi
    Support staff
    April 24, 2025 at 13:02

    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

    Avatar: macs
    lollo
    Participant
    April 24, 2025 at 14:27

    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

    Files is visible for topic creator and
    support staff only.
    Avatar: Justin
    Luca Rossi
    Support staff
    April 25, 2025 at 05:37

    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

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    April 25, 2025 at 22:20

    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

  • Viewing 10 results - 1 through 10 (of 10 total)

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

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.