Nitrat
Forum Replies Created
-
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] https://ecocard.su/map/list/Oh, I see
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] https://ecocard.su/map/list/How to do it?
Thanks
I send the screenshot via email
OK!
Forum: Plugins
In reply to: [WooCommerce] Bad-bad-bad. Do not upgrade to 2.3.2!To publish update which is incompatible with the majority of themes and plugins – nonprofessionalism!
Forum: Plugins
In reply to: [WP Support Plus Responsive Ticket System] RedirectingYes, shortcode did not affect forwarding. On another page it works. But not on the blog page.
Thanks!Forum: Plugins
In reply to: [Form Manager] "Submit" button positionWhat the support?
Forum: Plugins
In reply to: [WFS Let It Snow] Firefox!No, there are no sliders. Now I put another plug, no problem
Site skng.ruForum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Proforma filenameOK!
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Operator IFGorgeous! It works! Thank you!
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Operator IFNo, dont display
That’s all code:<?php global $wpo_wcpdf; ?> <?php $billing_first_name = get_post_meta($wpo_wcpdf->export->order->id,'_billing_first_name',true); $billing_last_name = get_post_meta($wpo_wcpdf->export->order->id,'_billing_last_name',true); $billing_company = get_post_meta($wpo_wcpdf->export->order->id,'_billing_company',true); $billing_address = get_post_meta($wpo_wcpdf->export->order->id,'_billing_address_1',true); $billing_address2 = get_post_meta($wpo_wcpdf->export->order->id,'_billing_address_2',true); $billing_city = get_post_meta($wpo_wcpdf->export->order->id,'_billing_city',true); $billing_postcode = get_post_meta($wpo_wcpdf->export->order->id,'_billing_postcode',true); $billing_country = get_post_meta($wpo_wcpdf->export->order->id,'_billing_country',true); $billing_state = get_post_meta($wpo_wcpdf->export->order->id,'_billing_state',true); $billing_email = get_post_meta($wpo_wcpdf->export->order->id,'_billing_email',true); $billing_phone = get_post_meta($wpo_wcpdf->export->order->id,'_billing_phone',true); $billing_paymethod = get_post_meta($wpo_wcpdf->export->order->id,'_payment_method',true); $woocommerce_totals = $wpo_wcpdf->get_woocommerce_totals(); $time = get_post_meta($wpo_wcpdf->export->order->id, '_billing_booking_delivery_t',true) ; $auto = get_post_meta($wpo_wcpdf->export->order->id, '_billing_auto',true) ; $final12 = date("d-m-Y", strtotime("+12 month -1 day", $time) ); $final3 = date("d-m-Y", strtotime("+3 month -1 day", $time) ); $product_id = $item['product_id']; if ( $product_id == 934 ) { $final = $final2; } elseif ( $product_id == 931 ) { $final = $final3; } else { // what if product_id is neither 931/932? } ?> <table class="head container"> <tr> <td class="header"> <?php if( $wpo_wcpdf->get_header_logo_id() ) { $wpo_wcpdf->header_logo(); } else { _e( 'Invoice', 'wpo_wcpdf' ); } ?> </td> <td class="shop-info"> <div class="shop-name"><h3><?php echo "ИНДИВИДУАЛЬНЫЙ ПОЛИС";?></h3></div> <div><?php echo "страхования от несчастных случаев "; ?></div> <div><?php echo "№ ";$wpo_wcpdf->invoice_number(); echo " от ";$wpo_wcpdf->invoice_date(); ?></div> </td> </tr> <span><?php echo "Настоящий Полис удостоверяет факт заключения договора страхования на условиях, изложенных на лицевой стороне настоящего документа и в Правилах страхования граждан от несчастных случаев, утвержденных приказом утвержденных Приказом ООО СК ?Наша гарантия? (далее Правила страхования).";?></span> <div><hr></div> <table class="order-details"><tbody> <tr> <td> <?php echo "1. Страховщик:" ; ?></td> <td> <?php echo "ООО Страховая компания ?Наша гарантия?, 115184, г. Москва, ул. Большая Ордынка, д. 59, стр. 2, тел./факс: (495) 642-00-21, ИНН 7743514834, лицензия от 12.09.2014г. СЛ № 3919"; ?> </td></tr> <tr> <td> <?php echo "2. Страхователь:"; ?></td> <td> <?php echo $billing_company; echo " ";echo $billing_first_name; echo " ";echo $billing_last_name;?> </td> <td> <?php echo "Дата рождения: "; echo $billing_address;?> </td></tr> </tbody></table> <div><?php echo "Паспорт: "; echo $billing_state;?></div> <div><?php echo "Адрес: "; echo $billing_address2;?></div> <div><?php echo "Стоимость полиса: "; echo $woocommerce_totals['order_total']['value'];?></div> <div><?php echo "Срок действия договора с: "; $wpo_wcpdf->custom_field('_billing_booking_delivery'); ?></div> <div><?php echo "Срок окончания договора: "; echo $final;?></div> <div><?php echo "Товар ID: ".$item['product_id'];?></div> <div><?php echo "Автошкола: "; echo $auto;?></div> </tr> </table><!-- head container --> <table class="notes container"> <tr> <td colspan="3"> <div class="notes-shipping"> <?php if ( $wpo_wcpdf->get_shipping_notes() ) : ?> <h3><?php _e( 'Customer Notes', 'wpo_wcpdf' ); ?></h3> <?php $wpo_wcpdf->shipping_notes(); ?> <?php endif; ?> </div> </td> </tr> </table><!-- notes container --> <?php if ( $wpo_wcpdf->get_footer() ): ?> <div id="footer"> <?php $wpo_wcpdf->footer(); ?> </div><!-- #letter-footer --> <?php endif; ?>
Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Operator IFThis code dont work.
$product_id not determined. I’m trying to just display it:
<div><?php echo “Товар ID: “; echo $product_id;?></div>
But the empty space.
I have two products with different validity period (for insurance) – 931 (year) and 932 (3 months). I need depending on the product display Validity of the contract, as well as change the conclusion of some fields.Forum: Plugins
In reply to: [PDF Invoices & Packing Slips for WooCommerce] Personalize PDF