Toutes mes réponses sur les forums

2 sujets de 1 à 2 (sur un total de 2)
  • Auteur
    Messages
  • #39673
    Klø DBR
    Participant
    Points: 19 pts

    Bonjour, sur votre thème avez vous l’option le CSS Additionnel : Apparence > Personnaliser > CSS additionnel.
    Voici le code que j’y ajoute :

    .woocommerce #respond input#submit,
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce input.button {
    background-color: #FFF;
    border: 2px solid #ac80dd;
    color: #ac80dd;
    background: #fff;
    border-radius: 4px;
    }
    .woocommerce #respond input#submit,
    .woocommerce a.button:hover,
    .woocommerce button.button:hover,
    .woocommerce input.button:hover {
    background-color: #FFF;
    border: 2px solid #ac80dd;
    color: #fff;
    background:#ac80dd;
    border-radius: 4px;
    }

    .woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
    background-color: #FFF;
    color: #ac80dd;
    }

    .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
    background-color: #ac80dd;
    color: #fff;
    }

    A vous de le personnaliser 🙂

    ====================
    depanagewp
    vpsa2
    #5925
    Klø DBR
    Participant
    Points: 19 pts

    Merci Mathieu pour votre réponse, alors j’ai bien trouvé le fichier mais je ne sais pas où le placer…
    <?php
    /**
    * Order details table shown in emails.
    *
    * This template can be overridden by copying it to yourtheme/woocommerce/emails/email-order-details.php.
    *
    * HOWEVER, on occasion WooCommerce will need to update template files and you
    * (the theme developer) will need to copy the new files to your theme to
    * maintain compatibility. We try to do this as little as possible, but it does
    * happen. When this occurs the version of the template file will be bumped and
    * the readme will list any important changes.
    *
    * @see https://docs.woocommerce.com/document/template-structure/
    * @author WooThemes
    * @package WooCommerce/Templates/Emails
    * @version 3.0.0
    */

    if ( ! defined( 'ABSPATH' ) ) {
    exit;
    }

    $text_align = is_rtl() ? 'right' : 'left';

    do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email ); ?>

    <?php if ( ! $sent_to_admin ) : ?>

    <?php printf( __( 'Order #%s', 'woocommerce' ), $order->get_order_number() ); ?>

    <?php else : ?>

    get_id() . '&action=edit' ) ); ?>"><?php printf( __( 'Order #%s', 'woocommerce' ), $order->get_order_number() ); ?> (<?php printf( '<time datetime="%s">%s</time>', $order->get_date_created()->format( 'c' ), wc_format_datetime( $order->get_date_created() ) ); ?>)

    <?php endif; ?>

    <?php echo wc_get_email_order_items( $order, array(
    'show_sku' => $sent_to_admin,
    'show_image' => false,
    'image_size' => array( 32, 32 ),
    'plain_text' => $plain_text,
    'sent_to_admin' => $sent_to_admin,
    ) ); ?>
    <?php
    if ( $totals = $order->get_order_item_totals() ) {
    $i = 0;
    foreach ( $totals as $total ) {
    $i++;
    ?>

    <?php
    }
    }
    ?>

    ;"><?php _e( 'Product', 'woocommerce' ); ?> ;"><?php _e( 'Quantity', 'woocommerce' ); ?> ;"><?php _e( 'Price', 'woocommerce' ); ?>
    ; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo $total['label']; ?> ; <?php echo ( 1 === $i ) ? 'border-top-width: 4px;' : ''; ?>"><?php echo $total['value']; ?>

    <?php do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ); ?>

    ====================
    depanagewp
    vpsa2
2 sujets de 1 à 2 (sur un total de 2)