Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
- *
- * @ Version : 4.0.4.0
- * @ Author : DeZender
- * @ Release on : 19.05.2018
- * @ Official site : http://DeZender.Net
- *
- */
- function get_product_variation_data($product)
- {
- $variations = [];
- foreach (@$product->get_children() as $child_id) {
- $variation = @$product->get_child($child_id);
- if (!$variation->exists()) {
- continue;
- }
- $variations[] = [
- 'id' => $variation->get_variation_id(),
- 'downloadable' => $variation->is_downloadable(),
- 'virtual' => $variation->is_virtual(),
- 'permalink' => $variation->get_permalink(),
- 'sku' => $variation->get_sku(),
- 'price' => $variation->get_price(),
- 'regular_price' => $variation->get_regular_price(),
- 'sale_price' => $variation->get_sale_price() ? $variation->get_sale_price() : NULL,
- 'taxable' => $variation->is_taxable(),
- 'tax_status' => $variation->get_tax_status(),
- 'tax_class' => $variation->get_tax_class(),
- 'managing_stock' => $variation->managing_stock(),
- 'stock_quantity' => $variation->get_stock_quantity(),
- 'in_stock' => $variation->is_in_stock(),
- 'backordered' => $variation->is_on_backorder(),
- 'purchaseable' => $variation->is_purchasable(),
- 'visible' => $variation->variation_is_visible(),
- 'on_sale' => $variation->is_on_sale(),
- 'weight' => $variation->get_weight() ? $variation->get_weight() : NULL,
- 'dimensions' => ['length' => $variation->length, 'width' => $variation->width, 'height' => $variation->height, 'unit' => get_option('woocommerce_dimension_unit')],
- 'shipping_class' => $variation->get_shipping_class(),
- 'shipping_class_id' => 0 !== $variation->get_shipping_class_id() ? $variation->get_shipping_class_id() : NULL,
- 'download_limit' => (int) $product->download_limit,
- 'download_expiry' => (int) $product->download_expiry
- ];
- }
- return $variations;
- }
- function click_woocommerce_checkout_place_order_woo_android()
- {
- $int = wc_get_page_id('pay');
- if (is_page($int)) {
- if (isset($_GET['click'])) {
- echo ' <script type="text/javascript">' . "\r\n" . ' jQuery(document).ready(function ($) {' . "\r\n" . ' jQuery(\'input[name="woocommerce_checkout_place_order"]\').click();' . "\r\n" . ' });' . "\r\n\r\n" . ' </script>' . "\r\n" . ' ';
- }
- }
- }
- function check_wishList()
- {
- if (!class_exists('YITH_WCWL')) {
- echo ' <div class="notice notice-error">' . "\r\n" . ' <p>' . "\r\n" . ' کاربر گرامی از نصب و فعال بودن پلاگین علاقه مندی ها اطمینان حاصل کنید. در صورت فعال نبودن امکان علاقه' . "\r\n" . ' مندی ها در اپلیکیشن شما کار نخواهد کرد. -' . "\r\n" . ' <a href="';
- echo admin_url('/plugin-install.php?tab=plugin-information&plugin=yith-woocommerce-wishlist&TB_iframe=true&width=772&height=889');
- echo '"' . "\r\n" . ' class="thickbox open-plugin-details-modal">برای نصب اینجا کلیک کنید.</a>' . "\r\n" . ' </p>' . "\r\n" . ' </div>' . "\r\n" . ' ';
- }
- }
- function woo_app_woocommerce_new_customer_note($array, $int)
- {
- $arrayO = [];
- $order = new WC_Order($array['order_id']);
- ......................................................................
- ...............................................
- ....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement