Changeset 2635105
- Timestamp:
- 11/25/2021 12:00:50 AM (4 years ago)
- Location:
- raccoon-platform/trunk
- Files:
-
- 2 edited
-
Raccoon-platform.php (modified) (4 diffs)
-
Readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
raccoon-platform/trunk/Raccoon-platform.php
r2633868 r2635105 8 8 * Plugin URI: https://raccoonplatform.com 9 9 * Description: More informed customers reflect more sales. Here are the features you get from using Raccoon. 10 <<<<<<< .mine 11 * Version: 4.3.0 12 ||||||| .r2633843 13 * Version: 3.3.1 14 ======= 15 * Version: 4.2.0 16 >>>>>>> .r2633867 10 * Version: 4.4.0 17 11 * License: GPLv2 or Later 18 12 * Text Domain: Raccoon-Platform … … 93 87 /* End Remove Output WooCommerce Related Items */ 94 88 95 /* Start view Related items */96 97 //add_action('init', 'remove_woo_relate_products', 10);98 // add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_product', 20);99 // function woocommerce_output_related_product()100 // {101 // require_once plugin_dir_path (__FILE__) .'template_1/template_related.php';102 // }103 104 /* End view Related items */105 106 107 89 /* Start shortcode Popular view items */ 108 90 add_shortcode('popularView', 'popularItemsView'); 109 function popularItemsView() { 91 function popularItemsView() 92 { 110 93 global $item_number; 111 94 $myobj = new RaccoonPopularItems(); 112 95 $productsView = $myobj->viewPopularView(); 113 if($productsView){ 114 $atts = "[products ids='".implode(',',$productsView)."' limit='$item_number' columns='4']"; 115 $title = '<h3 style="color: #999999">Most viewed Items </h3>'; 116 return do_shortcode( $title.$atts); 96 if ($productsView) { 97 $atts = "[products ids='" . implode(',', $productsView) . "' limit='$item_number' columns='4']"; 98 if (get_locale() == 'ar') { 99 $title = '<h3 style="color: #999999">المنتجات الاكثر مشاهدة</h3>'; 100 } else { 101 $title = '<h3 style="color: #999999">Most viewed Products </h3>'; 102 } 103 return do_shortcode($title . $atts); 117 104 } 118 105 } … … 123 110 function popularItemsAtc() { 124 111 global $item_number; 112 125 113 $myobj = new RaccoonPopularItems(); 126 114 $productsAtc = $myobj->viewPopularAtc(); 127 if($productsAtc){ 128 $atts = "[products ids='".implode(',',$productsAtc)."' limit='$item_number' columns='4']"; 129 $title = '<h3 style="color: #999999">Most Purchased Items </h3>'; 130 return do_shortcode( $title.$atts); 115 if($productsAtc) { 116 $atts = "[products ids='" . implode(',', $productsAtc) . "' limit='$item_number' columns='4']"; 117 if (get_locale() == 'ar') { 118 $title = '<h3 style="color: #999999">معظم المنتجات التى تم شرائها</h3>'; 119 } else { 120 $title = '<h3 style="color: #999999">Most Purchased Products </h3>'; 121 } 122 return do_shortcode($title . $atts); 131 123 } 132 124 } … … 139 131 { 140 132 global $item_number; 133 global $locale, $wp_local_package; 141 134 $myobj = new RaccoonSessionBased; 142 135 $product_recommended = $myobj->viewSession(); 143 if ($product_recommended) {136 if ($product_recommended) { 144 137 $atts = "[products ids='" . implode(',', $product_recommended) . "' limit='$item_number' columns='4']"; 145 $title = '<h3 style="color: #999999">You Might Also Like </h3>'; 138 if (get_locale() == 'ar') { 139 $title = '<h3 style="color: #999999">قد يعجبك ايضا </h3>'; 140 }else{ 141 $title = '<h3 style="color: #999999">You Might Also Like </h3>'; 142 } 146 143 return do_shortcode($title . $atts); 144 147 145 } 148 146 } -
raccoon-platform/trunk/Readme.txt
r2633868 r2635105 6 6 Tested up to: 5.7.2 7 7 <<<<<<< .mine 8 Stable tag: 4.3.0 9 ||||||| .r2633843 10 Stable tag: 3.3.1 11 ======= 12 Stable tag: 4.2.0 13 >>>>>>> .r2633867 8 Stable tag: 4.4.0 14 9 Requires PHP: 7.0 15 10 License: GPLv3 or later
Note: See TracChangeset
for help on using the changeset viewer.