Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.68 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for SourceGuardian Encoder)
  6. *
  7. * @ Version : 4.0.4.0
  8. * @ Author : DeZender
  9. * @ Release on : 19.05.2018
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function get_product_variation_data($product)
  15. {
  16. $variations = [];
  17.  
  18. foreach (@$product->get_children() as $child_id) {
  19. $variation = @$product->get_child($child_id);
  20.  
  21. if (!$variation->exists()) {
  22. continue;
  23. }
  24.  
  25. $variations[] = [
  26. 'id' => $variation->get_variation_id(),
  27. 'downloadable' => $variation->is_downloadable(),
  28. 'virtual' => $variation->is_virtual(),
  29. 'permalink' => $variation->get_permalink(),
  30. 'sku' => $variation->get_sku(),
  31. 'price' => $variation->get_price(),
  32. 'regular_price' => $variation->get_regular_price(),
  33. 'sale_price' => $variation->get_sale_price() ? $variation->get_sale_price() : NULL,
  34. 'taxable' => $variation->is_taxable(),
  35. 'tax_status' => $variation->get_tax_status(),
  36. 'tax_class' => $variation->get_tax_class(),
  37. 'managing_stock' => $variation->managing_stock(),
  38. 'stock_quantity' => $variation->get_stock_quantity(),
  39. 'in_stock' => $variation->is_in_stock(),
  40. 'backordered' => $variation->is_on_backorder(),
  41. 'purchaseable' => $variation->is_purchasable(),
  42. 'visible' => $variation->variation_is_visible(),
  43. 'on_sale' => $variation->is_on_sale(),
  44. 'weight' => $variation->get_weight() ? $variation->get_weight() : NULL,
  45. 'dimensions' => ['length' => $variation->length, 'width' => $variation->width, 'height' => $variation->height, 'unit' => get_option('woocommerce_dimension_unit')],
  46. 'shipping_class' => $variation->get_shipping_class(),
  47. 'shipping_class_id' => 0 !== $variation->get_shipping_class_id() ? $variation->get_shipping_class_id() : NULL,
  48. 'download_limit' => (int) $product->download_limit,
  49. 'download_expiry' => (int) $product->download_expiry
  50. ];
  51. }
  52.  
  53. return $variations;
  54. }
  55.  
  56. function click_woocommerce_checkout_place_order_woo_android()
  57. {
  58. $int = wc_get_page_id('pay');
  59.  
  60. if (is_page($int)) {
  61. if (isset($_GET['click'])) {
  62. 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" . ' ';
  63. }
  64. }
  65. }
  66.  
  67. function check_wishList()
  68. {
  69. if (!class_exists('YITH_WCWL')) {
  70. echo ' <div class="notice notice-error">' . "\r\n" . ' <p>' . "\r\n" . ' کاربر گرامی از نصب و فعال بودن پلاگین علاقه مندی ها اطمینان حاصل کنید. در صورت فعال نبودن امکان علاقه' . "\r\n" . ' مندی ها در اپلیکیشن شما کار نخواهد کرد. -' . "\r\n" . ' <a href="';
  71. echo admin_url('/plugin-install.php?tab=plugin-information&plugin=yith-woocommerce-wishlist&TB_iframe=true&width=772&height=889');
  72. echo '"' . "\r\n" . ' class="thickbox open-plugin-details-modal">برای نصب اینجا کلیک کنید.</a>' . "\r\n" . ' </p>' . "\r\n" . ' </div>' . "\r\n" . ' ';
  73. }
  74. }
  75.  
  76. function woo_app_woocommerce_new_customer_note($array, $int)
  77. {
  78. $arrayO = [];
  79. $order = new WC_Order($array['order_id']);
  80. ......................................................................
  81. ...............................................
  82. ....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement