inzerat
Forum Replies Created
-
@edo888 Hi, please how can i do with css selector?
element.style { style: no-translate; notranslate: true; }or how?
Hi, thank you for reply, but it is not true..
if chrome visit the website, he know so original (or default) language is english and offer translate… But in the meantime, your plugin will translate the web automatically … but the google translate offer will still remain there …
Hi, i am not familiar with PHP too much.. please you can write this snipper for me? (at least the basis)
Forum: Plugins
In reply to: [Kybernaut IČO DIČ] NefungujeJeště podotýkám, že podle statistik wp má váš plugin více než 1000 instalací.. nevím tedy zda je správný přístup čekat s “opravou” pluginu… např. nepojede ARES a i kdyby se celkem zabránilo “jen” 100 objednávkám tak je to dost…
Forum: Plugins
In reply to: [Kybernaut IČO DIČ] NefungujeDobrý den,
díky, já navrhuji když nejede ARES tak to nechat projít bez ověření.. vyplňování políčka IČ je volitelné tak nevím proč zapnutý plugin z volitelné volby musí dělat povinnou
Forum: Plugins
In reply to: [Kybernaut IČO DIČ] NefungujeTak změna dneska už to jde, asi včera nešel přístup k Aresu… to nic nemění ale na tom, že když se porouchá ares tak nepůjde odeslat objednávka, protože uživateli bude pořád vyskakovat chyba… měl by se plugin upravit aby to nezabránilo dokončení objednávky… mrknete prosím na to? díky
Forum: Plugins
In reply to: [Kybernaut IČO DIČ] NefungujeNavíc když se ukáže ta chyba, tak to zabraní v dokončení objednávkového procesu. Možná by stálo za to, udělat to průchozí i v případě, že nastane chyba… přijít o objednávku jen kvůli tomu, že zákazník vyplňuje IČ je nepříjemné
Forum: Plugins
In reply to: [Kybernaut IČO DIČ] NefungujeNa stránce Pokladny, děje se to na více webech a jsou tam různé pluginy i šablony, pochybuji tedy, že je to tím… kde najdu log? cesta? děkuji
Forum: Plugins
In reply to: [Invoices for WooCommerce] How do I get an order number in a template?OK thanks but now it not work PAYED watermark
my code in header.php:
<table cellpadding="0" cellspacing="0"> <tr class="top"> <td> <?php if ( WPI()->get_option( 'template', 'company_logo' ) ) { printf( '<img src="var:company_logo" style="max-height:50px;"/>' ); } else { printf( '<h2>%s</h2>', esc_html( WPI()->get_option( 'template', 'company_name' ) ) ); } ?> </td> <td> <?php echo WPI()->get_formatted_company_address(); ?> IČ: 05756576 </td> </tr> </table>my code in body.php
<?php /** * PDF invoice template body. * * This template can be overridden by copying it to youruploadsfolder/woocommerce-pdf-invoices/templates/invoice/simple/yourtemplatename/body.php. * * HOWEVER, on occasion WooCommerce PDF Invoices 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. * * @author Bas Elbers * @package WooCommerce_PDF_Invoices/Templates * @version 0.0.1 */ $templater = WPI()->templater(); $order = $templater->order; $invoice = $templater->invoice; $line_items = $order->get_items( 'line_item' ); $formatted_shipping_address = $order->get_formatted_shipping_address(); $formatted_billing_address = $order->get_formatted_billing_address(); $columns = $invoice->get_columns(); $color = $templater->get_option( 'bewpi_color_theme' ); $terms = $templater->get_option( 'bewpi_terms' ); ?> <div class="title"> <div> <h2><?php echo esc_html( WPI()->get_option( 'template', 'title' ) ); ?></h2> </div> <div class="watermark"> <?php if ( WPI()->get_option( 'template', 'show_payment_status' ) && $order->is_paid() ) { printf( '<h2 class="green">%s</h2>', esc_html__( 'Placeno', 'woocommerce-pdf-invoices' ) ); } do_action( 'wpi_watermark_end', $order, $invoice ); ?> </div> </div> <table cellpadding="0" cellspacing="0"> <tr class="information"> <td width="50%"> <?php /** * Invoice object. * * @var BEWPI_Invoice $invoice. */ foreach ( $invoice->get_invoice_info() as $info_id => $info ) { if ( empty( $info['value'] ) ) { continue; } printf( '<span class="%1$s">%2$s %3$s</span>', esc_attr( $info_id ), esc_html( $info['title'] ), esc_html( $info['value'] ) ); echo '<br>'; } ?> Číslo bankovního účtu: <strong>20067565</strong><br> Variabilní symbol: <?php echo $invoice->order->get_id(); ?> </td> <td> <?php printf( '<strong>%s</strong><br />', esc_html__( 'Bill to:', 'woocommerce-pdf-invoices' ) ); echo $formatted_billing_address; do_action( 'wpi_after_formatted_billing_address', $invoice ); ?> </td> <td> <?php if ( WPI()->get_option( 'template', 'show_ship_to' ) && ! WPI()->has_only_virtual_products( $order ) && ! empty( $formatted_shipping_address ) ) { printf( '<strong>%s</strong><br />', esc_html__( 'Ship to:', 'woocommerce-pdf-invoices' ) ); echo $formatted_shipping_address; do_action( 'wpi_after_formatted_shipping_address', $invoice ); } ?> </td> </tr> </table> <table cellpadding="0" cellspacing="0"> <thead> <tr class="heading" bgcolor="<?php echo esc_attr( $color ); ?>;"> <?php foreach ( $columns as $key => $data ) { $templater->display_header_recursive( $key, $data ); } ?> </tr> </thead> <tbody> <?php foreach ( $invoice->get_columns_data() as $index => $row ) { echo '<tr class="item">'; // Display row data. foreach ( $row as $column_key => $data ) { $templater->display_data_recursive( $column_key, $data ); } echo '</tr>'; } ?> <tr class="spacer"> <td></td> </tr> </tbody> </table> <table cellpadding="0" cellspacing="0"> <tbody> <?php foreach ( $invoice->get_order_item_totals() as $key => $total ) { $class = str_replace( '_', '-', $key ); ?> <tr class="total"> <td width="50%"> <?php do_action( 'wpi_order_item_totals_left', $key, $invoice ); ?> </td> <td width="25%" align="left" class="border <?php echo esc_attr( $class ); ?>"> <?php echo $total['label']; ?> </td> <td width="25%" align="right" class="border <?php echo esc_attr( $class ); ?>"> <?php echo str_replace( ' ', '', $total['value'] ); ?> </td> </tr> <?php } ?> </tbody> </table> <table class="notes" cellpadding="0" cellspacing="0"> <tr> <td> <?php // Customer notes. if ( WPI()->get_option( 'template', 'show_customer_notes' ) ) { // Note added by customer. $customer_note = BEWPI_WC_Order_Compatibility::get_customer_note( $order ); if ( $customer_note ) { printf( '<strong>' . __( 'Note from customer: %s', 'woocommerce-pdf-invoices' ) . '</strong><br>', nl2br( $customer_note ) ); } // Notes added by administrator on 'Edit Order' page. foreach ( $order->get_customer_order_notes() as $custom_order_note ) { printf( '<strong>' . __( 'Note to customer: %s', 'woocommerce-pdf-invoices' ) . '</strong><br>', nl2br( $custom_order_note->comment_content ) ); } } ?> </td> </tr> <tr> <td> <?php // Zero Rated VAT message. if ( 'true' === WPI()->get_meta( $order, '_vat_number_is_valid' ) && count( $order->get_tax_totals() ) === 0 ) { echo esc_html__( 'Zero rated for VAT as customer has supplied EU VAT number', 'woocommerce-pdf-invoices' ) . '<br>'; } ?> </td> </tr> </table> <?php if ( $terms ) { ?> <!-- Using div to position absolute the block. --> <div class="terms"> <table> <tr> <td style="border: 1px solid #000;"> <?php echo nl2br( $terms ); ?> </td> </tr> </table> </div> <?php } ?>hello, for all users, this is solution:
in file: /wp-content/uploads/woocommerce-pdf-invoices/templates/invoice/simple/minimal/header.php
you have to find this code:
printf( '<img src="company_logo" />' );and you can change value 50px on required value
- This reply was modified 6 years, 5 months ago by inzerat.
Yes but question is how? CSS code which? Please, can you write this code for me?
Forum: Themes and Templates
In reply to: [Astra] Better UI/UX for woocommerce cart in Astra themeHey, this is very important. Some progress???
Forum: Themes and Templates
In reply to: [Astra] Search icon and Cart icon in headerHey, it is important and any still none solution???
Forum: Themes and Templates
In reply to: [Astra] cross sells in cart doesnt worksorry its working,, my mistake
Forum: Plugins
In reply to: [WPAdverts - Classifieds Plugin] Normal username, not email username #2Sorry, this is detail, i closed this topic