WP eCommerce - Version 3.6.7

Version Description

Download this release

Release Info

Developer Macropiper
Plugin Icon 128x128 WP eCommerce
Version 3.6.7
Comparing to
See all releases

Version 3.6.7

Files changed (144) hide show
  1. wp-shopping-cart/admin-form-functions.php +1077 -0
  2. wp-shopping-cart/admin-ie.css +13 -0
  3. wp-shopping-cart/admin.css +882 -0
  4. wp-shopping-cart/admin.js +702 -0
  5. wp-shopping-cart/admin_menu_widget.php +36 -0
  6. wp-shopping-cart/ajax.js +48 -0
  7. wp-shopping-cart/category_widget.php +27 -0
  8. wp-shopping-cart/checkout.php +337 -0
  9. wp-shopping-cart/classes/cart.class.php +39 -0
  10. wp-shopping-cart/classes/extra.class.php +83 -0
  11. wp-shopping-cart/classes/mimetype.php +241 -0
  12. wp-shopping-cart/classes/variations.class.php +544 -0
  13. wp-shopping-cart/classes/xmlparser.php +48 -0
  14. wp-shopping-cart/containeress_page.php +28 -0
  15. wp-shopping-cart/currency_converter.inc.php +104 -0
  16. wp-shopping-cart/currency_list.php +243 -0
  17. wp-shopping-cart/display-brands.php +256 -0
  18. wp-shopping-cart/display-category.php +496 -0
  19. wp-shopping-cart/display-coupons.php +422 -0
  20. wp-shopping-cart/display-ecommerce-subs.php +43 -0
  21. wp-shopping-cart/display-items.php +1371 -0
  22. wp-shopping-cart/display-log.php +753 -0
  23. wp-shopping-cart/display_variations.php +257 -0
  24. wp-shopping-cart/donations_widget.php +71 -0
  25. wp-shopping-cart/edit-profile.php +218 -0
  26. wp-shopping-cart/editor.php +165 -0
  27. wp-shopping-cart/editor_plugin.js +162 -0
  28. wp-shopping-cart/extra_image_processing.php +69 -0
  29. wp-shopping-cart/form_display_functions.php +234 -0
  30. wp-shopping-cart/form_fields.php +214 -0
  31. wp-shopping-cart/gatewayoptions.php +233 -0
  32. wp-shopping-cart/getimagesize.php +6 -0
  33. wp-shopping-cart/google_base_functions.php +566 -0
  34. wp-shopping-cart/google_shipping_country.php +51 -0
  35. wp-shopping-cart/homepage_products_functions.php +204 -0
  36. wp-shopping-cart/image_preview.php +162 -0
  37. wp-shopping-cart/image_processing.php +112 -0
  38. wp-shopping-cart/image_resize.php +104 -0
  39. wp-shopping-cart/images/24bit-star.png +0 -0
  40. wp-shopping-cart/images/arrowdown.gif +0 -0
  41. wp-shopping-cart/images/blank.gif +0 -0
  42. wp-shopping-cart/images/blue-star.gif +0 -0
  43. wp-shopping-cart/images/buy_button.jpg +0 -0
  44. wp-shopping-cart/images/cart-icon.gif +0 -0
  45. wp-shopping-cart/images/cart.png +0 -0
  46. wp-shopping-cart/images/cart_leftarrow.png +0 -0
  47. wp-shopping-cart/images/cart_rightarrow.png +0 -0
  48. wp-shopping-cart/images/close.gif +0 -0
  49. wp-shopping-cart/images/closelabel.gif +0 -0
  50. wp-shopping-cart/images/cross.png +0 -0
  51. wp-shopping-cart/images/default-off.gif +0 -0
  52. wp-shopping-cart/images/default-on.gif +0 -0
  53. wp-shopping-cart/images/download.gif +0 -0
  54. wp-shopping-cart/images/facebook_status_off.gif +0 -0
  55. wp-shopping-cart/images/gold-cart.png +0 -0
  56. wp-shopping-cart/images/gold-star.gif +0 -0
  57. wp-shopping-cart/images/google_bmarks.gif +0 -0
  58. wp-shopping-cart/images/grey-star.gif +0 -0
  59. wp-shopping-cart/images/grid-off.gif +0 -0
  60. wp-shopping-cart/images/grid-on.gif +0 -0
  61. wp-shopping-cart/images/grid_bg.png +0 -0
  62. wp-shopping-cart/images/icon_window_collapse.gif +0 -0
  63. wp-shopping-cart/images/icon_window_expand.gif +0 -0
  64. wp-shopping-cart/images/indenter.gif +0 -0
  65. wp-shopping-cart/images/indicator.gif +0 -0
  66. wp-shopping-cart/images/list-off.gif +0 -0
  67. wp-shopping-cart/images/list-on.gif +0 -0
  68. wp-shopping-cart/images/loading.gif +0 -0
  69. wp-shopping-cart/images/loadingAnimation.gif +0 -0
  70. wp-shopping-cart/images/mini-arrow.jpg +0 -0
  71. wp-shopping-cart/images/minus.png +0 -0
  72. wp-shopping-cart/images/next.gif +0 -0
  73. wp-shopping-cart/images/nextlabel.gif +0 -0
  74. wp-shopping-cart/images/no-star.gif +0 -0
  75. wp-shopping-cart/images/no_stock.gif +0 -0
  76. wp-shopping-cart/images/order_bottom.png +0 -0
  77. wp-shopping-cart/images/order_down.png +0 -0
  78. wp-shopping-cart/images/order_top.png +0 -0
  79. wp-shopping-cart/images/order_up.png +0 -0
  80. wp-shopping-cart/images/package_add.png +0 -0
  81. wp-shopping-cart/images/plus.png +0 -0
  82. wp-shopping-cart/images/prev.gif +0 -0
  83. wp-shopping-cart/images/prevlabel.gif +0 -0
  84. wp-shopping-cart/images/remove_item.png +0 -0
  85. wp-shopping-cart/images/rss-icon.jpg +0 -0
  86. wp-shopping-cart/images/social_networking/blinklist.gif +0 -0
  87. wp-shopping-cart/images/social_networking/blogmarks.gif +0 -0
  88. wp-shopping-cart/images/social_networking/delicious.gif +0 -0
  89. wp-shopping-cart/images/social_networking/digg.gif +0 -0
  90. wp-shopping-cart/images/social_networking/favoriting.gif +0 -0
  91. wp-shopping-cart/images/social_networking/furl.gif +0 -0
  92. wp-shopping-cart/images/social_networking/google_bmarks.gif +0 -0
  93. wp-shopping-cart/images/social_networking/magnolia.gif +0 -0
  94. wp-shopping-cart/images/social_networking/netscape.gif +0 -0
  95. wp-shopping-cart/images/social_networking/newsvine.gif +0 -0
  96. wp-shopping-cart/images/social_networking/reddit.gif +0 -0
  97. wp-shopping-cart/images/social_networking/share-icon-16x16.gif +0 -0
  98. wp-shopping-cart/images/social_networking/share-this-product.gif +0 -0
  99. wp-shopping-cart/images/social_networking/stumbleupon.gif +0 -0
  100. wp-shopping-cart/images/social_networking/tailrank.gif +0 -0
  101. wp-shopping-cart/images/social_networking/technorati.gif +0 -0
  102. wp-shopping-cart/images/social_networking/windows_live.gif +0 -0
  103. wp-shopping-cart/images/social_networking/yahoo_myweb.gif +0 -0
  104. wp-shopping-cart/images/star.gif +0 -0
  105. wp-shopping-cart/images/sub-category-divide.jpg +0 -0
  106. wp-shopping-cart/images/tick.png +0 -0
  107. wp-shopping-cart/images/toggle-arrow.gif +0 -0
  108. wp-shopping-cart/images/transparent.gif +0 -0
  109. wp-shopping-cart/images/trash.gif +0 -0
  110. wp-shopping-cart/images/yes_stock.gif +0 -0
  111. wp-shopping-cart/insertcate.php +95 -0
  112. wp-shopping-cart/install_and_update.php +1340 -0
  113. wp-shopping-cart/instructions.php +28 -0
  114. wp-shopping-cart/ipn_test_code.php +45 -0
  115. wp-shopping-cart/jquery.ui.tabs.css +152 -0
  116. wp-shopping-cart/js/dimensions.js +325 -0
  117. wp-shopping-cart/js/editor_plugin.js +134 -0
  118. wp-shopping-cart/js/iautocompleter.js +536 -0
  119. wp-shopping-cart/js/interface.js +8 -0
  120. wp-shopping-cart/js/jquery.accessible-news-slider.js +67 -0
  121. wp-shopping-cart/js/jquery.js +11 -0
  122. wp-shopping-cart/js/jquery.tabs.pack.js +70 -0
  123. wp-shopping-cart/js/jquery.tooltip.js +342 -0
  124. wp-shopping-cart/js/jquery.ui.tabs.css +152 -0
  125. wp-shopping-cart/js/slideMenu.js +16 -0
  126. wp-shopping-cart/js/thickbox.js +407 -0
  127. wp-shopping-cart/js/tinymce3/cart.png +0 -0
  128. wp-shopping-cart/js/tinymce3/editor_plugin.js +78 -0
  129. wp-shopping-cart/js/tinymce3/langs/de_de.js +6 -0
  130. wp-shopping-cart/js/tinymce3/langs/en.js +6 -0
  131. wp-shopping-cart/js/tinymce3/langs/en_US.js +6 -0
  132. wp-shopping-cart/js/tinymce3/tinymce.js +89 -0
  133. wp-shopping-cart/js/tinymce3/tinymce.php +50 -0
  134. wp-shopping-cart/js/tinymce3/window.php +107 -0
  135. wp-shopping-cart/langs/en.js +13 -0
  136. wp-shopping-cart/languages/BG_bg.php +585 -0
  137. wp-shopping-cart/languages/DE_de.php +655 -0
  138. wp-shopping-cart/languages/DK_da.php +719 -0
  139. wp-shopping-cart/languages/EL_el.php +479 -0
  140. wp-shopping-cart/languages/EN_en.php +800 -0
  141. wp-shopping-cart/languages/FR_fr.php +606 -0
  142. wp-shopping-cart/languages/HU_hu.php +494 -0
  143. wp-shopping-cart/languages/IT_it.php +586 -0
  144. wp-shopping-cart/languages/JP_jp.php +354 -0
wp-shopping-cart/admin-form-functions.php ADDED
@@ -0,0 +1,1077 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function nzshpcrt_getproductform($prodid)
3
+ {
4
+ global $wpdb,$nzshpcrt_imagesize_info;
5
+ $variations_processor = new nzshpcrt_variations;
6
+ /*
7
+ * makes the product form
8
+ * has functions inside a function
9
+ */
10
+ function brandslist($current_brand = '') {
11
+ global $wpdb;
12
+ $options = "";
13
+ //$options .= "<option value=''>".TXT_WPSC_SELECTACATEGORY."</option>\r\n";
14
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_brands` WHERE `active`='1' ORDER BY `id` ASC",ARRAY_A);
15
+ $options .= "<option $selected value='0'>".TXT_WPSC_SELECTABRAND."</option>\r\n";
16
+ foreach((array)$values as $option)
17
+ {
18
+ if($current_brand == $option['id'])
19
+ {
20
+ $selected = "selected='selected'";
21
+ }
22
+ $options .= "<option $selected value='".$option['id']."'>".$option['name']."</option>\r\n";
23
+ $selected = "";
24
+ }
25
+ $concat .= "<select name='brand'>".$options."</select>\r\n";
26
+ return $concat;
27
+ }
28
+
29
+ function variationslist($current_variation = '')
30
+ {
31
+ global $wpdb;
32
+ $options = "";
33
+ //$options .= "<option value=''>".TXT_WPSC_SELECTACATEGORY."</option>\r\n";
34
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_variations` ORDER BY `id` ASC",ARRAY_A);
35
+ $options .= "<option $selected value='0'>".TXT_WPSC_PLEASECHOOSE."</option>\r\n";
36
+ foreach((array)$values as $option)
37
+ {
38
+ if($current_brand == $option['id'])
39
+ {
40
+ $selected = "selected='selected'";
41
+ }
42
+ $options .= "<option $selected value='".$option['id']."'>".$option['name']."</option>\r\n";
43
+ $selected = "";
44
+ }
45
+
46
+ $concat .= "<select name='variations' onChange='edit_variation_value_list(this.options[this.selectedIndex].value)'>".$options."</select>\r\n";
47
+ return $concat;
48
+ }
49
+
50
+ $sql = "SELECT * FROM `".$wpdb->prefix."product_list` WHERE `id`=$prodid LIMIT 1";
51
+ $product_data = $wpdb->get_results($sql,ARRAY_A) ;
52
+ $product = $product_data[0];
53
+ $sql = "SELECT * FROM `".$wpdb->prefix."wpsc_productmeta` WHERE `product_id`=$prodid AND meta_key='external_link' LIMIT 1";
54
+ $meta_data = $wpdb->get_results($sql,ARRAY_A) ;
55
+ $product['external_link'] = $meta_data[0]['meta_value'];
56
+ $sql = "SELECT * FROM `".$wpdb->prefix."wpsc_productmeta` WHERE `product_id`=$prodid AND meta_key='merchant_notes' LIMIT 1";
57
+ $meta_data = $wpdb->get_results($sql,ARRAY_A) ;
58
+ $product['merchant_notes'] = $meta_data[0]['meta_value'];
59
+ $engrave = get_product_meta($prodid,'engraved',true);
60
+ if(function_exists('wp_insert_term')) {
61
+ $term_relationships = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."term_relationships WHERE object_id = $prodid", ARRAY_A);
62
+
63
+ foreach ((array)$term_relationships as $term_relationship) {
64
+ $tt_ids[] = $term_relationship['term_taxonomy_id'];
65
+ }
66
+ foreach ((array)$tt_ids as $tt_id) {
67
+ $results = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."term_taxonomy WHERE term_taxonomy_id = ".$tt_id." AND taxonomy = 'product_tag'", ARRAY_A);
68
+ $term_ids[] = $results[0]['term_id'];
69
+ }
70
+ foreach ((array)$term_ids as $term_id ) {
71
+ if ($term_id != NULL){
72
+ $results = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."terms WHERE term_id=".$term_id." ",ARRAY_A);
73
+ $tags[] = $results[0]['name'];
74
+ }
75
+ }
76
+ if ($tags != NULL){
77
+ $imtags = implode(',', $tags);
78
+ }
79
+ }
80
+
81
+ $check_variation_value_count = $wpdb->get_var("SELECT COUNT(*) as `count` FROM `".$wpdb->prefix."variation_values_associations` WHERE `product_id` = '".$product['id']."'");
82
+
83
+
84
+ $output .= " <table class='product_editform'>\n\r";
85
+ $output .= " <tr>\n\r";
86
+ $output .= " <td class='itemfirstcol'>\n\r";
87
+ $output .= TXT_WPSC_PRODUCTNAME.": ";
88
+ $output .= " </td>\n\r";
89
+ $output .= " <td>\n\r";
90
+ $output .= "<input size='30' type='text' class='text' name='title' value='".htmlentities(stripslashes($product['name']), ENT_QUOTES)."' />";
91
+ $output .= " </td>\n\r";
92
+ $output .= " </tr>\n\r";
93
+
94
+ $output .= " <tr>\n\r";
95
+ $output .= " <td class='itemfirstcol'>\n\r";
96
+ $output .= TXT_WPSC_PRODUCTDESCRIPTION.": ";
97
+ $output .= " </td>\n\r";
98
+ $output .= " <td>\n\r";
99
+ $output .= "<textarea name='description' cols='40' rows='8' >".stripslashes($product['description'])."</textarea>";
100
+ $output .= " </td>\n\r";
101
+ $output .= " </tr>\n\r";
102
+
103
+ $output .= " <tr>\n\r";
104
+ $output .= " <td class='itemfirstcol'>\n\r";
105
+ $output .= TXT_WPSC_ADDITIONALDESCRIPTION.": ";
106
+ $output .= " </td>\n\r";
107
+ $output .= " <td>\n\r";
108
+ $output .= "<textarea name='additional_description' cols='40' rows='8' >".stripslashes($product['additional_description'])."</textarea>";
109
+ $output .= " </td>\n\r";
110
+ $output .= " </tr>\n\r";
111
+
112
+ $output .= " <tr>\n\r";
113
+ $output .= " <td class='itemfirstcol'>\n\r";
114
+ $output .= TXT_WPSC_PRODUCT_TAGS.": ";
115
+ $output .= " </td>\n\r";
116
+ $output .= " <td>\n\r";
117
+ $output .= "<input type='text' class='text' name='product_tags' value='$imtags'><br /><span class='small_italic'>Seperate with commas</span>";
118
+ $output .= " </td>\n\r";
119
+ $output .= " </tr>\n\r";
120
+
121
+ $output .="<tr><td>&nbsp;</td></tr>";
122
+ $output .= " <tr>\n\r";
123
+ $output .= " <td>\n\r";
124
+ $output .= " </td>\n\r";
125
+ $output .= " <td>\n\r";
126
+
127
+ $categorisation_groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}wpsc_categorisation_groups` WHERE `active` IN ('1')", ARRAY_A);
128
+
129
+ foreach((array)$categorisation_groups as $categorisation_group){
130
+ $category_count = $wpdb->get_var("SELECT COUNT(*) FROM `{$wpdb->prefix}product_categories` WHERE `group_id` IN ('{$categorisation_group['id']}')");
131
+ if($category_count > 0) {
132
+ $output .= "<p>";
133
+ $category_group_name = str_replace("[categorisation]", $categorisation_group['name'], TXT_WPSC_PRODUCT_CATEGORIES);
134
+ $output .= "<strong>".$category_group_name.":</strong><br>";
135
+ $output .= categorylist($categorisation_group['id'], $product['id'], 'edit_');
136
+ $output .= "</p>";
137
+ }
138
+ }
139
+
140
+ $output .= " </td>\n\r";
141
+ $output .= " </tr>\n\r";
142
+
143
+ $output .= "<tr><td colspan='2'><div id='edit_price_and_stock' class='postbox'>
144
+ <h3>
145
+ <a class='togbox'>+</a>";
146
+ $output .= "".TXT_WPSC_PRICE_AND_STOCK_CONTROL."";
147
+ $output .= " </h3> <div class='inside'> <table>";
148
+
149
+ $output .= " <tr>\n\r";
150
+ $output .= " <td>\n\r";
151
+ $output .= TXT_WPSC_PRICE.": <input type='text' name='price' size='10' value='".number_format($product['price'], 2, '.', '')."' />";
152
+ $output .= " </td>\n\r";
153
+ $output .= " </tr>\n\r";
154
+
155
+ if($product['notax'] == 1) {
156
+ $checked = "checked='true'";
157
+ } else {
158
+ $checked = "";
159
+ }
160
+
161
+ $output .= " <tr>\n\r";
162
+ $output .= " <td>\n\r";
163
+ $output .= "<input id='tax' type='checkbox' name='notax' value='yes' $checked />&nbsp;<label for='tax'>".TXT_WPSC_TAXALREADYINCLUDED."</label>";
164
+ $output .= " </td>\n\r";
165
+ $output .= " </tr>\n\r";
166
+
167
+ if($product['donation'] == 1) {
168
+ $checked = "checked='true'";
169
+ } else {
170
+ $checked = "";
171
+ }
172
+ $output .= " <tr>\n\r";
173
+ $output .= " <td>\n\r";
174
+ $output .= "<input id='edit_form_donation' type='checkbox' $checked name='donation' value='yes' />&nbsp;<label for='edit_form_donation'>".TXT_WPSC_IS_DONATION."</label>";
175
+ $output .= " </td>\n\r";
176
+ $output .= " </tr>\n\r";
177
+
178
+ if($product['no_shipping'] == 1) {
179
+ $checked = "checked='true'";
180
+ } else {
181
+ $checked = "";
182
+ }
183
+ $output .= " <tr>\n\r";
184
+ $output .= " <td>\n\r";
185
+ $output .= "<input id='add_form_no_shipping' type='checkbox' $checked name='no_shipping' value='yes' />&nbsp;<label for='add_form_no_shipping'>".TXT_WPSC_NO_SHIPPING."</label>";
186
+ $output .= " </td>\n\r";
187
+ $output .= " </tr>\n\r";
188
+
189
+ if($product['special'] == 1) {
190
+ $checked = "checked='true'";
191
+ } else {
192
+ $checked = "";
193
+ }
194
+ $output .= " <tr>\n\r";
195
+ $output .= " <td>\n\r";
196
+ $disable_form = '';
197
+ if($check_variation_value_count > 0) {
198
+ if($product['special'] != 1) {
199
+ $disable_form = "disabled='true'";
200
+ $disable_form_label = " style='color: #cccccc;'";
201
+ }
202
+ }
203
+ $output .= "<input id='form_special' type='checkbox' $checked name='special' $disable_form value='yes' onclick='hideelement(\"edit_special\")' /> <label for='form_special' $disable_form_label>".TXT_WPSC_SPECIAL."</label>";
204
+ if($disable_form != '') {
205
+ $output .="<br /><span class='small'>". TXT_WPSC_VARIATIONS_AND_SPECIALS_DONT_MIX."<span>";
206
+ }
207
+
208
+ if($product['special'] == 1) {
209
+ $output .= " <div id='edit_special' style='display: block;'>\n\r";
210
+ $output .= "<input type='text' name='special_price' value='".number_format(($product['price']-$product['special_price']), 2, '.', '')."' size='10' />";
211
+ } else {
212
+ $output .= " <div id='edit_special' style='display: none;'>\n\r";
213
+ $output .= "<input type='text' name='special_price' value='0.00' size='10' />";
214
+ }
215
+ $output .= " </div>\n\r";
216
+
217
+ $output .= " </td>\n\r";
218
+ $output .= " </tr>\n\r";
219
+
220
+ if($product['quantity_limited'] == 1) {
221
+ $checked = "checked='true'";
222
+ } else {
223
+ $checked = "";
224
+ }
225
+ $output .= " <tr>\n\r";
226
+ $output .= " <td style='width:350px;'>\n\r";
227
+ $output .= "<input id='form_quantity_limited' type='checkbox' $checked name='quantity_limited' value='yes' onclick='hideelement(\"edit_stock\")' /><label for='form_quantity_limited' class='small'>".TXT_WPSC_UNTICKBOX."</label>";
228
+
229
+ $variations_output = $variations_processor->variations_grid_view($product['id']);
230
+ if($variations_output != '') {
231
+ //$output .= $variations_output;
232
+
233
+ $output .= "<div id='edit_stock' style='display: none;'>\n\r";
234
+ $output .= "<input type='hidden' name='quantity' value='".$product['quantity']."' />";
235
+ $output .= "</div>\n\r";
236
+ } else {
237
+ switch($product['quantity_limited']) {
238
+ case 1:
239
+ $output .= " <div id='edit_stock' style='display: block;'>\n\r";
240
+ break;
241
+
242
+ default:
243
+ $output .= " <div id='edit_stock' style='display: none;'>\n\r";
244
+ break;
245
+ }
246
+ $output .= "<input type='text' name='quantity' size='10' value='".$product['quantity']."' />";
247
+ $output .= " </div>\n\r";
248
+ }
249
+ $output .= "</td></tr>";
250
+
251
+
252
+ $output .= "
253
+ </table></div></div></TD></tr>";
254
+
255
+ $output .= " </td>\n\r";
256
+ $output .= " </tr>\n\r";
257
+
258
+
259
+ ob_start();
260
+ do_action('wpsc_product_form', $product['id']);
261
+ $output .= ob_get_contents();
262
+ ob_end_clean();
263
+
264
+
265
+
266
+ $output .= " <tr>\n\r";
267
+ $output .= " <td colspan='2'>\n\r";
268
+ $output .= "<div id='edit_variation' class='postbox closed'>
269
+ <h3>
270
+ <a class='togbox'>+</a>";
271
+ $output .= "".TXT_WPSC_VARIATION_CONTROL."";
272
+ $output .= " </h3>
273
+ <div class='inside'>
274
+ <table>";
275
+
276
+ $output .= " <tr>\n\r";
277
+ $output .= " <td>\n\r";
278
+ $output .= TXT_WPSC_ADD_VAR.": ";
279
+ $output .= " </td>\n\r";
280
+ $output .= " <td>\n\r";
281
+ $output .= variationslist();
282
+ if($check_variation_value_count < 1) {
283
+ $output .= " <div id='edit_variations_container'>\n\r";
284
+ $output .= " </div>\n\r";
285
+ }
286
+ $output .= " </td>\n\r";
287
+ $output .= " </tr>\n\r";
288
+
289
+ if($check_variation_value_count > 0) {
290
+ $output .= " <tr>\n\r";
291
+ $output .= " <td>\n\r";
292
+ $output .= TXT_WPSC_EDIT_VAR.": ";
293
+ $output .= " </td>\n\r";
294
+ $output .= " <td>\n\r";
295
+ $output .= " <div id='edit_product_variations'>";
296
+
297
+ $output .= " </div>";
298
+ $output .= " <div id='edit_variations_container'>\n\r";
299
+ //$variations_processor = new nzshpcrt_variations;
300
+ $output .= $variations_processor->display_attached_variations($product['id']);
301
+ $output .= $variations_output;
302
+ $output .= " </div>\n\r";
303
+ $output .= " </td>\n\r";
304
+ $output .= " </tr>\n\r";
305
+ }
306
+ $output .="</table></div></div></td></tr>";
307
+
308
+
309
+ $output .= " <tr>\n\r";
310
+ $output .= " <td colspan='2'>\n\r";
311
+ $output .= " <div class='postbox closed' id='edit_shipping'>
312
+ <h3>
313
+ <a class='togbox'>+</a>".TXT_WPSC_SHIPPING_DETAILS."";
314
+ $output .= "</h3>
315
+ <div class='inside'>
316
+ <table>";
317
+ if ($product['weight_unit']=='pound') {
318
+ $unit1="selected='selected'";
319
+ } else {
320
+ $unit2="selected='selected'";
321
+ }
322
+ $output .= "<tr>\n\r";
323
+ $output .= " <td>\n\r";
324
+ $output .= " ". TXT_WPSC_WEIGHT."\n\r";
325
+ $output .= " </td>\n\r";
326
+ $output .= " <td>\n\r";
327
+ $output .= " <input type='text' size='5' name='weight' value='".$product['weight']."'>\n\r";
328
+ $output .= " <select>\n\r";
329
+ $output .= " <option $unit1 value='pound'>Pounds</option>\n\r";
330
+ $output .= " <option $unit2 value='once'>Onces</option>\n\r";
331
+ $output .= " </select>\n\r";
332
+ $output .= " </td>\n\r";
333
+ $output .= "</tr>";
334
+
335
+ $output .= " <tr>\n\r";
336
+ $output .= " <td>";
337
+ $output .= TXT_WPSC_LOCAL_PNP;
338
+ $output .= " </td>\n\r";
339
+ $output .= " <td>\n\r";
340
+ $output .= " <input type='text' size='10' name='pnp' value='".$product['pnp']."' />\n\r";
341
+ $output .= " </td>\n\r";
342
+ $output .= " </tr>\n\r";
343
+
344
+ $output .= " <tr>\n\r";
345
+ $output .= " <td>";
346
+ $output .= TXT_WPSC_INTERNATIONAL_PNP;
347
+ if($product['international_pnp'] == 0)
348
+ {
349
+ $product['international_pnp'] = "0.00";
350
+ }
351
+ $output .= " </td>\n\r";
352
+ $output .= " <td>\n\r";
353
+ $output .= " <input type='text' size='10' name='international_pnp' value='".$product['international_pnp']."' />\n\r";
354
+ $output .= " </td>\n\r";
355
+ $output .= " </tr>\n\r";
356
+ $output .="</table></div></div></td></tr>";
357
+
358
+ $output .= "<tr><td colspan='2'>";
359
+ $output .="<div id='edit_advanced' class='postbox closed'>
360
+ <h3>
361
+ <a class='togbox'>+</a>";
362
+ $output .=TXT_WPSC_ADVANCED_OPTIONS;
363
+ $output .="</h3><div class='inside'>";
364
+
365
+ $output .='<table>';
366
+ $output .= " <tr>\n\r";
367
+ $output .= " <td>\n\r";
368
+ $output .= TXT_WPSC_ADMINNOTES.": ";
369
+ $output .= " </td>\n\r";
370
+ $output .= " <td>\n\r";
371
+ $output .= "<textarea name='merchant_notes' cols='40' rows='3' >".stripslashes($product['merchant_notes'])."</textarea>";
372
+ $output .= " </td>\n\r";
373
+ $output .= " </tr>\n\r";
374
+ $output .= " <tr>\n\r";
375
+ $output .= " <td>\n\r";
376
+ $output .= " </td>\n\r";
377
+ $output .= " <td>\n\r";
378
+ if($product['display_frontpage'] == 1)
379
+ {
380
+ $output .= "<input type='checkbox' checked='true' value='yes' name='display_frontpage' id='form_display_frontpage'/>\n\r";
381
+ }
382
+ else
383
+ {
384
+ $output .= "<input type='checkbox' value='yes' name='display_frontpage' id='form_display_frontpage'/>\n\r";
385
+ }
386
+
387
+ $output .= "<label for='form_display_frontpage'>".TXT_WPSC_DISPLAY_FRONT_PAGE."</form>";
388
+ $output .= " </td>\n\r";
389
+ $output .= " </tr>\n\r";
390
+ $output .= " <tr>\n\r";
391
+ $output .= " <td>\n\r";
392
+ if ($engrave[0]=='on'){
393
+ $engra="checked='checked'";
394
+ }
395
+
396
+ $output .= " </td>\n\r";
397
+ $output .= " <td>\n\r";
398
+ $output .= "<input type='hidden' name='productmeta_values[engraved]' value='0'>";
399
+ $output .= "<input $engra type='checkbox' name='productmeta_values[engraved]'>". TXT_WPSC_ENGRAVE."<br />";
400
+ $output .= " </td>\n\r";
401
+ $output .= " </tr>\n\r";
402
+
403
+ if(get_option('payment_gateway') == 'google') {
404
+ $output .= " <tr>\n\r";
405
+ $output .= " <td>\n\r";
406
+ $output .= TXT_WPSC_PROHIBITED.": ";
407
+ $output .= " </td>\n\r";
408
+ $output .= " <td>\n\r";
409
+ $output .= "<input type='checkbox' name='productmeta_values[\"google_prohibited\"]'/> ";
410
+ $output .= "Prohibited <a href='http://checkout.google.com/support/sell/bin/answer.py?answer=75724'>by Google?</a>";
411
+ $output .= " </td>\n\r";
412
+ $output .= " </tr>\n\r";
413
+ }
414
+
415
+ $output .= " <tr>\n\r";
416
+ $output .= " <td>\n\r";
417
+ $output .= TXT_WPSC_EXTERNALLINK.": ";
418
+ $output .= " </td>\n\r";
419
+ $output .= " <td>\n\r";
420
+ $output .= "<input type='text' class='text' value='".$product['external_link']."' name='external_link' id='external_link' size='40'> ";
421
+ $output .= " </td>\n\r";
422
+ $output .= " </tr>\n\r";
423
+
424
+ $output .= " <tr>\n\r";
425
+ $output .= " <td>\n\r";
426
+ $output .= " </td>\n\r";
427
+ $output .= " <td>\n\r";
428
+ $output .= TXT_WPSC_USEONLYEXTERNALLINK;
429
+ $output .= " </td>\n\r";
430
+ $output .= " </tr>\n\r";
431
+
432
+ $output .= " <tr>\n\r";
433
+ $output .= " <td>\n\r";
434
+ $output .= TXT_WPSC_ADD_CUSTOM_FIELD;
435
+ $output .= " </td>\n\r";
436
+ $output .= " <td>\n\r";
437
+ //foreach
438
+ $output .= "<label></label>
439
+ <div class='product_custom_meta'>
440
+ <label >
441
+ ".TXT_WPSC_NAME."
442
+ <input type='text' class='text' value='' name='new_custom_meta[name][]' >
443
+ </label>
444
+
445
+ <label >
446
+ ".TXT_WPSC_VALUE."
447
+ <input type='text' class='text' value='' name='new_custom_meta[value][]' >
448
+ </label>
449
+ <a href='#' class='add_more_meta' onclick='return add_more_meta(this)'>+</a>
450
+ <br />
451
+ </div>
452
+ ";
453
+ $output .= " </td>\n\r";
454
+ $output .= " </tr>\n\r";
455
+
456
+
457
+ $custom_fields = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}wpsc_productmeta` WHERE `product_id` IN('{$product['id']}') AND `custom` IN('1') ",ARRAY_A);
458
+ if(count($custom_fields) > 0) {
459
+ $output .= " <tr>\n\r";
460
+ $output .= " <td>\n\r";
461
+ $output .= TXT_WPSC_EDIT_CUSTOM_FIELDS;
462
+ $output .= " </td>\n\r";
463
+ $output .= " <td>\n\r";
464
+
465
+ //$i = 1;
466
+ foreach((array)$custom_fields as $custom_field) {
467
+ $i = $custom_field['id'];
468
+ // for editing, the container needs an id, I can find no other tidyish method of passing a way to target this object through an ajax request
469
+ $output .= "
470
+ <div class='product_custom_meta' id='custom_meta_$i'>
471
+ <label for='custom_meta_name_$i'>
472
+ ".TXT_WPSC_NAME."
473
+ <input type='text' class='text' value='{$custom_field['meta_key']}' name='custom_meta[$i][name]' id='custom_meta_name_$i'>
474
+ </label>
475
+
476
+ <label for='custom_meta_value_$i'>
477
+ ".TXT_WPSC_VALUE."
478
+ <input type='text' class='text' value='{$custom_field['meta_value']}' name='custom_meta[$i][value]' id='custom_meta_value_$i'>
479
+ </label>
480
+ <a href='#' class='remove_meta' onclick='return remove_meta(this, $i)'>&ndash;</a>
481
+ <br />
482
+ </div>
483
+ ";
484
+ }
485
+ $output .= " </td>\n\r";
486
+ $output .= " </tr>\n\r";
487
+ }
488
+
489
+
490
+
491
+
492
+ $output .="</table></div></div></td></tr>";
493
+
494
+ $output .= " <tr>\n\r";
495
+ $output .= " <td colspan='2'>\n\r";
496
+ $output .= "<div id='edit_product_image' class='postbox'>
497
+ <h3>
498
+ <a class='togbox'>+</a>".TXT_WPSC_PRODUCTIMAGE."";
499
+ $output .= "</h3>
500
+ <div class='inside'>
501
+ <table>";
502
+
503
+ if(function_exists("getimagesize"))
504
+ {
505
+ if($product['image'] != '')
506
+ {
507
+ $imagedir = WPSC_THUMBNAIL_DIR;
508
+ $image_size = @getimagesize(WPSC_THUMBNAIL_DIR.$product['image']);
509
+ $output .= " <tr>\n\r";
510
+ $output .= " <td>\n\r";
511
+ $output .= TXT_WPSC_RESIZEIMAGE.": <br />";
512
+ $output .= "<span class='image_size_text'>".$image_size[0]."x".$image_size[1]."</span>";
513
+ $output .= " </td>\n\r";
514
+
515
+ $output .= " <td>\n\r";
516
+ $output .= "<table>";// style='border: 1px solid black'
517
+ $output .= " <tr>";
518
+ $output .= " <td style='height: 1em;'>";
519
+ $output .= "<input type='hidden' id='current_thumbnail_image' name='current_thumbnail_image' value='" . $product['thumbnail_image'] . "' />";
520
+ $output .= "<input type='radio' ";
521
+ // if ($product['thumbnail_state'] == 0) {
522
+ $output .= "checked='true'";
523
+ // }
524
+ $output .= " name='image_resize' value='0' id='image_resize0' class='image_resize' onclick='hideOptionElement(null, \"image_resize0\")' /> <label for='image_resize0'> ".TXT_WPSC_DONOTRESIZEIMAGE."<br />";
525
+ $output .= " </td>";
526
+ // Put lightbox here so doesn't move around with DHTML bits
527
+ $output .= " <td rowspan=4>";
528
+
529
+ $image_link = WPSC_IMAGE_URL.$product['image'];
530
+
531
+ $output .= "<a href='".$image_link."' rel='edit_product_1' class='thickbox preview_link'><img id='previewimage' src='$image_link' alt='".TXT_WPSC_PREVIEW."' title='".TXT_WPSC_PREVIEW."' />"."</a>";
532
+ $output .= "<br /><span style=\"font-size: 7pt;\">" . TXT_WPSC_PRODUCT_IMAGE_PREVIEW . "</span><br /><br />";
533
+
534
+ if(($product['thumbnail_image'] != null)) {
535
+ $output .= "<a id='preview_link' href='".WPSC_THUMBNAIL_URL . $product['thumbnail_image'] . "' rel='edit_product_2' class='thickbox'><img id='previewimage' src='" . WPSC_THUMBNAIL_URL . $product['thumbnail_image'] . "' alt='".TXT_WPSC_PREVIEW."' title='".TXT_WPSC_PREVIEW."' />"."</a>";
536
+ $output .= "<br /><span style=\"font-size: 7pt;\">" . TXT_WPSC_PRODUCT_THUMBNAIL_PREVIEW . "</span><br />";
537
+ }
538
+
539
+
540
+ //<div id='preview_button'><a id='preview_button' href='#'>".TXT_WPSC_PREVIEW."</a></div>
541
+ // onclick='return display_preview_image(".$product['id'].")'
542
+ $output .= " </td>";
543
+ $output .= " </tr>";
544
+
545
+ $output .= " <tr>";
546
+ $output .= " <td>";
547
+ $output .= "<input type='radio' ";
548
+ if ($product['thumbnail_state'] == 1) {
549
+ //$output .= "checked='true'";
550
+ }
551
+ $output .= "name='image_resize' value='1' id='image_resize1' class='image_resize' onclick='hideOptionElement(null, \"image_resize1\")' /> <label for='image_resize1'>".TXT_WPSC_USEDEFAULTSIZE." (".get_option('product_image_height') ."x".get_option('product_image_width').")";
552
+ $output .= " </td>";
553
+ $output .= " </tr>";
554
+
555
+ $output .= " <tr>";
556
+ $output .= " <td>";
557
+ $output .= "<input type='radio' ";
558
+ if ($product['thumbnail_state'] == 2)
559
+ {
560
+ // $output .= "checked='true'";
561
+ }
562
+ $output .= " name='image_resize' value='2' id='image_resize2' class='image_resize' onclick='hideOptionElement(\"heightWidth\", \"image_resize2\")' /> <label for='image_resize2'>".TXT_WPSC_USESPECIFICSIZE." </label>
563
+ <div id=\"heightWidth\" style=\"display: ";
564
+
565
+ if ($product['thumbnail_state'] == 2) {
566
+ $output .= "block;";
567
+ } else {
568
+ $output .= "none;";
569
+ }
570
+
571
+ $output .= "\">
572
+ <input id='image_width' type='text' size='4' name='width' value='' /><label for='image_resize2'>".TXT_WPSC_PXWIDTH."</label>
573
+ <input id='image_height' type='text' size='4' name='height' value='' /><label for='image_resize2'>".TXT_WPSC_PXHEIGHT." </label></div>";
574
+ $output .= " </td>";
575
+ $output .= " </tr>";
576
+ $output .= " <tr>";
577
+ $output .= " <td>";
578
+ $output .= "<input type='radio' ";
579
+ if ($product['thumbnail_state'] == 3) {
580
+ // $output .= "checked='true'";
581
+ }
582
+ $output .= " name='image_resize' value='3' id='image_resize3' class='image_resize' onclick='hideOptionElement(\"browseThumb\", \"image_resize3\")' /> <label for='image_resize3'> ".TXT_WPSC_SEPARATETHUMBNAIL."</label><br />";
583
+ $output .= "<div id='browseThumb' style='display: ";
584
+
585
+ if($product['thumbnail_state'] == 3) {
586
+ $output .= "block";
587
+ } else {
588
+ $output .= "none";
589
+ }
590
+
591
+ $output .= ";'>\n\r<input type='file' name='thumbnailImage' size='15' value='' />";
592
+ $output .= "</div>\n\r";
593
+ $output .= " </td>";
594
+ $output .= " </tr>";
595
+ // }.pe
596
+
597
+ $output .= "</table>";
598
+ $output .= " </td>\n\r";
599
+ $output .= " </tr>\n\r";
600
+ }
601
+ }
602
+
603
+ $output .= " <tr>\n\r";
604
+ $output .= " <td>\n\r";
605
+ $output .= " </td>\n\r";
606
+ $output .= " <td>\n\r";
607
+ $output .= TXT_WPSC_UPLOADNEWIMAGE.": <br />";
608
+ $output .= "<input type='file' name='image' value='' />";
609
+ $output .= " </td>\n\r";
610
+ $output .= " </tr>\n\r";
611
+
612
+ if(function_exists("getimagesize"))
613
+ {
614
+ if($product['image'] == '')
615
+ {
616
+ $output .= " <tr>\n\r";
617
+ $output .= " <td></td>\n\r";
618
+ $output .= " <td>\n\r";
619
+ $output .= "<table>\n\r";
620
+ if(is_numeric(get_option('product_image_height')) && is_numeric(get_option('product_image_width')))
621
+ {
622
+ $output .= " <tr>\n\r";
623
+ $output .= " <td>\n\r";
624
+ $output .= " <input type='radio' name='image_resize' value='0' id='image_resize0' class='image_resize' onclick='hideOptionElement(null, \"image_resize0\");' /> <label for='image_resize0'>".TXT_WPSC_DONOTRESIZEIMAGE."</label>\n\r";
625
+ $output .= " </td>\n\r";
626
+ $output .= " </tr>\n\r";
627
+ $output .= " <tr>\n\r";
628
+ $output .= " <td>\n\r";
629
+ $output .= " <input type='radio' checked='true' name='image_resize' value='1' id='image_resize1' class='image_resize' onclick='hideOptionElement(null, \"image_resize1\");' /> <label for='image_resize1'>".TXT_WPSC_USEDEFAULTSIZE." (".get_option('product_image_height') ."x".get_option('product_image_width').")</label>\n\r";
630
+ $output .= " </td>\n\r";
631
+ $output .= " </tr>\n\r";
632
+ }
633
+ $output .= " <tr>\n\r";
634
+ $output .= " <td>\n\r";
635
+ $output .= " <input type='radio' name='image_resize' value='2' id='image_resize2' class='image_resize' onclick='hideOptionElement(\"heightWidth\", \"image_resize2\");' />\n\r";
636
+ $output .= " <label for='image_resize2'>".TXT_WPSC_USESPECIFICSIZE."</label>\n\r";
637
+ $output .= " <div id='heightWidth' style='display: none;'>\n\r";
638
+ $output .= " <input type='text' size='4' name='width' value='' /><label for='image_resize2'>".TXT_WPSC_PXWIDTH."</label>\n\r";
639
+ $output .= " <input type='text' size='4' name='height' value='' /><label for='image_resize2'>".TXT_WPSC_PXHEIGHT."</label>\n\r";
640
+ $output .= " </div>\n\r";
641
+ $output .= " </td>\n\r";
642
+ $output .= " </tr>\n\r";
643
+ $output .= " <tr>\n\r";
644
+ $output .= " <td>\n\r";
645
+ $output .= " <input type='radio' name='image_resize' value='3' id='image_resize3' class='image_resize' onclick='hideOptionElement(\"browseThumb\", \"image_resize3\");' />\n\r";
646
+ $output .= " <label for='image_resize3'>".TXT_WPSC_SEPARATETHUMBNAIL."</label><br />";
647
+ $output .= " <div id='browseThumb' style='display: none;'>\n\r";
648
+ $output .= " <input type='file' name='thumbnailImage' value='' />\n\r";
649
+ $output .= " </div>\n\r";
650
+ $output .= " </td>\n\r";
651
+ $output .= " </tr>\n\r";
652
+ $output .= " </table>\n\r";
653
+ $output .= " </td>\n\r";
654
+ $output .= " </tr>\n\r";
655
+ }
656
+ }
657
+ $output .= " <tr>\n\r";
658
+ $output .= " <td>\n\r";
659
+ $output .= " </td>\n\r";
660
+ $output .= " <td>\n\r";
661
+ $output .= "<input id='delete_image' type='checkbox' name='deleteimage' value='1' /> ";
662
+ $output .= "<label for='delete_image'>".TXT_WPSC_DELETEIMAGE."</label>";
663
+ $output .= " </td>\n\r";
664
+ $output .= " </tr>\n\r";
665
+ if(function_exists('edit_multiple_image_form')) {
666
+ $output .= edit_multiple_image_form($product['id']);
667
+ }
668
+ $output .="</table></div></div></td></tr>";
669
+
670
+
671
+
672
+ if($product['file'] > 0)
673
+ {
674
+ $output .= " <tr>\n\r";
675
+ $output .= " <td colspan='2'>\n\r";
676
+ $output .= "<div id='edit_product_download' class='postbox closed'>
677
+ <h3>
678
+ <a class='togbox'>+</a>".TXT_WPSC_PRODUCTDOWNLOAD."";
679
+ $output .= " </h3>
680
+ <div class='inside'>
681
+ <table>";
682
+
683
+ $output .= " <tr>\n\r";
684
+ $output .= " <td>\n\r";
685
+ $output .= TXT_WPSC_PREVIEW_FILE.": ";
686
+ $output .= " </td>\n\r";
687
+ $output .= " <td>\n\r";
688
+
689
+ $output .= "<a class='admin_download' href='index.php?admin_preview=true&product_id=".$product['id']."' style='float: left;' ><img align='absmiddle' src='".WPSC_URL."/images/download.gif' alt='' title='' /><span>".TXT_WPSC_CLICKTODOWNLOAD."</span></a>";
690
+
691
+ $file_data = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."product_files` WHERE `id`='".$product['file']."' LIMIT 1",ARRAY_A);
692
+ if(($file_data != null) && (function_exists('listen_button')))
693
+ {
694
+ $output .= "".listen_button($file_data['idhash'], $file_data['id']);
695
+ }
696
+
697
+ $output .= " </td>\n\r";
698
+ $output .= " </tr>\n\r";
699
+
700
+
701
+ $output .= " <tr>\n\r";
702
+ $output .= " <td>\n\r";
703
+ $output .= TXT_WPSC_DOWNLOADABLEPRODUCT.": ";
704
+ $output .= " </td>\n\r";
705
+ $output .= " <td>\n\r";
706
+ $output .= "<input type='file' name='file' value='' /><br />";
707
+ $output .= wpsc_select_product_file($product['id']);
708
+ $output .= " </td>\n\r";
709
+ $output .= " </tr>\n\r";
710
+
711
+ if((function_exists("make_mp3_preview") && ($file_data['mimetype'] == 'audio/mpeg')) || function_exists("wpsc_media_player")){
712
+ $output .= " <tr>\n\r";
713
+ $output .= " <td>\n\r";
714
+ $output .= TXT_WPSC_NEW_PREVIEW_FILE.": ";
715
+ $output .= " </td>\n\r";
716
+ $output .= " <td>\n\r";
717
+ $output .= "<input type='file' name='preview_file' value='' /><br />";
718
+ //$output .= "<span class='admin_product_notes'>".TXT_WPSC_PREVIEW_FILE_NOTE."</span>";
719
+ $output .= "<br /><br />";
720
+ $output .= " </td>\n\r";
721
+ $output .= " </tr>\n\r";
722
+ }
723
+ }
724
+ else
725
+ {
726
+ $output .="<tr><td colspan='2'>";
727
+ $output .= "<div id='edit_product_download' class='postbox closed'>
728
+ <h3>
729
+ <a class='togbox'>+</a>".TXT_WPSC_PRODUCTDOWNLOAD."";
730
+ $output .= " </h3>
731
+ <div class='inside'>
732
+ <table>";
733
+
734
+ $output .= " <tr>";
735
+ $output .= " <td>";
736
+ // $output .= "".TXT_WPSC_DOWNLOADABLEPRODUCT.":";
737
+ $output .= " </td>";
738
+ $output .= " <td>";
739
+ $output .= " <input type='file' name='file' value='' />";
740
+ $output .= wpsc_select_product_file($product['id']);
741
+ $output .= " </td>";
742
+ $output .= " </tr>";
743
+ }
744
+ $output.=" </table></div></div></td></tr>";
745
+ $output .= " <tr>\n\r";
746
+ $output .= " <td>\n\r";
747
+ $output .= " </td>\n\r";
748
+ $output .= " <td>\n\r";
749
+ $output .= "<input type='hidden' name='prodid' id='prodid' value='".$product['id']."' />";
750
+ $output .= "<input type='hidden' name='submit_action' value='edit' />";
751
+ $output .= "<input class='button' style='float:left;' type='submit' name='submit' value='".TXT_WPSC_EDIT_PRODUCT."' />";
752
+ $output .= "<a class='button delete_button' ' href='admin.php?page=".WPSC_DIR_NAME."/display-items.php&amp;deleteid=".$product['id']."' onclick=\"return conf();\" >".TXT_WPSC_DELETE_PRODUCT."</a>";
753
+ $output .= " <td>\n\r";
754
+ $output .= " </tr>\n\r";
755
+
756
+ $output .= " </table>\n\r";
757
+ return $output;
758
+ }
759
+
760
+ function nzshpcrt_getcategoryform($catid)
761
+ {
762
+ global $wpdb,$nzshpcrt_imagesize_info;
763
+ $sql = "SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `id`=$catid LIMIT 1";
764
+ $product_data = $wpdb->get_results($sql,ARRAY_A) ;
765
+ $product = $product_data[0];
766
+ $output .= " <table class='category_forms'>\n\r";
767
+ $output .= " <tr>\n\r";
768
+ $output .= " <td>\n\r";
769
+ $output .= TXT_WPSC_NAME.": ";
770
+ $output .= " </td>\n\r";
771
+ $output .= " <td>\n\r";
772
+ $output .= "<input type='text' name='title' value='".htmlentities(stripslashes($product['name']), ENT_QUOTES)."' />";
773
+ $output .= " </td>\n\r";
774
+ $output .= " </tr>\n\r";
775
+
776
+ $output .= " <tr>\n\r";
777
+ $output .= " <td>\n\r";
778
+ $output .= TXT_WPSC_DESCRIPTION.": ";
779
+ $output .= " </td>\n\r";
780
+ $output .= " <td>\n\r";
781
+ $output .= "<textarea name='description' cols='40' rows='8' >".stripslashes($product['description'])."</textarea>";
782
+ $output .= " </td>\n\r";
783
+ $output .= " </tr>\n\r";
784
+ $output .= " </tr>\n\r";
785
+
786
+ $output .= " <tr>\n\r";
787
+ $output .= " <td>\n\r";
788
+ $output .= TXT_WPSC_CATEGORY_PARENT.": ";
789
+ $output .= " </td>\n\r";
790
+ $output .= " <td>\n\r";
791
+ $output .= wpsc_parent_category_list($product['group_id'], $product['id'], $product['category_parent']);
792
+ $output .= " </td>\n\r";
793
+ $output .= " </tr>\n\r";
794
+ $output .= " </tr>\n\r";
795
+
796
+ $output .= " <tr>\n\r";
797
+ $output .= " <td>\n\r";
798
+ $output .= TXT_WPSC_IMAGE.": ";
799
+ $output .= " </td>\n\r";
800
+ $output .= " <td>\n\r";
801
+ $output .= "<input type='file' name='image' value='' />";
802
+ $output .= " </td>\n\r";
803
+ $output .= " </tr>\n\r";
804
+ $output .= " </tr>\n\r";
805
+
806
+ if(function_exists("getimagesize"))
807
+ {
808
+ if($product['image'] != '')
809
+ {
810
+ $imagepath = WPSC_CATEGORY_DIR . $product['image'];
811
+ $imagetype = @getimagesize($imagepath); //previously exif_imagetype()
812
+ $output .= " <tr>\n\r";
813
+ $output .= " <td>\n\r";
814
+ $output .= " </td>\n\r";
815
+ $output .= " <td>\n\r";
816
+ $output .= TXT_WPSC_HEIGHT.":<input type='text' size='6' name='height' value='".$imagetype[1]."' /> ".TXT_WPSC_WIDTH.":<input type='text' size='6' name='width' value='".$imagetype[0]."' /><br /><span class='small'>$nzshpcrt_imagesize_info</span>";
817
+ $output .= " </td>\n\r";
818
+ $output .= " </tr>\n\r";
819
+ }
820
+ else
821
+ {
822
+ $output .= " <tr>\n\r";
823
+ $output .= " <td>\n\r";
824
+ $output .= " </td>\n\r";
825
+ $output .= " <td>\n\r";
826
+ $output .= TXT_WPSC_HEIGHT.":<input type='text' size='6' name='height' value='".get_option('product_image_height')."' /> ".TXT_WPSC_WIDTH.":<input type='text' size='6' name='width' value='".get_option('product_image_width')."' /><br /><span class='small'>$nzshpcrt_imagesize_info</span>";
827
+ $output .= " </td>\n\r";
828
+ $output .= " </tr>\n\r";
829
+ }
830
+ }
831
+
832
+ $output .= " <tr>\n\r";
833
+ $output .= " <td>\n\r";
834
+ $output .= TXT_WPSC_DELETEIMAGE.": ";
835
+ $output .= " </td>\n\r";
836
+ $output .= " <td>\n\r";
837
+ $output .= "<input type='checkbox' name='deleteimage' value='1' />";
838
+ $output .= " </td>\n\r";
839
+ $output .= " </tr>\n\r";
840
+ $output .= " </tr>\n\r";
841
+
842
+ $output .= " <tr>\n\r";
843
+ $output .= " <td>\n\r";
844
+ $output .= " </td>\n\r";
845
+ $output .= " <td>\n\r";
846
+ $output .= "<input type='hidden' name='prodid' value='".$product['id']."' />";
847
+ $output .= "<input type='hidden' name='submit_action' value='edit' />";
848
+ $output .= "<input class='button' style='float:left;' type='submit' name='submit' value='".TXT_WPSC_EDIT."' />";
849
+ $output .= "<a class='button delete_button' href='admin.php?page=".WPSC_DIR_NAME."/display-category.php&amp;deleteid=".$product['id']."' onclick=\"return conf();\" >".TXT_WPSC_DELETE."</a>";
850
+ $output .= " </td>\n\r";
851
+ $output .= " </tr>\n\r";
852
+ $output .= " </table>\n\r";
853
+ return $output;
854
+ }
855
+
856
+ function nzshpcrt_getbrandsform($catid)
857
+ {
858
+ global $wpdb,$nzshpcrt_imagesize_info;
859
+
860
+ $sql = "SELECT * FROM `".$wpdb->prefix."product_brands` WHERE `id`='$catid' LIMIT 1";
861
+ $product_data = $wpdb->get_results($sql,ARRAY_A) ;
862
+ $product = $product_data[0];
863
+ $output .= " <table>\n\r";
864
+ $output .= " <tr>\n\r";
865
+ $output .= " <td>\n\r";
866
+ $output .= TXT_WPSC_NAME.": ";
867
+ $output .= " </td>\n\r";
868
+ $output .= " <td>\n\r";
869
+ $output .= "<input type='text' name='title' value='".stripslashes($product['name'])."' />";
870
+ $output .= " </td>\n\r";
871
+ $output .= " </tr>\n\r";
872
+
873
+ $output .= " <tr>\n\r";
874
+ $output .= " <td>\n\r";
875
+ $output .= TXT_WPSC_DESCRIPTION.": ";
876
+ $output .= " </td>\n\r";
877
+ $output .= " <td>\n\r";
878
+ $output .= "<textarea name='description' cols='40' rows='8' >".stripslashes($product['description'])."</textarea>";
879
+ $output .= " </td>\n\r";
880
+ $output .= " </tr>\n\r";
881
+ $output .= " </tr>\n\r";
882
+
883
+ $output .= " <tr>\n\r";
884
+ $output .= " <td>\n\r";
885
+ $output .= " </td>\n\r";
886
+ $output .= " <td>\n\r";
887
+ $output .= "<input type='hidden' name='prodid' value='".$product['id']."' />";
888
+ $output .= "<input type='hidden' name='submit_action' value='edit' />";
889
+ $output .= "<input class='button' style='float:left;' type='submit' name='submit' value='".TXT_WPSC_EDIT."' />";
890
+ $output .= "<a class='button delete_button' href='admin.php?page=".WPSC_DIR_NAME."/display-brands.php&amp;deleteid=".$product['id']."' onclick=\"return conf();\" >".TXT_WPSC_DELETE."</a>";
891
+ $output .= " </td>\n\r";
892
+ $output .= " </tr>\n\r";
893
+ $output .= " </table>\n\r";
894
+ return $output;
895
+ }
896
+
897
+ function nzshpcrt_getvariationform($variation_id)
898
+ {
899
+ global $wpdb,$nzshpcrt_imagesize_info;
900
+
901
+ $variation_sql = "SELECT * FROM `".$wpdb->prefix."product_variations` WHERE `id`='$variation_id' LIMIT 1";
902
+ $variation_data = $wpdb->get_results($variation_sql,ARRAY_A) ;
903
+ $variation = $variation_data[0];
904
+ $output .= " <table class='category_forms' >\n\r";
905
+ $output .= " <tr>\n\r";
906
+ $output .= " <td>\n\r";
907
+ $output .= TXT_WPSC_NAME.": ";
908
+ $output .= " </td>\n\r";
909
+ $output .= " <td>\n\r";
910
+ $output .= "<input type='text' name='title' value='".htmlentities(stripslashes($variation['name']), ENT_QUOTES)."' />";
911
+ $output .= " </td>\n\r";
912
+ $output .= " </tr>\n\r";
913
+
914
+ $output .= " <tr>\n\r";
915
+ $output .= " <td>\n\r";
916
+ $output .= TXT_WPSC_VARIATION_VALUES.": ";
917
+ $output .= " </td>\n\r";
918
+ $output .= " <td>\n\r";
919
+ $variation_values_sql = "SELECT * FROM `".$wpdb->prefix."variation_values` WHERE `variation_id`='$variation_id' ORDER BY `id` ASC";
920
+ $variation_values = $wpdb->get_results($variation_values_sql,ARRAY_A);
921
+ $variation_value_count = count($variation_values);
922
+ $output .= "<div id='edit_variation_values'>";
923
+ $num = 0;
924
+ foreach($variation_values as $variation_value)
925
+ {
926
+ $output .= "<span id='variation_value_".$num."'>";
927
+ $output .= "<input type='text' name='variation_values[".$variation_value['id']."]' value='".htmlentities(stripslashes($variation_value['name']), ENT_QUOTES)."' />";
928
+ if($variation_value_count > 1)
929
+ {
930
+ $output .= " <a class='image_link' onclick='remove_variation_value(\"variation_value_".$num."\",".$variation_value['id'].")' href='#'><img src='".WPSC_URL."/images/trash.gif' alt='".TXT_WPSC_DELETE."' title='".TXT_WPSC_DELETE."' /></a>";
931
+ }
932
+ $output .= "<br />";
933
+ $output .= "</span>";
934
+ $num++;
935
+ }
936
+ $output .= "</div>";
937
+ $output .= "<a href='#' onclick='return add_variation_value(\"edit\")'>".TXT_WPSC_ADD."</a>";
938
+ $output .= " </td>\n\r";
939
+ $output .= " </tr>\n\r";
940
+ $output .= " </tr>\n\r";
941
+
942
+ $output .= " <tr>\n\r";
943
+ $output .= " <td>\n\r";
944
+ $output .= " </td>\n\r";
945
+ $output .= " <td>\n\r";
946
+ $output .= "<input type='hidden' name='prodid' value='".$variation['id']."' />";
947
+ $output .= "<input type='hidden' name='submit_action' value='edit' />";
948
+ $output .= "<input class='button' style='float:left;' type='submit' name='submit' value='".TXT_WPSC_EDIT."' />";
949
+ $output .= "<a class='button delete_button' href='admin.php?page=".WPSC_DIR_NAME."/display_variations.php&amp;deleteid=".$variation['id']."' onclick=\"return conf();\" >".TXT_WPSC_DELETE."</a>";
950
+ $output .= " </td>\n\r";
951
+ $output .= " </tr>\n\r";
952
+ $output .= " </table>\n\r";
953
+ return $output;
954
+ }
955
+
956
+ function coupon_edit_form($coupon) {
957
+ $start_timestamp = strtotime($coupon['start']);
958
+ $end_timestamp = strtotime($coupon['expiry']);
959
+ $id = $coupon['id'];
960
+ $output = '';
961
+ $output .= "<form name='edit_coupon' method='post' action='".get_option('siteurl')."/wp-admin/admin.php?page=".WPSC_DIR_NAME."/display-coupons.php'>\n\r";
962
+ $output .= " <input type='hidden' value='true' name='is_edit_coupon' />\n\r";
963
+ $output .= "<table class='add-coupon'>\n\r";
964
+ $output .= " <tr>\n\r";
965
+ $output .= " <th>".TXT_WPSC_COUPON_CODE."</th>\n\r";
966
+ $output .= " <th>".TXT_WPSC_DISCOUNT."</th>\n\r";
967
+ $output .= " <th>".TXT_WPSC_START."</th>\n\r";
968
+ $output .= " <th>".TXT_WPSC_EXPIRY."</th>\n\r";
969
+ $output .= " <th>".TXT_WPSC_USE_ONCE."</th>\n\r";
970
+ $output .= " <th>".TXT_WPSC_ACTIVE."</th>\n\r";
971
+ $output .= " <th>".TXT_WPSC_PERTICKED."</th>\n\r";
972
+ $output .= " <th></th>\n\r";
973
+ $output .= " </tr>\n\r";
974
+ $output .= " <tr>\n\r";
975
+ $output .= " <td>\n\r";
976
+ $output .= " <input type='text' value='".$coupon['coupon_code']."' name='edit_coupon[".$id."][coupon_code]' />\n\r";
977
+ $output .= " </td>\n\r";
978
+ $output .= " <td>\n\r";
979
+ $output .= " <input type='text' value='".$coupon['value']."' size='3' name=edit_coupon[".$id."][value]' />\n\r";
980
+ $output .= " <select name='edit_coupon[".$id."][is-percentage]'>\n\r";
981
+ $output .= " <option value='0' ".(($coupon['is-percentage'] == 0) ? "selected='true'" : '')." >$</option>\n\r";//
982
+ $output .= " <option value='1' ".(($coupon['is-percentage'] == 1) ? "selected='true'" : '')." >%</option>\n\r";
983
+ $output .= " </select>\n\r";
984
+ $output .= " </td>\n\r";
985
+ $output .= " <td>\n\r";
986
+ $output .= " <select name='edit_coupon[".$id."][start][day]'>\n\r";
987
+ for($i = 1; $i <=31; ++$i) {
988
+ $selected = '';
989
+ if($i == date("d", $start_timestamp)) { $selected = "selected='true'"; }
990
+ $output .= " <option $selected value='$i'>$i</option>";
991
+ }
992
+ $output .= " </select>\n\r";
993
+ $output .= " <select name='edit_coupon[".$id."][start][month]'>\n\r";
994
+ for($i = 1; $i <=12; ++$i) {
995
+ $selected = '';
996
+ if($i == (int)date("m", $start_timestamp)) { $selected = "selected='true'"; }
997
+ $output .= " <option $selected value='$i'>".date("M",mktime(0, 0, 0, $i, 1, date("Y")))."</option>";
998
+ }
999
+ $output .= " </select>\n\r";
1000
+ $output .= " <select name='edit_coupon[".$id."][start][year]'>\n\r";
1001
+ for($i = date("Y"); $i <= (date("Y") +12); ++$i) {
1002
+ $selected = '';
1003
+ if($i == date("Y", $start_timestamp)) { $selected = "selected='true'"; }
1004
+ $output .= " <option $selected value='$i'>".$i."</option>";
1005
+ }
1006
+ $output .= " </select>\n\r";
1007
+ $output .= " </td>\n\r";
1008
+ $output .= " <td>\n\r";
1009
+ $output .= " <select name='edit_coupon[".$id."][expiry][day]'>\n\r";
1010
+ for($i = 1; $i <=31; ++$i) {
1011
+ $selected = '';
1012
+ if($i == date("d", $end_timestamp)) { $selected = "selected='true'"; }
1013
+ $output .= " <option $selected value='$i'>$i</option>";
1014
+ }
1015
+ $output .= " </select>\n\r";
1016
+ $output .= " <select name='edit_coupon[".$id."][expiry][month]'>\n\r";
1017
+
1018
+ for($i = 1; $i <=12; ++$i) {
1019
+ $selected = '';
1020
+ if($i == (int)date("m", $end_timestamp)) { $selected = "selected='true'"; }
1021
+ $output .= " <option $selected value='$i'>".date("M",mktime(0, 0, 0, $i, 1, date("Y")))."</option>";
1022
+ }
1023
+ $output .= " </select>\n\r";
1024
+ $output .= " <select name='edit_coupon[".$id."][expiry][year]'>\n\r";
1025
+ for($i = date("Y"); $i <= (date("Y") +12); ++$i) {
1026
+ $selected = '';
1027
+ if($i == (date("Y", $end_timestamp))) { $selected = "selected='true'"; }
1028
+ $output .= " <option $selected value='$i'>".$i."</option>\n\r";
1029
+ }
1030
+ $output .= " </select>\n\r";
1031
+ $output .= " </td>\n\r";
1032
+ $output .= " <td>\n\r";
1033
+ $output .= " <input type='hidden' value='0' name='edit_coupon[".$id."][use-once]' />\n\r";
1034
+ $output .= " <input type='checkbox' value='1' ".(($coupon['use-once'] == 1) ? "checked='true'" : '')." name='edit_coupon[".$id."][use-once]' />\n\r";
1035
+ $output .= " </td>\n\r";
1036
+ $output .= " <td>\n\r";
1037
+ $output .= " <input type='hidden' value='0' name='edit_coupon[".$id."][active]' />\n\r";
1038
+ $output .= " <input type='checkbox' value='1' ".(($coupon['active'] == 1) ? "checked='true'" : '')." name='edit_coupon[".$id."][active]' />\n\r";
1039
+ $output .= " </td>\n\r";
1040
+ $output .= " <td>\n\r";
1041
+ $output .= " <input type='hidden' value='".$id."' name='edit_coupon[".$id."][id]' />\n\r";
1042
+ //$output .= " <input type='hidden' value='false' name='add_coupon' />\n\r";
1043
+ $output .= " <input type='submit' value='Submit' name='edit_coupon[".$id."][submit_coupon]' />\n\r";
1044
+ $output .= " <input type='submit' value='Delete' name='edit_coupon[".$id."][delete_coupon]' />\n\r";
1045
+
1046
+ $output .= " </td>\n\r";
1047
+ $output .= " </tr>\n\r";
1048
+ $output .= "</table>\n\r";
1049
+ $output .= "</form>\n\r";
1050
+ return $output;
1051
+ }
1052
+
1053
+ function setting_button(){
1054
+ $itemsFeedURL = "http://www.google.com/base/feeds/items";
1055
+ $next_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']."?page=wp-shopping-cart/display-items.php";
1056
+ $redirect_url = 'https://www.google.com/accounts/AuthSubRequest?session=1';
1057
+ $redirect_url .= '&next=';
1058
+ $redirect_url .= urlencode($next_url);
1059
+ $redirect_url .= "&scope=";
1060
+ $redirect_url .= urlencode($itemsFeedURL);
1061
+
1062
+ // $output.="<div><img src='".get_option('siteurl')."/wp-content/plugins/wp-shopping-cart/images/settings_button.jpg' onclick='display_settings_button()'>";
1063
+ $output.="<div><input type='button' value='Settings &raquo;' class='button' onclick='display_settings_button()'>";
1064
+ $output.="<span id='settings_button' style='width:180px;background-color:#f1f1f1;position:absolute; border:1px solid black; display:none;'>";
1065
+ $output.="<ul class='settings_button'>";
1066
+ $output.="<li><a href='?page=wp-shopping-cart/options.php'>Shop Settings</a></li>";
1067
+ $output.="<li><a href='?page=wp-shopping-cart/getwayoptions.php'>Money and Payment</a></li>";
1068
+ $output.="<li><a href='?page=wp-shopping-cart/form_fields.php'>Chechkout page Settings</a></li>";
1069
+ $output.="<li><a href='?page=wp-shopping-cart/instructions.php'>Help/Upgrade</a></li>";
1070
+ $output.="<li><a href='{$redirect_url}'>Login to Google base</a></li>";
1071
+ $output.="</ul>";
1072
+ // $output.="<div>Checkout Settings</div>";
1073
+ $output.="</span>&emsp;&emsp;</div>";
1074
+
1075
+ return $output;
1076
+ }
1077
+ ?>
wp-shopping-cart/admin-ie.css ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #setup_wizard h3 {
2
+ }
3
+
4
+ #additem .togbox, #productform h3 .togbox {
5
+ display:block;
6
+ float: left;
7
+ height:37px;
8
+ width: 12px;
9
+ margin: 0px 4px 0px 0px;
10
+ text-indent: 0px;
11
+ position: relative;
12
+ background: none !important;
13
+ }
wp-shopping-cart/admin.css ADDED
@@ -0,0 +1,882 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ a{
2
+ text-decoration:none;
3
+ outline: none;
4
+ }
5
+ table.productdisplay tr td{ vertical-align: top; }
6
+
7
+ table.logdisplay{ width: 100%; }
8
+
9
+ table.logdisplay tr.toprow td{ text-align: center; font-weight:bold; }
10
+
11
+ table.logdisplay tr.toprow2 td{ text-align: left; font-weight:bold; }
12
+
13
+ table.logdisplay tr td{ padding-left: 5px; padding-top: 2px; padding-bottom: 2px;}
14
+
15
+ table.logdisplay tr.alt{ background-color: #eeeeee; }
16
+
17
+ table.logdisplay tr.alt td{ background-color: #eeeeee; }
18
+
19
+ ul.installation { list-style-type: decimal; }
20
+
21
+ td.processed{ text-align: left; min-width: 140px; width: 140px; white-space: nowrap; }
22
+ td.processed a{ border-bottom: none; }
23
+ td.processed a img{ margin-left: 5px; }
24
+ /* td.processed a span{ border-bottom: 1px solid #69c; } */
25
+
26
+ td.processed a.yes{ color: green; }
27
+
28
+ td.processed a.no{ color: red; }
29
+
30
+ table.wpsc_options tr.merged th, table.wpsc_options tr.merged td { border: none; padding: 5px 10px 5px 10px; }
31
+
32
+ table.wpsc_options tr th{ width: 30%; }
33
+
34
+ table.wpsc_options tr td{ vertical-align: top; }
35
+
36
+ table.wpsc_options tr td input.text, table.wpsc_options tr td textarea{ width: 300px; }
37
+
38
+ table.wpsc_options tr td textarea{ height: 120px; }
39
+
40
+ table#productpage{
41
+ width: 100%;
42
+ clear: both;
43
+ border-collapse: collapse;
44
+ }
45
+
46
+ table#productpage tr td{
47
+ vertical-align: top;
48
+ padding: 0px 0px 0px 6px;
49
+ }
50
+
51
+ table#productpage tr td.secondcol{ width: 60%; margin-left: 20px; ; }
52
+
53
+ table#itemlist{
54
+ width: 100%;
55
+ border-collapse:collapse;
56
+ border:1px solid #bbb;
57
+ border-top:none;
58
+ }
59
+
60
+
61
+ /* table#itemlist tr{border-left:1px solid #bbb;border-right:1px solid #bbb;} */
62
+ table#itemlist tr td{text-align: left; padding:10px 5px 8px 5px; }
63
+
64
+ table#itemlist tr.products{border-left:1px solid #bbb;border-right:1px solid #bbb;}
65
+ table#itemlist tr.productsalt{background-color:#f3f3f3;border-left:1px solid #bbb;border-right:1px solid #bbb;}
66
+ table#itemlist tr.products td{text-align: left;padding:0px; vertical-align: middle ; border-top:1px solid #bbb;border-bottom:1px solid #bbb;}
67
+ table#itemlist tr.productsalt td{text-align: left;padding:0px; vertical-align: middle ; border-top:1px solid #bbb;border-bottom:1px solid #bbb;}
68
+
69
+ table#itemlist tr td.imagecol{ padding: 4px;}
70
+
71
+ table#itemlist tr td.colspan{ text-align: left; padding: 0px; }
72
+
73
+ table#itemlist tr.firstrow td{ font-weight: bold; padding-left: 5px; padding-right: 5px; }
74
+
75
+
76
+
77
+ table tr.firstrowth{background-color:#333; padding:10px 5px 8px 5px;border-left:1px solid #bbb;border-right:1px solid #bbb;border-top:1px solid #bbb;}
78
+ table tr.selectcategory{background-color:#E4F2FD;border-left:1px solid #bbb;border-right:1px solid #bbb;}
79
+
80
+ table.itemlist{ margin: 0px; }
81
+
82
+ div.subcategory{ list-style-type: none; vertical-align: top; margin: 0px; padding: 0px; }
83
+
84
+ div.subcategory img.category_indenter{ float: left; margin-top: 10px; }
85
+ table.additem{ width: 100%; border-left:1px solid #bbb;border-right:1px solid #bbb;}
86
+
87
+
88
+ table.itemlist tr td{ text-align: center; padding-left: 3px; padding-right: 3px; }
89
+
90
+ table.edititem{ width: 100%;}
91
+ span.small{ font-size: 9pt; }
92
+ span.small_italic{font-size:9px; font-style:italic;color:#888;}
93
+ table.producttext{width:497px;border-collapse:collapse;border-left:1px solid #bbb;border-right:1px solid #bbb;}
94
+ table tr.firstrowth td{ vertical-align: top; padding:10px 5px 8px;}
95
+
96
+ div#productform{ display: none; }
97
+
98
+ div#productform table tr td{ height: 11px !important; }
99
+ div#productform table.additem td.itemfirstcol{ width: 120px !important; padding-left:8px; vertical-align: middle; }
100
+
101
+ div#additem{ display: block;}
102
+
103
+ /* div#additem table tr td{ height: 11px; } */
104
+
105
+ div#additem table.additem td.itemfirstcol{ width: 120px !important; padding-left:8px; vertical-align: middle; }
106
+
107
+ div#productform td.itemfirstcol{ width: 120px !important; padding-left:8px; vertical-align: middle; }
108
+ div#additem table.additem input.text,div#additem table.additem textarea{margin-right:6px;width:350px;border:1px solid #bbb;}
109
+ div#productform input.text,div#productform textarea, div#additem input.text,div#additem textarea{margin-right:6px;width:350px;border:1px solid #bbb;}
110
+ input.image_resize{ position: relative; top: 4px; }
111
+
112
+ #loadingindicator_span{ visibility: hidden; }
113
+
114
+ strong.form_group{ font-size: 11pt; color: #ccc; }
115
+
116
+ strong.form_group span{ font-size: 8pt; }
117
+
118
+ span.image_size_text{ font-size: 8pt; }
119
+
120
+ img#previewimage{ width: 100px; max-width: 100px; }
121
+
122
+ div#preview_button{ width: 100%; text-align: center; }
123
+
124
+ a#preview_button{ font-size: 8pt; }
125
+
126
+ a.lightbox_links{ border-bottom: none; }
127
+
128
+ td#product_log_data{ width: 70%; vertical-align: top; }
129
+
130
+ td#order_summary_container{ padding-left: 10px; padding-top: 0em; vertical-align: top; }
131
+
132
+ td#order_summary_container strong.order_summary{ display: block; margin-top: 4px; margin-bottom: 3px; }
133
+
134
+ td#order_summary_container div.order_summary{ background-color: #eaf2f5; border: 1px solid #d7e4ec; padding-top: 15px; padding-left: 15px; padding-right: 15px; }
135
+
136
+ td#order_summary_container div.wpsc_news{
137
+ background-color: #eaf2f5;
138
+ border: 1px solid #d7e4ec;
139
+ padding-top: 5px;
140
+ padding-left: 15px;
141
+ padding-right: 15px;
142
+ margin-bottom: 10px;
143
+ position: relative;
144
+ }
145
+
146
+ td#order_summary_container div.wpsc_news strong{
147
+ margin-top: 0px;
148
+ }
149
+
150
+ ul.ecom_dashboard {
151
+ padding-left: 1em;
152
+ margin-top: 5px;
153
+ }
154
+
155
+ ul.ecom_dashboard li{
156
+ padding: 0px;
157
+ margin: 0px;
158
+ font-size: 8pt;
159
+ /* list-style-type: none; */
160
+ }
161
+
162
+ a#close_news_box{
163
+ position: absolute;
164
+ top: 2px;
165
+ right: 4px;
166
+ display: block;
167
+ text-decoration: none;
168
+ border: none;
169
+ }
170
+
171
+ div.order_summary_subsection{ margin-bottom: 1em; }
172
+
173
+ div.order_summary_subsection strong{ display: block; border-bottom: 1px solid #d0dee7; width: 100%; font-size: 8pt; }
174
+
175
+ div.order_summary_subsection p{ font-size: 8pt; display: block; margin-top: 3px; }
176
+
177
+
178
+ td#order_summary_container div.gold-cart_pesterer{ background-color: #eaf2f5; border: 1px solid #d7e4ec; padding: 15px; margin-top: 15px; }
179
+
180
+ td#order_summary_container div.gold-cart_pesterer div{ font-size: 8pt; color: #666666; } /*
181
+ td#order_summary_container div.gold-cart_pesterer div a{ color: #666666; border-bottom: 1px solid #666666; }
182
+ td#order_summary_container div.gold-cart_pesterer div a:hover { color: #666666; border-bottom: 1px solid #666666; }*/
183
+ td#order_summary_container div.gold-cart_pesterer div img{ float: left; margin-right: 12px; }
184
+
185
+
186
+ a.image_link{ border-bottom: none !important; }
187
+
188
+ a.image_link img{ border-bottom: none !important; }
189
+
190
+ a.add_item_link{ display: block; border-bottom: none !important; }
191
+
192
+ a.add_item_link span{ /*border-bottom: 1px solid #69c;*/ }
193
+
194
+ a.add_item_link img{ margin-bottom: -3px; }
195
+
196
+ table#form_field_table tr td, table#form_field_table tr th{ border: 1px solid white; }
197
+
198
+ table#form_field_table tr th{ margin: 0px; padding:0px; }
199
+
200
+ table#form_field_table tr td.namecol{ }
201
+
202
+ table#form_field_table tr *.namecol{ width: 170px; padding-right: 8px; }
203
+ table#form_field_table tr *.namecol input{ width: 160px; }
204
+
205
+ table#form_field_table tr *.typecol{ width: 120px; }
206
+ table#form_field_table tr *.typecol select{ width: 115px; }
207
+
208
+ table#form_field_table tr *.mandatorycol{ width: 90px; text-align: center; }
209
+ table#form_field_table tr *.mandatorycol input{ }
210
+
211
+ table#form_field_table tr *.logdisplaycol{ width: 70px; text-align: center; }
212
+ table#form_field_table tr *.logdisplaycol input{ }
213
+
214
+ table#form_field_table tr *.ordercol{ width: 70px; text-align: center; }
215
+ table#form_field_table tr *.ordercol input{ }
216
+
217
+ table#form_field_table tr th{ padding-left: 0px; padding-right: 0px;
218
+ }
219
+
220
+
221
+ div#form_field_form_container{ padding: 0px; margin: 0px; }
222
+
223
+ div#form_field_form_container div, div#form_field_form_container div table{ padding: 0px; margin: 0px; width: 100%; border-collapse: collapse; }
224
+
225
+ img.log_expander_icon { margin-right: 3px; }
226
+
227
+ /* td { border: 1px solid red; } */
228
+
229
+ div#form_field_form_container div table tr td{ padding: 0px; margin: 0px; }
230
+
231
+ div.order_status{ display: none;}
232
+
233
+ div.order_status div{ width: 100%; padding:1ex 0px 1ex 1em; display: block !important;}
234
+
235
+ div.order_status ul{ list-style-type: none; margin: 1ex 0px 0px 0px; padding: 0px; }
236
+
237
+ div.order_status ul li{ padding-left: 0px; }
238
+
239
+ div.order_status ul li input{ margin: 0px 2px -2px 0px; }
240
+
241
+ img.log_expander_icon { margin-right: 3px; }
242
+
243
+ /* td { border: 1px solid red; } */
244
+
245
+ td.authorize_info_box { vertical-align: top; text-align: left; }
246
+
247
+ div.authorize_info_box { background: #f0f8ff; vertical-align: middle; text-align: center; width: 284px; height: 117px; }
248
+ div.authorize_info_box table { display: block; height: 117px; margin: auto auto auto auto; width: 205px; }
249
+ div.authorize_info_box table tr td { text-align: left; height: 117px; vertical-align: middle; color: #999999; font-size: 8pt; }
250
+
251
+ hr.image_seperator { border-top: 1px solid #cccccc; border-bottom: none; border-left: none; border-right: none;}
252
+
253
+ table.add_extra_images { width: 100%; }
254
+
255
+ div#list_view_quantity_container{
256
+ }
257
+
258
+ a.product_log_rss {
259
+ border-bottom: none;
260
+ }
261
+
262
+ a.product_log_rss span{
263
+ border-bottom: 1px solid #6699cc;
264
+ }
265
+
266
+ a.noline{
267
+ text-decoration:none;
268
+ border:0px;
269
+ }
270
+
271
+ a.admin_download {
272
+ display: block;
273
+ height: 26px;
274
+ border-bottom: none;
275
+ }
276
+
277
+ a.admin_download img{
278
+ margin-right: 3px;
279
+ }
280
+
281
+ a.admin_download span{
282
+ border-bottom: 1px solid #6699cc;
283
+ }
284
+
285
+ h3.log_headers{
286
+ color: #71a4c8;
287
+ margin-bottom: 0px;
288
+ margin-top: 0px;
289
+ }
290
+
291
+ input.edit_button {
292
+ float: left;
293
+ }
294
+
295
+ a.delete_button {
296
+ display: block;
297
+ float: left;
298
+ width: auto;
299
+ color: #333333;
300
+ font-size: 13px;
301
+ margin-top: 1px;
302
+ vertical-align: middle;
303
+ padding:0.25em 0.25em 0.25em 0.25em !important;
304
+ height: 19px;
305
+ margin-left: 12px;
306
+ }
307
+ a.delete_button:hover{
308
+ color: #333333;
309
+ }
310
+
311
+ div.flag_email{
312
+ position: relative;
313
+ left: 60px;
314
+ }
315
+
316
+ td.positioning_buttons a{
317
+ border-bottom: none;
318
+ margin-left: 3px;
319
+ }
320
+
321
+ input.tax_forms{
322
+ text-align: right;
323
+ width: 2.75em;
324
+ }
325
+
326
+ a.add_image_upload_forms div{/*
327
+ height: 8pt;
328
+ width: 1ex;
329
+ background-color: #cccccc !important;
330
+ float: left;*/
331
+ display: none;
332
+ }
333
+
334
+ label.order_filters{ font-size: 8pt; }
335
+ input.order_filters{ margin-bottom: -2px; }
336
+
337
+ a.thickbox{
338
+ border: none;
339
+ }
340
+ a.thickbox img{
341
+ border: none;
342
+ }
343
+
344
+ .entry p { margin: 0 0 1em 0; }
345
+
346
+
347
+ div.select_product_file, div.edit_select_product_file{
348
+ width: 300px;
349
+ margin-top: 3px;
350
+ padding: 2px;
351
+ border: 1px solid #B2B2B2;
352
+ background-color: #eeeeee;
353
+ overflow: auto;
354
+ overflow-x: hidden;
355
+ position: relative;
356
+ padding-bottom: 6px;
357
+ margin-bottom: 0px;
358
+ }
359
+
360
+ div.select_product_file p, div.edit_select_product_file p{
361
+ margin: 0px;
362
+ width: 96%;
363
+ _width: 90%;
364
+ padding: 4px;
365
+ }
366
+
367
+ div.select_product_file p input, div.edit_select_product_file p input{
368
+ margin: 0px 4px -3px 0px;
369
+ }
370
+
371
+ div.select_product_file p.alt, div.edit_select_product_file p.alt{
372
+ background-color: #ffffff;
373
+ }
374
+
375
+ div.select_product_handle, div.edit_select_product_handle{
376
+ position: relative;
377
+ height: 6px;
378
+ width: 306px;
379
+ background-color: #b2b2b2;
380
+ font-size: 1px;
381
+ margin: 0px;
382
+ }
383
+
384
+ div.select_product_handle div, div.edit_select_product_handle div{
385
+ position: relative;
386
+ top: 1px;
387
+ _top: 0px;
388
+ height: 1px;
389
+ border-bottom: 1px dotted #ffffff;
390
+ width: 13px;
391
+ _width: 14px;
392
+ margin: 0px auto 0px auto;
393
+ }
394
+
395
+ span.admin_product_notes{
396
+ font-size: 9pt;
397
+ color: #666666;
398
+ }
399
+
400
+ span.select_product_note{
401
+ display: block;
402
+ margin-top: 10px;
403
+ }
404
+
405
+ table.product_variation_listing{
406
+ margin-bottom: 12px;
407
+ }
408
+
409
+ table.product_variation_listing th.variation_name{
410
+ color: #71A4C8;
411
+ font-style: italic;
412
+ text-align: left;
413
+ padding-bottom: 1px;
414
+ }
415
+
416
+ table.product_variation_grid{
417
+ margin-top: 12px;
418
+ }
419
+
420
+ table.product_variation_grid th.variation_name{
421
+ color: #71A4C8;
422
+ font-style: italic;
423
+ text-align: left;
424
+ padding-bottom: 1px;
425
+ }
426
+
427
+ div.wpsc_listen_button{
428
+ clear: both;
429
+ display: block;
430
+ height: 26px;
431
+ padding: 0px;
432
+ }
433
+
434
+ /* marketing / coupon page styling */
435
+
436
+ div.modify_coupon{ border: 1px solid #eeeeee; display: none; width: 100%; }
437
+
438
+ table.coupon_data{
439
+ width: 100%;
440
+ }
441
+
442
+ table.add-coupon tr th{ text-align: left; padding: 2px 5px 0px 5px; }
443
+ table.add-coupon tr td{ text-align: left; padding: 2px 5px 2px 5px; }
444
+
445
+
446
+ table.coupon-list{ width: 100%; }
447
+
448
+ table.coupon-list tr.toprow td{ text-align: left; font-weight:bold; }
449
+
450
+ table.coupon-list tr td{ padding: 2px 5px 2px 5px; }
451
+
452
+ table.coupon-list tr.alt{ background-color: #eeeeee; }
453
+
454
+ table.coupon-list tr.alt td{ background-color: #eeeeee; }
455
+
456
+ td#order_summary_container{ width: 80px; }
457
+
458
+ /* written by allen */
459
+ .groupWrapper{
460
+ width: 260px;
461
+ float: left;
462
+ margin-right: 1%;
463
+ min-height: 100px;
464
+ }
465
+
466
+ .serializer{
467
+ clear: both;
468
+ }
469
+
470
+
471
+ table#itemlist tr td.category_item_container {
472
+ padding:0px 0px 0px 0px;
473
+ border-left:1px solid #bbb;
474
+ border-bottom:1px solid #bbb;
475
+ border-right:1px solid #bbb;
476
+ }
477
+
478
+ .groupItem{
479
+ border-top:1px solid #bbb;
480
+ width:385px;
481
+ height:35px;
482
+ clear: both;
483
+ /* margin-left:-6px; */
484
+ padding: 0px 0px 4px 0px;
485
+ }
486
+
487
+ .groupItem .itemHeader{
488
+ width:35px;
489
+ line-height: 15px;
490
+ color: #000;
491
+ padding: 4px;
492
+ cursor: move;
493
+ height: 35px;
494
+ position: relative;
495
+ clear: both;
496
+ }
497
+
498
+ .groupItem .itemHeader a{
499
+ margin: 4px 0px 4px 0px;
500
+ font-weight: normal;
501
+ font-size: 11px;
502
+ text-decoration: none;
503
+ }
504
+ .sortHelper{
505
+ border: 3px dashed #666;
506
+ width: auto;
507
+ }
508
+ .groupWrapper p{
509
+ height: 1px;
510
+ overflow: hidden;
511
+ margin: 0;
512
+ padding: 0;
513
+ }
514
+
515
+ .inputsTooltip{
516
+ border: 1px solid #000;
517
+ background-color: #444;
518
+ padding: 4px;
519
+ color: #ccc;
520
+ font-family: Arial, Helvetica, sans-serif;
521
+ font-size: 11px;
522
+ width: 150px;
523
+ }
524
+ .inputsTooltip #tooltipTitle{
525
+ font-weight: bold;
526
+ }
527
+
528
+ #description{
529
+ width: 300px;
530
+ height: 150px;
531
+ cursor: ns-resize;
532
+ cursor: n-resize;
533
+
534
+ }
535
+
536
+ #description textarea{
537
+ width: 300px;
538
+ height: 150px;
539
+ }
540
+ #resizeS{
541
+ border:0px;
542
+ top:-4px;
543
+ margin-left:1px;
544
+ margin-top:-2px;
545
+ width: 308px;
546
+ height: 6px;
547
+ background-color: #ccc;
548
+ bottom: 0;
549
+ left: 1px;
550
+ background-image:url(i/resizable-s.gif);
551
+ background-repeat:no-repeat;
552
+ background-position: center;
553
+ overflow: hidden;
554
+ }
555
+
556
+ #description1{
557
+ width: 300px;
558
+ height: 150px;
559
+ cursor: ns-resize;
560
+ cursor: n-resize;
561
+
562
+ }
563
+
564
+ #description1 textarea{
565
+ width: 300px;
566
+ height: 150px;
567
+ }
568
+
569
+ #resizeS1{
570
+ border:0px;
571
+ top:-4px;
572
+ margin-left:1px;
573
+ margin-top:-2px;
574
+ width: 308px;
575
+ height: 6px;
576
+ background-color: #ccc;
577
+ bottom: 0;
578
+ left: 1px;
579
+ background-image:url(i/resizable-s.gif);
580
+ background-repeat:no-repeat;
581
+ background-position: center;
582
+ overflow: hidden;
583
+ }
584
+
585
+ .mce_plugin_cforms_img{
586
+ background:url(../images/cformsmce.gif) no-repeat 5px center;
587
+ border:0;
588
+ border-top: 1px dotted #cccccc;
589
+ border-bottom: 1px dotted #cccccc;
590
+ width:100%;
591
+ padding:0.3em 0 0.3em 120px;
592
+ }
593
+ div.panel_wrapper{
594
+ display:block;
595
+ height:22px;
596
+ overflow:visible;
597
+ width:100%;
598
+ padding:0;
599
+ background:white url(../images/cfii.gif) no-repeat right 1px;
600
+ }
601
+ div.panel_wrapper div.current{
602
+ display:block;
603
+ height:22px;
604
+ overflow:visible;
605
+ width:100%;
606
+ padding:15px 0 0 10px;
607
+ }
608
+ div.panel_wrapper div.current table {
609
+ font-size:13px;
610
+ }
611
+ td.cflabel{
612
+ font-size:12px;
613
+
614
+ }
615
+ td.cfinput{
616
+ padding-left:10px;
617
+ }
618
+ td.cfinput select {
619
+ font-size:12px;
620
+ width:210px;
621
+ }
622
+ div.mceActionPanel{
623
+ }
624
+ #cancel,
625
+ #insert{
626
+ width:120px!important;
627
+ }
628
+
629
+ td#order_summary_container div.menu {
630
+ background-color:#EAF2F5;
631
+ border:1px solid #D7E4EC;
632
+ padding-left:15px;
633
+ padding-right:15px;
634
+ padding-top:15px;
635
+ }
636
+
637
+
638
+ div#changenotice {
639
+ background: #e5f3ff;
640
+ display: none;
641
+ padding: 5px;
642
+ margin-left: 0px !important;
643
+ }
644
+
645
+
646
+ div.pli_img{
647
+ cursor:move;
648
+ left:0px;
649
+ width:35px;
650
+ top:0px;
651
+ float:left;
652
+ }
653
+
654
+ td.pli_name{
655
+ width:90px;
656
+ padding-left: 0px !important;
657
+ }
658
+
659
+ div.pli_name{
660
+ left:auto;
661
+ top:5px;
662
+ width:90px;
663
+ display:block;
664
+ float:left;
665
+ margin-left: 8px;
666
+ margin-top:10px;
667
+ }
668
+
669
+ div.pli_price{
670
+ left:auto;
671
+ width:50px;
672
+ display:block;
673
+ top:0px;
674
+ float:left;
675
+ margin-left: 80px;
676
+ margin-top:10px;
677
+ }
678
+
679
+ div#pli_edit{
680
+ left:auto;
681
+ width:auto;
682
+ top:0px;
683
+ float:left;
684
+ }
685
+
686
+ span#settings_button{
687
+ width:180px;
688
+ background-color:#f1f1f1;
689
+ position:absolute;
690
+ border:1px solid black;
691
+ display:none;
692
+ z-index: 100;
693
+ }
694
+
695
+
696
+ ul.settings_button{
697
+ list-style-type:none;
698
+ padding:0px 3px 0 10px;
699
+ margin:5px 0 0 0;
700
+ }
701
+
702
+
703
+ #additem .postbox, #productform .postbox, #titlediv, #additem .postarea, #additem .stuffbox {
704
+ border-color:#EBEBEB rgb(204, 204, 204) rgb(204, 204, 204) rgb(235, 235, 235);
705
+ }
706
+ #additem .postbox, #productform .postbox, #additem .stuffbox {
707
+ border-style:solid;
708
+ border-width:1px;
709
+ margin-bottom:10px;
710
+ margin-left:20px;
711
+ margin-right:8px;
712
+ padding:2px;
713
+ }
714
+
715
+ #additem .togbox,#productform .togbox {
716
+ background-color:#B2B2B2;
717
+ background-image:url(./images/toggle-arrow.gif);
718
+ }
719
+ #additem .togbox, #productform .togbox{
720
+ -moz-border-radius-bottomleft:3px;
721
+ -moz-border-radius-topleft:3px;
722
+ background-position:-10px 16px;
723
+ background-repeat:no-repeat;
724
+ display:block;
725
+ height:39px;
726
+ margin-left:-19px;
727
+ margin-top:-11px;
728
+ overflow:hidden;
729
+ position:absolute;
730
+ text-indent:-9999px;
731
+ width:12px;
732
+ border:none !important;
733
+ }
734
+ #additem h3, #productform h3 {
735
+ color:#333;
736
+ background-color:#EAF3FA;
737
+ }
738
+ #additem h3, #productform h3 {
739
+ font-size:14px;
740
+ font-weight:bold;
741
+ margin:0pt 0pt 0px;
742
+ padding:9px 5px;
743
+ }
744
+
745
+ #additem .closed h3, #productform .closed h3 {
746
+ margin: 0px;
747
+ }
748
+
749
+ #additem .closed .togbox, #productform .closed .togbox {
750
+ background-color:#2583AD;
751
+ background-image:url(images/toggle-arrow.gif);
752
+ background-position:4px 15px;
753
+ }
754
+
755
+ #additem .closed .inside, #productform .closed .inside {
756
+ width:548px;
757
+ display:none;
758
+ }
759
+ #additem .inside, #productform .inside {
760
+ font-size:11px;
761
+ margin:0pt 12px 15px;
762
+ }
763
+
764
+ div.categorisation_title {
765
+ background:#333333;
766
+ padding:10px 5px 8px;
767
+ position: relative;
768
+ top: 0px;
769
+ left: 0px;
770
+ }
771
+
772
+
773
+
774
+ div#add_categorisation, div#edit_categorisation{
775
+ display: none;
776
+ border: 1px solid #BBBBBB;
777
+ padding: 4px;
778
+ margin-top: 6px;
779
+ }
780
+
781
+ div#add_categorisation br, div#edit_categorisation br{
782
+ clear: both;
783
+ }
784
+
785
+
786
+ div#add_categorisation fieldset, div#edit_categorisation fieldset{
787
+ width: 230px;
788
+ float: left;
789
+ border: none;
790
+ }
791
+
792
+ div#add_categorisation fieldset label, div#edit_categorisation fieldset label{
793
+ display: block;
794
+ }
795
+
796
+ ul.categorisation_links{
797
+ list-style-type: none;
798
+ clear: both;
799
+ padding: 0px;
800
+ }
801
+
802
+ ul.categorisation_links li{
803
+ display: block;
804
+ float: left;
805
+ list-style-type: none;
806
+ margin: 0px;
807
+ font-size: 14px;
808
+ padding: 4px;
809
+ }
810
+
811
+ ul.categorisation_links li.selected a{
812
+ color: #D54E21;
813
+ }
814
+
815
+
816
+ a.add_category_link{
817
+ float: right;
818
+ }
819
+
820
+
821
+ div.product_custom_meta {
822
+ display: block;
823
+ width: 100%;
824
+ }
825
+
826
+ div.product_custom_meta a.add_more_meta {
827
+ display: block;
828
+ float: left;
829
+ margin-top: 18px;
830
+ margin-left: 4px;
831
+ }
832
+
833
+ div.product_custom_meta a.remove_meta {
834
+ display: block;
835
+ float: left;
836
+ margin-top: 18px;
837
+ margin-left: 4px;
838
+ }
839
+
840
+
841
+ div.product_custom_meta label {
842
+ display: block;
843
+ width: 170px;
844
+ float: left;
845
+ }
846
+
847
+ div.product_custom_meta label input {
848
+ font-size:13px;
849
+ width: 160px !important;
850
+ margin:1px !important;
851
+ padding:3px !important;
852
+ display: block;
853
+ }
854
+
855
+ div.product_custom_meta br {
856
+ clear: both;
857
+ }
858
+
859
+ table.product_editform {
860
+ width: 100%;
861
+ border-left:1px solid #bbb;
862
+ border-right:1px solid #bbb;
863
+ }
864
+
865
+ table.category_forms {
866
+ width: 100%;
867
+ border-left:1px solid #bbb;
868
+ border-right:1px solid #bbb;
869
+ border-bottom:1px solid #bbb;
870
+ }
871
+
872
+ div#wpsc_shipwire_setting {
873
+ display: none;
874
+ }
875
+
876
+ #wpsc_options {
877
+ border-color:#EBEBEB rgb(204, 204, 204) rgb(204, 204, 204) rgb(235, 235, 235);
878
+ border-style:solid;
879
+ border-width:1px;
880
+ margin:0pt 15% 0pt 15px;
881
+ padding:2px;
882
+ }
wp-shopping-cart/admin.js ADDED
@@ -0,0 +1,702 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ var someresults=function() {
2
+ document.getElementById('changenotice').innerHTML = "Thank you, your change has been saved";
3
+ }
4
+
5
+ var noresults=function() {
6
+ // see nothing, know nothing, do nothing
7
+ }
8
+
9
+ if(typeof(select_min_height) == undefined)
10
+ {
11
+ var select_min_height = 0;
12
+ var select_max_height = 200;
13
+ }
14
+
15
+ jQuery(document).ready(
16
+ function() {
17
+ jQuery('div.select_product_file').Resizable({
18
+ minWidth: 300,
19
+ minHeight: select_min_height,
20
+ maxWidth: 300,
21
+ maxHeight: select_max_height,
22
+ handlers: {
23
+ s: '.select_product_handle'
24
+ }
25
+ });
26
+ }
27
+ );
28
+
29
+ function activate_resizable() {
30
+ jQuery('div.edit_select_product_file').Resizable({
31
+ minWidth: 300,
32
+ minHeight: select_min_height,
33
+ maxWidth: 300,
34
+ maxHeight: select_max_height,
35
+ handlers: {
36
+ s: '.edit_select_product_handle'
37
+ }
38
+ });
39
+ }
40
+
41
+ jQuery(document).ready(function(){
42
+ jQuery(function() {
43
+ // set us up some mighty fine tabs for the options page
44
+ jQuery('#wpsc_options > ul').tabs();
45
+
46
+ // this here code handles remembering what tab you were on
47
+ jQuery('#wpsc_options > ul').bind('tabsselect', function(event, ui) {
48
+ form_action = jQuery('#cart_options').attr('action').split('#'); //split at the #
49
+ form_action = form_action[0]+"#"+ui.panel.id; // get the first item, add the hash then our current tab ID
50
+ jQuery('#cart_options').attr('action', form_action); // stick it all back in the action attribute
51
+ });
52
+ });
53
+ });
54
+
55
+
56
+ function categorylist(url) {
57
+ self.location = url;
58
+ }
59
+
60
+ function submit_change_country() {
61
+ document.cart_options.submit();
62
+ //document.cart_options.submit();
63
+ }
64
+
65
+ var getresults=function(results) {
66
+ document.getElementById('formcontent').innerHTML = results;
67
+ document.getElementById('additem').style.display = 'none';
68
+ document.getElementById('productform').style.display = 'block';
69
+ jQuery("#loadingindicator_span").css('visibility','hidden');
70
+ jQuery('#formcontent .postbox h3').click( function() {
71
+ jQuery(jQuery(this).parent('div.postbox')).toggleClass('closed');
72
+ if(jQuery(jQuery(this).parent('div.postbox')).hasClass('closed')) {
73
+ jQuery('a.togbox',this).html('+');
74
+ } else {
75
+ jQuery('a.togbox',this).html('&ndash;');
76
+ }
77
+ });
78
+ activate_resizable();
79
+ TB_init();
80
+ }
81
+
82
+ function filleditform(prodid)
83
+ {
84
+ ajax.post("index.php",getresults,"ajax=true&admin=true&prodid="+prodid);
85
+ jQuery('#loadingimage').attr('src', WPSC_URL+'/images/indicator.gif');
86
+ jQuery('#loadingindicator_span').css('visibility','visible');
87
+ }
88
+
89
+ function fillvariationform(variation_id)
90
+ {
91
+ ajax.post("index.php",getresults,"ajax=true&admin=true&variation_id="+variation_id);
92
+ jQuery('#loadingimage').attr('src', WPSC_URL+'/images/indicator.gif');
93
+ jQuery('#loadingindicator_span').css('visibility','visible');
94
+ }
95
+
96
+ function showaddform() {
97
+ document.getElementById('productform').style.display = 'none';
98
+ document.getElementById('additem').style.display = 'block';
99
+ return false;
100
+ }
101
+
102
+ function showadd_categorisation_form(){
103
+ if(jQuery('div#add_categorisation').css('display') != 'block') {
104
+ jQuery('div#add_categorisation').css('display', 'block');
105
+ jQuery('div#edit_categorisation').css('display', 'none');
106
+ } else {
107
+ jQuery('div#add_categorisation').css('display', 'none');
108
+ }
109
+ return false;
110
+ }
111
+
112
+
113
+ function showedit_categorisation_form(){
114
+ if(jQuery('div#edit_categorisation').css('display') != 'block') {
115
+ jQuery('div#edit_categorisation').css('display', 'block');
116
+ jQuery('div#add_categorisation').css('display', 'none');
117
+ } else {
118
+ jQuery('div#edit_categorisation').css('display', 'none');
119
+ }
120
+ return false;
121
+ }
122
+
123
+ function fillcategoryform(catid) {
124
+ ajax.post("index.php",getresults,"ajax=true&admin=true&catid="+catid);
125
+ }
126
+
127
+ function fillbrandform(catid) {
128
+ ajax.post("index.php",getresults,"ajax=true&admin=true&brandid="+catid);
129
+ }
130
+
131
+ var gercurrency=function(results)
132
+ {
133
+ document.getElementById('cslchar1').innerHTML = results;
134
+ document.getElementById('cslchar2').innerHTML = results;
135
+ document.getElementById('cslchar3').innerHTML = results;
136
+ document.getElementById('cslchar4').innerHTML = results;
137
+ }
138
+
139
+ function getcurrency(id) {
140
+ ajax.post("index.php",gercurrency,"ajax=true&currencyid="+id);
141
+ }
142
+
143
+ function country_list(id) {
144
+ var country_list=function(results) {
145
+ document.getElementById('options_region').innerHTML = results;
146
+ }
147
+ ajax.post("index.php",country_list,"ajax=true&get_country_tax=true&country_id="+id);
148
+ }
149
+
150
+ function hideelement(id) {
151
+ state = document.getElementById(id).style.display;
152
+ //alert(document.getElementById(id).style.display);
153
+ if(state != 'block') {
154
+ document.getElementById(id).style.display = 'block';
155
+ } else {
156
+ document.getElementById(id).style.display = 'none';
157
+ }
158
+ }
159
+
160
+ function update_preview_url(prodid) {
161
+ image_height = document.getElementById("image_height").value;
162
+ image_width = document.getElementById("image_width").value;
163
+ if(((image_height > 0) && (image_height <= 1024)) && ((image_width > 0) && (image_width <= 1024))) {
164
+ new_url = "index.php?productid="+prodid+"&height="+image_height+"&width="+image_width+"";
165
+ document.getElementById("preview_link").setAttribute('href',new_url);
166
+ } else {
167
+ new_url = "index.php?productid="+prodid+"";
168
+ document.getElementById("preview_link").setAttribute('href',new_url);
169
+ }
170
+ return false;
171
+ }
172
+
173
+
174
+
175
+
176
+ function checkimageresize() {
177
+ document.getElementById('image_resize2').checked = true;
178
+ }
179
+
180
+
181
+
182
+ function add_variation_value(value_type)
183
+ {
184
+ container_id = value_type+"_variation_values";
185
+ //alert(container_id);
186
+ last_element_id = document.getElementById(container_id).lastChild.id;
187
+ last_element_id = last_element_id.split("_");
188
+ last_element_id = last_element_id.reverse();
189
+ new_element_id = "variation_value_"+(parseInt(last_element_id[0])+1);
190
+
191
+
192
+ old_elements = document.getElementById(container_id).innerHTML;
193
+
194
+ //new_element_contents = "<span id='"+new_element_id+"'>";
195
+ new_element_contents = "";
196
+ if(value_type == "edit")
197
+ {
198
+ new_element_contents += "<input type='text' name='new_variation_values[]' value='' />";
199
+ }
200
+ else
201
+ {
202
+ new_element_contents += "<input type='text' name='variation_values[]' value='' />";
203
+ }
204
+ new_element_contents += " <a class='image_link' href='#' onclick='remove_variation_value_field(\""+new_element_id+"\")'><img src='"+WPSC_URL+"/images/trash.gif' alt='"+TXT_WPSC_DELETE+"' title='"+TXT_WPSC_DELETE+"' /></a><br />";
205
+ //new_element_contents += "</span>";
206
+
207
+ new_element = document.createElement('span');
208
+ new_element.id = new_element_id;
209
+
210
+ document.getElementById(container_id).appendChild(new_element);
211
+ document.getElementById(new_element_id).innerHTML = new_element_contents;
212
+ return false;
213
+ }
214
+
215
+
216
+ // if(($_POST['ajax'] == "true") && ($_POST['remove_variation_value'] == "true") && is_numeric($_POST['variation_value_id']))
217
+ function remove_variation_value(id,variation_value)
218
+ {
219
+ var delete_variation_value=function(results)
220
+ {
221
+ }
222
+ element_count = document.getElementById("add_variation_values").childNodes.length;
223
+ if(element_count > 1)
224
+ {
225
+ ajax.post("index.php",delete_variation_value,"ajax=true&remove_variation_value=true&variation_value_id="+variation_value);
226
+ target_element = document.getElementById(id);
227
+ document.getElementById("add_variation_values").removeChild(target_element);
228
+ }
229
+ }
230
+
231
+ function remove_variation_value_field(id)
232
+ {
233
+ element_count = document.getElementById("add_variation_values").childNodes.length;
234
+ if(element_count > 1)
235
+ {
236
+ target_element = document.getElementById(id);
237
+ document.getElementById("add_variation_values").removeChild(target_element);
238
+ }
239
+ }
240
+
241
+ function variation_value_list(id) {
242
+ var display_list=function(results) {
243
+ eval(results);
244
+ if(variation_value_html != '') {
245
+ new_element_id = "product_variations_"+variation_value_id;
246
+ if(document.getElementById(new_element_id) === null) {
247
+ new_element = document.createElement('span');
248
+ new_element.id = new_element_id;
249
+ document.getElementById("edit_product_variations").appendChild(new_element);
250
+ document.getElementById(new_element_id).innerHTML = variation_value_html;
251
+ }
252
+ }
253
+ prodid=document.getElementById("prodid").value;
254
+ var id_string = '';
255
+ jQuery("#"+new_element_id+" input[@type='checkbox']").each(function() {id_string+="&"+this.name+"="+this.value; });
256
+ jQuery("#"+new_element_id+" input[@type='hidden']").each(function() {id_string+="&"+this.name+"="+this.value; });
257
+ //alert(id_string);
258
+ //ajax.post("index.php",display_list_ajaxx,"ajax=true&list_variation_values_ajaxx=true&pid="+prodid+id_string);
259
+ }
260
+ ajax.post("index.php",display_list,"ajax=true&list_variation_values=true&variation_id="+id+"&prefix=edit_product_variations");
261
+ }
262
+
263
+
264
+
265
+ function edit_variation_value_list(id) {
266
+ // haah, the javascript end does essentially nothing of interest, just sends a request, and dumps the output in a div tag
267
+ var display_variation_forms=function(results) {
268
+ if(results !== "false") { // do nothing if just the word false is returned
269
+ //alert(jQuery("div#edit_variations_container").html(results));
270
+
271
+ //alert(jQuery("div#edit_variations_container"));
272
+ jQuery("div#edit_variations_container").html(results);
273
+ }
274
+ }
275
+ product_id= jQuery("#prodid").val();
276
+ ajax.post("index.php",display_variation_forms,"ajax=true&edit_variation_value_list=true&variation_id="+id+"&product_id="+product_id);
277
+ }
278
+
279
+
280
+
281
+ var display_list_ajaxx=function(results) {
282
+ jQuery("div#edit_variations_container").html(results);
283
+ //alert(results);
284
+ }
285
+
286
+ function add_variation_value_list(id)
287
+ {
288
+ var display_list=function(results) {
289
+ eval(results);
290
+ if(variation_value_html != '') {
291
+ new_element_id = "add_product_variations_"+variation_value_id;
292
+ if(document.getElementById(new_element_id) === null) {
293
+ new_element = document.createElement('span');
294
+ new_element.id = new_element_id;
295
+ document.getElementById("add_product_variations").appendChild(new_element);
296
+ document.getElementById(new_element_id).innerHTML = variation_value_html;
297
+ }
298
+ jQuery("#add_product_variation_details").html(variation_subvalue_html);
299
+ }
300
+ jQuery("#edit_product_variations input[@type='checkbox']").each(function() {
301
+ // alert(this.id);
302
+ });
303
+ //ajax.post("index.php",display_list_ajaxx,"ajax=true&list_variation_values_ajaxx=true");
304
+ }
305
+ current_variations = jQuery("input.variation_ids").serialize();
306
+ ajax.post("index.php",display_list,"ajax=true&list_variation_values=true&new_variation_id="+id+"&prefix=add_product_variations&"+current_variations+"");
307
+ }
308
+
309
+ function remove_variation_value_list(prefix,id){
310
+ var redisplay_list=function(results) {
311
+ jQuery("#add_product_variation_details").html(results);
312
+ }
313
+ if(prefix == "edit_product_variations") {
314
+ target_element_id = "product_variations_"+id;
315
+ } else {
316
+ target_element_id = prefix+"_"+id;
317
+ }
318
+ target_element = document.getElementById(target_element_id);
319
+ document.getElementById(prefix).removeChild(target_element);
320
+ if(prefix == "add_product_variations") {
321
+ current_variations = jQuery("input.variation_ids").serialize();
322
+ ajax.post("index.php",redisplay_list,"ajax=true&redisplay_variation_values=true&"+current_variations+"");
323
+ }
324
+ return false;
325
+ }
326
+
327
+ function tick_active(target_id,input_value)
328
+ {
329
+ if(input_value != '')
330
+ {
331
+ document.getElementById(target_id).checked = true;
332
+ }
333
+ }
334
+
335
+ function add_form_field()
336
+ {
337
+ time = new Date();
338
+ new_element_number = time.getTime();
339
+ new_element_id = "form_id_"+new_element_number;
340
+
341
+ new_element_contents = "";
342
+ new_element_contents += " <table><tr>\n\r";
343
+ new_element_contents += "<td class='namecol'><input type='text' name='new_form_name["+new_element_number+"]' value='' /></td>\n\r";
344
+ new_element_contents += "<td class='typecol'><select name='new_form_type["+new_element_number+"]'>"+HTML_FORM_FIELD_TYPES+"</select></td>\n\r";
345
+ new_element_contents += "<td class='mandatorycol' style='text-align: center;'><input type='checkbox' name='new_form_mandatory["+new_element_number+"]' value='1' /></td>\n\r";
346
+ new_element_contents += "<td class='logdisplaycol' style='text-align: center;'><input type='checkbox' name='new_form_display_log["+new_element_number+"]' value='1' /></td>\n\r";
347
+ new_element_contents += "<td class='ordercol'><input type='text' size='3' name='new_form_order["+new_element_number+"]' value='' /></td>\n\r";
348
+ new_element_contents += "<td style='text-align: center; width: 12px;'><a class='image_link' href='#' onclick='return remove_new_form_field(\""+new_element_id+"\");'><img src='"+WPSC_URL+"/images/trash.gif' alt='"+TXT_WPSC_DELETE+"' title='"+TXT_WPSC_DELETE+"' /></a></td>\n\r";
349
+ new_element_contents += "<td></td>\n\r";
350
+ new_element_contents += "</tr></table>";
351
+
352
+ new_element = document.createElement('div');
353
+ new_element.id = new_element_id;
354
+
355
+ document.getElementById("form_field_form_container").appendChild(new_element);
356
+ document.getElementById(new_element_id).innerHTML = new_element_contents;
357
+ return false;
358
+ }
359
+
360
+ function remove_new_form_field(id)
361
+ {
362
+ element_count = document.getElementById("form_field_form_container").childNodes.length;
363
+ if(element_count > 1)
364
+ {
365
+ target_element = document.getElementById(id);
366
+ document.getElementById("form_field_form_container").removeChild(target_element);
367
+ }
368
+ return false;
369
+ }
370
+
371
+ function remove_form_field(id,form_id)
372
+ {
373
+ var delete_variation_value=function(results)
374
+ {
375
+ }
376
+ element_count = document.getElementById("form_field_form_container").childNodes.length;
377
+ if(element_count > 1)
378
+ {
379
+ ajax.post("index.php",delete_variation_value,"ajax=true&remove_form_field=true&form_id="+form_id);
380
+ target_element = document.getElementById(id);
381
+ document.getElementById("form_field_form_container").removeChild(target_element);
382
+ }
383
+ return false;
384
+ }
385
+
386
+ function show_status_box(id,image_id)
387
+ {
388
+ state = document.getElementById(id).style.display;
389
+ if(state != 'block')
390
+ {
391
+ document.getElementById(id).style.display = 'block';
392
+ document.getElementById(image_id).src = WPSC_URL+'/images/icon_window_collapse.gif';
393
+ }
394
+ else
395
+ {
396
+ document.getElementById(id).style.display = 'none';
397
+ document.getElementById(image_id).src = WPSC_URL+'/images/icon_window_expand.gif';
398
+ }
399
+ return false;
400
+ }
401
+
402
+ function submit_status_form(id)
403
+ {
404
+ document.getElementById(id).submit();
405
+ }
406
+
407
+ // pe.{
408
+ var prevElement = null;
409
+ var prevOption = null;
410
+
411
+ function hideOptionElement(id, option) {
412
+ if (prevOption == option) {
413
+ return;
414
+ }
415
+ if (prevElement != null) {
416
+ prevElement.style.display = "none";
417
+ }
418
+
419
+ if (id == null) {
420
+ prevElement = null;
421
+ } else {
422
+ prevElement = document.getElementById(id);
423
+ jQuery('#'+id).css( 'display','block');
424
+ }
425
+ prevOption = option;
426
+ }
427
+
428
+
429
+ // }.pe
430
+
431
+ function toggle_display_options(state)
432
+ {
433
+ switch(state)
434
+ {
435
+ case 'list':
436
+ document.getElementById('grid_view_options').style.display = 'none';
437
+ document.getElementById('list_view_options').style.display = 'block';
438
+ break;
439
+
440
+ case 'grid':
441
+ document.getElementById('list_view_options').style.display = 'none';
442
+ document.getElementById('grid_view_options').style.display = 'block';
443
+ break;
444
+
445
+ default:
446
+ document.getElementById('list_view_options').style.display = 'none';
447
+ document.getElementById('grid_view_options').style.display = 'none';
448
+ break;
449
+ }
450
+ }
451
+
452
+ function log_submitform(id)
453
+ {
454
+ value1 = document.getElementById(id);
455
+ if (ajax.serialize(value1).search(/value=3/)!=-1) {
456
+ document.getElementById("track_id").style.display="block";
457
+ } else {
458
+ document.getElementById("track_id").style.display="none";
459
+ }
460
+ var get_log_results=function(results)
461
+ {
462
+ eval(results);
463
+ }
464
+ frm = document.getElementById(id);
465
+ ajax.post("index.php?ajax=true&log_state=true",get_log_results,ajax.serialize(frm));
466
+ return false;
467
+ }
468
+
469
+ function save_tracking_id(id)
470
+ {
471
+ value1 = document.getElementById('tracking_id_'+id).value;
472
+ value1 ="id="+id +"&value="+value1;
473
+ ajax.post("index.php?ajax=true&save_tracking_id=true",noresults,value1);
474
+ return false;
475
+ }
476
+
477
+
478
+ /* the following is written by Allen */
479
+ jQuery(document).ready(
480
+ function()
481
+ {
482
+ jQuery('#description').Resizable(
483
+ {
484
+ minWidth: 50,
485
+ minHeight: 50,
486
+ maxWidth: 400,
487
+ maxHeight: 400,
488
+ handlers: {
489
+ s: '#resizeS'
490
+ },
491
+ onResize: function(size)
492
+ {
493
+ jQuery('textarea', this).css('height', size.height - 6 + 'px');
494
+ }
495
+ }
496
+ );
497
+ }
498
+ );
499
+
500
+ jQuery(document).ready(
501
+ function()
502
+ {
503
+ jQuery('#description1').Resizable(
504
+ {
505
+ minWidth: 50,
506
+ minHeight: 50,
507
+ maxWidth: 400,
508
+ maxHeight: 400,
509
+ handlers: {
510
+ s: '#resizeS1'
511
+ },
512
+ onResize: function(size)
513
+ {
514
+ jQuery('textarea', this).css('height', size.height - 6 + 'px');
515
+ }
516
+ }
517
+ );
518
+ }
519
+ );
520
+
521
+ var select_min_height = 75;
522
+ var select_max_height = 50;
523
+
524
+ //ToolTip JavaScript
525
+ jQuery('img').Tooltip(
526
+ {
527
+ className: 'inputsTooltip',
528
+ position: 'mouse',
529
+ delay: 200
530
+ }
531
+ );
532
+
533
+ jQuery(window).load( function () {
534
+
535
+ jQuery('.additem .postbox h3').click( function() {
536
+ jQuery(jQuery(this).parent('div.postbox')).toggleClass('closed');
537
+ if(jQuery(jQuery(this).parent('div.postbox')).hasClass('closed')) {
538
+ jQuery('a.togbox',this).html('+');
539
+ } else {
540
+ jQuery('a.togbox',this).html('&ndash;');
541
+ }
542
+ });
543
+
544
+ jQuery('a.closeEl').bind('click', toggleContent);
545
+ jQuery('div.groupWrapper').Sortable( {
546
+ accept: 'groupItem',
547
+ helperclass: 'sortHelper',
548
+ activeclass : 'sortableactive',
549
+ hoverclass : 'sortablehover',
550
+ handle: 'div.itemHeader',
551
+ tolerance: 'pointer',
552
+ onChange : function(ser) {
553
+ serialize();
554
+ },
555
+ onStart : function() {
556
+ jQuery.iAutoscroller.start(this, document.getElementsByTagName('body'));
557
+ },
558
+ onStop : function() {
559
+ jQuery.iAutoscroller.stop();
560
+ }
561
+ }
562
+ );
563
+
564
+ jQuery('a#close_news_box').click( function () {
565
+ jQuery('div.wpsc_news').css( 'display', 'none' );
566
+ ajax.post("index.php", noresults, "ajax=true&admin=true&hide_ecom_dashboard=true");
567
+ return false;
568
+ });
569
+ });
570
+ var toggleContent = function(e)
571
+ {
572
+ var targetContent = $('div.itemContent', this.parentNode.parentNode);
573
+ if (targetContent.css('display') == 'none') {
574
+ targetContent.slideDown(300);
575
+ $(this).html('[-]');
576
+ } else {
577
+ targetContent.slideUp(300);
578
+ $(this).html('[+]');
579
+ }
580
+ return false;
581
+ };
582
+
583
+
584
+ function serialize(s) {
585
+ var serialize_results=function() {
586
+ jQuery("div#changenotice").css("display","block").html('Product Order Saved');
587
+ jQuery('#loadingindicator_span').css('visibility','hidden');
588
+ }
589
+ serial = jQuery.SortSerialize(s);
590
+ category_id = jQuery("input#item_list_category_id").val();
591
+ ajax.post("index.php", serialize_results, "ajax=true&changeorder=true&category_id="+category_id+"&"+serial.hash);
592
+ jQuery("#loadingimage").attr('src', WPSC_URL+'/images/indicator.gif');
593
+ jQuery('#loadingindicator_span').css('visibility','visible');
594
+ };
595
+
596
+
597
+ function hideelement1(id, item_value)
598
+ {
599
+ //alert(value);
600
+ if(item_value == 5) {
601
+ jQuery(document.getElementById(id)).css('display', 'block');
602
+ } else {
603
+ jQuery(document.getElementById(id)).css('display', 'none');
604
+ }
605
+ }
606
+
607
+
608
+ function suspendsubs(user_id)
609
+ {
610
+ var comm =jQuery("#suspend_subs"+user_id).attr("checked");
611
+ //alert(comm);
612
+ if (comm == true){
613
+ ajax.post("index.php",noresults,"ajax=true&log_state=true&suspend=true&value=1&id="+user_id);
614
+ } else {
615
+ ajax.post("index.php",noresults,"ajax=true&log_state=true&suspend=true&value=2&id="+user_id);
616
+ }
617
+ return false;
618
+ }
619
+
620
+ function delete_extra_preview(preview_name, prodid) {
621
+ var preview_name_results=function(results) {
622
+ filleditform(prodid);
623
+ }
624
+ ajax.post("index.php",preview_name_results,"ajax=true&admin=true&prodid="+prodid+"&preview_name="+preview_name);
625
+ }
626
+
627
+ function shipwire_sync() {
628
+ ajax.post("index.php",noresults,"ajax=true&shipwire_sync=ture");
629
+ }
630
+
631
+ function shipwire_tracking() {
632
+ ajax.post("index.php",noresults,"ajax=true&shipwire_tracking=ture");
633
+ }
634
+
635
+ function display_settings_button() {
636
+ jQuery("#settings_button").slideToggle(200);
637
+ //document.getElementById("settings_button").style.display='block';
638
+ }
639
+
640
+ function submittogoogle(id){
641
+ value1=document.getElementById("google_command_list_"+id).value;
642
+ value2=document.getElementById("partial_amount_"+id).value;
643
+ reason=document.getElementById("cancel_reason_"+id).value;
644
+ comment=document.getElementById("cancel_comment_"+id).value;
645
+ message=document.getElementById("message_to_buyer_message_"+id).value;
646
+ document.getElementById("google_command_indicator").style.display='inline';
647
+ ajax.post("index.php",submittogoogleresults,"ajax=true&submittogoogle=true&message="+message+"&value="+value1+"&amount="+value2+"&comment="+comment+"&reason="+reason+"&id="+id);
648
+ return true;
649
+ }
650
+
651
+ var submittogoogleresults=function (results) {
652
+ window.location.reload(true);
653
+ }
654
+
655
+ function display_partial_box(id){
656
+ value1=document.getElementById("google_command_list_"+id).value;
657
+ if ((value1=='Refund') || (value1=='Charge')){
658
+ document.getElementById("google_partial_radio_"+id).style.display='inline';
659
+ if (value1=='Refund'){
660
+ document.getElementById("google_cancel_"+id).style.display='block';
661
+ document.getElementById("cancel_reason_"+id).style.display='inline';
662
+ document.getElementById("cancel_div_comment_"+id).style.display='none';
663
+ }
664
+ }else if ((value1=='Cancel')||(value1=='Refund')) {
665
+ document.getElementById("google_cancel_"+id).style.display='block';
666
+ document.getElementById("cancel_reason_"+id).style.display='inline';
667
+ }else if (value1=='Send Message') {
668
+ document.getElementById("message_to_buyer_"+id).style.display='block';
669
+ } else {
670
+ document.getElementById("cancel_div_comment_"+id).style.display='none';
671
+ document.getElementById("google_cancel_"+id).style.display='none';
672
+ document.getElementById("cancel_reason_"+id).style.display='none';
673
+ document.getElementById("message_to_buyer_"+id).style.display='none';
674
+ document.getElementById("google_partial_radio_"+id).style.display='none';
675
+ document.getElementById("partial_amount_"+id).style.display='none';
676
+ }
677
+ }
678
+
679
+ function add_more_meta(e) {
680
+ current_meta_forms = jQuery(e).parent("div.product_custom_meta"); // grab the form container
681
+ new_meta_forms = current_meta_forms.clone(true); // clone the form container
682
+ jQuery("label input", new_meta_forms).val(''); // reset all contained forms to empty
683
+ current_meta_forms.after(new_meta_forms); // append it after the container of the clicked element
684
+ return false;
685
+ }
686
+
687
+ function remove_meta(e, meta_id) {
688
+ current_meta_form = jQuery(e).parent("div.product_custom_meta"); // grab the form container
689
+ //meta_name = jQuery("input#custom_meta_name_"+meta_id, current_meta_form).val();
690
+ //meta_value = jQuery("input#custom_meta_value_"+meta_id, current_meta_form).val();
691
+ returned_value = jQuery.ajax({
692
+ type: "POST",
693
+ url: "admin.php?ajax=true",
694
+ data: "admin=true&remove_meta=true&meta_id="+meta_id+"",
695
+ success: function(results) {
696
+ if(results > 0) {
697
+ jQuery("div#custom_meta_"+meta_id).remove();
698
+ }
699
+ }
700
+ });
701
+ return false;
702
+ }
wp-shopping-cart/admin_menu_widget.php ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function widget_admin_menu($args)
3
+ {
4
+ global $wpdb, $table_prefix;
5
+ extract($args);
6
+ //$options = get_option('widget_wp_shopping_cart');
7
+ $title = empty($options['title']) ? __(TXT_WPSC_ADMINMENU) : $options['title'];
8
+ echo $before_widget;
9
+ $full_title = $before_title . $title . $after_title;
10
+ echo $full_title;
11
+ admin_menu();
12
+ echo $after_widget;
13
+ }
14
+
15
+ function widget_admin_menu_control() { return null; }
16
+
17
+ function widget_admin_menu_init() {
18
+ if(function_exists('register_sidebar_widget')) {
19
+ register_sidebar_widget(TXT_WPSC_ADMINMENU, 'widget_admin_menu');
20
+ #register_widget_control('Admin Menu', 'widget_admin_menu', 300, 90);
21
+ }
22
+ return;
23
+ }
24
+ add_action('plugins_loaded', 'widget_admin_menu_init');
25
+
26
+ function admin_menu() {
27
+ $siteurl = get_option('siteurl');
28
+ echo "<ul id='set1'>";
29
+ echo "<li><a title='People come here to write new pages' href='".$siteurl."/wp-admin/page-new.php'>Add Pages</a></li>";
30
+ echo "<li><a title='People come here to add products' href='".$siteurl."/wp-admin/admin.php?page=wp-shopping-cart/display-items.php'>Add Products</a></li>";
31
+ echo "<li><a title='People come here to change themes and widgets settings' href='".$siteurl."/wp-admin/themes.php'>Presentation</a></li>";
32
+ echo "</ul>";
33
+ }
34
+
35
+
36
+ ?>
wp-shopping-cart/ajax.js ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Copyright (c) 2005 Timothy R. Morgan
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in
11
+ // all copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18
+ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19
+ // IN THE SOFTWARE.
20
+ // mini/ajax.js - http://timmorgan.org/mini
21
+
22
+ function ajax_item(e){if(typeof e=='string')e=document.getElementById(e);return e};
23
+ function collect(a,f){var n=[];for(var i=0;i<a.length;i++){var v=f(a[i]);if(v!=null)n.push(v)}return n};
24
+
25
+ ajax={};
26
+ ajax.x=function(){try{return new ActiveXObject('Msxml2.XMLHTTP')}catch(e){try{return new ActiveXObject('Microsoft.XMLHTTP')}catch(e){return new XMLHttpRequest()}}};
27
+ ajax.serialize=function(f)
28
+ {
29
+ var g=function(n)
30
+ {
31
+ return f.getElementsByTagName(n)
32
+ };
33
+ var nv=function(e)
34
+ {
35
+ if(e.name)
36
+ {
37
+ return encodeURIComponent(e.name)+'='+encodeURIComponent(e.value);
38
+ } else {return '';}
39
+ };
40
+ var i=collect(g('input'),function(i){if((i.type!='radio'&&i.type!='checkbox')||i.checked)return nv(i)});var s=collect(g('select'),nv);var t=collect(g('textarea'),nv);return i.concat(s).concat(t).join('&');
41
+ };
42
+
43
+ ajax.send=function(u,f,m,a){var x=ajax.x();x.open(m,u,true);x.onreadystatechange=function(){if(x.readyState==4)f(x.responseText)};if(m=='POST')x.setRequestHeader('Content-type','application/x-www-form-urlencoded');x.send(a)};
44
+ ajax.get=function(url,func){ajax.send(url,func,'GET')};
45
+ ajax.gets=function(url){var x=ajax.x();x.open('GET',url,false);x.send(null);return x.responseText};
46
+ ajax.post=function(url,func,args){ajax.send(url,func,'POST',args)};
47
+ ajax.update=function(url,elm){var e=ajax_item(elm);var f=function(r){e.innerHTML=r};ajax.get(url,f)};
48
+ ajax.submit=function(url,elm,frm){var e=ajax_item(elm);var f=function(r){e.innerHTML=r};ajax.post(url,f,ajax.serialize(frm))};
wp-shopping-cart/category_widget.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function widget_checkout($args)
3
+ {
4
+ global $wpdb, $table_prefix;
5
+ extract($args);
6
+ //$options = get_option('widget_wp_shopping_cart');
7
+ $title = empty($options['title']) ? __(TXT_WPSC_CATSANDBRAND) : $options['title'];
8
+ echo $before_widget;
9
+ $full_title = $before_title . $title . $after_title;
10
+ echo $full_title;
11
+ show_cats_brands('sidebar');
12
+ echo $after_widget;
13
+ }
14
+
15
+ function widget_checkout_control() { return null; }
16
+
17
+ function widget_checkout_init()
18
+ {
19
+ if(function_exists('register_sidebar_widget'))
20
+ {
21
+ register_sidebar_widget('Brands and Categories', 'widget_checkout');
22
+ #register_widget_control('Brands and Categories', 'widget_checkout_control', 300, 90);
23
+ }
24
+ return;
25
+ }
26
+ add_action('plugins_loaded', 'widget_checkout_init');
27
+ ?>
wp-shopping-cart/checkout.php ADDED
@@ -0,0 +1,337 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ global $wpdb,$gateway_checkout_form_fields, $user_ID;
3
+ $_SESSION['cart_paid'] = false;
4
+
5
+
6
+ if($wpdb->get_var("SHOW TABLES LIKE '".$wpdb->prefix."usermeta'")) {
7
+ if(is_numeric($user_ID) && ($user_ID > 0)) {
8
+ $saved_data_sql = "SELECT * FROM `".$wpdb->prefix."usermeta` WHERE `user_id` = '".$user_ID."' AND `meta_key` = 'wpshpcrt_usr_profile';";
9
+ $saved_data = $wpdb->get_row($saved_data_sql,ARRAY_A);
10
+ $meta_data = unserialize($saved_data['meta_value']);
11
+ }
12
+ }
13
+
14
+ if(!isset($_SESSION['collected_data']) || ($_SESSION['collected_data'] == null))
15
+ {
16
+ $_SESSION['collected_data'] = $meta_data;
17
+ }
18
+ else
19
+ {
20
+ foreach($_SESSION['collected_data'] as $form_key => $session_form_data)
21
+ {
22
+ if($session_form_data == null)
23
+ {
24
+ $_SESSION['collected_data'][$form_key] = $meta_data[$form_key];
25
+ }
26
+ }
27
+ }
28
+
29
+ $checkout = $_SESSION['checkoutdata'];
30
+ if(get_option('permalink_structure') != '')
31
+ {
32
+ $seperator ="?";
33
+ }
34
+ else
35
+ {
36
+ $seperator ="&amp;";
37
+ }
38
+ $currenturl = get_option('checkout_url') . $seperator .'total='.$_GET['total'];
39
+ if(get_option('permalink_structure') == '')
40
+ {
41
+ $currenturl = str_replace(trailingslashit(get_option('siteurl')).'?',trailingslashit(get_option('siteurl')) . 'index.php?', $currenturl);
42
+ }
43
+ if(!isset($_GET['result'])){
44
+ if(!(get_option('payment_gateway')=='google')) {
45
+ ?>
46
+ <div class="wrap wpsc_container">
47
+ <strong><?php echo TXT_WPSC_CONTACTDETAILS;?></strong><br />
48
+ <?php
49
+ echo TXT_WPSC_CREDITCARDHANDY;
50
+ if(!is_numeric($user_ID) && ($user_ID < 1) && get_settings('users_can_register'))
51
+ {
52
+ echo " ".TXT_WPSC_IF_USER_CHECKOUT."<a href='#' onclick='jQuery(\"#checkout_login_box\").slideToggle(\"fast\"); return false;'>".TXT_WPSC_LOG_IN."</a>";
53
+ echo "<div id='checkout_login_box'>";
54
+ ?>
55
+ <form name="loginform" id="loginform" action="wp-login.php" method="post">
56
+ <label>Username:<br /><input type="text" name="log" id="log" value="" size="20" tabindex="1" /></label><br />
57
+ <label>Password:<br /> <input type="password" name="pwd" id="pwd" value="" size="20" tabindex="2" /></label>
58
+ <input type="submit" name="submit" id="submit" value="Login &raquo;" tabindex="4" />
59
+ <input type="hidden" name="redirect_to" value="<?php echo get_option('checkout_url'); ?>" />
60
+ </form>
61
+ <?php
62
+ echo "<a class='thickbox' rel='".TXT_WPSC_REGISTER."' href='".$siteurl."?ajax=true&amp;action=register&amp;width=360&amp;height=300' >".TXT_WPSC_REGISTER."</a>";
63
+ echo "</div>";
64
+ }
65
+ echo "<br /><br />";
66
+ echo TXT_WPSC_ASTERISK;
67
+ if($_SESSION['nzshpcrt_checkouterr'] != null)
68
+ {
69
+ echo "<br /><span style='color: red;'>".$_SESSION['nzshpcrt_checkouterr']."</span>";
70
+ $_SESSION['nzshpcrt_checkouterr'] = '';
71
+ }
72
+ ?>
73
+
74
+ <form action='' method='POST'>
75
+ <table class='wpsc_checkout_table'>
76
+
77
+ <?php
78
+ $form_sql = "SELECT * FROM `".$wpdb->prefix."collect_data_forms` WHERE `active` = '1' ORDER BY `order`;";
79
+ $form_data = $wpdb->get_results($form_sql,ARRAY_A);
80
+ //exit("<pre>".print_r($form_data,true)."</pre>");
81
+ foreach($form_data as $form_field)
82
+ {
83
+ if($form_field['type'] == 'heading')
84
+ {
85
+ echo "
86
+ <tr>
87
+ <td colspan='2'>\n\r";
88
+ echo "<strong>".$form_field['name']."</strong>";
89
+ echo "
90
+ </td>
91
+ </tr>\n\r";
92
+ }
93
+ else
94
+ {
95
+ echo "
96
+ <tr>
97
+ <td>\n\r";
98
+ echo $form_field['name'];
99
+ if($form_field['mandatory'] == 1)
100
+ {
101
+ if(!(($form_field['type'] == 'country') || ($form_field['type'] == 'delivery_country')))
102
+ {
103
+ echo "*";
104
+ }
105
+ }
106
+ echo "
107
+ </td>\n\r
108
+ <td>\n\r";
109
+ switch($form_field['type'])
110
+ {
111
+ case "city":
112
+ if (function_exists('getdistance')) {
113
+ echo "<input onblur='store_list()' id='user_city' type='text' value='".$_SESSION['collected_data'][$form_field['id']]."' name='collected_data[".$form_field['id']."]' />";
114
+ } else {
115
+ echo "<input type='text' value='".$_SESSION['collected_data'][$form_field['id']]."' name='collected_data[".$form_field['id']."]' />";
116
+ }
117
+ break;
118
+
119
+ case "text":
120
+ case "city":
121
+ case "delivery_city":
122
+ case "coupon":
123
+ echo "<input type='text' value='".$_SESSION['collected_data'][$form_field['id']]."' name='collected_data[".$form_field['id']."]' />";
124
+ break;
125
+
126
+ case "address":
127
+ if (function_exists('getdistance')) {
128
+ echo "<input type='text' id='user_address' value='".$_SESSION['collected_data'][$form_field['id']]."' name='collected_data[".$form_field['id']."]'>";
129
+ } else {
130
+ echo "<textarea name='collected_data[".$form_field['id']."]'>".$_SESSION['collected_data'][$form_field['id']]."</textarea>";
131
+ }
132
+ break;
133
+
134
+ case "address":
135
+ case "delivery_address":
136
+ case "textarea":
137
+ echo "<textarea name='collected_data[".$form_field['id']."]'>".$_SESSION['collected_data'][$form_field['id']]."</textarea>";
138
+ break;
139
+
140
+
141
+ /*
142
+ case "region":
143
+ case "delivery_region":
144
+ echo "<select name='collected_data[".$form_field['id']."]'>".nzshpcrt_region_list($_SESSION['collected_data'][$form_field['id']])."</select>";
145
+ break;
146
+ */
147
+
148
+ case "country":
149
+ echo wpsc_country_region_list($form_field['id'] , false, $_SESSION['selected_country'], $_SESSION['selected_region']);
150
+ break;
151
+
152
+ case "delivery_country":
153
+ $country_name = $wpdb->get_var("SELECT `country` FROM `".$wpdb->prefix."currency_list` WHERE `isocode`='".$_SESSION['delivery_country']."' LIMIT 1");
154
+ echo "<input type='hidden' name='collected_data[".$form_field['id']."]' value='".$_SESSION['delivery_country']."'>".$country_name." ";
155
+ break;
156
+
157
+ case "email":
158
+ echo "<input type='text' value='".$_SESSION['collected_data'][$form_field['id']]."' name='collected_data[".$form_field['id']."]' />";
159
+ break;
160
+
161
+ default:
162
+ echo "<input type='text' value='".$_SESSION['collected_data'][$form_field['id']]."' name='collected_data[".$form_field['id']."]' />";
163
+ break;
164
+ }
165
+ echo "
166
+ </td>
167
+ </tr>\n\r";
168
+ }
169
+ }
170
+ echo "
171
+ <tr>
172
+ <td colspan='2'>
173
+ <strong>".TXT_WPSC_SELECTGATEWAY."</strong>
174
+ </td>
175
+ </tr>
176
+ ";
177
+ echo "<tr><td colspan='2'>";
178
+ if (get_option('custom_gateway')) {
179
+ foreach (get_option('custom_gateway_options') as $option) {
180
+ foreach ($GLOBALS['nzshpcrt_gateways'] as $gateway){
181
+ if ($gateway['internalname'] == $option)
182
+ echo "<input name='custom_gateway' value='$option' type='radio'>{$gateway['name']}<br>";
183
+ }
184
+ }
185
+ }
186
+ echo "</td></tr>";
187
+ if(isset($gateway_checkout_form_fields)) {
188
+ echo $gateway_checkout_form_fields;
189
+ }
190
+ $product=$_SESSION['nzshpcrt_cart'][0];
191
+ $engrave = get_product_meta($product->product_id,'engraved',true);
192
+ if ($engrave[0] == true) {
193
+ echo "<tr>
194
+ <td>
195
+ Engrave text:
196
+ </td>
197
+ <td>
198
+ <input type='text' name='engrave1'>
199
+ </td>
200
+ </tr>
201
+ <tr>
202
+ <td>
203
+ </td>
204
+ <td>
205
+ <input type='text' name='engrave2'>
206
+ </td>
207
+ </tr>";
208
+ }
209
+
210
+ if (get_option('display_find_us') == '1') {
211
+ echo "<tr><td>&nbsp;</td></tr><tr>
212
+ <td>How did you find us:</td>
213
+ <td><select name='how_find_us'>
214
+ <option value='Word of Mouth'>Word of mouth</option>
215
+ <option value='Advertisement'>Advertising</option>
216
+ <option value='Internet'>Internet</option>
217
+ <option value='Customer'>Existing Customer</option>
218
+ </select></td></tr>";
219
+ }
220
+
221
+ $termsandconds = get_option('terms_and_conditions');
222
+ if($termsandconds != '')
223
+ {
224
+ ?>
225
+ <tr>
226
+ <td>
227
+ </td>
228
+ <td>
229
+ <input type='checkbox' value='yes' name='agree' /> <?php echo TXT_WPSC_TERMS1;?><a class='thickbox' target='_blank' href='<?php
230
+ echo get_option('siteurl')."?termsandconds=true&amp;width=360&amp;height=400'"; ?>' class='termsandconds'><?php echo TXT_WPSC_TERMS2;?></a>
231
+ </td>
232
+ </tr>
233
+ <?php
234
+ }
235
+ else
236
+ {
237
+ echo "<input type='hidden' value='yes' name='agree' />";
238
+ echo "";
239
+ }
240
+
241
+ if(get_option('payment_method') == 2)
242
+ {
243
+ $curgateway = get_option('payment_gateway');
244
+ foreach($GLOBALS['nzshpcrt_gateways'] as $gateway)
245
+ {
246
+ if($gateway['internalname'] == $curgateway )
247
+ {
248
+ $gateway_name = $gateway['name'];
249
+ }
250
+ }
251
+ ?>
252
+ <tr>
253
+ <td colspan="2">
254
+ <strong>Payment Method</strong>
255
+ </td>
256
+ </tr>
257
+
258
+ <tr>
259
+ <td colspan='2'>
260
+ <input type='radio' name='payment_method' value='1' id='payment_method_1' checked='true'>
261
+ <label for='payment_method_1'><?php echo TXT_WPSC_PAY_USING;?> <?php echo $gateway_name; ?>/<?php echo TXT_WPSC_CREDIT_CARD;?></label>
262
+ </td>
263
+ </tr>
264
+
265
+ <tr>
266
+ <td colspan='2'>
267
+ <input type='radio' name='payment_method' value='2' id='payment_method_2'>
268
+ <label for='payment_method_2'><?php echo TXT_WPSC_PAY_MANUALLY;?></label>
269
+ </td>
270
+ </tr>
271
+ <?php
272
+ }
273
+ // if ((function_exists('getdistance')) && (get_option('googleStoreLocator')==1)) {
274
+ // echo "<tr><td colspan='2'><strong>2. Select Store</strong</td></tr>";
275
+ // echo "<tr><td>Stores</td><td width='80'><select name='chosen_store' style='float:left;' id='gloc_storelist'></select><div style='float:left;display:none;' id='gloc_loading'>Loading Stores...</div></td></tr>";
276
+ // }
277
+ // if (get_option('googleStoreLocator')==1) {
278
+ // echo "<tr>
279
+ // <td>
280
+ // <input type='radio' name='pickupordelivery' id='pickupordelivery1' value='1'><label for='pickupordelivery1'>".TXT_WPSC_PICKUP."</label>
281
+ // </td>
282
+ // <td>
283
+ // <input type='radio' name='pickupordelivery' id='pickupordelivery2' value='2'><label for='pickupordelivery2'>".TXT_WPSC_DELIVERY."</label>
284
+ // </td>
285
+ // </tr>";
286
+ // }
287
+ ?>
288
+ <tr>
289
+ <?php if((is_user_logged_in() && (get_option('require_register') == 1)) xor (get_option('require_register') == 0)) { ?>
290
+ <td>
291
+ </td>
292
+ <td>
293
+ <input type='hidden' value='true' name='submitwpcheckout' />
294
+ <?php
295
+ if (get_option('payment_gateway') == 'google') {
296
+ echo "<br>";
297
+ if (get_option('google_button_size') == '0'){
298
+ $google_button_w=180;
299
+ $google_button_h=46;
300
+ } elseif(get_option('google_button_size') == '1') {
301
+ $google_button_w=168;
302
+ $google_button_h=44;
303
+ } elseif(get_option('google_button_size') == '2') {
304
+ $google_button_w=160;
305
+ $google_button_h=43;
306
+ }
307
+
308
+
309
+ if ($_SESSION['google_prohibited']!='1') {
310
+ ?>
311
+ <input type='image' class='googlebutton' src="https://checkout.google.com/buttons/checkout.gif?merchant_id=<?php echo get_option('google_id')?>&w=<?php echo $google_button_w?>&h=<?php echo $google_button_h?>&style=<?php echo get_option('google_button_bg')?>&variant=text&loc=en_US">
312
+ <?php } else { ?>
313
+ <img src="https://checkout.google.com/buttons/checkout.gif?merchant_id=<?php echo get_option('google_id')?>&w=<?php echo $google_button_w?>&h=<?php echo $google_button_h?>&style=<?php echo get_option('google_button_bg')?>&variant=disabled&loc=en_US"/>
314
+ <?php }?>
315
+ <?php } else {
316
+
317
+ ?>
318
+ <input type='submit' value='<?php echo TXT_WPSC_MAKEPURCHASE;?>' name='submit' />
319
+ <?php } ?>
320
+ <?php } else { ?>
321
+ <td colspan='2'>
322
+ <br /><strong><?php echo TXT_WPSC_PLEASE_LOGIN;?></strong><br />
323
+ <?php echo TXT_WPSC_IF_JUST_REGISTERED;?>
324
+ </td>
325
+ <?php } ?>
326
+ </tr>
327
+ </table>
328
+ </form>
329
+ </div>
330
+ <?php
331
+ }
332
+ }
333
+ else
334
+ {
335
+ echo TXT_WPSC_BUYPRODUCTS;
336
+ }
337
+ ?>
wp-shopping-cart/classes/cart.class.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class cart_handler
3
+ {
4
+ function cart_handler()
5
+ {
6
+ // look at line 774
7
+ // look at line 1734
8
+ }
9
+ }
10
+
11
+ class cart_item {
12
+ var $product_id;
13
+ var $product_variations;
14
+ var $quantity;
15
+ var $donation_price;
16
+ var $extras;
17
+
18
+ function cart_item($product_id,$variations = null,$quantity = 1, $donation_price = null,$extras=null) {
19
+ $this->product_id = (int)$product_id;
20
+ $this->quantity = (int)$quantity;
21
+ $this->extras = $extras;
22
+ if(is_array($variations)) {
23
+ $this->product_variations = $variations;
24
+ }
25
+ $this->donation_price = (float)$donation_price;
26
+ }
27
+
28
+ function update_item($quantity) {
29
+ $this->quantity = (int)$quantity;
30
+ }
31
+
32
+ function empty_item() {
33
+ unset($this->product_id);
34
+ unset($this->quantity);
35
+ unset($this->product_variations);
36
+ unset($this->donation_price);
37
+ }
38
+ }
39
+ ?>
wp-shopping-cart/classes/extra.class.php ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class extras {
3
+ function extras(){
4
+ return;
5
+ }
6
+
7
+ function display_extra_values($prefix,$extras_id) {
8
+ global $wpdb;
9
+ if(is_numeric($variation_id)) {
10
+ $variation_values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."extras_values` WHERE `variation_id` = '$variation_id' ORDER BY `id` ASC",ARRAY_A);
11
+ if($variation_values != null) {
12
+ $output .= "<input type='hidden' name='' value='".$variation_id."'>";
13
+ $output .= "<table>";
14
+ $output .= "<tr><th>".TXT_WPSC_VISIBLE."</th><th>".TXT_WPSC_NAME."</th></tr>";
15
+ foreach($variation_values as $variation_value) {
16
+ $output .= "<tr>";
17
+ $output .= "<td style='text-align: center;'><input type='checkbox' name='variation_values[".$variation_id."][".$variation_value['id']."][active]' value='1' checked='true' id='variation_active_".$variation_value['id']."' />";
18
+ $output .= "<input type='hidden' name='variation_values[".$variation_id."][".$variation_value['id']."][blank]' value='null' /> </td>";
19
+ $output .= "<td>".$variation_value['name']."</td>";
20
+ $output .= "</tr>";
21
+ }
22
+
23
+ $output .= "<tr>";
24
+ $output .= "<td colspan='4'>";
25
+ $output .= "<a href='#' onclick='return remove_variation_value_list(\\\"$prefix\\\",\\\"$variation_id\\\");'>".TXT_WPSC_REMOVE_SET."</a>";
26
+ $output .= "</td>";
27
+ $output .= "</tr>";
28
+ $output .= "</table>";
29
+ }
30
+ }
31
+ return $output;
32
+ }
33
+
34
+ function display_product_extras($product_id,$no_label = false, $no_br = false, $update_price = false ) {
35
+ global $wpdb;
36
+ $output='';
37
+ $sql = "SELECT * FROM `".$wpdb->prefix."product_list` WHERE `id`='".$product_id."' LIMIT 1";
38
+ $product_data = $wpdb->get_row($sql,ARRAY_A);
39
+ $extras_assoc_sql = "SELECT * FROM `".$wpdb->prefix."extras_values_associations` WHERE product_id IN ('$product_id')";
40
+ $extras_assoc_data = $wpdb->get_results($extras_assoc_sql,ARRAY_A);
41
+ if (count($extras_assoc_data)==0){
42
+ return '';
43
+ }
44
+ foreach($extras_assoc_data as $extras_association) {
45
+ $extras_ids[] = $extras_association['extras_id'];
46
+ }
47
+ //echo
48
+ $special = 'false';
49
+ if($no_label == true) {
50
+ $special = 'true';
51
+ }
52
+ $extras_ids_str = implode(',',$extras_ids);
53
+ $extras_name_sql = "SELECT * FROM ".$wpdb->prefix."product_extra WHERE id IN (".$extras_ids_str.") ORDER BY id";
54
+ $extras_name_data = $wpdb->get_results($extras_name_sql,ARRAY_A);
55
+ //exit("<pre>".print_r($extras_name_data,1)."</pre>");
56
+ $j=0;$x=0;
57
+ foreach ($extras_name_data as $extras_name_datum) {
58
+ $j++;
59
+ $extras_value_sql = "SELECT * FROM ".$wpdb->prefix."extras_values WHERE extras_id IN (".$extras_name_datum['id'].")";
60
+ $extras_value_data = $wpdb->get_results($extras_value_sql,ARRAY_A);
61
+ //exit("<pre>".print_r($extras_value_data,1)."</pre>");
62
+ $output.= "<label>".$extras_name_datum['name']."</label>".$extras_name_datum['price']."<br>";
63
+ if ($j==1) {
64
+ $price='';
65
+ $checked='checked="checked"';
66
+ } else {
67
+ $price=nzshpcrt_currency_display($extras_assoc_data[$x]['price'],0);
68
+ $checked='';
69
+ }
70
+ foreach ($extras_value_data as $extras_value_datum) {
71
+ if ($j==1) {
72
+ $price='';
73
+ } else {
74
+ $price=nzshpcrt_currency_display($extras_assoc_data[$x]['price'],0);
75
+ }
76
+ $output.="<input style='float:left;' type='checkbox' $checked name='extras[]' value='".$extras_value_datum['id']."' class='extras_".$product_id."' id='extras_".$product_id."_".$extras_value_datum['id']."' onclick='manage_extras(".$product_id.",".$extras_value_datum['id'].",".$special.")' id='extra_value_id_".$extras_value_datum['id']."'><label style='float:left;' for='extras_".$product_id."_".$extras_value_datum['id']."'>". $extras_value_datum['name']."&ensp;".$price."</label><img style='display:none;float:left;' id='extras_indicator".$product_id.$extras_value_datum['id']."' src=' ".WPSC_DIR_NAME."/images/indicator.gif'><br>";
77
+ $x++;
78
+ }
79
+ }
80
+ return $output;
81
+ }
82
+ }
83
+ ?>
wp-shopping-cart/classes/mimetype.php ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ Copyright (C) 2002 Jason Sheets <jsheets@shadonet.com>.
4
+ All rights reserved.
5
+
6
+ THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
7
+ Redistribution and use in source and binary forms, with or without
8
+ modification, are permitted provided that the following conditions
9
+ are met:
10
+
11
+ 1. Redistributions of source code must retain the above copyright
12
+ notice, this list of conditions and the following disclaimer.
13
+
14
+ 2. Redistributions in binary form must reproduce the above copyright
15
+ notice, this list of conditions and the following disclaimer in the
16
+ documentation and/or other materials provided with the distribution.
17
+
18
+ 3. Neither the name of the project nor the names of its contributors
19
+ may be used to endorse or promote products derived from this software
20
+ without specific prior written permission.
21
+
22
+ THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
23
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
+ ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
26
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32
+ SUCH DAMAGE.
33
+ **/
34
+
35
+ /**
36
+ Name: PHP MimeType Class
37
+
38
+ Version: 1.0
39
+ Date Released: 10/20/02
40
+
41
+ Description: This class allows a PHP script to determine the mime type
42
+ a file based on the file extension. This class is handy for PHP versions
43
+ without the benefit of other tools to determine the mime type. The class
44
+ defaults to octet-stream so if the file type is not recognized the user
45
+ is presented with a file download prompt.
46
+
47
+ NOTES: The mime types for this version are based on Apache 1.3.27
48
+ mime types may change or need to be added in the future, the mime types
49
+ are stored in an array so that an awk or other script can automatically
50
+ generate the code to make the array.
51
+
52
+ Usage:
53
+
54
+ First an instance of the mimetype class must be created, then the
55
+ getType method should be called with the filename. It will return
56
+ the mime type, an example follows.
57
+
58
+ Example:
59
+
60
+ $mimetype = new mimetype();
61
+ print $mimetype->getType('acrobat.pdf');
62
+
63
+ Author: Jason Sheets <jsheets@shadonet.com>
64
+
65
+ License: This script is distributed under the BSD License, you are free
66
+ to use, or modify it however you like. If you find this script useful please
67
+ e-mail me.
68
+ **/
69
+
70
+ class mimetype {
71
+ function getType($filename) {
72
+ // get base name of the filename provided by user
73
+ $filename = basename($filename);
74
+
75
+ // break file into parts seperated by .
76
+ $filename = explode('.', $filename);
77
+
78
+ // take the last part of the file to get the file extension
79
+ $filename = $filename[count($filename)-1];
80
+
81
+ // find mime type
82
+ return $this->privFindType($filename);
83
+ }
84
+
85
+ function privFindType($ext) {
86
+ // create mimetypes array
87
+ $mimetypes = $this->privBuildMimeArray();
88
+
89
+ // return mime type for extension
90
+ if (isset($mimetypes[$ext])) {
91
+ return $mimetypes[$ext];
92
+ // if the extension wasn't found return octet-stream
93
+ } else {
94
+ return 'application/octet-stream';
95
+ }
96
+
97
+ }
98
+
99
+ function privBuildMimeArray() {
100
+ return array(
101
+ "ez" => "application/andrew-inset",
102
+ "hqx" => "application/mac-binhex40",
103
+ "cpt" => "application/mac-compactpro",
104
+ "doc" => "application/msword",
105
+ "bin" => "application/octet-stream",
106
+ "dms" => "application/octet-stream",
107
+ "lha" => "application/octet-stream",
108
+ "lzh" => "application/octet-stream",
109
+ "exe" => "application/octet-stream",
110
+ "class" => "application/octet-stream",
111
+ "so" => "application/octet-stream",
112
+ "dll" => "application/octet-stream",
113
+ "oda" => "application/oda",
114
+ "pdf" => "application/pdf",
115
+ "ai" => "application/postscript",
116
+ "eps" => "application/postscript",
117
+ "ps" => "application/postscript",
118
+ "smi" => "application/smil",
119
+ "smil" => "application/smil",
120
+ "wbxml" => "application/vnd.wap.wbxml",
121
+ "wmlc" => "application/vnd.wap.wmlc",
122
+ "wmlsc" => "application/vnd.wap.wmlscriptc",
123
+ "bcpio" => "application/x-bcpio",
124
+ "vcd" => "application/x-cdlink",
125
+ "pgn" => "application/x-chess-pgn",
126
+ "cpio" => "application/x-cpio",
127
+ "csh" => "application/x-csh",
128
+ "dcr" => "application/x-director",
129
+ "dir" => "application/x-director",
130
+ "dxr" => "application/x-director",
131
+ "dvi" => "application/x-dvi",
132
+ "spl" => "application/x-futuresplash",
133
+ "gtar" => "application/x-gtar",
134
+ "hdf" => "application/x-hdf",
135
+ "js" => "application/x-javascript",
136
+ "skp" => "application/x-koan",
137
+ "skd" => "application/x-koan",
138
+ "skt" => "application/x-koan",
139
+ "skm" => "application/x-koan",
140
+ "latex" => "application/x-latex",
141
+ "nc" => "application/x-netcdf",
142
+ "cdf" => "application/x-netcdf",
143
+ "sh" => "application/x-sh",
144
+ "shar" => "application/x-shar",
145
+ "swf" => "application/x-shockwave-flash",
146
+ "sit" => "application/x-stuffit",
147
+ "sv4cpio" => "application/x-sv4cpio",
148
+ "sv4crc" => "application/x-sv4crc",
149
+ "tar" => "application/x-tar",
150
+ "tcl" => "application/x-tcl",
151
+ "tex" => "application/x-tex",
152
+ "texinfo" => "application/x-texinfo",
153
+ "texi" => "application/x-texinfo",
154
+ "t" => "application/x-troff",
155
+ "tr" => "application/x-troff",
156
+ "roff" => "application/x-troff",
157
+ "man" => "application/x-troff-man",
158
+ "me" => "application/x-troff-me",
159
+ "ms" => "application/x-troff-ms",
160
+ "ustar" => "application/x-ustar",
161
+ "src" => "application/x-wais-source",
162
+ "xhtml" => "application/xhtml+xml",
163
+ "xht" => "application/xhtml+xml",
164
+ "zip" => "application/zip",
165
+ "au" => "audio/basic",
166
+ "snd" => "audio/basic",
167
+ "mid" => "audio/midi",
168
+ "midi" => "audio/midi",
169
+ "kar" => "audio/midi",
170
+ "mpga" => "audio/mpeg",
171
+ "mp2" => "audio/mpeg",
172
+ "mp3" => "audio/mpeg",
173
+ "m4a" => "audio/mp4",
174
+ "aif" => "audio/x-aiff",
175
+ "aiff" => "audio/x-aiff",
176
+ "aifc" => "audio/x-aiff",
177
+ "m3u" => "audio/x-mpegurl",
178
+ "ram" => "audio/x-pn-realaudio",
179
+ "rm" => "audio/x-pn-realaudio",
180
+ "rpm" => "audio/x-pn-realaudio-plugin",
181
+ "ra" => "audio/x-realaudio",
182
+ "wav" => "audio/x-wav",
183
+ "pdb" => "chemical/x-pdb",
184
+ "xyz" => "chemical/x-xyz",
185
+ "bmp" => "image/bmp",
186
+ "gif" => "image/gif",
187
+ "ief" => "image/ief",
188
+ "jpeg" => "image/jpeg",
189
+ "jpg" => "image/jpeg",
190
+ "jpe" => "image/jpeg",
191
+ "png" => "image/png",
192
+ "tiff" => "image/tiff",
193
+ "tif" => "image/tif",
194
+ "djvu" => "image/vnd.djvu",
195
+ "djv" => "image/vnd.djvu",
196
+ "wbmp" => "image/vnd.wap.wbmp",
197
+ "ras" => "image/x-cmu-raster",
198
+ "pnm" => "image/x-portable-anymap",
199
+ "pbm" => "image/x-portable-bitmap",
200
+ "pgm" => "image/x-portable-graymap",
201
+ "ppm" => "image/x-portable-pixmap",
202
+ "rgb" => "image/x-rgb",
203
+ "xbm" => "image/x-xbitmap",
204
+ "xpm" => "image/x-xpixmap",
205
+ "xwd" => "image/x-windowdump",
206
+ "igs" => "model/iges",
207
+ "iges" => "model/iges",
208
+ "msh" => "model/mesh",
209
+ "mesh" => "model/mesh",
210
+ "silo" => "model/mesh",
211
+ "wrl" => "model/vrml",
212
+ "vrml" => "model/vrml",
213
+ "css" => "text/css",
214
+ "html" => "text/html",
215
+ "htm" => "text/html",
216
+ "asc" => "text/plain",
217
+ "txt" => "text/plain",
218
+ "rtx" => "text/richtext",
219
+ "rtf" => "text/rtf",
220
+ "sgml" => "text/sgml",
221
+ "sgm" => "text/sgml",
222
+ "tsv" => "text/tab-seperated-values",
223
+ "wml" => "text/vnd.wap.wml",
224
+ "wmls" => "text/vnd.wap.wmlscript",
225
+ "etx" => "text/x-setext",
226
+ "xml" => "text/xml",
227
+ "xsl" => "text/xml",
228
+ "mpeg" => "video/mpeg",
229
+ "mpg" => "video/mpeg",
230
+ "mpe" => "video/mpeg",
231
+ "mp4" => "video/mp4",
232
+ "qt" => "video/quicktime",
233
+ "mov" => "video/quicktime",
234
+ "mxu" => "video/vnd.mpegurl",
235
+ "avi" => "video/x-msvideo",
236
+ "movie" => "video/x-sgi-movie",
237
+ "ice" => "x-conference-xcooltalk"
238
+ );
239
+ }
240
+ }
241
+ ?>
wp-shopping-cart/classes/variations.class.php ADDED
@@ -0,0 +1,544 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class nzshpcrt_variations {
3
+ function nzshpcrt_variations() {
4
+ global $wpdb;
5
+ }
6
+
7
+ function display_variation_values($prefix,$variation_id) {
8
+ global $wpdb;
9
+ if(is_numeric($variation_id)) {
10
+ $variation_values = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}variation_values` WHERE `variation_id` = '{$variation_id}' ORDER BY `id` ASC",ARRAY_A);
11
+ if($variation_values != null) {
12
+ $output .= "<input type='hidden' name='variation_id[]' class='variation_ids' value='{$variation_id}'>";
13
+ $output .= "<table>";
14
+ $output .= "<tr><th>".TXT_WPSC_VISIBLE."</th><th>".TXT_WPSC_NAME."</th></tr>";
15
+ foreach($variation_values as $variation_value) {
16
+ $output .= "<tr>";
17
+ $output .= "<td style='text-align: center;'><input type='checkbox' name='variation_values[{$variation_id}][{$variation_value['id']}][active]' value='1' checked='true' id='variation_active_{$variation_id}_{$variation_value['id']}' />";
18
+ $output .= "<input type='hidden' name='variation_values[{$variation_id}][{$variation_value['id']}][blank]' value='null' /> </td>";
19
+ $output .= "<td>".stripslashes($variation_value['name'])."</td>";
20
+ $output .= "</tr>";
21
+ }
22
+ $output .= "<tr>";
23
+ $output .= "<td colspan='4'>";
24
+ $output .= "<a href='#' onclick='return remove_variation_value_list(\\\"$prefix\\\",\\\"$variation_id\\\");'>".TXT_WPSC_REMOVE_SET."</a>";
25
+ $output .= "</td>";
26
+ $output .= "</tr>";
27
+ $output .= "</table>";
28
+ }
29
+ }
30
+ return $output;
31
+ }
32
+
33
+
34
+ function falsepost_variation_values($variation_id) {
35
+ global $wpdb;
36
+ if(is_numeric($variation_id)) {
37
+ $variation_values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."variation_values` WHERE `variation_id` = '$variation_id' ORDER BY `id` ASC",ARRAY_A);
38
+ if($variation_values != null) {
39
+ foreach($variation_values as $variation_value) {
40
+ $output_variation_values[$variation_id][$variation_value['id']]['active'] = 1;
41
+ $output_variation_values[$variation_id][$variation_value['id']]['blank'] = 'null';
42
+ }
43
+ }
44
+ }
45
+ return $output_variation_values;
46
+ }
47
+
48
+
49
+ function add_to_existing_product($product_id,$variation_list) {
50
+ global $wpdb;
51
+ if(is_numeric($product_id)) {
52
+ foreach($variation_list as $variation_id => $variation_values) {
53
+ if(is_numeric($variation_id)) {
54
+ $num = 0;
55
+ $variation_assoc_sql = "INSERT INTO `".$wpdb->prefix."variation_associations` ( `type` , `name` , `associated_id` , `variation_id` ) VALUES ( 'product', '', '$product_id', '$variation_id');";
56
+
57
+ $product_assoc_sql = "INSERT INTO `".$wpdb->prefix."variation_values_associations` ( `product_id` , `value_id` , `quantity` , `price` , `visible` , `variation_id` ) VALUES";
58
+ foreach($variation_values as $variation_value_id => $variation_value_properties) {
59
+ if(is_numeric($variation_value_id)) {
60
+ switch($num) {
61
+ case 0:
62
+ $comma = '';
63
+ break;
64
+
65
+ default:
66
+ $comma = ', ';
67
+ break;
68
+ }
69
+
70
+ if(is_numeric($variation_value_properties['price']) && ($variation_value_properties['price'] > 0))
71
+ {
72
+ $price = $variation_value_properties['price'];
73
+ } else {
74
+ $price = '';
75
+ }
76
+
77
+ if($variation_value_properties['active'] == 1) {
78
+ $active = 1;
79
+ } else {
80
+ $active = 0;
81
+ }
82
+
83
+ if(is_numeric($variation_value_properties['stock']) && ($variation_value_properties['stock'] > 0)) {
84
+ $quantity = $variation_value_properties['stock'];
85
+ } else {
86
+ $quantity = 0;
87
+ }
88
+
89
+ $product_assoc_sql .= "$comma ( '$product_id', '$variation_value_id', '$quantity', '".$price."', '$active', '$variation_id')";
90
+ $num++;
91
+ }
92
+ }
93
+ $product_assoc_sql .= ";";
94
+ $wpdb->query($product_assoc_sql);
95
+ $wpdb->query($variation_assoc_sql);
96
+ }
97
+ }
98
+ }
99
+ return $output;
100
+ }
101
+
102
+ function variations_grid_view($product_id) {
103
+ global $wpdb;
104
+
105
+ $product_price = $wpdb->get_var("SELECT `price` FROM `".$wpdb->prefix."product_list` WHERE `id` IN('$product_id') LIMIT 1");
106
+
107
+ $associated_variations = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."variation_associations` WHERE `type` IN ('product') AND `associated_id` = '$product_id' ORDER BY `id` ASC",ARRAY_A);
108
+ $variation_count = count($associated_variations);
109
+ if(!(($variation_count >= 1) && ($variation_count <= 2))) {
110
+ return "";
111
+ exit();
112
+ }
113
+
114
+ switch($variation_count) {
115
+ case 1:
116
+ $variation_name = $wpdb->get_var("SELECT `name` FROM `".$wpdb->prefix."product_variations` WHERE `id` = '".$associated_variations[0]['variation_id']."' ORDER BY `id` ASC LIMIT 1");
117
+
118
+ $grid_header = str_replace(":variation1:",$variation_name ,TXT_WPSC_VARIATION_GRID_CONTROL_SINGLE);
119
+ break;
120
+
121
+ case 2:
122
+ $variation_name1 = $wpdb->get_var("SELECT `name` FROM `".$wpdb->prefix."product_variations` WHERE `id` = '".$associated_variations[0]['variation_id']."' ORDER BY `id` ASC LIMIT 1");
123
+ $variation_name2 = $wpdb->get_var("SELECT `name` FROM `".$wpdb->prefix."product_variations` WHERE `id` = '".$associated_variations[1]['variation_id']."' ORDER BY `id` ASC LIMIT 1");
124
+
125
+ $grid_header = str_replace(Array(":variation1:", ":variation2:"),Array($variation_name1, $variation_name2) ,TXT_WPSC_VARIATION_GRID_CONTROL_PAIR);
126
+
127
+ break;
128
+ }
129
+
130
+ $output .= "<table class='product_variation_grid'>\n\r";
131
+ $output .= " <tr>\n\r";
132
+ $output .= " <th colspan='3' class='variation_name'>".$grid_header."</th>\n\r";
133
+ $output .= " </tr>\n\r";
134
+ $output .= " <tr>\n\r";
135
+ $output .= " <td><strong>".TXT_WPSC_VARIATION."</strong></td>\n\r";
136
+ $output .= " <td><strong>".TXT_WPSC_STOCK."</strong></td>\n\r";
137
+ $output .= " <td><strong>".TXT_WPSC_PRICE."</strong></td>\n\r";
138
+ if(count($associated_variations) == 1) {
139
+ $output .= " <td><strong>".TXT_WPSC_ASSOCIATEWITHFILE."</strong></td>\n\r";
140
+ }
141
+ $output .= " </tr>\n\r";
142
+ if(count($associated_variations) == 2) {
143
+ foreach($associated_variations as $key => $associated_variation) {
144
+ $associated_variation_values[$key] = $wpdb->get_results("SELECT `".$wpdb->prefix."variation_values`.* FROM `".$wpdb->prefix."variation_values` WHERE `variation_id` = '".$associated_variation['variation_id']."'",ARRAY_A);
145
+ }
146
+
147
+ foreach((array)$associated_variation_values[0] as $associated_variation_value[0]) {
148
+ $variation_active[0] = $wpdb->get_var("SELECT `visible` FROM `".$wpdb->prefix."variation_values_associations` WHERE `product_id` = '$product_id' AND `value_id` = '".$associated_variation_value[0]['id']."' AND `variation_id` = '".$associated_variation_value[0]['variation_id']."'");
149
+ if(($variation_active[0] === null) || ($variation_active[0] == 1)) {
150
+ foreach((array)$associated_variation_values[1] as $associated_variation_value[1]) {
151
+ $variation_active[1] = $wpdb->get_var("SELECT `visible` FROM `".$wpdb->prefix."variation_values_associations` WHERE `product_id` = '$product_id' AND `value_id` = '".$associated_variation_value[1]['id']."' AND `variation_id` = '".$associated_variation_value[1]['variation_id']."'");
152
+ if(($variation_active[1] === null) || ($variation_active[1] == 1)) {
153
+ $output .= " <tr>\n\r";
154
+ $output .= " <td>".str_replace(" ", "&nbsp;", (stripslashes($associated_variation_value[0]['name']).", ".stripslashes($associated_variation_value[1]['name'])))."</td>\n\r";
155
+ $variation_info = $wpdb->get_row("SELECT id, file, `stock`,`price` FROM `".$wpdb->prefix."variation_priceandstock` WHERE `product_id` = '$product_id' AND (`variation_id_1` = '".$associated_variation_value[0]['id']."' AND `variation_id_2` = '".$associated_variation_value[1]['id']."') OR (`variation_id_1` = '".$associated_variation_value[1]['id']."' AND `variation_id_2` = '".$associated_variation_value[0]['id']."') LIMIT 1",ARRAY_A);
156
+ $output .= " <td><input type='text' name='variation_priceandstock[".$associated_variation_value[0]['id']."][".$associated_variation_value[1]['id']."][stock]' value='".$variation_info['stock']."' size='3' /></td>\n\r";
157
+ $output .= " <td><input type='text' name='variation_priceandstock[".$associated_variation_value[0]['id']."][".$associated_variation_value[1]['id']."][price]' value='";
158
+ if(is_numeric($variation_info['price'])) {
159
+ $output .= number_format($variation_info['price'],2,'.', '');
160
+ } else {
161
+ $output .= $product_price;
162
+ }
163
+ $output .= "' size='6' /></td>\n\r";
164
+ // if ($variation_info['file']=='1'){
165
+ // $checked = "checked=true";
166
+ // } else {
167
+ // $checked = "";
168
+ // }
169
+ // $output .= "<td><input $checked type='checkbox' name='file".$variation_info['id']."'/></td>";
170
+ $output .= " </tr>\n\r";
171
+ }
172
+ }
173
+ }
174
+ }
175
+ } else {
176
+ $associated_variation = $associated_variations[0];
177
+ $associated_variation_values = $wpdb->get_results("SELECT `".$wpdb->prefix."variation_values`.* FROM `".$wpdb->prefix."variation_values` WHERE `variation_id` = '".$associated_variation['variation_id']."'",ARRAY_A);
178
+
179
+ foreach((array)$associated_variation_values as $associated_variation_value) {
180
+ $variation_active = $wpdb->get_var("SELECT `visible` FROM `".$wpdb->prefix."variation_values_associations` WHERE `product_id` = '$product_id' AND `value_id` = '".$associated_variation_value['id']."' AND `variation_id` = '".$associated_variation_value['variation_id']."'");
181
+ if(($variation_active === null) || ($variation_active == 1)) {
182
+ $output .= " <tr>\n\r";
183
+ $output .= " <td>".str_replace(" ", "&nbsp;", stripslashes($associated_variation_value['name']))."</td>\n\r";
184
+ $variation_info = $wpdb->get_row("SELECT id, `stock`,`price`, file FROM `".$wpdb->prefix."variation_priceandstock` WHERE `product_id` = '$product_id' AND (`variation_id_1` = '".$associated_variation_value['id']."' AND `variation_id_2` = '0') LIMIT 1",ARRAY_A);
185
+ $output .= " <td><input type='text' name='variation_priceandstock[".$associated_variation_value['id']."][0][stock]' value='".$variation_info['stock']."' size='3' /></td>\n\r";
186
+ $output .= " <td><input type='text' name='variation_priceandstock[".$associated_variation_value['id']."][0][price]' value='";
187
+ if(is_numeric($variation_info['price'])) {
188
+ $output .= number_format($variation_info['price'],2,'.', '');
189
+ } else {
190
+ $output .= $product_price;
191
+ }
192
+ $output .= "' size='6' /></td>\n\r";
193
+ if ($variation_info['file']=='1'){
194
+ $checked = "checked=true";
195
+ } else {
196
+ $checked = "";
197
+ }
198
+ $output .= "<td><input $checked type='checkbox' name='variation_priceandstock[".$associated_variation_value['id']."][0][file]'/></td>";
199
+ $output .= " </tr>\n\r";
200
+ }
201
+ }
202
+ }
203
+
204
+ $output .= "</table>\n\r";
205
+ return $output;
206
+ }
207
+
208
+ function display_attached_variations($product_id)
209
+ {
210
+ global $wpdb;
211
+ $associated_variations = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."variation_associations` WHERE `type` IN ('product') AND `associated_id` = '$product_id' ORDER BY `id` ASC",ARRAY_A);
212
+ foreach((array)$associated_variations as $associated_variation)
213
+ {
214
+ $associated_variation_values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."variation_values_associations` WHERE `variation_id` = '".$associated_variation['variation_id']."' AND `product_id` = '$product_id' ORDER BY `id` ASC",ARRAY_A);
215
+
216
+ $variation_data = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_variations` WHERE `id` = '".$associated_variation['variation_id']."' ORDER BY `id` ASC LIMIT 1",ARRAY_A);
217
+ //exit("SELECT * FROM `".$wpdb->prefix."variation_values_associations` WHERE `variation_id` = '".$associated_variation['variation_id']."' AND `product_id` = '$product_id' ORDER BY `id` ASC");
218
+ $variation_data = $variation_data[0];
219
+
220
+ $output .= "<table class='product_variation_listing'>";
221
+ $output .= "<tr><th colspan='4' class='variation_name'>".$variation_data['name']."</th></tr>";
222
+ $output .= "<tr><th>".TXT_WPSC_VISIBLE."</th><th>".TXT_WPSC_NAME."</th></tr>";
223
+ $num = 0;
224
+ $not_included_in_statement = '';
225
+ foreach((array)$associated_variation_values as $associated_variation_value) {
226
+ $product_value_id = $associated_variation_value['id'];
227
+ $value_id = $associated_variation_value['value_id'];
228
+ $value_stock = $associated_variation_value['quantity'];
229
+ $value_price = $associated_variation_value['price'];
230
+ $value_active = "";
231
+ if($associated_variation_value['visible'] == 1) {
232
+ $value_active = "checked='true'";
233
+ }
234
+ $value_data = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."variation_values` WHERE `id` = '$value_id' ORDER BY `id` ASC",ARRAY_A);
235
+ $value_data = $value_data[0];
236
+ $output .= "<tr>";
237
+
238
+ $output .= "<td style='text-align: center;'><input type='checkbox' name='edit_variation_values[".$product_value_id."][active]' value='1' id='variation_active_".$value_id."' $value_active>
239
+ <input type='hidden' name='edit_variation_values[".$product_value_id."][blank]' value='null'>
240
+ </td>";
241
+ $output .= "<td>".stripslashes($value_data['name'])."</td>";
242
+ $output .= "</tr>";
243
+ switch($num) {
244
+ case 0:
245
+ $comma = '';
246
+ break;
247
+
248
+ default:
249
+ $comma = ', ';
250
+ break;
251
+ }
252
+ $not_included_in_statement .= "$comma'$value_id'";
253
+ $num++;
254
+ }
255
+ if($not_included_in_statement != '')
256
+ {
257
+ $not_included_sql = "SELECT * FROM `".$wpdb->prefix."variation_values` WHERE `variation_id` IN ('".$associated_variation['variation_id']."') AND `id` NOT IN ($not_included_in_statement)";
258
+ $values_not_included = $wpdb->get_results($not_included_sql,ARRAY_A);
259
+ }
260
+
261
+
262
+ //$output .= "<pre>".print_r($not_included_sql,true)."</pre>";
263
+ $variation_id = $associated_variation['variation_id'];
264
+ if($values_not_included != null)
265
+ {
266
+ foreach($values_not_included as $variation_value)
267
+ {
268
+ $output .= "<tr>";
269
+ $output .= "<td style='text-align: center;'><input type='checkbox' name='edit_add_variation_values[".$variation_id."][".$variation_value['id']."][active]' value='1' id='variation_active_".$variation_value['id']."'>
270
+ <input type='hidden' name='edit_add_variation_values[".$variation_id."][".$variation_value['id']."][blank]' value='null' />
271
+ </td>";
272
+ $output .= "<td>".$variation_value['name']."</td>";
273
+ // $output .= "<td><input type='text' name='edit_add_variation_values[".$variation_id."][".$variation_value['id']."][stock]' size='3' value='' /></td>";
274
+ // $output .= "<td><input type='text' name='edit_add_variation_values[".$variation_id."][".$variation_value['id']."][price]' size='3' value='' /></td>";
275
+ $output .= "</tr>";
276
+ }
277
+ }
278
+
279
+ $output .= "<tr>";
280
+ $output .= "<td colspan='4'>";
281
+ $output .= "<a href='admin.php?page=".WPSC_DIR_NAME."/display-items.php&amp;submit_action=remove_set&amp;product_id=".$product_id."&amp;variation_assoc_id=".$associated_variation['id']."'>".TXT_WPSC_REMOVE_SET."</a>";
282
+ $output .= "</td>";
283
+ $output .= "</tr>";
284
+ $output .= "</table>";
285
+ $num++;
286
+ }
287
+ //$output .= "<pre>".print_r($values_not_included,true)."</pre>";
288
+ return $output;
289
+ }
290
+
291
+ function edit_product_values($product_id,$variation_value_list) {
292
+ global $wpdb;
293
+ foreach($variation_value_list as $variation_value_id => $variation_values) {
294
+ $quantity = $variation_values['stock'];
295
+ $variation_values['price'] = str_replace(",","",$variation_values['price']);
296
+ //exit(print_r($variation_values,true));
297
+ if(is_numeric($variation_values['price']) && ($variation_values['price'] > 0)) {
298
+ $price = $variation_values['price'];
299
+ } else {
300
+ $price = '';
301
+ }
302
+
303
+ if($variation_values['active'] == 1) {
304
+ $visible_state = 1;
305
+ } else {
306
+ $visible_state = 0;
307
+ }
308
+ $update_sql = "UPDATE `".$wpdb->prefix."variation_values_associations` SET `visible` = '".$visible_state."' WHERE `id` = '".$variation_value_id."' LIMIT 1 ;";
309
+ $wpdb->query($update_sql);
310
+ //echo "<pre>".print_r($update_sql,true)."</pre>";
311
+ //echo "<pre>".print_r($variation_values,true)."</pre>";
312
+ }
313
+ return $output;
314
+ }
315
+
316
+ function edit_add_product_values($product_id,$variation_value_list) {
317
+ global $wpdb;
318
+ foreach($variation_value_list as $variation_id => $variation_values) {
319
+ if(is_numeric($variation_id)) {
320
+ foreach($variation_values as $variation_value_id => $variation_value_properties) {
321
+ $quantity = $variation_value_properties['stock'];
322
+ $variation_value_properties['price'] = str_replace(",","",$variation_value_properties['price']);
323
+ if(is_numeric($variation_value_properties['price']) && ($variation_value_properties['price'] > 0)) {
324
+ $price = $variation_value_properties['price'];
325
+ } else {
326
+ $price = '';
327
+ }
328
+
329
+ if($variation_value_properties['active'] == 1) {
330
+ $visible_state = 1;
331
+ } else {
332
+ $visible_state = 0;
333
+ }
334
+ $product_assoc_sql = "INSERT INTO `".$wpdb->prefix."variation_values_associations` ( `product_id` , `value_id` , `quantity` , `price` , `visible` , `variation_id` ) VALUES ( '$product_id', '$variation_value_id', '".$quantity."', '".$price."', '$visible_state', '$variation_id')";
335
+ $wpdb->query($product_assoc_sql);
336
+ // echo "<pre>".print_r($product_assoc_sql,true)."</pre>";
337
+ //echo "<pre>".print_r($variation_values,true)."</pre>";
338
+ }
339
+ }
340
+ }
341
+ return $output;
342
+ }
343
+
344
+ function display_product_variations($product_id,$no_label = false, $no_div = false, $update_price = false ) {
345
+ global $wpdb;
346
+ $sql = "SELECT * FROM `".$wpdb->prefix."product_list` WHERE `id`='".$product_id."' LIMIT 1";
347
+ $product_data = $wpdb->get_row($sql,ARRAY_A);
348
+ $variation_assoc_sql = "SELECT * FROM `".$wpdb->prefix."variation_associations` WHERE `type` IN ('product') AND `associated_id` IN ('$product_id')";
349
+ $variation_assoc_data = $wpdb->get_results($variation_assoc_sql,ARRAY_A);
350
+ if($variation_assoc_data != null) {
351
+ $first_entries = Array();
352
+ foreach($variation_assoc_data as $variation_association) {
353
+ $variation_ids[] = $variation_association['variation_id'];
354
+ }
355
+ $j=0;
356
+ foreach((array)$variation_assoc_data as $variation_association) {
357
+ $i = 0;
358
+ if($no_div !== true) {
359
+ $output .= "<div>";
360
+ }
361
+ if($j==0) {
362
+ $default_topping='checked="checked"';
363
+ } else {
364
+ $default_topping='';
365
+ }
366
+ $j++;
367
+ $variation_id = $variation_association['variation_id'];
368
+ $value_assoc_sql = "SELECT * FROM `".$wpdb->prefix."variation_values_associations` WHERE `product_id` IN ('$product_id') AND `variation_id` IN ('$variation_id') AND `visible` IN ('1')";
369
+ $value_assoc_data = $wpdb->get_results($value_assoc_sql,ARRAY_A);
370
+ $variation_data_sql = "SELECT * FROM `".$wpdb->prefix."product_variations` WHERE `id` IN ('$variation_id') LIMIT 1";
371
+ $variation_data = $wpdb->get_results($variation_data_sql,ARRAY_A);
372
+ $variation_data = $variation_data[0];
373
+ if($no_label !== true) {
374
+ $output .= "<label for='variation_select_".$product_id."_".$variation_data['id']."'>". $variation_data['name'] . ":</label> ";
375
+ }
376
+ if(($update_price === true) && (count($variation_ids) >= 1) && (count($variation_ids) <= 2)) {
377
+ $special = 'false';
378
+ if($no_label == true) {
379
+ $special = 'true';
380
+ }
381
+ $on_change = "onchange='change_variation($product_id, Array(\"".implode("\",\"", $variation_ids)."\"), $special)'";
382
+ } else { $on_change = ''; }
383
+ $special_prefix = '';
384
+ if($no_label == true) {
385
+ $special_prefix = 'special_';
386
+ }
387
+ if (get_option("checkbox_variations")=='1') {
388
+ $output .= "<br>";
389
+ } else {
390
+ $output .= "<select id='".$special_prefix."variation_select_".$product_id."_".$variation_data['id']."' name='variation[".$variation_data['id']."]' $on_change >";
391
+ }
392
+ foreach((array)$value_assoc_data as $value_association) {
393
+ if($i == 0) {
394
+ $first_entries[] = $value_association['value_id'];
395
+ }
396
+ $value_id = $value_association['value_id'];
397
+ $value_data = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."variation_values` WHERE `id` = '$value_id' ORDER BY `id` ASC",ARRAY_A);
398
+ $check_stock = false;
399
+ if(($product_data['quantity_limited'] == 1) && (count($variation_assoc_data) == 1)) {
400
+ $variation_stock_data = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."variation_priceandstock` WHERE `product_id` = '".$product_id."' AND (`variation_id_1` = '".$value_data['id']."' AND `variation_id_2` = '0') LIMIT 1",ARRAY_A);
401
+ $check_stock = true;
402
+ $stock = $variation_stock_data['stock'];
403
+ }
404
+
405
+ if (get_option('checkbox_variations')==1) {
406
+ $output .= "<input type='checkbox' id='variation[".$value_data['id']."]' name='variation[".$variation_data['name']."][]'".$default_topping." value='".$value_data['id']."' onclick='manage_topping(".$product_id.",".$value_data['id'].",".$special.")'>".$value_data['name']."<br>";
407
+ //exit("'onclick='add_toping(".$product_id.", ".$value_data['id'].")'>");
408
+ } else {
409
+ if(($check_stock == true) && ($stock < 1)) {
410
+ $output .= "<option value='".$value_data['id']."' disabled='true'>".$value_data['name']." - ".TXT_WPSC_NO_STOCK."</option>";
411
+ } else {
412
+ $output .= "<option value='".$value_data['id']."'>".$value_data['name']."</option>";
413
+ }
414
+ }
415
+ $i++;
416
+ }
417
+ if (get_option("checkbox_variations")=='1') {
418
+ $output .= "";
419
+ } else {
420
+ $output .= "</select>";
421
+ }
422
+ if($no_div !== true) {
423
+ $output .= "</div>";
424
+ }
425
+ }
426
+ }
427
+
428
+ if($update_price === true) {
429
+ $first_entry_count = count($first_entries);
430
+ if(($first_entry_count >= 1) && ($first_entry_count <= 2)) {
431
+ $price = calculate_product_price($product_id, $first_entries);
432
+ } else { $price = null; }
433
+ return Array($output, $price);
434
+ } else {
435
+ return $output;
436
+ }
437
+ }
438
+
439
+ function variations_add_grid_view($variations) {
440
+ global $wpdb;
441
+ $variation_count = count($variations);
442
+ if(!(($variation_count >= 1) && ($variation_count <= 2))) {
443
+ return "";
444
+ exit();
445
+ }
446
+
447
+ switch($variation_count) {
448
+ case 1:
449
+ $variation_name = $wpdb->get_var("SELECT `name` FROM `".$wpdb->prefix."product_variations` WHERE `id` = '".$variations[0]."' ORDER BY `id` ASC LIMIT 1");
450
+ $grid_header = str_replace(":variation1:",$variation_name ,TXT_WPSC_VARIATION_GRID_CONTROL_SINGLE);
451
+ break;
452
+
453
+ case 2:
454
+ $variation_name1 = $wpdb->get_var("SELECT `name` FROM `".$wpdb->prefix."product_variations` WHERE `id` = '".$variations[0]."' ORDER BY `id` ASC LIMIT 1");
455
+ $variation_name2 = $wpdb->get_var("SELECT `name` FROM `".$wpdb->prefix."product_variations` WHERE `id` = '".$variations[1]."' ORDER BY `id` ASC LIMIT 1");
456
+ $grid_header = str_replace(Array(":variation1:", ":variation2:"),Array($variation_name1, $variation_name2) ,TXT_WPSC_VARIATION_GRID_CONTROL_PAIR);
457
+ break;
458
+ }
459
+
460
+ $output .= "<table class='product_variation_grid'>\n\r";
461
+ $output .= " <tr>\n\r";
462
+ $output .= " <th colspan='3' class='variation_name'>".$grid_header."</th>\n\r";
463
+ $output .= " </tr>\n\r";
464
+ $output .= " <tr>\n\r";
465
+ $output .= " <td><strong>".TXT_WPSC_VARIATION."</strong></td>\n\r";
466
+ $output .= " <td><strong>".TXT_WPSC_STOCK."</strong></td>\n\r";
467
+ $output .= " <td><strong>".TXT_WPSC_PRICE."</strong></td>\n\r";
468
+ /*
469
+ if(count($associated_variations) == 1) {
470
+ $output .= " <td><strong>".TXT_WPSC_ASSOCIATEWITHFILE."</strong></td>\n\r";
471
+ }
472
+ */
473
+ $output .= " </tr>\n\r";
474
+ if(count($variations) == 2) {
475
+ foreach($variations as $key => $variation) {
476
+ $associated_variation_values[$key] = $wpdb->get_results("SELECT `{$wpdb->prefix}variation_values`.* FROM `{$wpdb->prefix}variation_values` WHERE `variation_id` = '{$variation}'",ARRAY_A);
477
+ }
478
+
479
+ foreach((array)$associated_variation_values[0] as $associated_variation_value[0]) {
480
+ foreach((array)$associated_variation_values[1] as $associated_variation_value[1]) {
481
+ $output .= " <tr>\n\r";
482
+ $output .= " <td>".str_replace(" ", "&nbsp;", (stripslashes($associated_variation_value[0]['name']).", ".stripslashes($associated_variation_value[1]['name'])))."</td>\n\r";
483
+ $output .= " <td><input type='text' name='variation_priceandstock[{$associated_variation_value[0]['id']}][{$associated_variation_value[1]['id']}][stock]' value='' size='3' /></td>\n\r";
484
+ $output .= " <td><input type='text' name='variation_priceandstock[{$associated_variation_value[0]['id']}][{$associated_variation_value[1]['id']}][price]' value='' size='6' /></td>\n\r";
485
+ $output .= " </tr>\n\r";
486
+ }
487
+ }
488
+ } else {
489
+ $variation = $variations[0];
490
+ $associated_variation_values = $wpdb->get_results("SELECT `{$wpdb->prefix}variation_values`.* FROM `{$wpdb->prefix}variation_values` WHERE `variation_id` = '{$variation}'",ARRAY_A);
491
+
492
+ foreach((array)$associated_variation_values as $associated_variation_value) {
493
+ $output .= " <tr>\n\r";
494
+ $output .= " <td>".str_replace(" ", "&nbsp;", stripslashes($associated_variation_value['name']))."</td>\n\r";
495
+ $variation_info = $wpdb->get_row("SELECT id, `stock`,`price`, file FROM `{$wpdb->prefix}variation_priceandstock` WHERE `product_id` = '{$product_id}' AND (`variation_id_1` = '{$associated_variation_value['id']}' AND `variation_id_2` = '0') LIMIT 1",ARRAY_A);
496
+ $output .= " <td><input type='text' name='variation_priceandstock[{$associated_variation_value['id']}][0][stock]' value='{$variation_info['stock']}' size='3' /></td>\n\r";
497
+ $output .= " <td><input type='text' name='variation_priceandstock[{$associated_variation_value['id']}][0][price]' value='' size='6' /></td>\n\r";
498
+ $output .= " </tr>\n\r";
499
+ }
500
+ }
501
+
502
+ $output .= "</table>\n\r";
503
+ return $output;
504
+ }
505
+ function update_variation_values($product_id, $variation_values) {
506
+ global $wpdb;
507
+ $product_id = (int)$product_id;
508
+ foreach($variation_values as $key[0] => $variation_row) {
509
+ $key[0] = (int)$key[0];
510
+ foreach($variation_row as $key[1] => $variation_data) {
511
+ // sanitise the input
512
+ $key[1] = (int)$key[1];
513
+ $variation_price = (float)str_replace(",","",$variation_data['price']);
514
+ $variation_stock =(int)$variation_data['stock']; // having 1.2 stock makes no sense unless dealing with different units
515
+ $variation_file =(int)(bool)$variation_data['file'];
516
+
517
+ if(is_numeric($key[0]) && is_numeric($key[1]) && (is_numeric($variation_data['stock']) || is_numeric($variation_data['price']))) {
518
+ $variation_stock_data = $wpdb->get_row("SELECT * FROM `{$wpdb->prefix}variation_priceandstock` WHERE `product_id` = '{$product_id}' AND ((`variation_id_1` = '{$key[0]}' AND `variation_id_2` = '{$key[1]}') OR (`variation_id_1` = '{$key[1]}' AND `variation_id_2` = '{$key[0]}')) LIMIT 1",ARRAY_A);
519
+ if(is_numeric($variation_stock_data['id'])) {
520
+ $variation_sql = null; // return the sql array to null for each trip round the loop
521
+ if(($variation_stock_data['stock'] != $variation_stock)) {
522
+ $variation_sql[] = "`stock` = '{$variation_stock}'";
523
+ }
524
+
525
+ if(($variation_stock_data['price'] != $variation_price)) {
526
+ $variation_sql[] = "`price` = '{$variation_price}'";
527
+ }
528
+
529
+ if(($variation_stock_data['file'] != $variation_file)) {
530
+ $variation_sql[] = "`file` = '{$variation_file}'";
531
+ }
532
+
533
+ if($variation_sql != null){
534
+ $wpdb->query("UPDATE `".$wpdb->prefix."variation_priceandstock` SET ".implode(",",$variation_sql)."WHERE `id` = '".$variation_stock_data['id']."' LIMIT 1 ;");
535
+ }
536
+ } else {
537
+ $wpdb->query("INSERT INTO `{$wpdb->prefix}variation_priceandstock` ( `product_id` , `variation_id_1` , `variation_id_2` , `stock`, `price` ) VALUES ('{$product_id}', '{$key[0]}', '{$key[1]}', '{$variation_stock}', '{$variation_price}');");
538
+ }
539
+ }
540
+ }
541
+ }
542
+ }
543
+ }
544
+ ?>
wp-shopping-cart/classes/xmlparser.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class xml2Array {
3
+
4
+ var $arrOutput = array();
5
+ var $resParser;
6
+ var $strXmlData;
7
+
8
+ function parse($strInputXML) {
9
+
10
+ $this->resParser = xml_parser_create ();
11
+ xml_set_object($this->resParser,$this);
12
+ xml_set_element_handler($this->resParser, "tagOpen", "tagClosed");
13
+
14
+ xml_set_character_data_handler($this->resParser, "tagData");
15
+
16
+ $this->strXmlData = xml_parse($this->resParser,$strInputXML );
17
+ if(!$this->strXmlData) {
18
+ die(sprintf("XML error: %s at line %d",
19
+ xml_error_string(xml_get_error_code($this->resParser)),
20
+ xml_get_current_line_number($this->resParser)));
21
+ }
22
+
23
+ xml_parser_free($this->resParser);
24
+
25
+ return $this->arrOutput;
26
+ }
27
+ function tagOpen($parser, $name, $attrs) {
28
+ $tag=array("name"=>$name,"attrs"=>$attrs);
29
+ array_push($this->arrOutput,$tag);
30
+ }
31
+
32
+ function tagData($parser, $tagData) {
33
+ if(trim($tagData)) {
34
+ if(isset($this->arrOutput[count($this->arrOutput)-1]['tagData'])) {
35
+ $this->arrOutput[count($this->arrOutput)-1]['tagData'] .= $tagData;
36
+ }
37
+ else {
38
+ $this->arrOutput[count($this->arrOutput)-1]['tagData'] = $tagData;
39
+ }
40
+ }
41
+ }
42
+
43
+ function tagClosed($parser, $name) {
44
+ $this->arrOutput[count($this->arrOutput)-2]['children'][] = $this->arrOutput[count($this->arrOutput)-1];
45
+ array_pop($this->arrOutput);
46
+ }
47
+ }
48
+ ?>
wp-shopping-cart/containeress_page.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Template Name: Containerless Page
4
+ */
5
+ ?>
6
+
7
+ <?php get_header(); ?>
8
+
9
+ <div class="content">
10
+ <!-- <div class="container"> -->
11
+
12
+ <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
13
+ <!-- <h2><?php the_title(); ?></h2> -->
14
+ <?php the_content('Read the rest of this entry &raquo;'); ?>
15
+ <?php endwhile; ?>
16
+ <?php else : ?>
17
+ <h2 class="center">Not Found</h2>
18
+ <p class="center">Sorry, but you are looking for something that isn't here.</p>
19
+ <?php include (TEMPLATEPATH . "/searchform.php"); ?>
20
+ <?php endif; ?>
21
+
22
+ <!-- </div> -->
23
+ </div>
24
+ </div>
25
+ <!--
26
+ <?php get_sidebar(); ?>
27
+ -->
28
+ <?php get_footer(); ?>
wp-shopping-cart/currency_converter.inc.php ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ CURRENCYCONVERTER
5
+ Date - Feb 23,2005
6
+ Author - Harish Chauhan
7
+ Email - harishc@ultraglobal.biz
8
+
9
+ ABOUT
10
+ This PHP script will use for conversion of currency.
11
+ you can find it is tricky but it is usefull.
12
+ */
13
+
14
+ Class CURRENCYCONVERTER
15
+ {
16
+ var $_amt=1;
17
+ var $_to="";
18
+ var $_from="";
19
+ var $_error="";
20
+ function CURRENCYCONVERTER($amt=1,$to="",$from="")
21
+ {
22
+ $this->_amt=$amt;
23
+ $this->_to=$to;
24
+ $this->_from=$from;
25
+ }
26
+ function error()
27
+ {
28
+ return $this->_error;
29
+ }
30
+ function convert($amt=NULL,$to="",$from="")
31
+ {
32
+ if ($amt == 0) {
33
+ return 0;
34
+ }
35
+ if($amt>1)
36
+ $this->_amt=$amt;
37
+ if(!empty($to))
38
+ $this->_to=$to;
39
+ if(!empty($from))
40
+ $this->_from=$from;
41
+
42
+ //$host="www.iraqidinar.org";
43
+ $host="www.xe.com";
44
+ $fp = @fsockopen($host, 80, $errno, $errstr, 30);
45
+ if (!$fp)
46
+ {
47
+ $this->_error="$errstr ($errno)<br />\n";
48
+ return false;
49
+ }
50
+ else
51
+ {
52
+ //$file="/conversiontool2.asp";
53
+ $file="/ucc/convert.cgi";
54
+ //$str = "?amount=".$this->_amt."&ConvertFrom=".$this->_from."&ConvertTo=".$this->_to;
55
+ $str = "?language=xe&Amount=".$this->_amt."&From=".$this->_from."&To=".$this->_to;
56
+ $out = "GET ".$file.$str." HTTP/1.0\r\n";
57
+ $out .= "Host: $host\r\n";
58
+ $out .= "Connection: Close\r\n\r\n";
59
+
60
+ @fputs($fp, $out);
61
+ while (!@feof($fp))
62
+ {
63
+ $data.= @fgets($fp, 128);
64
+ }
65
+ @fclose($fp);
66
+
67
+ @preg_match("/^(.*?)\r?\n\r?\n(.*)/s", $data, $match);
68
+ $data =$match[2];
69
+ $search = array ("'<script[^>]*?>.*?</script>'si", // Strip out javascript
70
+ "'<[\/\!]*?[^<>]*?>'si", // Strip out HTML tags
71
+ "'([\r\n])[\s]+'", // Strip out white space
72
+ "'&(quot|#34);'i", // Replace HTML entities
73
+ "'&(amp|#38);'i",
74
+ "'&(lt|#60);'i",
75
+ "'&(gt|#62);'i",
76
+ "'&(nbsp|#160);'i",
77
+ "'&(iexcl|#161);'i",
78
+ "'&(cent|#162);'i",
79
+ "'&(pound|#163);'i",
80
+ "'&(copy|#169);'i",
81
+ "'&#(\d+);'e"); // evaluate as php
82
+
83
+ $replace = array ("",
84
+ "",
85
+ "\\1",
86
+ "\"",
87
+ "&",
88
+ "<",
89
+ ">",
90
+ " ",
91
+ chr(161),
92
+ chr(162),
93
+ chr(163),
94
+ chr(169),
95
+ "chr(\\1)");
96
+
97
+ $data = @preg_replace($search, $replace, $data);
98
+ @preg_match_all("/(\d[^\.]*(\.\d+)?)/",$data,$mathces);
99
+ $return=preg_replace("/[^\d\.]*/","",$mathces[0][1]);
100
+ return (double)$return;
101
+ }
102
+ }
103
+ }
104
+ ?>
wp-shopping-cart/currency_list.php ADDED
@@ -0,0 +1,243 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $currency_sql="INSERT INTO `".$wpdb->prefix."currency_list` VALUES (1, 'Mauritania', 'MR', 'Mauritanian Ouguiya', '', '', 'MRO', '0', '0');
3
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (2, 'Martinique (French)', 'MQ', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
4
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (3, 'Malta', 'MT', 'Maltese Lira', '', '', 'MTL', '0', '0');
5
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (4, 'Marshall Islands', 'MH', 'US Dollar', '$', '&#036;', 'USD', '0', '0');
6
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (5, 'Mali', 'ML', 'CFA Franc BCEAO', '', '', 'XOF', '0', '0');
7
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (6, 'Maldives', 'MV', 'Maldive Rufiyaa', '', '', 'MVR', '0', '0');
8
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (7, 'Malaysia', 'MY', 'Malaysian Ringgit', '', '', 'MYR', '0', '0');
9
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (8, 'Malawi', 'MW', 'Malawi Kwacha', '', '', 'MWK', '0', '0');
10
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (9, 'Madagascar', 'MG', 'Malagasy Franc', '', '', 'MGF', '0', '0');
11
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (10, 'Macau', 'MO', 'Macau Pataca', '', '', 'MOP', '0', '0');
12
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (11, 'Macedonia', 'MK', 'Denar', '', '', 'MKD', '0', '0');
13
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (12, 'Luxembourg', 'LU', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
14
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (13, 'Lithuania', 'LT', 'Lithuanian Litas', '', '', 'LTL', '0', '0');
15
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (14, 'Liechtenstein', 'LI', 'Swiss Franc', '', '', 'CHF', '0', '0');
16
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (15, 'Libya', 'LY', 'Libyan Dinar', '', '', 'LYD', '0', '0');
17
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (16, 'Liberia', 'LR', 'Liberian Dollar', '$', '&#036;', 'LRD', '0', '0');
18
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (17, 'Lesotho', 'LS', 'Lesotho Loti', '', '', 'LSL', '0', '0');
19
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (18, 'Lebanon', 'LB', 'Lebanese Pound', '', '', 'LBP', '0', '0');
20
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (19, 'Latvia', 'LV', 'Latvian Lats', '', '', 'LVL', '0', '0');
21
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (20, 'Laos', 'LA', 'Lao Kip', '', '', 'LAK', '0', '0');
22
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (21, 'Kyrgyzstan', 'KG', 'Som', '', '', 'KGS', '0', '0');
23
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (22, 'Kuwait', 'KW', 'Kuwaiti Dinar', '', '', 'KWD', '0', '0');
24
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (23, 'Korea, South', 'KR', 'Korean Won', '', '', 'KRW', '0', '0');
25
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (24, 'Korea, North', 'KP', 'North Korean Won', '', '', 'KPW', '0', '0');
26
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (25, 'Kiribati', 'KI', 'Australian Dollar', '$', '&#036;', 'AUD', '0', '0');
27
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (26, 'Kenya', 'KE', 'Kenyan Shilling', '', '', 'KES', '0', '0');
28
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (27, 'Kazakhstan', 'KZ', 'Kazakhstan Tenge', '', '', 'KZT', '0', '0');
29
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (28, 'Jordan', 'JO', 'Jordanian Dinar', '', '', 'JOD', '0', '0');
30
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (29, 'Jersey', 'JE', 'Pound Sterling', '£', '&#163;', 'GBP', '0', '0');
31
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (30, 'Japan', 'JP', 'Japanese Yen', '¥', '&#165;', 'JPY', '0', '0');
32
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (31, 'Jamaica', 'JM', 'Jamaican Dollar', '$', '&#036;', 'JMD', '0', '0');
33
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (32, 'Ivory Coast', 'CI', 'CFA Franc BCEAO', '', '', 'XOF', '0', '0');
34
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (33, 'Italy', 'IT', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
35
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (34, 'Isle of Man', 'IM', 'Pound Sterling', '£', '&#163;', 'GBP', '0', '0');
36
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (35, 'Israel', 'IL', 'Israeli New Shekel', '', '', 'ILS', '0', '0');
37
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (36, 'Ireland', 'IE', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
38
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (37, 'Iraq', 'IQ', 'Iraqi Dinar', '', '', 'IQD', '0', '0');
39
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (38, 'Indonesia', 'ID', 'Indonesian Rupiah', '', '', 'IDR', '0', '0');
40
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (39, 'Iran', 'IR', 'Iranian Rial', '', '', 'IRR', '0', '0');
41
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (40, 'India', 'IN', 'Indian Rupee', '', '', 'INR', '0', '0');
42
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (41, 'Iceland', 'IS', 'Iceland Krona', '', '', 'ISK', '0', '0');
43
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (42, 'Hungary', 'HU', 'Hungarian Forint', '', '', 'HUF', '0', '0');
44
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (43, 'Hong Kong', 'HK', 'Hong Kong Dollar', '$', '&#036;', 'HKD', '0', '0');
45
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (44, 'Honduras', 'HN', 'Honduran Lempira', '', '', 'HNL', '0', '0');
46
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (45, 'Heard Island and McDonald Islands', 'HM', 'Australian Dollar', '$', '&#036;', 'AUD', '0', '0');
47
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (46, 'Haiti', 'HT', 'Haitian Gourde', '', '', 'HTG', '0', '0');
48
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (47, 'Guyana', 'GY', 'Guyana Dollar', '$', '&#036;', 'GYD', '0', '0');
49
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (48, 'Guinea Bissau', 'GW', 'Guinea-Bissau Peso', '', '', 'GWP', '0', '0');
50
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (49, 'Guinea', 'GN', 'Guinea Franc', '', '', 'GNF', '0', '0');
51
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (50, 'Guernsey', 'GF', 'Pound Sterling', '£', '&#163;', 'GBP', '0', '0');
52
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (51, 'Guatemala', 'GT', 'Guatemalan Quetzal', '', '', 'QTQ', '0', '0');
53
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (52, 'Guam (USA)', 'GU', 'US Dollar', '$', '&#036;', 'USD', '0', '0');
54
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (53, 'Grenada', 'GD', 'East Carribean Dollar', '$', '&#036;', 'XCD', '0', '0');
55
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (54, 'Guadeloupe (French)', 'GP', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
56
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (55, 'Greenland', 'GL', 'Danish Krone', '', '', 'DKK', '0', '0');
57
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (56, 'Greece', 'GR', 'Euro', '€', '&#8364;', 'EUR', '0', '19');
58
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (57, 'Gibraltar', 'GI', 'Gibraltar Pound', '', '', 'GIP', '0', '0');
59
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (58, 'Ghana', 'GH', 'Ghanaian Cedi', '', '', 'GHC', '0', '0');
60
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (59, 'Germany', 'DE', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
61
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (60, 'Georgia', 'GE', 'Georgian Lari', '', '', 'GEL', '0', '0');
62
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (61, 'Gambia', 'GM', 'Gambian Dalasi', '', '', 'GMD', '0', '0');
63
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (62, 'Gabon', 'GA', 'CFA Franc BEAC', '', '', 'XAF', '0', '0');
64
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (63, 'French Southern Territories', 'TF', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
65
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (64, 'France', 'FR', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
66
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (65, 'Finland', 'FI', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
67
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (66, 'Fiji', 'FJ', 'Fiji Dollar', '$', '&#036;', 'FJD', '0', '0');
68
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (67, 'Faroe Islands', 'FO', 'Danish Krone', '', '', 'DKK', '0', '0');
69
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (68, 'Falkland Islands', 'FK', 'Falkland Islands Pound', '', '', 'FKP', '0', '0');
70
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (69, 'Ethiopia', 'ET', 'Ethiopian Birr', '', '', 'ETB', '0', '0');
71
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (70, 'Estonia', 'EE', 'Estonian Kroon', '', '', 'EEK', '0', '0');
72
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (71, 'Eritrea', 'ER', 'Eritrean Nakfa', '', '', 'ERN', '0', '0');
73
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (72, 'Equatorial Guinea', 'GQ', 'CFA Franc BEAC', '', '', 'XAF', '0', '0');
74
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (73, 'El Salvador', 'SV', 'El Salvador Colon', '', '', 'SVC', '0', '0');
75
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (74, 'Egypt', 'EG', 'Egyptian Pound', '', '', 'EGP', '0', '0');
76
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (75, 'Ecuador', 'EC', 'Ecuador Sucre', '', '', 'ECS', '0', '0');
77
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (76, 'East Timor', 'TP', 'Timor Escudo', '', '', 'TPE', '0', '0');
78
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (77, 'Dominican Republic', 'DO', 'Dominican Peso', '', '', 'DOP', '0', '0');
79
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (78, 'Dominica', 'DM', 'East Caribbean Dollar', '$', '&#036;', 'XCD', '0', '0');
80
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (79, 'Djibouti', 'DJ', 'Djibouti Franc', '', '', 'DJF', '0', '0');
81
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (80, 'Denmark', 'DK', 'Danish Krone', '', '', 'DKK', '0', '0');
82
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (81, 'Democratic Republic of Congo', 'CD', 'Francs', '', '', 'CDF', '0', '0');
83
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (82, 'Czech Rep.', 'CZ', 'Czech Koruna', '', '', 'CZK', '0', '0');
84
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (83, 'Cyprus', 'CY', 'Cyprus Pound', '', '', 'CYP', '0', '0');
85
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (84, 'Cuba', 'CU', 'Cuban Peso', '', '', 'CUP', '0', '0');
86
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (85, 'Croatia', 'HR', 'Croatian Kuna', '', '', 'HRK', '0', '0');
87
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (86, 'Costa Rica', 'CR', 'Costa Rican Colon', '', '', 'CRC', '0', '0');
88
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (87, 'Cook Islands', 'CK', 'New Zealand Dollar', '$', '&#036;', 'NZD', '0', '0');
89
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (88, 'Congo', 'CG', 'CFA Franc BEAC', '', '', 'XAF', '0', '0');
90
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (89, 'Comoros', 'KM', 'Comoros Franc', '', '', 'KMF', '0', '0');
91
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (90, 'Colombia', 'CO', 'Colombian Peso', '', '', 'COP', '0', '0');
92
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (91, 'Cocos (Keeling) Islands', 'CC', 'Australian Dollar', '$', '&#036;', 'AUD', '0', '0');
93
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (92, 'Christmas Island', 'CX', 'Australian Dollar', '$', '&#036;', 'AUD', '0', '0');
94
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (93, 'Chile', 'CL', 'Chilean Peso', '', '', 'CLP', '0', '0');
95
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (94, 'China', 'CN', 'Yuan Renminbi', '', '', 'CNY', '0', '0');
96
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (95, 'Chad', 'TD', 'CFA Franc BEAC', '', '', 'XAF', '0', '0');
97
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (96, 'Central African Republic', 'CF', 'CFA Franc BEAC', '', '', 'XAF', '0', '0');
98
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (97, 'Cayman Islands', 'KY', 'Cayman Islands Dollar', '$', '&#036;', 'KYD', '0', '0');
99
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (98, 'Cape Verde', 'CV', 'Cape Verde Escudo', '', '', 'CVE', '0', '0');
100
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (99, 'Cameroon', 'CM', 'CFA Franc BEAC', '', '', 'XAF', '0', '0');
101
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (100, 'Canada', 'CA', 'Canadian Dollar', '$', '&#036;', 'CAD', '1', '');
102
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (101, 'Cambodia', 'KH', 'Kampuchean Riel', '', '', 'KHR', '0', '0');
103
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (102, 'Burundi', 'BI', 'Burundi Franc', '', '', 'BIF', '0', '0');
104
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (103, 'Burkina Faso', 'BF', 'CFA Franc BCEAO', '', '', 'XOF', '0', '0');
105
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (104, 'Bulgaria', 'BG', 'Bulgarian Lev', '', '', 'BGL', '0', '0');
106
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (105, 'Brunei Darussalam', 'BN', 'Brunei Dollar', '$', '&#036;', 'BND', '0', '0');
107
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (106, 'British Indian Ocean Territory', 'IO', 'US Dollar', '$', '&#036;', 'USD', '0', '0');
108
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (107, 'Brazil', 'BR', 'Brazilian Real', '', '', 'BRL', '0', '0');
109
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (108, 'Bouvet Island', 'BV', 'Norwegian Krone', '', '', 'NOK', '0', '0');
110
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (109, 'Botswana', 'BW', 'Botswana Pula', '', '', 'BWP', '0', '0');
111
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (110, 'Bosnia-Herzegovina', 'BA', 'Marka', '', '', 'BAM', '0', '0');
112
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (111, 'Bolivia', 'BO', 'Boliviano', '', '', 'BOB', '0', '0');
113
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (112, 'Bhutan', 'BT', 'Bhutan Ngultrum', '', '', 'BTN', '0', '0');
114
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (113, 'Bermuda', 'BM', 'Bermudian Dollar', '$', '&#036;', 'BMD', '0', '0');
115
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (114, 'Benin', 'BJ', 'CFA Franc BCEAO', '', '', 'XOF', '0', '0');
116
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (115, 'Belize', 'BZ', 'Belize Dollar', '$', '&#036;', 'BZD', '0', '0');
117
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (116, 'Belgium', 'BE', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
118
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (117, 'Belarus', 'BY', 'Belarussian Ruble', '', '', 'BYB', '0', '0');
119
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (118, 'Barbados', 'BB', 'Barbados Dollar', '$', '&#036;', 'BBD', '0', '0');
120
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (119, 'Bangladesh', 'BD', 'Bangladeshi Taka', '', '', 'BDT', '0', '0');
121
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (120, 'Bahrain', 'BH', 'Bahraini Dinar', '', '', 'BHD', '0', '0');
122
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (121, 'Bahamas', 'BS', 'Bahamian Dollar', '$', '&#036;', 'BSD', '0', '0');
123
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (122, 'Azerbaijan', 'AZ', 'Azerbaijanian Manat', '', '', 'AZM', '0', '0');
124
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (123, 'Austria', 'AT', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
125
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (124, 'Aruba', 'AW', 'Aruban Guilder', '', '', 'AWG', '0', '0');
126
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (125, 'Armenia', 'AM', 'Armenian Dram', '', '', 'AMD', '0', '0');
127
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (126, 'Argentina', 'AR', 'Argentine Peso', '', '', 'ARS', '0', '0');
128
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (127, 'Antigua and Barbuda', 'AG', 'East Caribbean Dollar', '$', '&#036;', 'XCD', '0', '0');
129
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (128, 'Antarctica', 'AQ', 'Dollar', '$', '&#036;', 'ATA', '0', '0');
130
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (129, 'Anguilla', 'AI', 'East Caribbean Dollar', '$', '&#036;', 'XCD', '0', '0');
131
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (130, 'Angola', 'AO', 'Angolan New Kwanza', '', '', 'AON', '0', '0');
132
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (131, 'Andorra', 'AD', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
133
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (132, 'American Samoa', 'AS', 'US Dollar', '$', '&#036;', 'USD', '0', '0');
134
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (133, 'Algeria', 'DZ', 'Algerian Dinar', '', '', 'DZD', '0', '0');
135
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (134, 'Albania', 'AL', 'Albanian Lek', '', '', 'ALL', '0', '0');
136
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (135, 'Afghanistan', 'AF', 'Afghanistan Afghani', '', '', 'AFA', '0', '0');
137
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (136, 'USA', 'US', 'US Dollar', '$', '&#036;', 'USD', '1', '');
138
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (137, 'Australia', 'AU', 'Australian Dollar', '$', '&#036;', 'AUD', '0', '0');
139
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (138, 'Great Britain', 'GB', 'Pound Sterling', '£', '&#163;', 'GBP', '0', '0');
140
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (139, 'Mauritius', 'MU', 'Mauritius Rupee', '', '', 'MUR', '0', '0');
141
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (140, 'Mayotte', 'YT', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
142
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (141, 'Mexico', 'MX', 'Mexican Nuevo Peso', '', '', 'MXN', '0', '0');
143
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (142, 'Micronesia', 'FM', 'US Dollar', '$', '&#036;', 'USD', '0', '0');
144
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (143, 'Moldova', 'MD', 'Moldovan Leu', '', '', 'MDL', '0', '0');
145
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (144, 'Monaco', 'MC', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
146
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (145, 'Mongolia', 'MN', 'Mongolian Tugrik', '', '', 'MNT', '0', '0');
147
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (146, 'Montserrat', 'MS', 'East Caribbean Dollar', '$', '&#036;', 'XCD', '0', '0');
148
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (147, 'Morocco', 'MA', 'Moroccan Dirham', '', '', 'MAD', '0', '0');
149
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (148, 'Mozambique', 'MZ', 'Mozambique Metical', '', '', 'MZM', '0', '0');
150
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (149, 'Myanmar', 'MM', 'Myanmar Kyat', '', '', 'MMK', '0', '0');
151
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (150, 'Namibia', 'NA', 'Namibian Dollar', '$', '&#036;', 'NAD', '0', '0');
152
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (151, 'Nauru', 'NR', 'Australian Dollar', '$', '&#036;', 'AUD', '0', '0');
153
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (152, 'Nepal', 'NP', 'Nepalese Rupee', '', '', 'NPR', '0', '0');
154
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (153, 'Netherlands', 'NL', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
155
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (154, 'Netherlands Antilles', 'AN', 'Netherlands Antillean Guilder', '', '', 'ANG', '0', '0');
156
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (155, 'New Caledonia (French)', 'NC', 'CFP Franc', '', '', 'XPF', '0', '0');
157
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (156, 'New Zealand', 'NZ', 'New Zealand Dollar', '$', '&#036;', 'NZD', '0', '12.5');
158
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (157, 'Nicaragua', 'NI', 'Nicaraguan Cordoba Oro', '', '', 'NIC', '0', '0');
159
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (158, 'Niger', 'NE', 'CFA Franc BCEAO', '', '', 'XOF', '0', '0');
160
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (159, 'Nigeria', 'NG', 'Nigerian Naira', '', '', 'NGN', '0', '0');
161
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (160, 'Niue', 'NU', 'New Zealand Dollar', '$', '&#036;', 'NZD', '0', '0');
162
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (161, 'Norfolk Island', 'NF', 'Australian Dollar', '$', '&#036;', 'AUD', '0', '0');
163
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (162, 'Northern Mariana Islands', 'MP', 'US Dollar', '$', '&#036;', 'USD', '0', '0');
164
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (163, 'Norway', 'NO', 'Norwegian Krone', '', '', 'NOK', '0', '0');
165
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (164, 'Oman', 'OM', 'Omani Rial', '', '', 'OMR', '0', '0');
166
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (165, 'Pakistan', 'PK', 'Pakistan Rupee', '', '', 'PKR', '0', '0');
167
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (166, 'Palau', 'PW', 'US Dollar', '$', '&#036;', 'USD', '0', '0');
168
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (167, 'Panama', 'PA', 'Panamanian Balboa', '', '', 'PAB', '0', '0');
169
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (168, 'Papua New Guinea', 'PG', 'Papua New Guinea Kina', '', '', 'PGK', '0', '0');
170
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (169, 'Paraguay', 'PY', 'Paraguay Guarani', '', '', 'PYG', '0', '0');
171
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (170, 'Peru', 'PE', 'Peruvian Nuevo Sol', '', '', 'PEN', '0', '0');
172
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (171, 'Philippines', 'PH', 'Philippine Peso', '', '', 'PHP', '0', '0');
173
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (172, 'Pitcairn Island', 'PN', 'New Zealand Dollar', '$', '&#036;', 'NZD', '0', '0');
174
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (173, 'Poland', 'PL', 'Polish Zloty', '', '', 'PLZ', '0', '0');
175
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (174, 'Polynesia (French)', 'PF', 'CFP Franc', '', '', 'XPF', '0', '0');
176
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (175, 'Portugal', 'PT', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
177
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (176, 'Puerto Rico', 'PR', 'US Dollar', '$', '&#036;', 'USD', '0', '0');
178
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (177, 'Qatar', 'QA', 'Qatari Rial', '', '', 'QAR', '0', '0');
179
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (178, 'Reunion (French)', 'RE', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
180
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (179, 'Romania', 'RO', 'Romanian Leu', '', '', 'ROL', '0', '0');
181
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (180, 'Russia', 'RU', 'Russian Ruble', '', '', 'RUR', '0', '0');
182
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (181, 'Rwanda', 'RW', 'Rwanda Franc', '', '', 'RWF', '0', '0');
183
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (182, 'Saint Helena', 'SH', 'St. Helena Pound', '', '', 'SHP', '0', '0');
184
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (183, 'Saint Kitts & Nevis Anguilla', 'KN', 'East Caribbean Dollar', '$', '&#036;', 'XCD', '0', '0');
185
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (184, 'Saint Lucia', 'LC', 'East Caribbean Dollar', '$', '&#036;', 'XCD', '0', '0');
186
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (185, 'Saint Pierre and Miquelon', 'PM', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
187
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (186, 'Saint Vincent & Grenadines', 'VC', 'East Caribbean Dollar', '$', '&#036;', 'XCD', '0', '0');
188
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (187, 'Samoa', 'WS', 'Samoan Tala', '', '', 'WST', '0', '0');
189
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (188, 'San Marino', 'SM', 'Italian Lira', '', '', 'ITL', '0', '0');
190
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (189, 'Sao Tome and Principe', 'ST', 'Dobra', '', '', 'STD', '0', '0');
191
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (190, 'Saudi Arabia', 'SA', 'Saudi Riyal', '', '', 'SAR', '0', '0');
192
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (191, 'Senegal', 'SN', 'CFA Franc BCEAO', '', '', 'XOF', '0', '0');
193
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (192, 'Seychelles', 'SC', 'Seychelles Rupee', '', '', 'SCR', '0', '0');
194
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (193, 'Sierra Leone', 'SL', 'Sierra Leone Leone', '', '', 'SLL', '0', '0');
195
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (194, 'Singapore', 'SG', 'Singapore Dollar', '$', '&#036;', 'SGD', '0', '0');
196
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (195, 'Slovakia', 'SK', 'Slovak Koruna', '', '', 'SKK', '0', '0');
197
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (196, 'Slovenia', 'SI', 'Slovenian Tolar', '', '', 'SIT', '0', '0');
198
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (197, 'Solomon Islands', 'SB', 'Solomon Islands Dollar', '$', '&#036;', 'SBD', '0', '0');
199
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (198, 'Somalia', 'SO', 'Somali Shilling', '', '', 'SOD', '0', '0');
200
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (199, 'South Africa', 'ZA', 'South African Rand', '', '', 'ZAR', '0', '0');
201
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (200, 'South Georgia & South Sandwich Islands', 'GS', 'Pound Sterling', '£', '&#163;', 'GBP', '0', '0');
202
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (201, 'Spain', 'ES', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
203
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (202, 'Sri Lanka', 'LK', 'Sri Lanka Rupee', '', '', 'LKR', '0', '0');
204
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (203, 'Sudan', 'SD', 'Sudanese Dinar', '', '', 'SDD', '0', '0');
205
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (204, 'Suriname', 'SR', 'Surinam Guilder', '', '', 'SRG', '0', '0');
206
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (205, 'Svalbard and Jan Mayen Islands', 'SJ', 'Norwegian Krone', '', '', 'NOK', '0', '0');
207
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (206, 'Swaziland', 'SZ', 'Swaziland Lilangeni', '', '', 'SZL', '0', '0');
208
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (207, 'Sweden', 'SE', 'Swedish Krona', '', '', 'SEK', '0', '0');
209
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (208, 'Switzerland', 'CH', 'Swiss Franc', '', '', 'CHF', '0', '0');
210
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (209, 'Syria', 'SY', 'Syrian Pound', '', '', 'SYP', '0', '0');
211
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (210, 'Taiwan', 'TW', 'Taiwan Dollar', '$', '&#036;', 'TWD', '0', '0');
212
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (211, 'Tajikistan', 'TJ', 'Tajik Ruble', '', '', 'TJR', '0', '0');
213
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (212, 'Tanzania', 'TZ', 'Tanzanian Shilling', '', '', 'TZS', '0', '0');
214
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (213, 'Thailand', 'TH', 'Thai Baht', '', '', 'THB', '0', '0');
215
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (214, 'Togo', 'TG', 'CFA Franc BCEAO', '', '', 'XOF', '0', '0');
216
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (215, 'Tokelau', 'TK', 'New Zealand Dollar', '$', '&#036;', 'NZD', '0', '0');
217
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (216, 'Tonga', 'TO', 'Tongan Pa''anga', '', '', 'TOP', '0', '0');
218
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (217, 'Trinidad and Tobago', 'TT', 'Trinidad and Tobago Dollar', '$', '&#036;', 'TTD', '0', '0');
219
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (218, 'Tunisia', 'TN', 'Tunisian Dollar', '$', '&#036;', 'TND', '0', '0');
220
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (219, 'Turkey', 'TR', 'Turkish Lira', '', '', 'TRL', '0', '0');
221
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (220, 'Turkmenistan', 'TM', 'Manat', '', '', 'TMM', '0', '0');
222
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (221, 'Turks and Caicos Islands', 'TC', 'US Dollar', '$', '&#036;', 'USD', '0', '0');
223
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (222, 'Tuvalu', 'TV', 'Australian Dollar', '$', '&#036;', 'AUD', '0', '0');
224
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (223, 'U.K.', 'UK', 'Pound Sterling', '£', '&#163;', 'GBP', '0', '17.5');
225
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (224, 'Uganda', 'UG', 'Uganda Shilling', '', '', 'UGS', '0', '0');
226
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (225, 'Ukraine', 'UA', 'Ukraine Hryvnia', '', '', 'UAG', '0', '0');
227
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (226, 'United Arab Emirates', 'AE', 'Arab Emirates Dirham', '', '', 'AED', '0', '0');
228
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (227, 'Uruguay', 'UY', 'Uruguayan Peso', '', '', 'UYP', '0', '0');
229
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (228, 'USA Minor Outlying Islands', 'UM', 'US Dollar', '$', '&#036;', 'USD', '0', '0');
230
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (229, 'Uzbekistan', 'UZ', 'Uzbekistan Sum', '', '', 'UZS', '0', '0');
231
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (230, 'Vanuatu', 'VU', 'Vanuatu Vatu', '', '', 'VUV', '0', '0');
232
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (231, 'Vatican', 'VA', 'Euro', '€', '&#8364;', 'EUR', '0', '0');
233
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (232, 'Venezuela', 'VE', 'Venezuelan Bolivar', '', '', 'VUB', '0', '0');
234
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (233, 'Vietnam', 'VN', 'Vietnamese Dong', '', '', 'VND', '0', '0');
235
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (234, 'Virgin Islands (British)', 'VG', 'US Dollar', '$', '&#036;', 'USD', '0', '0');
236
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (235, 'Virgin Islands (USA)', 'VI', 'US Dollar', '$', '&#036;', 'USD', '0', '0');
237
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (236, 'Wallis and Futuna Islands', 'WF', 'CFP Franc', '', '', 'XPF', '0', '0');
238
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (237, 'Western Sahara', 'EH', 'Moroccan Dirham', '', '', 'MAD', '0', '0');
239
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (238, 'Yemen', 'YE', 'Yemeni Rial', '', '', 'YER', '0', '0');
240
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (239, 'Yugoslavia', 'YU', 'Yugoslav New Dinar', '', '', 'YUN', '0', '0');
241
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (240, 'Zambia', 'ZM', 'Zambian Kwacha', '', '', 'ZMK', '0', '0');
242
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (241, 'Zimbabwe', 'ZW', 'Zimbabwe Dollar', '$', '&#036;', 'ZWD', '0', '0');
243
+ INSERT INTO `".$wpdb->prefix."currency_list` VALUES (242, 'Deutschland', 'DE', 'Euro', '€', '&#8364;', 'EUR', '0', '0');";
wp-shopping-cart/display-brands.php ADDED
@@ -0,0 +1,256 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function brandlist($curent_brand)
3
+ {
4
+ global $wpdb;
5
+ $options = "";
6
+ //$options .= "<option value=''>".TXT_WPSC_SELECTABRAND."</option>\r\n";
7
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_brands` ORDER BY `id` ASC",ARRAY_A);
8
+ foreach($values as $option)
9
+ {
10
+ if($curent_brand == $option['id'])
11
+ {
12
+ $selected = "selected='selected'";
13
+ }
14
+ $options .= "<option $selected value='".$option['id']."'>".$option['name']."</option>\r\n";
15
+ $selected = "";
16
+ }
17
+ $concat .= "<select name='brand'>".$options."</select>\r\n";
18
+ return $concat;
19
+ }
20
+
21
+ $imagedir = ABSPATH."/wp-content/plugins/wp-shopping-cart/brand_images/";
22
+
23
+ if($_POST['submit_action'] == "add")
24
+ {
25
+ if($_FILES['image'] != null)
26
+ {
27
+ if(function_exists("getimagesize"))
28
+ {
29
+ // pe.{
30
+ $imagefield = 'image';
31
+ // }.pe
32
+ include("image_processing.php");
33
+ }
34
+ else
35
+ {
36
+ move_uploaded_file($_FILES['image']['tmp_name'], ($imagedir.$_FILES['image']['name']));
37
+ $image = $wpdb->escape($_FILES['image']['name']);
38
+ }
39
+ }
40
+ else
41
+ {
42
+ $image = '';
43
+ }
44
+ $insertsql = "INSERT INTO `".$wpdb->prefix."product_brands` ( `name` , `description`, `active`, `order` )VALUES ('".$_POST['name']."', '".$_POST['description']."', '1', '0')";
45
+
46
+ if($wpdb->query($insertsql))
47
+ {
48
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_ITEMHASBEENADDED."</p></div>";
49
+ }
50
+ else
51
+ {
52
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_ITEMHASNOTBEENADDED."</p></div>";
53
+ }
54
+ }
55
+
56
+ if(($_POST['submit_action'] == "edit") && is_numeric($_POST['prodid']))
57
+ {
58
+ if($_POST['special'] == 'yes')
59
+ {
60
+ $special = 1;
61
+ }
62
+ else
63
+ {
64
+ $special = 0;
65
+ }
66
+
67
+ if($_POST['notax'] == 'yes')
68
+ {
69
+ $notax = 1;
70
+ }
71
+ else
72
+ {
73
+ $notax = 0;
74
+ }
75
+ $updatesql = "UPDATE `".$wpdb->prefix."product_brands` SET `name` = '".$wpdb->escape($_POST['title'])."', `description` = '".$wpdb->escape($_POST['description'])."' WHERE `id`='".(int)$_POST['prodid']."' LIMIT 1";
76
+ $wpdb->query($updatesql);
77
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_BRANDHASBEENEDITED."</p></div>";
78
+ }
79
+
80
+
81
+ if(is_numeric($_GET['deleteid']))
82
+ {
83
+ $deletesql = "UPDATE `".$wpdb->prefix."product_brands` SET `active` = '0' WHERE `id`='".(int)$_GET['deleteid']."' LIMIT 1";
84
+ $wpdb->query($deletesql);
85
+ }
86
+
87
+ $sql = "SELECT * FROM `".$wpdb->prefix."product_brands` WHERE `active`=1";
88
+ $product_list = $wpdb->get_results($sql,ARRAY_A) ;
89
+ ?>
90
+
91
+ <script language='javascript' type='text/javascript'>
92
+ function conf()
93
+ {
94
+ var check = confirm("<?php echo TXT_WPSC_SURETODELETEPRODUCT;?>");
95
+ if(check)
96
+ {
97
+ return true;
98
+ }
99
+ else
100
+ {
101
+ return false;
102
+ }
103
+ }
104
+
105
+ <?php
106
+ if(is_numeric($_POST['prodid']))
107
+ {
108
+ echo "fillbrandform(".$_POST['prodid'].");";
109
+ }
110
+ ?>
111
+ </script>
112
+ <noscript>
113
+ </noscript>
114
+ <div class="wrap">
115
+ <h2><?php echo TXT_WPSC_DISPLAYBRANDS;?></h2>
116
+ <a href='' onclick='return showaddform()' class='add_item_link'><img src='../wp-content/plugins/wp-shopping-cart/images/package_add.png' alt='<?php echo TXT_WPSC_ADD; ?>' title='<?php echo TXT_WPSC_ADD; ?>' />&nbsp;<span><?php echo TXT_WPSC_ADDBRAND;?></span></a>
117
+ <span id='loadingindicator_span'><img id='loadingimage' src='../wp-content/plugins/wp-shopping-cart/images/indicator.gif' alt='Loading' title='Loading' /></span><br />
118
+ <?php
119
+ $num = 0;
120
+ echo " <table id='productpage'>\n\r";
121
+ echo " <tr><td>\n\r";
122
+ echo " <table id='itemlist'>\n\r";
123
+ echo " <tr class='firstrow'>\n\r";
124
+ /*
125
+ echo " <td>\n\r";
126
+ echo TXT_WPSC_IMAGE;
127
+ echo " </td>\n\r";
128
+ */
129
+
130
+ echo " <td>\n\r";
131
+ echo TXT_WPSC_NAME;
132
+ echo " </td>\n\r";
133
+
134
+ echo " <td>\n\r";
135
+ echo TXT_WPSC_DESCRIPTION;
136
+ echo " </td>\n\r";
137
+
138
+ echo " <td>\n\r";
139
+ echo TXT_WPSC_EDIT;
140
+ echo " </td>\n\r";
141
+
142
+ echo " </tr>\n\r";
143
+
144
+ if($product_list != null)
145
+ {
146
+ foreach($product_list as $product)
147
+ {
148
+ /*
149
+ echo " <tr>\n\r";
150
+ echo " <td>\n\r";
151
+ if($product['image'] !=null)
152
+ {
153
+ echo "<img src='../wp-content/plugins/wp-shopping-cart/brand_images/".$product['image']."' title='".$product['name']."' alt='".$product['name']."' width='50' height='50' />";
154
+ }
155
+ else
156
+ {
157
+ echo "<img src='../wp-content/plugins/wp-shopping-cart/no-image-uploaded.gif' title='".$product['name']."' alt='".$product['name']."' width='50' height='50' />";
158
+ }
159
+ echo " </td>\n\r";
160
+ */
161
+ echo " <td>\n\r";
162
+ echo "".stripslashes($product['name'])."";
163
+ echo " </td>\n\r";
164
+
165
+ $displaydescription = substr(stripslashes($product['description']),0,44);
166
+ if($displaydescription != $product['description'])
167
+ {
168
+ $displaydescription_arr = explode(" ",$displaydescription);
169
+ $lastword = count($displaydescription_arr);
170
+ if($lastword > 1)
171
+ {
172
+ unset($displaydescription_arr[$lastword-1]);
173
+ $displaydescription = '';
174
+ $j = 0;
175
+ foreach($displaydescription_arr as $displaydescription_row)
176
+ {
177
+ $j++;
178
+ $displaydescription .= $displaydescription_row;
179
+ if($j < $lastword -1)
180
+ {
181
+ $displaydescription .= " ";
182
+ }
183
+ }
184
+ }
185
+ $displaydescription .= "...";
186
+ }
187
+
188
+ echo " <td>\n\r";
189
+ echo "".stripslashes($displaydescription)."";
190
+ echo " </td>\n\r";
191
+
192
+ echo " <td>\n\r";
193
+ echo "<a href='#' onclick='fillbrandform(".$product['id'].");return false;'>".TXT_WPSC_EDIT."</a>";
194
+ echo " </td>\n\r";
195
+ echo " </tr>\n\r";
196
+ }
197
+ }
198
+
199
+ echo " </table>\n\r";
200
+ echo " </td><td class='secondcol'>\n\r";
201
+ echo " <div id='productform'>";
202
+ echo "<form method='POST' enctype='multipart/form-data' name='editproduct$num'>";
203
+ echo " <table class='producttext'>\n\r";;
204
+
205
+ echo " <tr>\n\r";
206
+ echo " <td colspan='2'>\n\r";
207
+ echo "<strong>".TXT_WPSC_EDITBRAND."</strong>";
208
+ echo " </td>\n\r";
209
+ echo " </tr>\n\r";
210
+
211
+ echo " </table>\n\r";
212
+ echo " <div id='formcontent'>\n\r";
213
+ echo " </div>\n\r";
214
+ echo "</form>";
215
+ echo " </div>";
216
+ ?>
217
+ <div id='additem'>
218
+ <form method='POST' enctype='multipart/form-data'>
219
+ <table>
220
+ <tr>
221
+ <td colspan='2'>
222
+ <strong><?php echo TXT_WPSC_ADDBRAND;?></strong>
223
+ </td>
224
+ </tr>
225
+ <tr>
226
+ <td>
227
+ <?php echo TXT_WPSC_NAME;?>:
228
+ </td>
229
+ <td>
230
+ <input type='text' name='name' value='' />
231
+ </td>
232
+ </tr>
233
+ <tr>
234
+ <td>
235
+ <?php echo TXT_WPSC_DESCRIPTION;?>:
236
+ </td>
237
+ <td>
238
+ <textarea name='description' cols='40' rows='8'></textarea>
239
+ </td>
240
+ </tr>
241
+ <tr>
242
+ <td>
243
+ </td>
244
+ <td>
245
+ <input type='hidden' name='submit_action' value='add' />
246
+ <input class='button' type='submit' name='submit' value='<?php echo TXT_WPSC_ADD;?>' />
247
+ </td>
248
+ </tr>
249
+ </table>
250
+ </form>
251
+ </div>
252
+ <?php
253
+ echo " </td></tr>\n\r";
254
+ echo " </table>\n\r";
255
+ ?>
256
+ </div>
wp-shopping-cart/display-category.php ADDED
@@ -0,0 +1,496 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(!is_numeric($_GET['category_group']) || ((int)$_GET['category_group'] == null)) {
3
+ $current_categorisation = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."wpsc_categorisation_groups` WHERE `active` IN ('1') AND `default` IN ('1') LIMIT 1 ",ARRAY_A);
4
+ } else {
5
+ $current_categorisation = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."wpsc_categorisation_groups` WHERE `active` IN ('1') AND `id` IN ('".(int)$_GET['category_group']."') LIMIT 1 ",ARRAY_A);
6
+ }
7
+
8
+ function admin_categorylist($curent_category) {
9
+ global $wpdb;
10
+ $options = "";
11
+ //$options .= "<option value=''>".TXT_WPSC_SELECTACATEGORY."</option>\r\n";
12
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_categories` ORDER BY `id` ASC",ARRAY_A);
13
+ foreach($values as $option) {
14
+ if($curent_category == $option['id']) {
15
+ $selected = "selected='selected'";
16
+ }
17
+ $options .= "<option $selected value='".$option['id']."'>".$option['name']."</option>\r\n";
18
+ $selected = "";
19
+ }
20
+ $concat .= "<select name='category'>".$options."</select>\r\n";
21
+ return $concat;
22
+ }
23
+
24
+ function display_categories($group_id, $id = null, $level = 0) {
25
+ global $wpdb,$category_data;
26
+ if(is_numeric($id)) {
27
+ $category_sql = "SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `group_id` IN ('$group_id') AND `active`='1' AND `category_parent` = '".$id."' ORDER BY `id`";
28
+ $category_list = $wpdb->get_results($category_sql,ARRAY_A);
29
+ } else {
30
+ $category_sql = "SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `group_id` IN ('$group_id') AND `active`='1' AND `category_parent` = '0' ORDER BY `id`";
31
+ $category_list = $wpdb->get_results($category_sql,ARRAY_A);
32
+ }
33
+ if($category_list != null) {
34
+ foreach($category_list as $category) {
35
+ display_category_row($category, $level);
36
+ display_categories($group_id, $category['id'], ($level+1));
37
+ }
38
+ }
39
+ }
40
+
41
+ function display_category_row($category,$subcategory_level = 0) {
42
+ echo " <tr>\n\r";
43
+ echo " <td colspan='4' class='colspan'>\n\r";
44
+ if($subcategory_level > 0) {
45
+ echo "<div class='subcategory' style='padding-left: ".(1*$subcategory_level)."em;'>";
46
+ echo "<img class='category_indenter' src='".WPSC_URL."/images/indenter.gif' alt='' title='' />";
47
+ }
48
+ echo " <table class='itemlist'>\n\r";
49
+ echo " <tr>\n\r";
50
+ echo " <td>\n\r";
51
+ if($category['image'] !=null) {
52
+ echo "<img src='".WPSC_CATEGORY_URL.$category['image']."' title='".$category['name']."' alt='".$category['name']."' width='35' height='35' />";
53
+ } else {
54
+ echo "<img style='border-style:solid; border-color: red' src='".WPSC_URL."/no-image-uploaded.gif' title='".$category['name']."' alt='".$category['name']."' width='35' height='35' />";
55
+ }
56
+ echo " </td>\n\r";
57
+
58
+ echo " <td>\n\r";
59
+ echo "".htmlentities(stripslashes($category['name']), ENT_QUOTES)." (".$category['id'].")";
60
+ echo " </td>\n\r";
61
+
62
+ $displaydescription = substr(stripslashes($category['description']),0,44);
63
+ if($displaydescription != $category['description']) {
64
+ $displaydescription_arr = explode(" ",$displaydescription);
65
+ $lastword = count($displaydescription_arr);
66
+ if($lastword > 1) {
67
+ unset($displaydescription_arr[$lastword-1]);
68
+ $displaydescription = '';
69
+ $j = 0;
70
+ foreach($displaydescription_arr as $displaydescription_row) {
71
+ $j++;
72
+ $displaydescription .= $displaydescription_row;
73
+ if($j < $lastword -1) {
74
+ $displaydescription .= " ";
75
+ }
76
+ }
77
+ }
78
+ $displaydescription .= "...";
79
+ }
80
+
81
+ echo " <td>\n\r";
82
+ echo "".stripslashes($displaydescription)."";
83
+ echo " </td>\n\r";
84
+
85
+ echo " <td>\n\r";
86
+ echo "<a href='#' onclick='fillcategoryform(".$category['id'].");return false;'>".TXT_WPSC_EDIT."</a>";
87
+ echo " </td>\n\r";
88
+ echo " </tr>\n\r";
89
+ echo " </table>";
90
+
91
+ if($subcategory_level > 0) {
92
+ echo "</div>";
93
+ }
94
+ echo " </td>\n\r";
95
+ echo " </tr>\n\r";
96
+ }
97
+
98
+ if($_POST['submit_action'] == "add") {
99
+ if(($_FILES['image'] != null) && preg_match("/\.(gif|jp(e)*g|png){1}$/i",$_FILES['image']['name'])) {
100
+ if(function_exists("getimagesize")) {
101
+ if(((int)$_POST['width'] > 10 && (int)$_POST['width'] < 512) && ((int)$_POST['height'] > 10 && (int)$_POST['height'] < 512) ) {
102
+ $width = (int)$_POST['width'];
103
+ $height = (int)$_POST['height'];
104
+ image_processing($_FILES['image']['tmp_name'], (WPSC_CATEGORY_DIR.$_FILES['image']['name']), $width, $height);
105
+ } else {
106
+ image_processing($_FILES['image']['tmp_name'], (WPSC_CATEGORY_DIR.$_FILES['image']['name']));
107
+ }
108
+ $image = $wpdb->escape($_FILES['image']['name']);
109
+ } else {
110
+ $new_image_path = (WPSC_CATEGORY_DIR.basename($_FILES['image']['name']));
111
+ move_uploaded_file($_FILES['image']['tmp_name'], $new_image_path);
112
+ $stat = stat( dirname( $new_image_path ));
113
+ $perms = $stat['mode'] & 0000666;
114
+ @ chmod( $new_image_path, $perms );
115
+ $image = $wpdb->escape($_FILES['image']['name']);
116
+ }
117
+ } else {
118
+ $image = '';
119
+ }
120
+
121
+ if(is_numeric($_POST['category_parent'])) {
122
+ $parent_category = (int)$_POST['category_parent'];
123
+ } else {
124
+ $parent_category = 0;
125
+ }
126
+
127
+
128
+ $tidied_name = trim($_POST['name']);
129
+ $tidied_name = strtolower($tidied_name);
130
+ $url_name = preg_replace(array("/(\s)+/","/[^\w-]+/"), array("-", ''), $tidied_name);
131
+ $similar_names = $wpdb->get_row("SELECT COUNT(*) AS `count`, MAX(REPLACE(`nice-name`, '$url_name', '')) AS `max_number` FROM `".$wpdb->prefix."product_categories` WHERE `nice-name` REGEXP '^($url_name){1}(\d)*$' ",ARRAY_A);
132
+ $extension_number = '';
133
+ if($similar_names['count'] > 0) {
134
+ $extension_number = (int)$similar_names['max_number']+1;
135
+ }
136
+ $url_name .= $extension_number;
137
+
138
+ $insertsql = "INSERT INTO `".$wpdb->prefix."product_categories` (`group_id`, `name` , `nice-name` , `description`, `image`, `fee` , `active`, `category_parent`, `order` ) VALUES ( '".(int)$_POST['categorisation_group']."', '".$wpdb->escape(stripslashes($_POST['name']))."', '".$url_name."', '".$wpdb->escape(stripslashes($_POST['description']))."', '$image', '0', '1' ,'$parent_category', '0')";
139
+ $wp_rewrite->flush_rules();
140
+ if($wpdb->query($insertsql)) {
141
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_ITEMHASBEENADDED."</p></div>";
142
+ } else {
143
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_ITEMHASNOTBEENADDED."</p></div>";
144
+ }
145
+
146
+ $wp_rewrite->flush_rules();
147
+ }
148
+
149
+ if(($_POST['submit_action'] == "edit") && is_numeric($_POST['prodid'])) {
150
+ if(($_FILES['image'] != null) && preg_match("/\.(gif|jp(e)*g|png){1}$/i",$_FILES['image']['name'])) {
151
+ if(function_exists("getimagesize")) {
152
+ if(((int)$_POST['width'] >= 10 && (int)$_POST['width'] <= 512) && ((int)$_POST['height'] >= 10 && (int)$_POST['height'] <= 512) ) {
153
+ $height = (int)$_POST['width'];
154
+ $height = (int)$_POST['height'];
155
+ image_processing($_FILES['image']['tmp_name'], (WPSC_CATEGORY_DIR.$_FILES['image']['name']), $width, $height);
156
+ } else {
157
+ image_processing($_FILES['image']['tmp_name'], (WPSC_CATEGORY_DIR.$_FILES['image']['name']));
158
+ }
159
+ $image = $wpdb->escape($_FILES['image']['name']);
160
+ } else {
161
+ move_uploaded_file($_FILES['image']['tmp_name'], (WPSC_CATEGORY_DIR.$_FILES['image']['name']));
162
+ $image = $wpdb->escape($_FILES['image']['name']);
163
+ }
164
+ } else {
165
+ $image = '';
166
+ }
167
+
168
+ if(is_numeric($_POST['height']) && is_numeric($_POST['width']) && ($image == null)) {
169
+ $imagesql = "SELECT `image` FROM `".$wpdb->prefix."product_categories` WHERE `id`=".(int)$_POST['prodid']." LIMIT 1";
170
+ $imagedata = $wpdb->get_results($imagesql,ARRAY_A);
171
+ if($imagedata[0]['image'] != null) {
172
+ $height = $_POST['height'];
173
+ $width = $_POST['width'];
174
+ $imagepath = WPSC_CATEGORY_DIR . $imagedata[0]['image'];
175
+ $image_output = WPSC_CATEGORY_DIR . $imagedata[0]['image'];
176
+ image_processing($imagepath, $image_output, $width, $height);
177
+ }
178
+ }
179
+
180
+ $category_data = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `id` IN ('".(int)$_POST['prodid']."')", ARRAY_A);
181
+
182
+ if($_POST['title'] != $category_data['name']) {
183
+ $category_name = $_POST['title'];
184
+ $category_sql_list[] = "`name` = '$category_name' ";
185
+
186
+ /* creates and checks the tidy URL name */
187
+ $tidied_name = trim($category_name);
188
+ $tidied_name = strtolower($tidied_name);
189
+ $url_name = preg_replace(array("/(\s)+/","/[^\w-]+/"), array("-", ''), $tidied_name);
190
+ if($url_name != $category_data['nice-name']) {
191
+ $similar_names = $wpdb->get_row("SELECT COUNT(*) AS `count`, MAX(REPLACE(`nice-name`, '$url_name', '')) AS `max_number` FROM `".$wpdb->prefix."product_categories` WHERE `nice-name` REGEXP '^($url_name){1}(0-9)*$' AND `id` NOT IN ('".(int)$category_data['id']."') ",ARRAY_A);
192
+ //exit("<pre>".print_r($similar_names,true)."</pre>");
193
+ $extension_number = '';
194
+ if($similar_names['count'] > 0) {
195
+ $extension_number = (int)$similar_names['max_number']+1;
196
+ }
197
+ $url_name .= $extension_number;
198
+ }
199
+ /* checks again, just in case */
200
+ if($url_name != $category_data['nice-name']) {
201
+ $category_sql_list[] = "`nice-name` = '$url_name' ";
202
+ }
203
+ $wp_rewrite->flush_rules();
204
+ }
205
+
206
+ if($_POST['description'] != $category_data['description']) {
207
+ $description = $_POST['description'];
208
+ $category_sql_list[] = "`description` = '$description' ";
209
+ }
210
+
211
+ if(is_numeric($_POST['category_parent']) and ($_POST['category_parent'] != $category_data['category_parent'])) {
212
+ $parent_category = (int)$_POST['category_parent'];
213
+ $category_sql_list[] = "`category_parent` = '$parent_category' ";
214
+ }
215
+
216
+ if($_POST['deleteimage'] == 1) {
217
+ $category_sql_list[] = "`image` = ''";
218
+ } else {
219
+ if($image != null) {
220
+ $category_sql_list[] = "`image` = '$image'";
221
+ }
222
+ }
223
+
224
+ if(count($category_sql_list) > 0) {
225
+ $category_sql = implode(", ",$category_sql_list);
226
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_categories` SET $category_sql WHERE `id`='".(int)$_POST['prodid']."' LIMIT 1");
227
+ $wp_rewrite->flush_rules();
228
+ }
229
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_CATEGORYHASBEENEDITED."</p></div>";
230
+ }
231
+
232
+ if($_POST['submit_action'] == "add_categorisation") {
233
+ $wpdb->query("INSERT INTO `{$wpdb->prefix}wpsc_categorisation_groups` ( `name`, `description`, `active`, `default`) VALUES ( '".$wpdb->escape(stripslashes($_POST['name']))."', '".$wpdb->escape(stripslashes($_POST['description']))."', '1', '0')");
234
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_CATEGORISATIONHASBEENADDED."</p></div>";
235
+
236
+ }
237
+
238
+
239
+
240
+ if($_POST['submit_action'] == "edit_categorisation") {
241
+ $edit_group_id = $_POST['group_id'];
242
+
243
+ $wpdb->query("UPDATE `{$wpdb->prefix}wpsc_categorisation_groups` SET `name` = '".$wpdb->escape(stripslashes($_POST['name']))."', `description` = '".$wpdb->escape(stripslashes($_POST['description']))."' WHERE `id` IN('$edit_group_id') LIMIT 1 ");
244
+
245
+
246
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_CATEGORISATIONHASBEENEDITED."</p></div>";
247
+
248
+
249
+ if(!is_numeric($_GET['category_group']) || ((int)$_GET['category_group'] == null)) {
250
+ $current_categorisation = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."wpsc_categorisation_groups` WHERE `active` IN ('1') AND `default` IN ('1') LIMIT 1 ",ARRAY_A);
251
+ } else {
252
+ $current_categorisation = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."wpsc_categorisation_groups` WHERE `active` IN ('1') AND `id` IN ('".(int)$_GET['category_group']."') LIMIT 1 ",ARRAY_A);
253
+ }
254
+ }
255
+
256
+
257
+ if(is_numeric($_GET['category_delete_id'])) {
258
+ $delete_id = (int)$_GET['category_delete_id'];
259
+ $deletesql = "UPDATE `".$wpdb->prefix."wpsc_categorisation_groups` SET `active` = '0' WHERE `id`='{$delete_id}' AND `default` IN ('0') LIMIT 1";
260
+ $wpdb->query($deletesql);
261
+ $delete_subcat_sql = "UPDATE `".$wpdb->prefix."product_categories` SET `active` = '0', `nice-name` = '' WHERE `group_id`='{$delete_id}'";
262
+ $wpdb->query($delete_subcat_sql);
263
+ $wp_rewrite->flush_rules();
264
+ }
265
+
266
+
267
+ if(is_numeric($_GET['deleteid'])) {
268
+ $delete_id = (int)$_GET['deleteid'];
269
+ $deletesql = "UPDATE `".$wpdb->prefix."product_categories` SET `active` = '0', `nice-name` = '' WHERE `id`='{$delete_id}' LIMIT 1";
270
+ if($wpdb->query($deletesql)) {
271
+ $delete_subcat_sql = "UPDATE `".$wpdb->prefix."product_categories` SET `active` = '0', `nice-name` = '' WHERE `category_parent`='{$delete_id}'";
272
+ $wpdb->query($delete_subcat_sql);
273
+ // if this is the default category, we need to find a new default category
274
+ if($delete_id == get_option('default_category')) {
275
+ // select the category that is not deleted with the greatest number of products in it
276
+ $new_default = $wpdb->get_var("SELECT `cat`.`id` FROM `{$wpdb->prefix}product_categories` AS `cat`
277
+ LEFT JOIN `{$wpdb->prefix}item_category_associations` AS `assoc` ON `cat`.`id` = `assoc`.`category_id`
278
+ WHERE `cat`.`active` IN ( '1' )
279
+ GROUP BY `cat`.`id`
280
+ ORDER BY COUNT( `assoc`.`id` ) DESC
281
+ LIMIT 1");
282
+ if($new_default > 0) {
283
+ update_option('default_category', $new_default);
284
+ }
285
+ }
286
+ $wp_rewrite->flush_rules();
287
+ }
288
+ }
289
+
290
+ ?>
291
+ <script language='javascript' type='text/javascript'>
292
+ function conf() {
293
+ var check = confirm("<?php echo TXT_WPSC_SURETODELETECATEGORY;?>");
294
+ if(check) {
295
+ return true;
296
+ } else {
297
+ return false;
298
+ }
299
+ }
300
+ function categorisation_conf() {
301
+ var check = confirm("<?php echo TXT_WPSC_SURETODELETECATEGORISATION;?>");
302
+ if(check) {
303
+ return true;
304
+ } else {
305
+ return false;
306
+ }
307
+ }
308
+
309
+ <?php
310
+ if(is_numeric($_POST['prodid'])) {
311
+ echo "fillcategoryform(".$_POST['prodid'].");";
312
+ }
313
+ ?>
314
+ </script>
315
+ <noscript>
316
+ </noscript>
317
+ <div class="wrap">
318
+ <h2><?php echo TXT_WPSC_CATEGORISATION;?></h2>
319
+ <span id='loadingindicator_span'><img id='loadingimage' src='<?php echo WPSC_URL;?>/images/indicator.gif' alt='Loading' title='Loading' /></span><br />
320
+ <span><?php echo TXT_WPSC_CATEGORISATION_GROUPS_DESCR;?></span>
321
+
322
+ <div id='add_categorisation'>
323
+ <strong><?php echo TXT_WPSC_ADD_CATEGORISATION;?></strong>
324
+ <form method='POST' enctype='multipart/form-data'>
325
+
326
+ <fieldset>
327
+ <label for='add_categorisation_name'>Name</label>
328
+ <input type='text' name='name' value='' id='add_categorisation_name' />
329
+ </fieldset>
330
+
331
+ <fieldset>
332
+ <label for='add_categorisation_description'>Description</label>
333
+ <input type='text' name='description' value='' id='add_categorisation_description' />
334
+ </fieldset>
335
+
336
+ <fieldset>
337
+ <label>&nbsp;</label>
338
+
339
+ <input type='hidden' name='submit_action' value='add_categorisation' />
340
+ <input type='submit' name='submit_form' value='<?php echo TXT_WPSC_SUBMIT; ?>' />
341
+ </fieldset>
342
+ </form>
343
+ <br/>
344
+ </div>
345
+
346
+ <div id='edit_categorisation'>
347
+ <strong><?php echo TXT_WPSC_EDIT_CATEGORISATION;?></strong>
348
+
349
+ <form method='POST' enctype='multipart/form-data'>
350
+
351
+ <fieldset>
352
+ <label for='add_categorisation_name'>Name</label>
353
+ <input type='text' name='name' value='<?php echo $current_categorisation['name']; ?>' id='add_categorisation_name' />
354
+ </fieldset>
355
+
356
+ <fieldset>
357
+ <label for='add_categorisation_description'>Description</label>
358
+ <input type='text' name='description' value='<?php echo $current_categorisation['description']; ?>' id='add_categorisation_description' />
359
+ </fieldset>
360
+
361
+ <fieldset>
362
+ <label>&nbsp;</label>
363
+ <input type='hidden' name='group_id' value='<?php echo $current_categorisation['id']; ?>' />
364
+ <input type='hidden' name='submit_action' value='edit_categorisation' />
365
+ <input type='submit' name='submit_form' value='<?php echo TXT_WPSC_SUBMIT; ?>' />
366
+ <?php if($current_categorisation['default'] != 1) { ?>
367
+ <a href='<?php echo "?page={$_GET['page']}&amp;category_delete_id={$current_categorisation['id']}" ?>' onclick='return categorisation_conf()' > <?php echo TXT_WPSC_DELETE; ?></a>
368
+ <?php } ?>
369
+ </fieldset>
370
+ </form>
371
+ <br/>
372
+ </div>
373
+
374
+
375
+ <?php
376
+
377
+ $categorisation_groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}wpsc_categorisation_groups` WHERE `active` IN ('1')", ARRAY_A);
378
+ echo "<ul class='categorisation_links'>\n\r";
379
+ foreach((array)$categorisation_groups as $categorisation_group){
380
+ $selected = '';
381
+ if($current_categorisation['id'] == $categorisation_group['id']) {
382
+ $selected = "class='selected'";
383
+ }
384
+ echo " <li $selected >\n\r";
385
+ echo " <a href='?page={$_GET['page']}&amp;category_group={$categorisation_group['id']}'>{$categorisation_group['name']}</a> ";
386
+ echo " </li>\n\r";
387
+ }
388
+ echo "<li>- <a href='' onclick='return showadd_categorisation_form()'><span>".TXT_WPSC_ADD_CATEGORISATION."</span></a></li>";
389
+ echo "</ul>\n\r";
390
+
391
+
392
+ $num = 0;
393
+ echo " <table id='productpage'>\n\r";
394
+ echo " <tr><td>\n\r";
395
+ echo "<div class='categorisation_title'><a href='' onclick='return showaddform()' class='add_category_link'><span>". TXT_WPSC_ADDNEWCATEGORY."</span></a><strong class='form_group'>".str_replace("[categorisation]", $current_categorisation['name'], TXT_WPSC_MANAGE_CATEGORISATION)." <a href='#' onclick='return showedit_categorisation_form()'>[".TXT_WPSC_EDIT."]</a> </strong></div>";
396
+ echo " <table id='itemlist'>\n\r";
397
+ echo " <tr class='firstrow'>\n\r";
398
+
399
+ echo " <td>\n\r";
400
+ echo TXT_WPSC_IMAGE;
401
+ echo " </td>\n\r";
402
+
403
+ echo " <td>\n\r";
404
+ echo TXT_WPSC_NAME;
405
+ echo " </td>\n\r";
406
+
407
+ echo " <td>\n\r";
408
+ echo TXT_WPSC_DESCRIPTION;
409
+ echo " </td>\n\r";
410
+
411
+ echo " <td>\n\r";
412
+ echo TXT_WPSC_EDIT;
413
+ echo " </td>\n\r";
414
+
415
+ echo " </tr>\n\r";
416
+
417
+ display_categories($current_categorisation['id']);
418
+
419
+ echo " </table>\n\r";
420
+ echo " </td><td class='secondcol'>\n\r";
421
+ echo " <div id='productform'>";
422
+ echo "<form method='POST' enctype='multipart/form-data' name='editproduct$num'>\n\r";
423
+ echo "<div class='categorisation_title'><strong class='form_group'>".TXT_WPSC_EDITDETAILS." </strong></div>\n\r";
424
+
425
+ echo " <div id='formcontent'>\n\r";
426
+ echo " </div>\n\r";
427
+ echo "</form>\n\r";
428
+ echo " </div>\n\r";
429
+ ?>
430
+ <div id='additem'>
431
+
432
+ <div class='categorisation_title'><strong class='form_group'><?php echo TXT_WPSC_ADDDETAILS;?></strong></div>
433
+ <form method='POST' enctype='multipart/form-data'>
434
+ <table class='category_forms'>
435
+ <tr>
436
+ <td>
437
+ <?php echo TXT_WPSC_NAME;?>:
438
+ </td>
439
+ <td>
440
+ <input type='text' name='name' value='' />
441
+ </td>
442
+ </tr>
443
+ <tr>
444
+ <td>
445
+ <?php echo TXT_WPSC_DESCRIPTION;?>:
446
+ </td>
447
+ <td>
448
+ <textarea name='description' cols='40' rows='8'></textarea>
449
+ </td>
450
+ </tr>
451
+ <tr>
452
+ <td>
453
+ <?php echo TXT_WPSC_CATEGORY_PARENT;?>:
454
+ </td>
455
+ <td>
456
+ <?php echo wpsc_parent_category_list($current_categorisation['id'], 0,0); ?>
457
+ </td>
458
+ </tr>
459
+ <tr>
460
+ <td>
461
+ <?php echo TXT_WPSC_IMAGE;?>:
462
+ </td>
463
+ <td>
464
+ <input type='file' name='image' value='' />
465
+ </td>
466
+ </tr>
467
+ <?php
468
+ if(function_exists("getimagesize")) {
469
+ ?>
470
+ <tr>
471
+ <td>
472
+ </td>
473
+ <td>
474
+ <?php echo TXT_WPSC_HEIGHT;?>:<input type='text' size='6' name='height' value='<?php echo get_option('category_image_height'); ?>' /> <?php echo TXT_WPSC_WIDTH;?>:<input type='text' size='6' name='width' value='<?php echo get_option('category_image_width'); ?>' /> <br /><span class='small'><?php echo $nzshpcrt_imagesize_info; ?></span>
475
+ </td>
476
+ </tr>
477
+ <?php
478
+ }
479
+ ?>
480
+ <tr>
481
+ <td>
482
+ </td>
483
+ <td>
484
+ <input type='hidden' name='categorisation_group' value='<?php echo $current_categorisation['id']; ?>' />
485
+ <input type='hidden' name='submit_action' value='add' />
486
+ <input class='button' type='submit' name='submit' value='<?php echo TXT_WPSC_ADD;?>' />
487
+ </td>
488
+ </tr>
489
+ </table>
490
+ </form>
491
+ </div>
492
+ <?php
493
+ echo " </td></tr>\n\r";
494
+ echo " </table>\n\r";
495
+ ?>
496
+ </div>
wp-shopping-cart/display-coupons.php ADDED
@@ -0,0 +1,422 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(isset($_POST) && is_array($_POST)) {
3
+ if(isset($_POST['add_coupon']) && ($_POST['add_coupon'] == 'true')&& (!($_POST['is_edit_coupon'] == 'true'))) {
4
+ $coupon_code = $_POST['add_coupon_code'];
5
+ $discount = (double)$_POST['add_discount'];
6
+ // cast to boolean, then integer, prevents the value from being anything but 1 or 0
7
+ $discount_type = (int)(bool)$_POST['add_discount_type'];
8
+ $use_once = (int)(bool)$_POST['add_use-once'];
9
+ $every_product = (int)(bool)$_POST['add_every_product'];
10
+ $start_date = date("Y-m-d H:i:s", mktime(0, 0, 0, (int)$_POST['add_start']['month'], (int)$_POST['add_start']['day'], (int)$_POST['add_start']['year']));
11
+ $end_date = date("Y-m-d H:i:s", mktime(0, 0, 0, (int)$_POST['add_end']['month'], (int)$_POST['add_end']['day'], (int)$_POST['add_end']['year']));
12
+
13
+ if($wpdb->query("INSERT INTO `".$wpdb->prefix."wpsc_coupon_codes` ( `coupon_code` , `value` , `is-percentage` , `use-once` , `is-used` , `active` , `start` , `expiry` ) VALUES ( '$coupon_code', '$discount', '$discount_type', '$use_once', '0', '1', '$start_date' , '$end_date' );")) {
14
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_COUPONHASBEENADDED."</p></div>";
15
+ }
16
+ }
17
+ //
18
+ if(isset($_POST['is_edit_coupon']) && ($_POST['is_edit_coupon'] == 'true')) {
19
+
20
+ foreach((array)$_POST['edit_coupon'] as $coupon_id => $coupon_data) {
21
+ //echo('<pre>'.print_r($coupon_data,true)."</pre>");
22
+ $coupon_id = (int)$coupon_id;
23
+ // convert dates to a form that compares well and can be inserted into the database
24
+ $coupon_data['start'] = date("Y-m-d H:i:s", mktime(0, 0, 0, (int)$coupon_data['start']['month'], (int)$coupon_data['start']['day'], (int)$coupon_data['start']['year']));
25
+ $coupon_data['expiry'] = date("Y-m-d H:i:s", mktime(0, 0, 0, (int)$coupon_data['expiry']['month'], (int)$coupon_data['expiry']['day'], (int)$coupon_data['expiry']['year']));
26
+ $check_values = $wpdb->get_row("SELECT `id`, `coupon_code`, `value`, `is-percentage`, `use-once`, `active`, `start`, `expiry` FROM `".$wpdb->prefix."wpsc_coupon_codes` WHERE `id` = '$coupon_id'", ARRAY_A);
27
+ //sort both arrays to make sure that if they contain the same stuff, that they will compare to be the same, may not need to do this, but what the heck
28
+ ksort($check_values); ksort($coupon_data);
29
+
30
+ if($check_values != $coupon_data) {
31
+ $insert_array = array();
32
+ foreach($coupon_data as $coupon_key => $coupon_value) {
33
+ if(($coupon_key == "submit_coupon") || ($coupon_key == "delete_coupon")) {
34
+ continue;
35
+ }
36
+ if($coupon_value != $check_values[$coupon_key]) {
37
+ $insert_array[] = "`$coupon_key` = '$coupon_value'";
38
+ }
39
+ }
40
+
41
+ //echo("<pre>".print_r($insert_array,true)."</pre>");
42
+ if(count($insert_array) > 0) {
43
+ $wpdb->query("UPDATE `".$wpdb->prefix."wpsc_coupon_codes` SET ".implode(", ", $insert_array)." WHERE `id` = '$coupon_id' LIMIT 1;");
44
+ }
45
+ unset($insert_array);
46
+ //echo("<pre>".print_r($check_values,true)."</pre>");
47
+ }
48
+ //echo("<pre>".print_r($coupon_data,true)."</pre>");
49
+
50
+ if($coupon_data['delete_coupon'] != '') {
51
+ $wpdb->query("DELETE FROM `".$wpdb->prefix."wpsc_coupon_codes` WHERE `id` = '$coupon_id' LIMIT 1;");
52
+ }
53
+ }
54
+ }
55
+
56
+ if($_POST['change-settings'] == 'true') {
57
+ if($_POST['wpsc_also_bought'] == 1) {
58
+ update_option('wpsc_also_bought', 1);
59
+ } else {
60
+ update_option('wpsc_also_bought', 0);
61
+ }
62
+
63
+ if($_POST['display_find_us'] == 'on') {
64
+ update_option('display_find_us', 1);
65
+ } else {
66
+ update_option('display_find_us', 0);
67
+ }
68
+
69
+ if($_POST['wpsc_share_this'] == 1) {
70
+ update_option('wpsc_share_this', 1);
71
+ } else {
72
+ update_option('wpsc_share_this', 0);
73
+ }
74
+ }
75
+ }
76
+
77
+ /*<strong><?php echo TXT_WPSC_ADD_COUPON; ?></strong>*/
78
+ ?>
79
+ <div class="wrap">
80
+ <h2><?php echo TXT_WPSC_DISPLAYCOUPONS;?></h2>
81
+ <a href='' onclick='return show_status_box("add_coupon_box","add_coupon_box_link");' class='add_item_link' id='add_coupon_box_link'><img src='<?php echo WPSC_URL; ?>/images/package_add.png' alt='<?php echo TXT_WPSC_ADD; ?>' title='<?php echo TXT_WPSC_ADD; ?>' />&nbsp;<span><?php echo TXT_WPSC_ADD_COUPON;?></span></a>
82
+ <span id='loadingindicator_span'><img id='loadingimage' src='<?php echo WPSC_URL; ?>/images/indicator.gif' alt='Loading' title='Loading' /></span><br />
83
+ <p style='margin: 0px 0px 5px 0px;'> <?php echo TXT_WPSC_PAYPALNOTE;?>
84
+
85
+ </p>
86
+ <!-- <form name='edit_coupon' method='post' action=''> -->
87
+ <table style="width: 100%;">
88
+ <tr>
89
+ <td id="coupon_data">
90
+
91
+
92
+ <div id='add_coupon_box' class='modify_coupon' >
93
+ <form name='add_coupon' method='post' action=''>
94
+ <table class='add-coupon'>
95
+ <tr>
96
+ <th>
97
+ <?php echo TXT_WPSC_COUPON_CODE; ?>
98
+ </th>
99
+ <th>
100
+ <?php echo TXT_WPSC_DISCOUNT; ?>
101
+ </th>
102
+ <th>
103
+ <?php echo TXT_WPSC_START; ?>
104
+ </th>
105
+ <th>
106
+ <?php echo TXT_WPSC_EXPIRY; ?>
107
+ </th>
108
+ <th>
109
+ <?php echo TXT_WPSC_USE_ONCE; ?>
110
+ </th>
111
+ <th>
112
+ <?php echo TXT_WPSC_ACTIVE; ?>
113
+ </th>
114
+ <th>
115
+ <?php echo TXT_WPSC_PERTICKED; ?>
116
+ </th>
117
+ </tr>
118
+ <tr>
119
+ <td>
120
+ <input type='text' value='' name='add_coupon_code' />
121
+ </td>
122
+ <td>
123
+ <input type='text' value='' size='3' name='add_discount' />
124
+ <select name='add_discount_type'>
125
+ <option value='0' >$</option>
126
+ <option value='1' >%</option>
127
+ </select>
128
+ </td>
129
+ <td>
130
+ <select name='add_start[day]'>
131
+ <?php
132
+ for($i = 1; $i <=31; ++$i) {
133
+ $selected = '';
134
+ if($i == date("d")) { $selected = "selected='true'"; }
135
+ echo "<option $selected value='$i'>$i</option>";
136
+ }
137
+ ?>
138
+ </select>
139
+ <select name='add_start[month]'>
140
+ <?php
141
+ for($i = 1; $i <=12; ++$i) {
142
+ $selected = '';
143
+ if($i == (int)date("m")) { $selected = "selected='true'"; }
144
+ echo "<option $selected value='$i'>".date("M",mktime(0, 0, 0, $i, 1, date("Y")))."</option>";
145
+ }
146
+ ?>
147
+ </select>
148
+ <select name='add_start[year]'>
149
+ <?php
150
+ for($i = date("Y"); $i <= (date("Y") +12); ++$i) {
151
+ $selected = '';
152
+ if($i == date("Y")) { $selected = "selected='true'"; }
153
+ echo "<option $selected value='$i'>".$i."</option>";
154
+ }
155
+ ?>
156
+ </select>
157
+ </td>
158
+ <td>
159
+ <select name='add_end[day]'>
160
+ <?php
161
+ for($i = 1; $i <=31; ++$i) {
162
+ $selected = '';
163
+ if($i == date("d")) { $selected = "selected='true'"; }
164
+ echo "<option $selected value='$i'>$i</option>";
165
+ }
166
+ ?>
167
+ </select>
168
+ <select name='add_end[month]'>
169
+ <?php
170
+ for($i = 1; $i <=12; ++$i) {
171
+ $selected = '';
172
+ if($i == (int)date("m")) { $selected = "selected='true'"; }
173
+ echo "<option $selected value='$i'>".date("M",mktime(0, 0, 0, $i, 1, date("Y")))."</option>";
174
+ }
175
+ ?>
176
+ </select>
177
+ <select name='add_end[year]'>
178
+ <?php
179
+ for($i = date("Y"); $i <= (date("Y") +12); ++$i) {
180
+ $selected = '';
181
+ if($i == (date("Y")+1)) { $selected = "selected='true'"; }
182
+ echo "<option $selected value='$i'>".$i."</option>";
183
+ }
184
+ ?>
185
+ </select>
186
+ </td>
187
+ <td>
188
+ <input type='hidden' value='0' name='add_use-once' />
189
+ <input type='checkbox' value='1' name='add_use-once' />
190
+ </td>
191
+ <td>
192
+ <input type='hidden' value='0' name='add_active' />
193
+ <input type='checkbox' value='1' checked='true' name='add_active' />
194
+ </td>
195
+ <td>
196
+ <input type='hidden' value='0' name='add_every_product' />
197
+ <input type="checkbox" value="1" name='add_every_product'/>
198
+ </td>
199
+
200
+ <td>
201
+
202
+ <input type='hidden' value='true' name='add_coupon' />
203
+ <input type='submit' value='Submit' name='submit_coupon' />
204
+ </td>
205
+ </tr>
206
+ </table>
207
+ </form>
208
+ </div>
209
+
210
+ <?php
211
+ $num = 0;
212
+
213
+ echo "<table class='coupon-list'>\n\r";
214
+ echo " <tr class='toprow'>\n\r";
215
+
216
+ echo " <td>\n\r";
217
+ echo TXT_WPSC_COUPON_CODE;
218
+ echo " </td>\n\r";
219
+
220
+ echo " <td>\n\r";
221
+ echo TXT_WPSC_DISCOUNT;
222
+ echo " </td>\n\r";
223
+
224
+ echo " <td>\n\r";
225
+ echo TXT_WPSC_START;
226
+ echo " </td>\n\r";
227
+
228
+ echo " <td>\n\r";
229
+ echo TXT_WPSC_EXPIRY;
230
+ echo " </td>\n\r";
231
+
232
+ echo " <td>\n\r";
233
+ echo TXT_WPSC_ACTIVE;
234
+ echo " </td>\n\r";
235
+
236
+ echo " <td>\n\r";
237
+ echo TXT_WPSC_PERTICKED;
238
+ echo " </td>\n\r";
239
+
240
+ echo " <td>\n\r";
241
+ echo TXT_WPSC_EDIT;
242
+ echo " </td>\n\r";
243
+
244
+ $i=0;
245
+ $coupon_data = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."wpsc_coupon_codes` ",ARRAY_A);
246
+ foreach((array)$coupon_data as $coupon) {
247
+ $alternate = "";
248
+ $i++;
249
+ if(($i % 2) != 0) {
250
+ $alternate = "class='alt'";
251
+ }
252
+ echo "<tr $alternate>\n\r";
253
+
254
+ echo " <td>\n\r";
255
+ echo $coupon['coupon_code'];
256
+ echo " </td>\n\r";
257
+
258
+ echo " <td>\n\r";
259
+ if($coupon['is-percentage'] == 1){
260
+ echo $coupon['value']."%";
261
+ } else {
262
+ echo nzshpcrt_currency_display($coupon['value'], 1);
263
+ }
264
+ echo " </td>\n\r";
265
+
266
+ echo " <td>\n\r";
267
+ echo date("d/m/Y",strtotime($coupon['start']));
268
+ echo " </td>\n\r";
269
+
270
+ echo " <td>\n\r";
271
+ echo date("d/m/Y",strtotime($coupon['expiry']));
272
+ echo " </td>\n\r";
273
+
274
+ echo " <td>\n\r";
275
+ switch($coupon['active']) {
276
+ case 1:
277
+ echo "<img src='".WPSC_URL."/images/yes_stock.gif' alt='' title='' />";
278
+ break;
279
+
280
+ case 0: default:
281
+ echo "<img src='".WPSC_URL."/images/no_stock.gif' alt='' title='' />";
282
+ break;
283
+ }
284
+ echo " </td>\n\r";
285
+
286
+ echo " <td>\n\r";
287
+ switch($coupon['every_product']) {
288
+ case 1:
289
+ echo "<img src='".WPSC_URL."/images/yes_stock.gif' alt='' title='' />";
290
+ break;
291
+
292
+ case 0: default:
293
+ echo "<img src='".WPSC_URL."/images/no_stock.gif' alt='' title='' />";
294
+ break;
295
+ }
296
+ echo " </td>\n\r";
297
+
298
+
299
+
300
+ echo " <td>\n\r";
301
+ echo "<a href='#' onclick='return show_status_box(\"coupon_box_".$coupon['id']."\",\"coupon_box_".$coupon['id']."\");' >".TXT_WPSC_EDIT."</a>";
302
+ echo " </td>\n\r";
303
+
304
+ echo " </tr>\n\r";
305
+ echo " <tr>\n\r";
306
+ echo " <td colspan='7'>\n\r";
307
+ //$status_style = "style='display: block;'";
308
+ echo " <div id='coupon_box_".$coupon['id']."' class='modify_coupon' $status_style>\n\r";
309
+ echo coupon_edit_form($coupon);
310
+ echo " </div>\n\r";
311
+ echo " </td>\n\r";
312
+ echo " </tr>\n\r";
313
+ }
314
+ echo "</table>\n\r";
315
+ ?>
316
+ </td>
317
+ <td id="order_summary_container">
318
+ </td>
319
+ </tr>
320
+ </table>
321
+ <input type='hidden' value='true' name='is_edit_coupon' />
322
+ </form>
323
+
324
+ <br />
325
+
326
+
327
+
328
+ <h2><?php echo TXT_WPSC_MARKETING_SETTINGS;?></h2>
329
+
330
+ <form name='cart_options' method='POST' action=''>
331
+ <input type='hidden' value='true' name='change-settings' />
332
+ <table>
333
+ <tr>
334
+ <td>
335
+ <?php echo TXT_WPSC_OPTION_ALSO_BOUGHT;?>:
336
+ </td>
337
+ <td>
338
+ <?php
339
+ $wpsc_also_bought = get_option('wpsc_also_bought');
340
+ $wpsc_also_bought1 = "";
341
+ $wpsc_also_bought2 = "";
342
+ switch($wpsc_also_bought) {
343
+ case 0:
344
+ $wpsc_also_bought2 = "checked ='true'";
345
+ break;
346
+
347
+ case 1:
348
+ $wpsc_also_bought1 = "checked ='true'";
349
+ break;
350
+ }
351
+ ?>
352
+ <input type='radio' value='1' name='wpsc_also_bought' id='wpsc_also_bought1' <?php echo $wpsc_also_bought1; ?> /> <label for='wpsc_also_bought1'><?php echo TXT_WPSC_YES;?></label> &nbsp;
353
+ <input type='radio' value='0' name='wpsc_also_bought' id='wpsc_also_bought2' <?php echo $wpsc_also_bought2; ?> /> <label for='wpsc_also_bought2'><?php echo TXT_WPSC_NO;?></label>
354
+ </td>
355
+ </tr>
356
+
357
+ <tr>
358
+ <td>
359
+ <?php echo TXT_WPSC_SHOW_SHARE_THIS;?>:
360
+ </td>
361
+ <td>
362
+ <?php
363
+ $wpsc_share_this = get_option('wpsc_share_this');
364
+ $wpsc_share_this1 = "";
365
+ $wpsc_share_this2 = "";
366
+ switch($wpsc_share_this) {
367
+ case 0:
368
+ $wpsc_share_this2 = "checked ='true'";
369
+ break;
370
+
371
+ case 1:
372
+ $wpsc_share_this1 = "checked ='true'";
373
+ break;
374
+ }
375
+ ?>
376
+ <input type='radio' value='1' name='wpsc_share_this' id='wpsc_share_this1' <?php echo $wpsc_share_this1; ?> /> <label for='wpsc_share_this1'><?php echo TXT_WPSC_YES;?></label> &nbsp;
377
+ <input type='radio' value='0' name='wpsc_share_this' id='wpsc_share_this2' <?php echo $wpsc_share_this2; ?> /> <label for='wpsc_share_this2'><?php echo TXT_WPSC_NO;?></label>
378
+ </td>
379
+ </tr>
380
+ <tr>
381
+ <td>
382
+ <?php echo TXT_WPSC_DISPLAYHOWCUSTOMERFINDUS?>
383
+ </td>
384
+ <?php
385
+ $display_find_us = get_option('display_find_us');
386
+ if ($display_find_us=='1') {
387
+ $display_find_us1 = "checked ='checked'";
388
+ }
389
+ ?>
390
+ <td>
391
+ <input <?=$display_find_us1?> type='checkbox' name='display_find_us'>
392
+ </td>
393
+ </tr>
394
+ <tr>
395
+ <td>
396
+
397
+ </td>
398
+ <td>
399
+ <input type='submit' value='<?php echo TXT_WPSC_SUBMIT;?>' name='form_submit' />
400
+ </td>
401
+ </tr>
402
+ </table>
403
+ </form>
404
+
405
+ <h2><?php echo TXT_WPSC_RSS_ADDRESS;?></h2>
406
+ <table>
407
+ <tr>
408
+ <td colspan='2'>
409
+ <?=TXT_WPSC_RSSNOTE;?>
410
+ </td>
411
+ </tr>
412
+ <tr><TD>&nbsp;</TD></tr>
413
+ <tr>
414
+ <td>
415
+ RSS Feed Address:
416
+ </td>
417
+ <td>
418
+ <?php echo get_option('siteurl')."/index.php?rss=true&amp;action=product_list" ?>
419
+ </td>
420
+ </tr>
421
+ </table>
422
+ </div>
wp-shopping-cart/display-ecommerce-subs.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ global $wpdb;
3
+ $results = $wpdb->get_results('SELECT DISTINCT user_id FROM '.$wpdb->prefix.'wpsc_logged_subscriptions', ARRAY_A);
4
+ //echo "<pre>".print_r($results)."</pre>";
5
+ echo "<div class='wrap'>";
6
+ echo "<h2>e-Commerce Subscribers</h2>";
7
+ echo "<table class='widefat'>";
8
+ echo "<tr>";
9
+ echo "<th>".TXT_WPSC_USERID."</th><th>".TXT_WPSC_NAME."</th><th>".TXT_WPSC_EMAIL."</th><th>".TXT_WPSC_REGISTEREDDATE."</th><th>".TXT_WPSC_SUSPEND."/".TXT_WPSC_ACTIVATE."</th>";
10
+ echo "</tr>";
11
+ if ($results != NULL){
12
+ $now = time();
13
+ foreach ($results as $user){
14
+ $user_info = $wpdb->get_results('SELECT * FROM '.$wpdb->prefix.'users WHERE id='.$user['user_id'], ARRAY_A);
15
+ $user_subscription = $wpdb->get_results('SELECT active FROM '.$wpdb->prefix.'wpsc_logged_subscriptions WHERE user_id='.$user['user_id'].' AND start_time < '.$now.' AND (start_time+length) > '.$now.'',ARRAY_A);
16
+
17
+ //echo "<pre>".print_r($user_info,true)."</pre>";
18
+ echo "<tr>";
19
+ echo "<td>";
20
+ echo $user_info[0]['ID'];
21
+ echo "</td>";
22
+ echo "<td>";
23
+ echo $user_info[0]['display_name'];
24
+ echo "</td>";
25
+ echo "<td>";
26
+ echo $user_info[0]['user_email'];
27
+ echo "</td>";
28
+ echo "<td>";
29
+ echo $user_info[0]['user_registered'];
30
+ echo "</td>";
31
+ echo "<td>";
32
+ if ($user_subscription[0]['active']==1) {
33
+ echo "<input type='checkbox' checked='true' id='suspend_subs".$user_info[0]['ID']."' value='1' onclick='suspendsubs(".$user_info[0]['ID'].")' />";
34
+ } else {
35
+ echo "<input type='checkbox' id='suspend_subs".$user_info[0]['ID']."' value='1' onclick='suspendsubs(".$user_info[0]['ID'].")' />";
36
+ }
37
+ echo "</td>";
38
+ echo "</tr>";
39
+ }
40
+ }
41
+ echo "</table>";
42
+ echo "</div>";
43
+ ?>
wp-shopping-cart/display-items.php ADDED
@@ -0,0 +1,1371 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ include_once('tagging_functions.php');
3
+ include_once('google_base_functions.php');
4
+ $category_data = null;
5
+
6
+ function topcategorylist() {
7
+ global $wpdb,$category_data;
8
+ $siteurl = get_option('siteurl');
9
+ $url = $siteurl."/wp-admin/admin.php?page=".WPSC_DIR_NAME."/display-items.php";
10
+ $options = "";
11
+ $options .= "<option value='$url'>".TXT_WPSC_ALLCATEGORIES."</option>\r\n";
12
+ $options .= top_category_options(null, 0, $_GET['catid']);
13
+ $concat .= "<select name='category' onChange='categorylist(this.options[this.selectedIndex].value)'>".$options."</select>\r\n";
14
+ return $concat;
15
+ }
16
+
17
+ function top_category_options($category_id = null, $iteration = 0, $selected_id = null) {
18
+ /*
19
+ * Displays the category forms for adding and editing products
20
+ * Recurses to generate the branched view for subcategories
21
+ */
22
+ global $wpdb;
23
+ $siteurl = get_option('siteurl');
24
+ $url = $siteurl."/wp-admin/admin.php?page=".WPSC_DIR_NAME."/display-items.php";
25
+ if(is_numeric($category_id)) {
26
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `active`='1' AND `category_parent` = '$category_id' ORDER BY `id` ASC",ARRAY_A);
27
+ } else {
28
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `active`='1' AND `category_parent` = '0' ORDER BY `id` ASC",ARRAY_A);
29
+ }
30
+ foreach((array)$values as $option) {
31
+ if($selected_id == $option['id']) {
32
+ $selected = "selected='selected'";
33
+ }
34
+ $output .= "<option $selected value='$url&amp;catid=".$option['id']."'>".str_repeat("-", $iteration).stripslashes($option['name'])."</option>\r\n";
35
+ $output .= top_category_options($option['id'], $iteration+1, $selected_id);
36
+ $selected = "";
37
+ }
38
+ return $output;
39
+ }
40
+
41
+ function brandslist($current_brand = '') {
42
+ global $wpdb;
43
+ $options = "";
44
+ $options .= "<option $selected value='0'>".TXT_WPSC_SELECTABRAND."</option>\r\n";
45
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_brands` WHERE `active`='1' ORDER BY `id` ASC",ARRAY_A);
46
+ foreach((array)$values as $option) {
47
+ if($curent_category == $option['id']) {
48
+ $selected = "selected='selected'";
49
+ }
50
+ $options .= "<option $selected value='".$option['id']."'>".$option['name']."</option>\r\n";
51
+ $selected = "";
52
+ }
53
+ $concat .= "<select name='brand'>".$options."</select>\r\n";
54
+ return $concat;
55
+ }
56
+
57
+ function variationslist($current_variation = '') {
58
+ global $wpdb;
59
+ $options = "";
60
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_variations` ORDER BY `id` ASC",ARRAY_A);
61
+ $options .= "<option $selected value='0'>".TXT_WPSC_PLEASECHOOSE."</option>\r\n";
62
+ foreach((array)$values as $option) {
63
+ if($current_brand == $option['id']) {
64
+ $selected = "selected='selected'";
65
+ }
66
+ $options .= "<option $selected value='".$option['id']."'>".$option['name']."</option>\r\n";
67
+ $selected = "";
68
+ }
69
+ $concat .= "<select name='variations' onChange='add_variation_value_list(this.options[this.selectedIndex].value)'>".$options."</select>\r\n";
70
+ return $concat;
71
+ }
72
+
73
+ /*
74
+ * Makes the order changes
75
+ */
76
+
77
+ if(is_numeric($_GET['catid']) && is_numeric($_GET['product_id']) && ($_GET['position_action'] != ''))
78
+ {
79
+ $position_cat_id = $_GET['catid'];
80
+ $position_prod_id = $_GET['product_id'];
81
+ $current_order_row = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_order` WHERE `category_id` IN('$position_cat_id') AND `product_id` IN('$position_prod_id') LIMIT 1;",ARRAY_A);
82
+ $current_order_row = $current_order_row[0];
83
+ switch($_GET['position_action'])
84
+ {
85
+ case 'top':
86
+ if($current_order_row['order'] > 0)
87
+ {
88
+ $check_existing = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_order` WHERE `category_id` IN('$position_cat_id') AND `order` IN('0') LIMIT 1;",ARRAY_A);
89
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_order` SET `order` = '0' WHERE `category_id` IN('$position_cat_id') AND `product_id` IN('$position_prod_id') LIMIT 1;");
90
+ if($check_existing != null)
91
+ {
92
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_order` SET `order` = (`order` + 1) WHERE `category_id` IN('$position_cat_id') AND `product_id` NOT IN('$position_prod_id') AND `order` < '".$current_order_row['order']."'");
93
+ }
94
+ }
95
+ break;
96
+
97
+ case 'up':
98
+ if($current_order_row['order'] > 0)
99
+ {
100
+ $target_rows = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_order` WHERE `category_id` IN ('".$position_cat_id."') AND `order` <= '".$current_order_row['order']."' ORDER BY `order` DESC LIMIT 2",ARRAY_A);
101
+ //exit("<pre>".print_r($target_rows,true)."</pre>");
102
+ if(count($target_rows) == 2)
103
+ {
104
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_order` SET `order` = '".$target_rows[1]['order']."' WHERE `category_id` IN('$position_cat_id') AND `product_id` IN('".$target_rows[0]['product_id']."') LIMIT 1");
105
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_order` SET `order` = '".$target_rows[0]['order']."' WHERE `category_id` IN('$position_cat_id') AND `product_id` IN('".$target_rows[1]['product_id']."') LIMIT 1");
106
+ }
107
+ }
108
+ break;
109
+
110
+ case 'down':
111
+ $target_rows = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_order` WHERE `category_id` IN ('".$position_cat_id."') AND `order` >= '".$current_order_row['order']."' ORDER BY `order` ASC LIMIT 2",ARRAY_A);
112
+ //exit("<pre>".print_r($target_rows,true)."</pre>");
113
+ if(count($target_rows) == 2)
114
+ {
115
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_order` SET `order` = '".$target_rows[1]['order']."' WHERE `category_id` IN('$position_cat_id') AND `product_id` IN('".$target_rows[0]['product_id']."') LIMIT 1");
116
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_order` SET `order` = '".$target_rows[0]['order']."' WHERE `category_id` IN('$position_cat_id') AND `product_id` IN('".$target_rows[1]['product_id']."') LIMIT 1");
117
+ }
118
+ break;
119
+
120
+ case 'bottom':
121
+ $end_row = $wpdb->get_results("SELECT MAX( `order` ) AS `order` FROM `".$wpdb->prefix."product_order` WHERE `category_id` IN ('".$position_cat_id."') LIMIT 1",ARRAY_A);
122
+ $end_order_number = $end_row[0]['order'];
123
+ //exit($current_order_row['order'] . " | " . $end_order_number);
124
+ if($current_order_row['order'] < $end_order_number)
125
+ {
126
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_order` SET `order` = '$end_order_number' WHERE `category_id` IN('$position_cat_id') AND `product_id` IN('$position_prod_id') LIMIT 1;");
127
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_order` SET `order` = (`order` - 1) WHERE `category_id` IN('$position_cat_id') AND `product_id` NOT IN('$position_prod_id') AND `order` > '".$current_order_row['order']."'");
128
+ }
129
+ break;
130
+
131
+ default:
132
+ break;
133
+ }
134
+ }
135
+
136
+
137
+ /*
138
+ * Adds new products
139
+ */
140
+ if($_POST['submit_action'] == 'add') {
141
+ //Allen's Change for Google base
142
+ if (isset($_GET['token']) || isset($_SESSION['google_base_sessionToken'])) {
143
+ $sessionToken=exchangeToken($_GET['token']);
144
+ $_SESSION['google_base_sessionToken'] = $sessionToken;
145
+ if (isset($_SESSION['google_base_sessionToken']))
146
+ $sessionToken=$_SESSION['google_base_sessionToken'];
147
+ postItem($_POST['name'], $_POST['price'], $_POST['description'], $sessionToken);
148
+ }
149
+ //Google base change ends here
150
+
151
+ $file_name = null;
152
+ if($_POST['file_url'] != null)
153
+ {
154
+ $url_array = array_reverse(explode("/",$_POST['file_url']));
155
+ if(is_file(WPSC_FILE_DIR.$url_array[0])) {
156
+ $file_name = $url_array[0];
157
+ }
158
+ }
159
+
160
+ $thumbnail_image = '';
161
+
162
+
163
+ $file = 0;
164
+ /* handle adding file uploads here */
165
+ if(!empty($_FILES['file']['name'])) {
166
+ $fileid = wpsc_item_process_file('add');
167
+ $file = $fileid;
168
+ } else if (($_POST['select_product_file'] != '')) {
169
+ $fileid = wpsc_item_reassign_file($_POST['select_product_file'], 'add');
170
+ $file = $fileid;
171
+ }
172
+
173
+
174
+ if(is_numeric($_POST['quantity']) && ($_POST['quantity_limited'] == "yes")) {
175
+ $quantity_limited = 1;
176
+ $quantity = (int)$_POST['quantity'];
177
+ } else {
178
+ $quantity_limited = 0;
179
+ $quantity = 0;
180
+ }
181
+
182
+ if($_POST['special'] == 'yes') {
183
+ $special = 1;
184
+ if(is_numeric($_POST['special_price'])) {
185
+ $special_price = $_POST['price'] - $_POST['special_price'];
186
+ }
187
+ } else {
188
+ $special = 0;
189
+ $special_price = '';
190
+ }
191
+
192
+ if($_POST['notax'] == 'yes') {
193
+ $notax = 1;
194
+ } else {
195
+ $notax = 0;
196
+ }
197
+
198
+
199
+ if($_POST['display_frontpage'] == "yes") {
200
+ $display_frontpage = 1;
201
+ } else {
202
+ $display_frontpage = 0;
203
+ }
204
+
205
+ if($_POST['donation'] == "yes") {
206
+ $is_donation = 1;
207
+ } else {
208
+ $is_donation = 0;
209
+ }
210
+
211
+ if($_POST['no_shipping'] == "yes") {
212
+ $no_shipping = 1;
213
+ } else {
214
+ $no_shipping = 0;
215
+ }
216
+
217
+
218
+
219
+
220
+ //modified for USPS
221
+ $insertsql = "INSERT INTO `".$wpdb->prefix."product_list` ( `name` , `description` , `additional_description` , `price`, `weight`, `weight_unit`, `pnp`, `international_pnp`, `file` , `image` , `brand`, `quantity_limited`, `quantity`, `special`, `special_price`, `display_frontpage`,`notax`, `donation`, `no_shipping`, `thumbnail_image`, `thumbnail_state`) VALUES ('".$wpdb->escape($_POST['name'])."', '".$wpdb->escape($_POST['description'])."', '".$wpdb->escape($_POST['additional_description'])."','".(float)$wpdb->escape(str_replace(",","",$_POST['price']))."','".$wpdb->escape($_POST['weight'])."','".$wpdb->escape($_POST['weight_unit'])."', '".$wpdb->escape((float)$_POST['pnp'])."', '".$wpdb->escape($_POST['international_pnp'])."', '".(int)$file."', '".$image."', '0', '$quantity_limited','$quantity','$special','$special_price', '$display_frontpage', '$notax', '$is_donation', '$no_shipping', '".$wpdb->escape($thumbnail_image)."', '" . $wpdb->escape($_POST['image_resize']) . "');";
222
+
223
+
224
+ if($wpdb->query($insertsql)) {
225
+
226
+ $product_id_data = $wpdb->get_results("SELECT LAST_INSERT_ID() AS `id` FROM `".$wpdb->prefix."product_list` LIMIT 1",ARRAY_A);
227
+ $product_id = $product_id_data[0]['id'];
228
+ if(function_exists('wp_insert_term')) {
229
+ product_tag_init();
230
+ $tags = $_POST['product_tag'];
231
+ if ($tags!="") {
232
+ $tags = explode(',',$tags);
233
+ foreach($tags as $tag){
234
+ $tt = wp_insert_term((string)$tag, 'product_tag');
235
+ }
236
+ $return = wp_set_object_terms($product_id, $tags, 'product_tag');
237
+ }
238
+ }
239
+
240
+ /* Handle new image uploads here */
241
+ $image = wpsc_item_process_image($product_id);
242
+
243
+
244
+ /* Process extra meta values */
245
+ if($_POST['productmeta_values'] != null) {
246
+ foreach((array)$_POST['productmeta_values'] as $key => $value) {
247
+ if(get_product_meta($product_id, $key) != false) {
248
+ update_product_meta($product_id, $key, $value);
249
+ } else {
250
+ add_product_meta($product_id, $key, $value);
251
+ }
252
+ }
253
+ }
254
+
255
+ if($_POST['new_custom_meta'] != null) {
256
+ foreach((array)$_POST['new_custom_meta']['name'] as $key => $name) {
257
+ $value = $_POST['new_custom_meta']['value'][(int)$key];
258
+ if(($name != '') && ($value != '')) {
259
+ add_product_meta($product_id, $name, $value, false, true);
260
+ }
261
+ }
262
+ }
263
+
264
+ do_action('wpsc_product_form_submit', $product_id);
265
+
266
+ /* Add tidy url name */
267
+ $tidied_name = trim($_POST['name']);
268
+ $tidied_name = strtolower($tidied_name);
269
+ $url_name = preg_replace(array("/(\s)+/","/[^\w-]+/i"), array("-", ''), $tidied_name);
270
+ $similar_names = $wpdb->get_row("SELECT COUNT(*) AS `count`, MAX(REPLACE(`meta_value`, '$url_name', '')) AS `max_number` FROM `".$wpdb->prefix."wpsc_productmeta` WHERE `meta_key` IN ('url_name') AND `meta_value` REGEXP '^($url_name){1}(\d)*$' ",ARRAY_A);
271
+ $extension_number = '';
272
+ if($similar_names['count'] > 0) {
273
+ $extension_number = (int)$similar_names['max_number']+1;
274
+ }
275
+ $url_name .= $extension_number;
276
+ add_product_meta($product_id, 'url_name', $url_name,true);
277
+
278
+ if(($_FILES['extra_image'] != null) && function_exists('edit_submit_extra_images')) {
279
+ $var = edit_submit_extra_images($product_id);
280
+ }
281
+
282
+ $variations_procesor = new nzshpcrt_variations;
283
+ if($_POST['variation_values'] != null) {
284
+ $variations_procesor->add_to_existing_product($product_id,$_POST['variation_values']);
285
+ }
286
+
287
+ if($_POST['variation_priceandstock'] != null) {
288
+ $variations_procesor->update_variation_values($product_id, $_POST['variation_priceandstock']);
289
+ // exit("<pre>".print_r($_POST,true)."</pre>");
290
+ }
291
+
292
+
293
+ //$variations_procesor->edit_add_product_values($_POST['prodid'],$_POST['edit_add_variation_values']);
294
+ $counter = 0;
295
+ $item_list = '';
296
+ if(count($_POST['category']) > 0)
297
+ {
298
+ foreach($_POST['category'] as $category_id)
299
+ {
300
+ $check_existing = $wpdb->get_var("SELECT `id` FROM `".$wpdb->prefix."item_category_associations` WHERE `product_id` = ".$product_id." AND `category_id` = '$category_id' LIMIT 1");
301
+ if($check_existing == null)
302
+ {
303
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."item_category_associations` ( `product_id` , `category_id` ) VALUES ( '".$product_id."', '".$category_id."');");
304
+ }
305
+ }
306
+ }
307
+
308
+ $display_added_product = "filleditform(".$product_id.");";
309
+
310
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_ITEMHASBEENADDED."</p></div>";
311
+ }
312
+ else
313
+ {
314
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_ITEMHASNOTBEENADDED."</p></div>";
315
+ }
316
+ }
317
+
318
+ if($_GET['submit_action'] == "remove_set")
319
+ {
320
+ if(is_numeric($_GET['product_id']) && is_numeric($_GET['variation_assoc_id']))
321
+ {
322
+ $product_id = $_GET['product_id'];
323
+ $variation_assoc_id = $_GET['variation_assoc_id'];
324
+ $check_association_id = $wpdb->get_var("SELECT `id` FROM `".$table_prefix."variation_associations` WHERE `id` = '$variation_assoc_id' LIMIT 1");
325
+ if(($variation_assoc_id > 0) && ($variation_assoc_id == $check_association_id))
326
+ {
327
+ $variation_association = $wpdb->get_row("SELECT * FROM `".$table_prefix."variation_associations` WHERE `id` = '$variation_assoc_id' LIMIT 1",ARRAY_A);
328
+ $delete_variation_sql = "DELETE FROM `".$table_prefix."variation_associations` WHERE `id` = '$variation_assoc_id' LIMIT 1";
329
+ $wpdb->query($delete_variation_sql);
330
+ //echo("<pre>".print_r($variation_association,true)."</pre>");
331
+ if($variation_association != null)
332
+ {
333
+ $variation_id = $variation_association['variation_id'];
334
+ $delete_value_sql = "DELETE FROM `".$table_prefix."variation_values_associations` WHERE `product_id` = '$product_id' AND `variation_id` = '$variation_id'";
335
+ //exit($delete_value_sql);
336
+ $wpdb->query($delete_value_sql);
337
+ }
338
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_PRODUCTHASBEENEDITED."</p></div>";
339
+ }
340
+ }
341
+ }
342
+
343
+ if($_POST['submit_action'] == "edit")
344
+ {
345
+ // exit("<pre>".print_r($_POST,true)."</pre>");
346
+ $id = $_POST['prodid'];
347
+ if(function_exists('edit_submit_extra_images'))
348
+ {
349
+ if(($_FILES['extra_image'] != null))
350
+ {
351
+ $var = edit_submit_extra_images($id);
352
+ }
353
+ }
354
+ if(function_exists('edit_extra_images'))
355
+ {
356
+ $var = edit_extra_images($id);
357
+ }
358
+
359
+ $file_name = null;
360
+ if($_POST['file_url'] != null) {
361
+ $url_array = array_reverse(explode("/",$_POST['file_url']));
362
+ //exit("<pre>".print_r($url_array,true)."</pre>");
363
+ if(is_file(WPSC_FILE_DIR.$url_array[0])) {
364
+ $file_name = $url_array[0];
365
+ }
366
+ }
367
+
368
+ //written by allen
369
+ if(isset($_POST['product_tags'])) {
370
+ $imtags = $_POST['product_tags'];
371
+ $tags = explode(',',$imtags);
372
+ product_tag_init();
373
+ if(is_array($tags)) {
374
+ foreach((array)$tags as $tag){
375
+ $tt = wp_insert_term((string)$tag, 'product_tag');
376
+ }
377
+ }
378
+ wp_set_object_terms($id, $tags, 'product_tag');
379
+ }
380
+ //end of written by allen
381
+
382
+ if (isset($_POST['external_link'])) {
383
+ add_product_meta($_POST['prodid'], 'external_link', $_POST['external_link'],true);
384
+ }
385
+
386
+ if (isset($_POST['merchant_notes'])) {
387
+ $id = (int)$_POST['prodid'];
388
+ $notes = $_POST['merchant_notes'];
389
+ $updatelink_sql = "SELECT * FROM `".$wpdb->prefix."wpsc_productmeta` WHERE `product_id` = '$id' AND `meta_key`='merchant_notes'";
390
+ $updatelink_data = $wpdb->get_results($updatelink_sql, ARRAY_A);
391
+ if (count($updatelink_data)>0){
392
+ $updatelink_sql = "UPDATE `".$wpdb->prefix."wpsc_productmeta` SET `meta_value` = '$notes' WHERE `product_id` = '$id' AND `meta_key`='merchant_notes'";
393
+ $updatelink_data = $wpdb->query($updatelink_sql);
394
+ } else {
395
+ $updatelink_sql = "INSERT INTO `".$wpdb->prefix."wpsc_productmeta` (`product_id`,`meta_key`,`meta_value`) VALUES('$id','merchant_notes' ,'$notes')";
396
+ $updatelink_data = $wpdb->query($updatelink_sql);
397
+ }
398
+ }
399
+
400
+ // if (isset($_POST['engrave'])) {
401
+ // $id = $_POST['prodid'];
402
+ // $engrave = $_POST['engrave'];
403
+ // $updatelink_sql = "SELECT * FROM ".$wpdb->prefix."wpsc_productmeta WHERE product_id = $id AND meta_key='merchant_notes'";
404
+ // $updatelink_data = $wpdb->get_results($updatelink_sql, ARRAY_A);
405
+ // if (count($updatelink_data)>0){
406
+ // $updatelink_sql = "UPDATE ".$wpdb->prefix."wpsc_productmeta SET meta_value = '$notes' WHERE product_id = $id AND meta_key='merchant_notes'";
407
+ // $updatelink_data = $wpdb->query($updatelink_sql);
408
+ // } else {
409
+ // $updatelink_sql = "INSERT INTO ".$wpdb->prefix."wpsc_productmeta VALUES('',$id,'merchant_notes' ,'$notes')";
410
+ // $updatelink_data = $wpdb->query($updatelink_sql);
411
+ // }
412
+ // }
413
+
414
+ /* handle editing file uploads here */
415
+ if(!empty($_FILES['file']['name'])) {
416
+ $fileid = wpsc_item_process_file('edit');
417
+ $file = $fileid;
418
+ } else if (($_POST['select_product_file'] != '')) {
419
+ $fileid = wpsc_item_reassign_file($_POST['select_product_file'], 'edit');
420
+ $file = $fileid;
421
+ }
422
+
423
+
424
+ if(file_exists($_FILES['preview_file']['tmp_name'])) {
425
+ $fileid = $wpdb->get_var("SELECT `file` FROM `".$wpdb->prefix."product_list` WHERE `id` = '$id' LIMIT 1");
426
+ copy($_FILES['preview_file']['tmp_name'], (WPSC_PREVIEW_DIR.basename($_FILES['preview_file']['name'])));
427
+ $mimetype = wpsc_get_mimetype(WPSC_PREVIEW_DIR.basename($_FILES['preview_file']['name']));
428
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_files` SET `preview` = '".$wpdb->escape(basename($_FILES['preview_file']['name']))."', `preview_mimetype` = '".$mimetype."' WHERE `id` = '$fileid' LIMIT 1");
429
+ }
430
+
431
+ /* Handle new image uploads here */
432
+ $image = wpsc_item_process_image();
433
+
434
+
435
+ if(is_numeric($_POST['prodid'])) {
436
+ if(($_POST['image_resize'] == 1 || $_POST['image_resize'] == 2) && ($image == '')) {
437
+ /* resize the image if directed to do so and no new image is supplied */
438
+ $image_data = $wpdb->get_row("SELECT `id`,`image` FROM `".$wpdb->prefix."product_list` WHERE `id`=".$_POST['prodid']." LIMIT 1",ARRAY_A);
439
+ // prevent images from being replaced by those from other products
440
+ $check_multiple_use = $wpdb->get_var("SELECT COUNT(`image`) AS `count` FROM `".$wpdb->prefix."product_list` WHERE `image`='".$image_data['image']."'");
441
+ if($check_multiple_use > 1) {
442
+ $new_filename = $image_data['id']."_".$image_data['image'];
443
+ if(file_exists(WPSC_THUMBNAIL_DIR.$image_data['image']) && ($image_data['image'] != null)) {
444
+ copy(WPSC_THUMBNAIL_DIR.$image_data['image'], WPSC_THUMBNAIL_DIR.$new_filename);
445
+ }
446
+ if(file_exists(WPSC_IMAGE_DIR.$image_data['image']) && ($image_data['image'] != null)) {
447
+ copy(WPSC_IMAGE_DIR.$image_data['image'], WPSC_IMAGE_DIR.$new_filename);
448
+ }
449
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `image` = '".$new_filename."' WHERE `id`='".$image_data['id']."' LIMIT 1");
450
+ $image_data = $wpdb->get_row("SELECT `id`,`image` FROM `".$wpdb->prefix."product_list` WHERE `id`=".$_POST['prodid']." LIMIT 1",ARRAY_A);
451
+ }
452
+
453
+
454
+ if(file_exists(WPSC_THUMBNAIL_DIR.$image_data['image']) && ($image_data['image'] != '')) {
455
+ $imagepath = WPSC_IMAGE_DIR . $image_data['image'];
456
+ $image_output = WPSC_THUMBNAIL_DIR . $image_data['image'];
457
+ switch($_POST['image_resize']) {
458
+ case 1:
459
+ $height = get_option('product_image_height');
460
+ $width = get_option('product_image_width');
461
+ break;
462
+
463
+ case 2:
464
+ $height = $_POST['height'];
465
+ $width = $_POST['width'];
466
+ break;
467
+ }
468
+ image_processing($imagepath, $image_output, $width, $height);
469
+ }
470
+ }
471
+
472
+ if(is_numeric($_POST['prodid'])) {
473
+ $counter = 0;
474
+ $item_list = '';
475
+ if(count($_POST['category']) > 0) {
476
+ foreach($_POST['category'] as $category_id) {
477
+ $category_id = (int)$category_id; // force it to be an integer rather than check if it is one
478
+ $check_existing = $wpdb->get_var("SELECT `id` FROM `".$wpdb->prefix."item_category_associations` WHERE `product_id` = ".$id." AND `category_id` = '$category_id' LIMIT 1");
479
+ if($check_existing == null) {
480
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."item_category_associations` ( `product_id` , `category_id` ) VALUES ('".$id."', '".$category_id."');");
481
+ }
482
+ if($counter > 0) {
483
+ $item_list .= ", ";
484
+ }
485
+ $item_list .= "'".$category_id."'";
486
+ $counter++;
487
+ }
488
+ } else {
489
+ $item_list = "'0'";
490
+ }
491
+ $wpdb->query("DELETE FROM `".$wpdb->prefix."item_category_associations` WHERE `product_id`= '$id' AND `category_id` NOT IN (".$item_list.")");
492
+ }
493
+
494
+ $key = Array();
495
+
496
+
497
+ if(is_numeric($_POST['quantity']) && ($_POST['quantity_limited'] == "yes")){
498
+ $quantity_limited = 1;
499
+ $quantity = $_POST['quantity'];
500
+ } else {
501
+ $quantity_limited = 0;
502
+ $quantity = 0;
503
+ }
504
+
505
+ if($_POST['special'] == 'yes') {
506
+ $special = 1;
507
+ if(is_numeric($_POST['special_price'])) {
508
+ $special_price = $_POST['price'] - $_POST['special_price'];
509
+ }
510
+ } else {
511
+ $special = 0;
512
+ $special_price = '';
513
+ }
514
+
515
+ if($_POST['notax'] == 'yes') {
516
+ $notax = 1;
517
+ } else {
518
+ $notax = 0;
519
+ }
520
+
521
+
522
+ if($_POST['display_frontpage'] == "yes") {
523
+ $display_frontpage = 1;
524
+ } else {
525
+ $display_frontpage = 0;
526
+ }
527
+
528
+ if($_POST['donation'] == "yes") {
529
+ $is_donation = 1;
530
+ } else {
531
+ $is_donation = 0;
532
+ }
533
+
534
+ if($_POST['no_shipping'] == "yes") {
535
+ $no_shipping = 1;
536
+ } else {
537
+ $no_shipping = 0;
538
+ }
539
+
540
+ $updatesql = "UPDATE `".$wpdb->prefix."product_list` SET `name` = '".$wpdb->escape($_POST['title'])."', `description` = '".$wpdb->escape($_POST['description'])."', `additional_description` = '".$wpdb->escape($_POST['additional_description'])."', `price` = '".$wpdb->escape(str_replace(",","",$_POST['price']))."', `pnp` = '".(float)$wpdb->escape($_POST['pnp'])."', `international_pnp` = '".(float)$wpdb->escape($_POST['international_pnp'])."', `brand` = '0', quantity_limited = '".$quantity_limited."', `quantity` = '".(int)$quantity."', `special`='$special', `special_price`='$special_price', `display_frontpage`='$display_frontpage', `notax`='$notax', `donation`='$is_donation', `no_shipping` = '$no_shipping', `weight` = '".$wpdb->escape($_POST['weight'])."', `weight_unit` = '".$wpdb->escape($_POST['weight_unit'])."' WHERE `id`='".$_POST['prodid']."' LIMIT 1";
541
+
542
+ $wpdb->query($updatesql);
543
+ if(($_FILES['image']['name'] != null) && ($image != null)) {
544
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `image` = '".$image."' WHERE `id`='".$_POST['prodid']."' LIMIT 1");
545
+ }
546
+
547
+ if($_POST['productmeta_values'] != null) {
548
+ foreach((array)$_POST['productmeta_values'] as $key => $value) {
549
+ if(get_product_meta($_POST['prodid'], $key) != false) {
550
+ update_product_meta($_POST['prodid'], $key, $value);
551
+ } else {
552
+ add_product_meta($_POST['prodid'], $key, $value);
553
+ }
554
+ }
555
+ }
556
+
557
+ if($_POST['new_custom_meta'] != null) {
558
+ foreach((array)$_POST['new_custom_meta']['name'] as $key => $name) {
559
+ $value = $_POST['new_custom_meta']['value'][(int)$key];
560
+ if(($name != '') && ($value != '')) {
561
+ add_product_meta($_POST['prodid'], $name, $value, false, true);
562
+ }
563
+ }
564
+ }
565
+
566
+
567
+ if($_POST['custom_meta'] != null) {
568
+ foreach((array)$_POST['custom_meta'] as $key => $values) {
569
+ if(($values['name'] != '') && ($values['value'] != '')) {
570
+ $wpdb->query("UPDATE `".$wpdb->prefix."wpsc_productmeta` SET `meta_key` = '".$wpdb->escape($values['name'])."', `meta_value` = '".$wpdb->escape($values['value'])."' WHERE `id` IN ('".(int)$key."')LIMIT 1 ;");
571
+ // echo "UPDATE `".$wpdb->prefix."wpsc_productmeta` SET `meta_key` = '".$wpdb->escape($values['name'])."', `meta_value` = '".$wpdb->escape($values['value'])."' WHERE `id` IN ('".(int)$key."') LIMIT 1 ;";
572
+ //add_product_meta($_POST['prodid'], $values['name'], $values['value'], false, true);
573
+ }
574
+ }
575
+ }
576
+
577
+
578
+
579
+
580
+ do_action('wpsc_product_form_submit', $product_id);
581
+
582
+ /* Add or edit tidy url name */
583
+ $tidied_name = trim($_POST['title']);
584
+ $tidied_name = strtolower($tidied_name);
585
+ $url_name = preg_replace(array("/(\s)+/","/[^\w-]+/i"), array("-", ''), $tidied_name);
586
+ $similar_names = $wpdb->get_row("SELECT COUNT(*) AS `count`, MAX(REPLACE(`meta_value`, '$url_name', '')) AS `max_number` FROM `".$wpdb->prefix."wpsc_productmeta` WHERE `meta_key` IN ('url_name') AND `meta_value` REGEXP '^($url_name){1}(\d)*$' ",ARRAY_A);
587
+ $extension_number = '';
588
+ if($similar_names['count'] > 0) {
589
+ $extension_number = (int)$similar_names['max_number']+1;
590
+ }
591
+
592
+ $stored_name = get_product_meta($_POST['prodid'], 'url_name', true);
593
+ if(get_product_meta($_POST['prodid'], 'url_name', true) != false) {
594
+ $current_url_name = get_product_meta($_POST['prodid'], 'url_name');
595
+ if($current_url_name[0] != $url_name) {
596
+ $url_name .= $extension_number;
597
+ update_product_meta($_POST['prodid'], 'url_name', $url_name);
598
+ }
599
+ } else {
600
+ $url_name .= $extension_number;
601
+ add_product_meta($_POST['prodid'], 'url_name', $url_name, true);
602
+ }
603
+
604
+ /* update thumbnail images */
605
+ if(!($thumbnail_image == null && $_POST['image_resize'] == 3 && $_POST['current_thumbnail_image'] != null)) {
606
+ if($thumbnail_image != null) {
607
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `thumbnail_image` = '".$thumbnail_image."' WHERE `id`='".$_POST['prodid']."' LIMIT 1");
608
+ }
609
+ }
610
+
611
+ $image_resize = $_POST['image_resize'];
612
+ if(!is_numeric($image_resize) || ($image_resize < 1)) {
613
+ $image_resize = 0;
614
+ }
615
+
616
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `thumbnail_state` = '".$image_resize."' WHERE `id`='".$_POST['prodid']."' LIMIT 1");
617
+
618
+ if($_POST['deleteimage'] == 1) {
619
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `image` = '' WHERE `id`='".$_POST['prodid']."' LIMIT 1");
620
+ }
621
+
622
+ $variations_procesor = new nzshpcrt_variations;
623
+ if($_POST['variation_values'] != null) {
624
+ //$variations_procesor->add_to_existing_product($_POST['prodid'],$_POST['variation_values']);
625
+ }
626
+
627
+ if($_POST['edit_variation_values'] != null) {
628
+ $variations_procesor->edit_product_values($_POST['prodid'],$_POST['edit_variation_values']);
629
+ }
630
+
631
+ if($_POST['edit_add_variation_values'] != null) {
632
+ $variations_procesor->edit_add_product_values($_POST['prodid'],$_POST['edit_add_variation_values']);
633
+ }
634
+
635
+ if($_POST['variation_priceandstock'] != null) {
636
+ $variations_procesor->update_variation_values($_POST['prodid'], $_POST['variation_priceandstock']);
637
+ }
638
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_PRODUCTHASBEENEDITED."</p></div>";
639
+ }
640
+ }
641
+
642
+ if(is_numeric($_GET['deleteid'])) {
643
+ $wpdb->query("DELETE FROM `".$wpdb->prefix."wpsc_productmeta` WHERE `product_id` = '".$_GET['deleteid']."' AND `meta_key` IN ('url_name')");
644
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `active` = '0' WHERE `id`='".$_GET['deleteid']."' LIMIT 1");
645
+ }
646
+
647
+
648
+ /*
649
+ * Gets the product list, commented to make it stick out more, as it is hard to notice
650
+ */
651
+ if(is_numeric($_GET['catid'])) { // if we are getting items from only one category, this is a monster SQL query to do this with the product order
652
+ $sql = "SELECT `".$wpdb->prefix."product_list`.`id` , `".$wpdb->prefix."product_list`.`name` , `".$wpdb->prefix."product_list`.`price` , `".$wpdb->prefix."product_list`.`image`, `".$wpdb->prefix."item_category_associations`.`category_id`,`".$wpdb->prefix."product_order`.`order`, IF(ISNULL(`".$wpdb->prefix."product_order`.`order`), 0, 1) AS `order_state`
653
+ FROM `".$wpdb->prefix."product_list`
654
+ LEFT JOIN `".$wpdb->prefix."item_category_associations` ON `".$wpdb->prefix."product_list`.`id` = `".$wpdb->prefix."item_category_associations`.`product_id`
655
+ LEFT JOIN `".$wpdb->prefix."product_order` ON ( (
656
+ `".$wpdb->prefix."product_list`.`id` = `".$wpdb->prefix."product_order`.`product_id`
657
+ )
658
+ AND (
659
+ `".$wpdb->prefix."item_category_associations`.`category_id` = `".$wpdb->prefix."product_order`.`category_id`
660
+ ) )
661
+ WHERE `".$wpdb->prefix."product_list`.`active` = '1'
662
+ AND `".$wpdb->prefix."item_category_associations`.`category_id`
663
+ IN (
664
+ '".$_GET['catid']."'
665
+ )
666
+ ORDER BY `order_state` DESC,`".$wpdb->prefix."product_order`.`order` ASC";
667
+ } else {
668
+ $itempp = 20;
669
+ if ($_GET['pnum']!='all') {
670
+ $page = (int)$_GET['pnum'];
671
+
672
+ $start = $page * $itempp;
673
+ $sql = "SELECT DISTINCT * FROM `{$wpdb->prefix}product_list` WHERE `active`='1' LIMIT $start,$itempp";
674
+ } else {
675
+ $sql = "SELECT DISTINCT * FROM `{$wpdb->prefix}product_list` WHERE `active`='1'";
676
+ }
677
+ }
678
+
679
+ $product_list = $wpdb->get_results($sql,ARRAY_A);
680
+ $num_prodcuts = $wpdb->get_var("SELECT COUNT(DISTINCT `id`) FROM `".$wpdb->prefix."product_list` WHERE `active`='1'");
681
+
682
+ /*
683
+ * The product list is stored in $product_list now
684
+ */
685
+
686
+ /*
687
+ * Detects if the directories for images, thumbnails and files are writeable, if they are not, tells the user to make them writeable.
688
+ */
689
+
690
+ $unwriteable_directories = Array();
691
+
692
+ if(!is_writable(WPSC_FILE_DIR)) {
693
+ $unwriteable_directories[] = WPSC_FILE_DIR;
694
+ }
695
+
696
+ if(!is_writable(WPSC_PREVIEW_DIR)) {
697
+ $unwriteable_directories[] = WPSC_PREVIEW_DIR;
698
+ }
699
+
700
+ if(!is_writable(WPSC_IMAGE_DIR)) {
701
+ $unwriteable_directories[] = WPSC_IMAGE_DIR;
702
+ }
703
+
704
+ if(!is_writable(WPSC_THUMBNAIL_DIR)) {
705
+ $unwriteable_directories[] = WPSC_THUMBNAIL_DIR;
706
+ }
707
+
708
+ if(!is_writable(WPSC_CATEGORY_DIR)) {
709
+ $unwriteable_directories[] = WPSC_CATEGORY_DIR;
710
+ }
711
+
712
+ if(count($unwriteable_directories) > 0)
713
+ {
714
+ echo "<div class='error'>".str_replace(":directory:","<ul><li>".implode($unwriteable_directories, "</li><li>")."</li></ul>",TXT_WPSC_WRONG_FILE_PERMS)."</div>";
715
+ }
716
+ ?>
717
+
718
+
719
+ <div class="wrap">
720
+ <h2><?php echo TXT_WPSC_DISPLAYPRODUCTS;?></h2>
721
+ <span style='float:right;'><?php echo setting_button(); ?></span>
722
+
723
+ <?php
724
+ ?>
725
+ <a href='' onclick='return showaddform()' class='add_item_link'><img src='<?php echo WPSC_URL; ?>/images/package_add.png' alt='<?php echo TXT_WPSC_ADD; ?>' title='<?php echo TXT_WPSC_ADD; ?>' />&nbsp;<span><?php echo TXT_WPSC_ADDPRODUCT;?></span></a><br />
726
+
727
+ <script language='javascript' type='text/javascript'>
728
+ function conf()
729
+ {
730
+ var check = confirm("<?php echo TXT_WPSC_SURETODELETEPRODUCT;?>");
731
+ if(check)
732
+ {
733
+ return true;
734
+ }
735
+ else
736
+ {
737
+ return false;
738
+ }
739
+ }
740
+ <?php
741
+ if(is_numeric($_POST['prodid']))
742
+ {
743
+ echo "filleditform(".$_POST['prodid'].");";
744
+ }
745
+ else if(is_numeric($_GET['product_id']))
746
+ {
747
+ echo "filleditform(".$_GET['product_id'].");";
748
+ }
749
+
750
+ echo $display_added_product ;
751
+ ?>
752
+ </script>
753
+ <?php
754
+ $num = 0;
755
+
756
+
757
+ echo " <table id='productpage'>\n\r";
758
+ echo " <tr><td>\n\r";
759
+ echo " <table id='itemlist'>\n\r";
760
+ echo " <tr class='firstrowth'>\n\r";
761
+ echo " <td colspan='4' style='text-align: left;'>\n\r";
762
+ echo "<strong class='form_group'>".TXT_WPSC_SELECT_PRODUCT."</strong>";
763
+ echo " </td>\n\r";
764
+ echo " </tr>\n\r";
765
+ echo " <tr class='selectcategory'>\n\r";
766
+ echo " <td colspan='4' width='160px'>\n\r";
767
+ echo "<div style='float: right; width: 160px;'>";
768
+ echo topcategorylist() . "<span id='loadingindicator_span'><img id='loadingimage' src='".WPSC_URL."/images/indicator.gif' alt='Loading' title='Loading' /></span></div>";
769
+ echo TXT_WPSC_PLEASESELECTACATEGORY.":";
770
+
771
+ echo " </td>\n\r";
772
+ echo " </tr>\n\r";
773
+ // echo " <tr>\n\r";
774
+ // echo"<td colspan='4'>\n\r";
775
+ // echo " <div id='changenotice' class='updated'></div>";
776
+ // echo " </td>\n\r";
777
+ // echo " </tr>\n\r";
778
+
779
+
780
+
781
+ if(is_numeric($_GET['catid'])) {
782
+ $name_style = 'class="pli_name"';
783
+ $price_style = 'class="pli_price"';
784
+ $edit_style = 'class="pli_edit"';
785
+ } else {
786
+ $name_style = '';
787
+ $price_style = '';
788
+ $edit_style = '';
789
+ }
790
+
791
+
792
+ echo " <tr class='firstrow'>\n\r";
793
+
794
+ echo " <td width='45px'>";
795
+ echo "</td>\n\r";
796
+
797
+ echo " <td ".$name_style.">";
798
+ echo TXT_WPSC_NAME;
799
+ echo "</td>\n\r";
800
+
801
+ echo " <td ".$price_style.">";
802
+ echo TXT_WPSC_PRICE;
803
+ echo "</td>\n\r";
804
+
805
+ if(!is_numeric($_GET['catid'])) {
806
+ echo " <td>";
807
+ echo TXT_WPSC_CATEGORIES;
808
+ echo "</td>\n\r";
809
+ }
810
+
811
+ echo " </tr>\n\r";
812
+ if(is_numeric($_GET['catid'])) {
813
+ echo "<tr><td colspan='4' class='category_item_container'>\n\r";
814
+ }
815
+
816
+ if($product_list != null)
817
+ {
818
+ $order_number = 0;
819
+ if(is_numeric($_GET['catid'])){
820
+ echo " <form><input type='hidden' name='category_id' id='item_list_category_id' value='".(int)$_GET['catid']."'/></form>";
821
+ echo " <div id='sort1' class='groupWrapper'>\n\r";
822
+ }
823
+ $tablei=1;
824
+ foreach($product_list as $product)
825
+ {
826
+ /*
827
+ * Creates order table entries if they are not already present
828
+ * No need for extra database queries to determine the highest order number
829
+ * anything without one is automatically at the bottom
830
+ * so anything with an order number is already processed by the time it starts adding rows
831
+ */
832
+ if(is_numeric($_GET['catid'])){
833
+ echo " <div id='".$product['id']."' class='groupItem'>\n\r";
834
+ //echo " <div class='itemHeader'></div>\n\r";
835
+ echo " <div class='itemContent'>\n\r";
836
+ } else {
837
+ if ($tablei==1) {
838
+ echo "<tr class='products'>";
839
+ } else {
840
+ echo "<tr class='productsalt'>";
841
+ }
842
+ $tablei*=-1;
843
+ }
844
+
845
+ if(is_numeric($_GET['catid'])) {
846
+ if($product['order_state'] > 0) {
847
+ if($product['order'] > $order_number) {
848
+ $order_number = $product['order'];
849
+ $order_number++;
850
+ }
851
+ } else {
852
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."product_order` ( `category_id` , `product_id` , `order` ) VALUES ( '".$product['category_id']."', '".$product['id']."', '$order_number');");
853
+ $order_number++;
854
+ }
855
+ }
856
+ if(is_numeric($_GET['catid'])) {
857
+ echo " <div class='itemHeader pli_img'>\n\r";
858
+ echo "<a class='noline' title='Drag to a new position'>";
859
+ } else {
860
+ echo " <td style='width: 40px;' class='imagecol'>\r\n";
861
+ }
862
+
863
+ if(($product['thumbnail_image'] != null) && file_exists(WPSC_THUMBNAIL_DIR.$product['thumbnail_image'])) { // check for custom thumbnail images
864
+ echo "<img title='Drag to a new position' src='".WPSC_THUMBNAIL_URL.$product['thumbnail_image']."' title='".$product['name']."' alt='".$product['name']."' width='35' height='35' />";
865
+ } else if(($product['image'] != null) && file_exists(WPSC_THUMBNAIL_DIR.$product['image'])) { // check for automatic thumbnail images
866
+ echo "<img title='Drag to a new position' src='".WPSC_THUMBNAIL_URL.$product['image']."' title='".$product['name']."' alt='".$product['name']."' width='35' height='35' />";
867
+ } else { // no image, display this fact
868
+ echo "<img title='Drag to a new position' src='".WPSC_URL."/no-image-uploaded.gif' title='".$product['name']."' alt='".$product['name']."' width='35' height='35' />";
869
+ }
870
+
871
+ echo "</a>";
872
+ if(is_numeric($_GET['catid'])){
873
+ echo " </div>\n\r";
874
+ } else {
875
+ echo "</td><td width='25%'>";
876
+ }
877
+
878
+ if(is_numeric($_GET['catid'])){
879
+ echo " <div class='pli_name'>\n\r";
880
+ }
881
+
882
+ echo "<a href='#' onclick='filleditform(".$product['id'].");return false;'>";
883
+ if ($product['name']=='') {
884
+ echo "(".TXT_WPSC_NONAME.")";
885
+ } else {
886
+ echo htmlentities(stripslashes($product['name']), ENT_QUOTES);
887
+ }
888
+ echo "</a>";
889
+
890
+
891
+
892
+ if(is_numeric($_GET['catid'])){
893
+ echo " </div>\n\r";
894
+ } else {
895
+ echo "</td><td>";
896
+ }
897
+ if(is_numeric($_GET['catid'])){
898
+ echo " <div class='pli_price'>\n\r";
899
+ }
900
+ echo nzshpcrt_currency_display($product['price'], 1);
901
+ if(is_numeric($_GET['catid'])){
902
+ echo " </div>\n\r";
903
+ }
904
+
905
+ if(!is_numeric($_GET['catid'])) {
906
+ echo " <td>\n\r";
907
+ $category_list = $wpdb->get_results("SELECT `".$wpdb->prefix."product_categories`.`id`,`".$wpdb->prefix."product_categories`.`name` FROM `".$wpdb->prefix."item_category_associations` , `".$wpdb->prefix."product_categories` WHERE `".$wpdb->prefix."item_category_associations`.`product_id` IN ('".$product['id']."') AND `".$wpdb->prefix."item_category_associations`.`category_id` = `".$wpdb->prefix."product_categories`.`id` AND `".$wpdb->prefix."product_categories`.`active` IN('1')",ARRAY_A);
908
+ $i = 0;
909
+ foreach((array)$category_list as $category_row)
910
+ {
911
+ if($i > 0)
912
+ {
913
+ echo "<br />";
914
+ }
915
+ echo "<a href='?page=".$_GET['page']."&amp;catid=".$category_row['id']."'>".stripslashes($category_row['name'])."</a>";
916
+ $i++;
917
+ }
918
+ }
919
+ if(!is_numeric($_GET['catid'])){
920
+ echo "</td>";
921
+ }
922
+ // echo "<a href='#' title='sth' onclick='filleditform(".$product['id'].");return false;'>".TXT_WPSC_EDIT."</a>";
923
+ echo " </div>\n\r";
924
+ echo " </div>\n\r";
925
+ if(!is_numeric($_GET['catid'])){
926
+ echo "</tr>";
927
+ }
928
+ }
929
+ echo " </div>\n\r";
930
+ echo "</td></tr>";
931
+ if(is_numeric($_GET['catid'])){
932
+ //echo "<tr><td>&nbsp;&nbsp;&nbsp;<a href='#' onClick='serialize();return false;'>".TXT_WPSC_SAVE_PRODUCT_ORDER."</a></td><td></td></tr>";
933
+ } else {
934
+ if (isset($itempp)) {
935
+ $num_pages = ceil($num_prodcuts/$itempp);
936
+ }
937
+ if (!isset($_GET['pnum'])) {
938
+ $_GET['pnum']=0;
939
+ }
940
+ echo "<tr class='selectcategory' style='border: none;'><td style='text-align:right;' colspan='4' width='70%'>";
941
+ for ($i=0;$i<$num_pages;$i++) {
942
+ $newpage=$_GET['pnum']+1;
943
+ $pagenumber=$i+1;
944
+ if (($i==$_GET['pnum']) && is_numeric($_GET['pnum'] )) {
945
+ echo '<span class="page-numbers current">'.$pagenumber.'</span>';
946
+ } else {
947
+ echo "<a style='text-decoration:none;' class='page-numbers' href='?page=".$_GET['page']."&pnum=".$i."'>".$pagenumber."</a>";
948
+ }
949
+ }
950
+ if (!isset($_GET['catid'])) {
951
+ if ($_GET['pnum']==='all') {
952
+ echo '<span class="page-numbers current">'.TXT_WPSC_SHOWALL.'</span>';
953
+ } else {
954
+ echo "<a style='text-decoration:none;' class='page-numbers' href='?page=".$_GET['page']."&pnum=all'>".TXT_WPSC_SHOWALL."</a>";
955
+ }
956
+ }
957
+ echo "</td></tr>";
958
+ }
959
+
960
+
961
+ }
962
+
963
+ echo " </table>\n\r";
964
+ echo " </td><td class='secondcol'>\n\r";
965
+ echo " <div id='productform'>";
966
+ echo "<div class='categorisation_title'><strong class='form_group'>". TXT_WPSC_PRODUCTDETAILS." <span>".TXT_WPSC_ENTERPRODUCTDETAILSHERE."</span></strong></div>";
967
+ echo "<form method='POST' enctype='multipart/form-data' name='editproduct$num'>";
968
+ echo " <table class='producttext'>\n\r";;
969
+
970
+
971
+ echo " </table>\n\r";
972
+ echo " <div id='formcontent' style='width:100%;'>\n\r";
973
+ echo " </div>\n\r";
974
+ echo "</form>";
975
+ echo " </div>";
976
+ ?>
977
+ <div id='additem'>
978
+ <div class="categorisation_title"><strong class="form_group"><?php echo TXT_WPSC_PRODUCTDETAILS;?> <span><?php echo TXT_WPSC_ENTERPRODUCTDETAILSHERE;?></span></strong></div>
979
+
980
+ <form method='POST' enctype='multipart/form-data'>
981
+ <table class='additem'>
982
+ <tr>
983
+ <td class='itemfirstcol'>
984
+ <?php echo TXT_WPSC_PRODUCTNAME;?>:
985
+ </td>
986
+ <td>
987
+ <input size='30' type='text' name='name' value='' class='text' />
988
+ </td>
989
+ </tr>
990
+ <tr>
991
+ <td class='itemfirstcol'>
992
+ <?php echo TXT_WPSC_PRODUCTDESCRIPTION;?>:
993
+ </td>
994
+ <td>
995
+ <textarea name='description' cols='40' rows='8'></textarea><br />
996
+ </td>
997
+ </tr>
998
+ <tr>
999
+ <td class='itemfirstcol'>
1000
+ <?php echo TXT_WPSC_ADDITIONALDESCRIPTION;?>:
1001
+ </td>
1002
+ <td>
1003
+ <textarea name='additional_description' cols='40' rows='8'></textarea><br />
1004
+ </td>
1005
+ </tr>
1006
+ <tr>
1007
+ <td class='itemfirstcol'>
1008
+ <?php echo TXT_WPSC_PRODUCT_TAGS;?>:
1009
+ </td>
1010
+ <td>
1011
+ <input type='text' class='text' name='product_tag' id='product_tag'><br /><span class='small_italic'>Seperate with commas</span>
1012
+ </td>
1013
+ </tr>
1014
+ <tr><td>&nbsp;</td></tr>
1015
+ <tr>
1016
+ <td class='itemfirstcol'>
1017
+ </td>
1018
+ <td>
1019
+ <?php
1020
+ $categorisation_groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}wpsc_categorisation_groups` WHERE `active` IN ('1')", ARRAY_A);
1021
+ foreach($categorisation_groups as $categorisation_group){
1022
+ $category_count = $wpdb->get_var("SELECT COUNT(*) FROM `{$wpdb->prefix}product_categories` WHERE `group_id` IN ('{$categorisation_group['id']}')");
1023
+ if($category_count > 0) {
1024
+ echo "<p>";
1025
+ $category_group_name = str_replace("[categorisation]", $categorisation_group['name'], TXT_WPSC_PRODUCT_CATEGORIES);
1026
+ echo "<strong>".$category_group_name.":</strong><br>";
1027
+ echo categorylist($categorisation_group['id'], false, 'add_');
1028
+ echo "</p>";
1029
+ }
1030
+ }
1031
+ ?>
1032
+ </td>
1033
+ </tr>
1034
+
1035
+
1036
+
1037
+
1038
+ <tr><td colspan='2'><div id='price_and_stock' class='postbox'>
1039
+ <h3>
1040
+ <a class="togbox">+</a>
1041
+ <?php echo TXT_WPSC_PRICE_AND_STOCK_CONTROL;?>
1042
+ </h3>
1043
+ <div class='inside'>
1044
+ <table>
1045
+ <tr>
1046
+ <td>
1047
+ <?php echo TXT_WPSC_PRICE;?>:&nbsp;<input type='text' size='10' name='price' value='0.00' />
1048
+ </td>
1049
+ </tr>
1050
+ <tr>
1051
+ <td>
1052
+ <input id='add_form_tax' type='checkbox' name='notax' value='yes' />&nbsp;<label for='add_form_tax'><?php echo TXT_WPSC_TAXALREADYINCLUDED;?></label>
1053
+ </td>
1054
+ </tr>
1055
+ <tr>
1056
+
1057
+ <td>
1058
+ <input id='add_form_donation' type='checkbox' name='donation' value='yes' />&nbsp;<label for='add_form_donation'><?php echo TXT_WPSC_IS_DONATION;?></label>
1059
+ </td>
1060
+ </tr>
1061
+ <tr>
1062
+
1063
+ <td>
1064
+ <input id='add_form_no_shipping' type='checkbox' name='no_shipping' value='yes' />&nbsp;<label for='add_form_no_shipping'><?php echo TXT_WPSC_NO_SHIPPING;?></label>
1065
+ </td>
1066
+ </tr>
1067
+ <tr>
1068
+ <td>
1069
+ <input type="checkbox" onclick="hideelement('add_special')" value="yes" name="special" id="add_form_special"/>
1070
+ <label for="add_form_special"><?php echo TXT_WPSC_SPECIAL;?></label>
1071
+ <div style="display: none;" id="add_special">
1072
+ <input type="text" size="10" value="0.00" name="special_price"/>
1073
+ </div>
1074
+ </td>
1075
+ </tr>
1076
+ <tr>
1077
+ <td style='width:430px;'>
1078
+ <input id='add_form_quantity_limited' type="checkbox" onclick="hideelement('add_stock')" value="yes" name="quantity_limited"/>
1079
+ <label for='add_form_quantity_limited' class='small'><?php echo TXT_WPSC_UNTICKBOX;?></label>
1080
+ <div style="display: none;" id="add_stock">
1081
+ <input type='text' name='quantity' value='0' size='10' />
1082
+ </div>
1083
+ </td>
1084
+ </tr>
1085
+ </table></div></div></TD></tr>
1086
+ <?php
1087
+ do_action('wpsc_product_form', array('product_id' => 0, 'state' => 'add'));
1088
+ ?>
1089
+ <tr>
1090
+ <td colspan="2">
1091
+ <div id='variation' class='postbox closed'>
1092
+ <h3>
1093
+ <a class="togbox">+</a>
1094
+ <?php echo TXT_WPSC_VARIATION_CONTROL; ?>
1095
+ </h3>
1096
+ <div class='inside'>
1097
+ <table>
1098
+ <tr>
1099
+ <td>
1100
+ <?php echo TXT_WPSC_ADD_VAR; ?>
1101
+ </td>
1102
+ <td>
1103
+ <?php echo variationslist(); ?>
1104
+ <div id='add_product_variations'>
1105
+
1106
+ </div>
1107
+ <div id='add_product_variation_details'>
1108
+
1109
+ </div>
1110
+ </td>
1111
+ </tr>
1112
+ </table></div></div></td></tr>
1113
+ <tr>
1114
+ <td colspan='2'>
1115
+ <div class='postbox closed' id='shipping'>
1116
+ <h3>
1117
+ <a class="togbox">+</a>
1118
+ <?php echo TXT_WPSC_SHIPPING_DETAILS; ?>
1119
+ </h3>
1120
+ <div class='inside'>
1121
+ <table>
1122
+
1123
+ <!--USPS shipping changes-->
1124
+ <tr>
1125
+ <td>
1126
+ <?php echo TXT_WPSC_WEIGHT; ?>
1127
+ </td>
1128
+ <td>
1129
+ <input type="text" size='5' name='weight' value=''>
1130
+ <select name='weight_unit'>
1131
+ <option value="pound">Pounds</option>
1132
+ <option value="once">Onces</option>
1133
+ </select>
1134
+ </td>
1135
+ </tr>
1136
+ <!--USPS shipping changes ends-->
1137
+
1138
+ <tr>
1139
+ <td>
1140
+ <?php echo TXT_WPSC_LOCAL_PNP; ?>
1141
+ </td>
1142
+ <td>
1143
+ <input type='text' size='10' name='pnp' value='0.00' />
1144
+ </td>
1145
+ </tr>
1146
+
1147
+ <tr>
1148
+ <td>
1149
+ <?php echo TXT_WPSC_INTERNATIONAL_PNP; ?>
1150
+ </td>
1151
+ <td>
1152
+ <input type='text' size='10' name='international_pnp' value='0.00' />
1153
+ </td>
1154
+ </tr>
1155
+ </table></div></div></td></tr>
1156
+ <tr><td colspan='2'><div id='advanced' class='postbox closed'>
1157
+ <h3>
1158
+ <a class="togbox">+</a>
1159
+ <?php echo TXT_WPSC_ADVANCED_OPTIONS;?>
1160
+ </h3>
1161
+ <div class='inside'>
1162
+ <table>
1163
+ <tr>
1164
+ <td class='itemfirstcol'>
1165
+ <?php echo TXT_WPSC_ADMINNOTES;?>:
1166
+ </td>
1167
+ <td>
1168
+ <textarea cols="40" rows="3" type='text' name='merchant_notes' id='merchant_notes'></textarea>
1169
+ </td>
1170
+ </tr>
1171
+ <tr>
1172
+ <td class='itemfirstcol'>
1173
+ </td>
1174
+ <td>
1175
+ <input type="checkbox" value="yes" id="add_form_display_frontpage" name="display_frontpage"/>
1176
+ <label for='add_form_display_frontpage'><?php echo TXT_WPSC_DISPLAY_FRONT_PAGE;?></label>
1177
+ </td>
1178
+ </tr>
1179
+ <td class='itemfirstcol'>
1180
+ </td>
1181
+ <td>
1182
+ <input type='checkbox' name="productmeta_values[engraved]" id='add_engrave_text'>
1183
+ <label for='add_engrave_text'><?php echo TXT_WPSC_ENGRAVE;?></label>
1184
+ <br />
1185
+ </td>
1186
+ </tr>
1187
+
1188
+
1189
+ <?php if(get_option('payment_gateway') == 'google') { ?>
1190
+ <tr>
1191
+ <td class='itemfirstcol'>
1192
+ </td>
1193
+ <td>
1194
+ <input type='checkbox' name="productmeta_values['google_prohibited']" id='add_google_prohibited' /> <label for='add_google_prohibited'>
1195
+ <?php echo TXT_WPSC_PROHIBITED;?></label><br />
1196
+ Prohibited <a href='http://checkout.google.com/support/sell/bin/answer.py?answer=75724'>by Google?</a>
1197
+ </td>
1198
+ </tr>
1199
+ <?php } ?>
1200
+ <tr>
1201
+ <td class='itemfirstcol'>
1202
+ <?php echo TXT_WPSC_EXTERNALLINK;?>:
1203
+ </td>
1204
+ <td>
1205
+ <input type='text' class='text' name='external_link' id='external_link' size='40'>
1206
+ </td>
1207
+ </tr>
1208
+
1209
+ <tr>
1210
+ <td></td>
1211
+ <td>
1212
+ <?php echo TXT_WPSC_USEONLYEXTERNALLINK;?></strong>
1213
+ </td>
1214
+ </tr>
1215
+
1216
+ <tr>
1217
+ <td>
1218
+ <?php echo TXT_WPSC_ADD_CUSTOM_FIELD;?>:
1219
+ </td>
1220
+ <td>
1221
+ <div class="product_custom_meta">
1222
+ <label >
1223
+ <?php echo TXT_WPSC_NAME;?>:
1224
+ <input type="text" name="new_custom_meta[name][]" value="" class="text"/>
1225
+ </label>
1226
+
1227
+ <label>
1228
+ <?php echo TXT_WPSC_VALUE;?>:
1229
+ <input type="text" name="new_custom_meta[value][]" value="" class="text"/>
1230
+
1231
+ </label>
1232
+ <a href='#' class='add_more_meta' onclick='return add_more_meta(this)'>+</a>
1233
+ <br />
1234
+ </div>
1235
+
1236
+ </td>
1237
+ </tr>
1238
+
1239
+
1240
+
1241
+ </table></div></div></td></tr>
1242
+ <tr>
1243
+ <td colspan='2'>
1244
+ <div id='product_image' class='postbox'>
1245
+ <h3>
1246
+ <a class="togbox">+</a>
1247
+ <?php echo TXT_WPSC_PRODUCTIMAGES;?>
1248
+ </h3>
1249
+ <div class='inside'>
1250
+ <table>
1251
+ <tr>
1252
+ <td>
1253
+ <?php echo TXT_WPSC_PRODUCTIMAGE;?>:
1254
+ </td>
1255
+ <td>
1256
+ <input type='file' name='image' value='' />
1257
+ </td>
1258
+ </tr>
1259
+
1260
+ <tr>
1261
+ <td></td><td>
1262
+ <table>
1263
+ <?php
1264
+ // pe.{ & table opening above
1265
+ if(function_exists("getimagesize") && is_numeric(get_option('product_image_height')) && is_numeric(get_option('product_image_width')))
1266
+ {
1267
+ ?>
1268
+ <tr>
1269
+ <td>
1270
+ <input type='radio' name='image_resize' value='0' id='add_image_resize0' class='image_resize' onclick='hideOptionElement(null, "image_resize0");' /> <label for='add_image_resize0'><?php echo TXT_WPSC_DONOTRESIZEIMAGE; ?></label>
1271
+ </td>
1272
+ </tr>
1273
+ <tr>
1274
+ <td>
1275
+ <input type='radio' checked='true' name='image_resize' value='1' id='add_image_resize1' class='image_resize' onclick='hideOptionElement(null, "image_resize1");' /> <label for='add_image_resize1'><?php echo TXT_WPSC_USEDEFAULTSIZE;?> (<?php echo get_option('product_image_height') ."x".get_option('product_image_width'); ?>)</label>
1276
+ </td>
1277
+ </tr>
1278
+ <?php
1279
+ $default_size_set = true;
1280
+ }
1281
+
1282
+ if(function_exists("getimagesize"))
1283
+ {
1284
+ ?>
1285
+ <tr>
1286
+ <td>
1287
+ <input type='radio' name='image_resize' value='2'id='add_image_resize2' class='image_resize' onclick='hideOptionElement("heightWidth", "image_resize2");' />
1288
+ <label for='add_image_resize2'><?php echo TXT_WPSC_USESPECIFICSIZE; ?> </label>
1289
+ <div id='heightWidth' style='display: none;'>
1290
+ <input type='text' size='4' name='width' value='' /><label for='add_image_resize2'><?php echo TXT_WPSC_PXWIDTH;?></label>
1291
+ <input type='text' size='4' name='height' value='' /><label for='add_image_resize2'><?php echo TXT_WPSC_PXHEIGHT; ?> </label>
1292
+ </div>
1293
+ </td>
1294
+ </tr>
1295
+ <tr>
1296
+ <td>
1297
+ <input type='radio' name='image_resize' value='3' id='add_image_resize3' class='image_resize' onclick='hideOptionElement("browseThumb", "image_resize3");' />
1298
+ <label for='add_image_resize3'><?php echo TXT_WPSC_SEPARATETHUMBNAIL; ?></label><br />
1299
+ <div id='browseThumb' style='display: none;'>
1300
+ <input type='file' name='thumbnailImage' value='' />
1301
+ </div>
1302
+ </td>
1303
+ </tr>
1304
+
1305
+ <?php
1306
+ }
1307
+
1308
+ if(function_exists('add_multiple_image_form')) {
1309
+ echo add_multiple_image_form("add_");
1310
+ }
1311
+ ?>
1312
+ </table>
1313
+ </td>
1314
+ </tr>
1315
+ </table>
1316
+ </div></div></td></tr>
1317
+
1318
+ <tr>
1319
+ <td colspan='2'>
1320
+ <div id='product_download' class='postbox closed'>
1321
+ <h3>
1322
+ <a class='togbox'>+</a>
1323
+ <?php echo TXT_WPSC_PRODUCTDOWNLOAD;?>
1324
+ </h3>
1325
+ <div class='inside'>
1326
+ <table>
1327
+ <tr>
1328
+ <td>
1329
+ <?php echo TXT_WPSC_DOWNLOADABLEPRODUCT;?>:
1330
+ </td>
1331
+ <td>
1332
+ <input type='file' name='file' value='' /><br />
1333
+ <?php echo wpsc_select_product_file(); ?>
1334
+ <br />
1335
+ </td>
1336
+ </tr>
1337
+
1338
+ <?php
1339
+ if(function_exists("make_mp3_preview") || function_exists("wpsc_media_player"))
1340
+ {
1341
+ echo " <tr>\n\r";
1342
+ echo " <td>\n\r";
1343
+ echo TXT_WPSC_PREVIEW_FILE.": ";
1344
+ echo " </td>\n\r";
1345
+ echo " <td>\n\r";
1346
+ echo "<input type='file' name='preview_file' value='' /><br />";
1347
+ //echo "<span class='admin_product_notes'>".TXT_WPSC_PREVIEW_FILE_NOTE."</span>";
1348
+ echo "<br />";
1349
+ echo "<br />";
1350
+ echo " </td>\n\r";
1351
+ echo " </tr>\n\r";
1352
+ }
1353
+ ?>
1354
+ </table></div></div></td></tr>
1355
+ <tr>
1356
+ <td>
1357
+ </td>
1358
+ <td>
1359
+ <input type='hidden' name='submit_action' value='add' />
1360
+ <input class='button' type='submit' name='submit' value='<?php echo TXT_WPSC_ADD_PRODUCT;?>' />
1361
+ </td>
1362
+ </tr>
1363
+ </table>
1364
+ </form>
1365
+ </div>
1366
+ <?php
1367
+ echo " </td></tr>\n\r";
1368
+ echo " </table>\n\r"
1369
+
1370
+ ?>
1371
+ </div>
wp-shopping-cart/display-log.php ADDED
@@ -0,0 +1,753 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * this updates the processing status of an item
4
+ */
5
+ if(is_numeric($_GET['id']) && is_numeric($_GET['value']))
6
+ {
7
+ $max_stage = $wpdb->get_var("SELECT MAX(*) AS `max` FROM `".$wpdb->prefix."purchase_statuses` WHERE `active`='1'");
8
+ if(is_numeric($_GET['value']) && ($_GET['value'] <= $max_stage))
9
+ {
10
+ $newvalue = $_GET['value'];
11
+ }
12
+ else
13
+ {
14
+ $newvalue = 1;
15
+ }
16
+ $log_data = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."purchase_logs` WHERE `id` = '".$_GET['id']."' LIMIT 1");
17
+ $update_sql = "UPDATE `".$wpdb->prefix."purchase_logs` SET `processed` = '".$newvalue."' WHERE `id` = '".$_GET['id']."' LIMIT 1";
18
+ $wpdb->query($update_sql);
19
+ if(($newvalue > $log_data['processed']) && ($log_data['processed'] <=1))
20
+ {
21
+ transaction_results($log_data['sessionid'], false);
22
+ }
23
+ }
24
+
25
+
26
+ if(is_numeric($_GET['deleteid']))
27
+ {
28
+ $delete_id = $_GET['deleteid'];
29
+ $delete_log_form_sql = "SELECT * FROM `".$wpdb->prefix."cart_contents` WHERE `purchaseid`='$delete_id'";
30
+ $cart_content = $wpdb->get_results($delete_log_form_sql,ARRAY_A);
31
+ foreach((array)$cart_content as $cart_item)
32
+ {
33
+ $cart_item_variations = $wpdb->query("DELETE FROM `".$wpdb->prefix."cart_item_variations` WHERE `cart_id` = '".$cart_item['id']."'", ARRAY_A);
34
+ }
35
+ $wpdb->query("DELETE FROM `".$wpdb->prefix."cart_contents` WHERE `purchaseid`='$delete_id'");
36
+ $wpdb->query("DELETE FROM `".$wpdb->prefix."submited_form_data` WHERE `log_id` IN ('$delete_id')");
37
+ $wpdb->query("DELETE FROM `".$wpdb->prefix."purchase_logs` WHERE `id`='$delete_id' LIMIT 1");
38
+ echo '<div id="message" class="updated fade"><p>'.TXT_WPSC_THANKS_DELETED.'</p></div>';
39
+ }
40
+
41
+
42
+
43
+ if(isset($_GET['clear_locks']) && ($_GET['clear_locks'] == 'true') && is_numeric($_GET['purchaseid'])) {
44
+ $purchase_id = (int)$_GET['purchaseid'];
45
+ $downloadable_items = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."download_status` WHERE `purchid` IN ('$purchase_id')", ARRAY_A);
46
+
47
+ $clear_locks_sql = "UPDATE`".$wpdb->prefix."download_status` SET `ip_number` = '' WHERE `purchid` IN ('$purchase_id')";
48
+ $wpdb->query($clear_locks_sql);
49
+
50
+
51
+ $email_form_field = $wpdb->get_var("SELECT `id` FROM `".$wpdb->prefix."collect_data_forms` WHERE `type` IN ('email') AND `active` = '1' ORDER BY `order` ASC LIMIT 1");
52
+ $email_address = $wpdb->get_var("SELECT `value` FROM `".$wpdb->prefix."submited_form_data` WHERE `log_id`='{$purchase_id}' AND `form_id` = '{$email_form_field}' LIMIT 1");
53
+
54
+ foreach($downloadable_items as $downloadable_item) {
55
+ $download_links .= $siteurl."?downloadid=".$downloadable_item['uniqueid']. "\n";
56
+ }
57
+
58
+
59
+ mail($email_address, TXT_WPSC_USER_UNLOCKED_EMAIL, str_replace("[download_links]", $download_links, TXT_WPSC_USER_UNLOCKED_EMAIL_MESSAGE), "From: ".get_option('return_email')."");
60
+
61
+ echo '<div id="message" class="updated fade"><p>'.TXT_WPSC_THANKS_UNLOCKED.'</p></div>';
62
+ }
63
+
64
+
65
+ //echo("<pre>".print_r($cart_item,true)."</pre>");
66
+ /*
67
+ * this finds the earliest time in the shopping cart and sorts out the timestamp system for the month by month display
68
+ */
69
+
70
+ $earliest_record_sql = "SELECT MIN(`date`) AS `date` FROM `".$wpdb->prefix."purchase_logs` WHERE `date`!=''";
71
+ $earliest_record = $wpdb->get_results($earliest_record_sql,ARRAY_A) ;
72
+
73
+ $current_timestamp = time();
74
+ $earliest_timestamp = $earliest_record[0]['date'];
75
+
76
+ $current_year = date("Y");
77
+ $earliest_year = date("Y",$earliest_timestamp);
78
+
79
+ $j = 0;
80
+ for($year = $current_year; $year >= $earliest_year; $year--)
81
+ {
82
+ for($month = 12; $month >= 1; $month--)
83
+ {
84
+ $start_timestamp = mktime(0, 0, 0, $month, 1, $year);
85
+ $end_timestamp = mktime(0, 0, 0, ($month+1), 1, $year);
86
+ if(($end_timestamp >= $earliest_timestamp) && ($start_timestamp <= $current_timestamp))
87
+ {
88
+ $date_list[$j]['start'] = $start_timestamp;
89
+ $date_list[$j]['end'] = $end_timestamp;
90
+ $j++;
91
+ }
92
+ }
93
+ }
94
+
95
+ if($_GET['filter'] !== 'true')
96
+ {
97
+ if(is_numeric($_GET['filter'])) {
98
+ $max_number = $_GET['filter'];
99
+ } else {
100
+ if ($_GET['filter']=='paid') {
101
+ $paidlog=true;
102
+ }
103
+
104
+ $max_number = 3;
105
+ }
106
+
107
+ $date_list = array_slice($date_list, 0, $max_number);
108
+ }
109
+
110
+ ?>
111
+ <div class="wrap" style=''>
112
+ <h2><?php echo TXT_WPSC_DISPLAYPURCHASES;?></h2><br />
113
+ <table style='width: 100%;'>
114
+ <tr>
115
+ <td id='product_log_data'>
116
+ <?php
117
+ if(($purchase_log == null) && !is_numeric($_GET['purchaseid'])) {
118
+ if($earliest_record[0]['date'] != null) {
119
+ $form_sql = "SELECT * FROM `".$wpdb->prefix."collect_data_forms` WHERE `active` = '1' AND `display_log` = '1';";
120
+ $form_data = $wpdb->get_results($form_sql,ARRAY_A);
121
+
122
+ $col_count = 5 + count($form_data);
123
+
124
+ $i = 0;
125
+ echo "<table class='logdisplay'>";
126
+
127
+ //exit("<pre>".print_r($date_list,true)."</pre>");
128
+ foreach($date_list as $date_pair){
129
+ if(($date_pair['end'] >= $earliest_timestamp) && ($date_pair['start'] <= $current_timestamp)) {
130
+ $sql = "SELECT * FROM `".$wpdb->prefix."purchase_logs` WHERE `date` BETWEEN '".$date_pair['start']."' AND '".$date_pair['end']."' ORDER BY `date` DESC";
131
+ if ($paidlog) {
132
+ $sql = "SELECT * FROM `".$wpdb->prefix."purchase_logs` WHERE `date` BETWEEN '".$date_pair['start']."' AND '".$date_pair['end']."' AND `processed` >= '2' ORDER BY `date` DESC";
133
+ } else if($_GET['filteremail']) {
134
+ $sql = "SELECT DISTINCT `{$wpdb->prefix}purchase_logs` . * FROM `{$wpdb->prefix}submited_form_data` LEFT JOIN `{$wpdb->prefix}purchase_logs` ON `{$wpdb->prefix}submited_form_data`.`log_id` = `{$wpdb->prefix}purchase_logs`.`id` WHERE `{$wpdb->prefix}submited_form_data`.`value` IN ( '".$wpdb->escape($_GET['filteremail'])."' ) AND `{$wpdb->prefix}purchase_logs`.`date` BETWEEN '".$date_pair['start']."' AND '".$date_pair['end']."' ORDER BY `{$wpdb->prefix}purchase_logs`.`date` DESC;";
135
+ }
136
+
137
+
138
+
139
+ $purchase_log = $wpdb->get_results($sql,ARRAY_A) ;
140
+ $i = 0;
141
+ $subtotal = 0;
142
+ echo "<tr>";
143
+ echo " <td colspan='$col_count'>";
144
+ echo "<h3 class='log_headers'>".date("M Y", $date_pair['start']) ."</h3>";
145
+ echo " </td>";
146
+ echo "</tr>";
147
+ if($purchase_log != null)
148
+ {
149
+ echo "<tr class='toprow'>";
150
+
151
+ // echo " <td>";
152
+ // echo TXT_WPSC_PURCHASE_NUMBER;
153
+ // echo " </td>";
154
+
155
+ echo " <td style='text-align: left;'>";
156
+ echo TXT_WPSC_STATUS;
157
+ echo " </td>";
158
+
159
+ echo " <td>";
160
+ echo TXT_WPSC_DATE;
161
+ echo " </td>";
162
+
163
+ foreach($form_data as $form_field)
164
+ {
165
+ echo " <td>";
166
+ echo $form_field['name'];
167
+ echo " </td>";
168
+ }
169
+
170
+ echo " <td>";
171
+ echo TXT_WPSC_PRICE;
172
+ echo " </td>";
173
+
174
+ if(get_option('payment_method') == 2)
175
+ {
176
+ echo " <td>";
177
+ echo TXT_WPSC_PAYMENT_METHOD;
178
+ echo " </td>";
179
+ }
180
+
181
+ echo " <td>";
182
+ echo TXT_WPSC_VIEWDETAILS;
183
+ echo " </td>";
184
+
185
+ //echo "<td width='1%'>";
186
+ //echo TXT_WPSC_STORENAME;
187
+ //echo "<td>";
188
+
189
+ echo "</tr>";
190
+
191
+ foreach($purchase_log as $purchase)
192
+ {
193
+ $status_state = "expand";
194
+ $status_style = "";
195
+ $alternate = "";
196
+ $i++;
197
+ if(($i % 2) != 0)
198
+ {
199
+ $alternate = "class='alt'";
200
+ }
201
+ echo "<tr $alternate>\n\r";
202
+ // echo " <td>";
203
+ // echo $purchase['id'];
204
+ // echo " </td>";
205
+
206
+ echo " <td class='processed'>";
207
+ if($purchase['processed'] < 1)
208
+ {
209
+ $purchase['processed'] = 1;
210
+ }
211
+ $stage_sql = "SELECT * FROM `".$wpdb->prefix."purchase_statuses` WHERE `id`='".$purchase['processed']."' AND `active`='1' LIMIT 1";
212
+ $stage_data = $wpdb->get_row($stage_sql,ARRAY_A);
213
+
214
+ echo "<a href='#' onclick='return show_status_box(\"status_box_".$purchase['id']."\",\"log_expander_icon_".$purchase['id']."\");'>";
215
+ if($_GET['id'] == $purchase['id'])
216
+ {
217
+ $status_state = "collapse";
218
+ $status_style = "style='display: block;'";
219
+ }
220
+ echo "<img class='log_expander_icon' id='log_expander_icon_".$purchase['id']."' src='".WPSC_URL."/images/icon_window_$status_state.gif' alt='' title='' />";
221
+ if($stage_data['colour'] != '')
222
+ {
223
+ $colour = "style='color: #".$stage_data['colour'].";'";
224
+ }
225
+ echo "<span $colour id='form_group_".$purchase['id']."_text'>".$stage_data['name']."</span>";
226
+ echo "</a>";
227
+ echo " </td>\n\r";
228
+
229
+ echo " <td>";
230
+ echo date("jS M Y",$purchase['date']);
231
+ echo " </td>\n\r";
232
+
233
+ foreach($form_data as $form_field) {
234
+ $collected_data_sql = "SELECT * FROM `".$wpdb->prefix."submited_form_data` WHERE `log_id` = '".$purchase['id']."' AND `form_id` = '".$form_field['id']."' LIMIT 1";
235
+ $collected_data = $wpdb->get_results($collected_data_sql,ARRAY_A);
236
+ $collected_data = $collected_data[0];
237
+ switch($form_field['type']) {
238
+ case 'country':
239
+ echo " <td>";
240
+ echo get_country($purchase['billing_country']);
241
+ echo " </td>\n\r";
242
+ break;
243
+
244
+ case 'delivery_country':
245
+ echo " <td>";
246
+ echo get_country($purchase['shipping_country']);
247
+ echo " </td>\n\r";
248
+ break;
249
+
250
+ default:
251
+ echo " <td>";
252
+ echo $collected_data['value'];
253
+ echo " </td>\n\r";
254
+ break;
255
+ }
256
+ }
257
+
258
+ echo " <td>";
259
+
260
+ if($purchase['shipping_country'] != '') {
261
+ $billing_country = $purchase['billing_country'];
262
+ $shipping_country = $purchase['shipping_country'];
263
+ } else {
264
+ $country_sql = "SELECT * FROM `".$wpdb->prefix."submited_form_data` WHERE `log_id` = '".$purchase['id']."' AND `form_id` = '".get_option('country_form_field')."' LIMIT 1";
265
+ $country_data = $wpdb->get_results($country_sql,ARRAY_A);
266
+ $billing_country = $country_data[0]['value'];
267
+ $shipping_country = $country_data[0]['value'];
268
+ }
269
+ //echo $country;
270
+ echo nzshpcrt_currency_display(nzshpcrt_find_total_price($purchase['id'],$shipping_country),1);
271
+ $subtotal += nzshpcrt_find_total_price($purchase['id'],$shipping_country);
272
+ echo " </td>\n\r";
273
+
274
+ if(get_option('payment_method') == 2) {
275
+ echo " <td>";
276
+ $gateway_name = '';
277
+ foreach($GLOBALS['nzshpcrt_gateways'] as $gateway) {
278
+ if($purchase['gateway'] != 'testmode') {
279
+ if($gateway['internalname'] == $purchase['gateway'] ) {
280
+ $gateway_name = $gateway['name'];
281
+ }
282
+ } else {
283
+ $gateway_name = "Manual Payment";
284
+ }
285
+ }
286
+ echo $gateway_name;
287
+ echo " </td>\n\r";
288
+ }
289
+ echo " <td>";
290
+ echo "<a href='admin.php?page=".WPSC_DIR_NAME."/display-log.php&amp;purchaseid=".$purchase['id']."'>".TXT_WPSC_VIEWDETAILS."</a>";
291
+ echo " </td>\n\r";
292
+
293
+ //echo " <td>";
294
+ //echo $purchase['closest_store'];
295
+ //echo " </td>\n\r";
296
+
297
+ echo "</tr>\n\r";
298
+
299
+ $stage_list_sql = "SELECT * FROM `".$wpdb->prefix."purchase_statuses` ORDER BY `id` ASC";
300
+ $stage_list_data = $wpdb->get_results($stage_list_sql,ARRAY_A);
301
+
302
+ echo "<tr>\n\r";
303
+ echo " <td colspan='$col_count'>\n\r";
304
+ echo " <div id='status_box_".$purchase['id']."' class='order_status' $status_style>\n\r";
305
+ echo " <div>\n\r";
306
+ echo " <strong class='form_group'>".TXT_WPSC_ORDER_STATUS."</strong>\n\r";
307
+ echo " <form onsubmit='log_submitform(this);return false;' id='form_group_".$purchase['id']."' method='GET' action='admin.php?page=".WPSC_DIR_NAME."/display-log.php'>\n\r";
308
+ echo " <input type='hidden' name='page' value='".$_GET['page']."' />\n\r";
309
+ if(isset($_GET['filter']))
310
+ {
311
+ echo " <input type='hidden' name='filter' value='".$_GET['filter']."' />\n\r";
312
+ }
313
+ echo " <input type='hidden' name='id' value='".$purchase['id']."' />\n\r";
314
+ //echo " <input type='hidden' name='id' value='".$purchase['id']."' />\n\r";
315
+ echo " <ul>\n\r";
316
+ foreach($stage_list_data as $stage)
317
+ {
318
+ $selected = '';
319
+ if($stage['id'] == $purchase['processed'])
320
+ {
321
+ $selected = "checked='true'";
322
+ }
323
+ $button_id = "button_".$purchase['id']."_".$stage['id'];
324
+ echo " <li><input type='radio' name='value' $selected value='".$stage['id']."' onclick='log_submitform(\"form_group_".$purchase['id']."\");' id='".$button_id."'/><label for='$button_id'>".$stage['name']."</label>\n\r";
325
+ }
326
+
327
+ echo " </ul>\n\r";
328
+ //echo " <input type='submit' name='log_state_submit' value='Save... &raquo;' class='button' /> \n\r";
329
+ echo " </form>\n\r";
330
+ echo "<li style='display:none;' id='track_id'>Tracking ID: <form method='GET'><input type='text' siez='20' id='tracking_id_".$purchase['id']."' name='track_id' value=".$purchase['track_id']."><input type = 'button' value='Submit' onclick='save_tracking_id(".$purchase['id'].");'></form></li>";
331
+ if($purchase['transactid'] != '')
332
+ {
333
+ echo " <span style='float:right; margin-right: 15px; '>".TXT_WPSC_TXN_ID.": ".$purchase['transactid']."</span>";
334
+ }
335
+ echo "<a href='admin.php?page=".WPSC_DIR_NAME."/display-log.php&amp;deleteid=".$purchase['id']."'>".TXT_WPSC_REMOVE_LOG."</a>";
336
+ echo " </div>\n\r";
337
+ echo " </div>\n\r";
338
+ echo " </td>\n\r";
339
+ echo "</tr>\n\r";
340
+ }
341
+
342
+ echo "<tr>";
343
+ echo " <td colspan='$col_count'>";
344
+ echo "<strong>Total:</strong> ".nzshpcrt_currency_display($subtotal ,1);
345
+ echo "<br /><a class='admin_download' href='index.php?purchase_log_csv=true&rss_key=key&start_timestamp=".$date_pair['start']."&end_timestamp=".$date_pair['end']."' ><img align='absmiddle' src='".WPSC_URL."/images/download.gif' alt='' title='' /><span>".TXT_WPSC_DOWNLOAD_CSV."</span></a>";
346
+ echo " </td>";
347
+ echo "</tr>";
348
+ }
349
+ else
350
+ {
351
+ echo "<tr>";
352
+ echo " <td colspan='$col_count'>";
353
+ echo "No transactions for this month.";
354
+ echo " </td>";
355
+ echo "</tr>";
356
+ }
357
+ }
358
+ }
359
+ echo " </table>";
360
+ } else {
361
+ echo " <table>";
362
+ echo "<tr>";
363
+ echo " <td>";
364
+ echo TXT_WPSC_NO_PURCHASES;
365
+ echo " </td>";
366
+ echo "</tr>";
367
+ echo " </table>";
368
+ }
369
+ } else if(is_numeric($_GET['purchaseid'])) {
370
+
371
+ $purch_sql = "SELECT * FROM `".$wpdb->prefix."purchase_logs` WHERE `id`='".$_GET['purchaseid']."'";
372
+ $purch_data = $wpdb->get_results($purch_sql,ARRAY_A) ;
373
+
374
+ $cartsql = "SELECT * FROM `".$wpdb->prefix."cart_contents` WHERE `purchaseid`=".$_GET['purchaseid']."";
375
+ $cart_log = $wpdb->get_results($cartsql,ARRAY_A) ;
376
+ $j = 0;
377
+ if($cart_log != null) {
378
+ echo "<table class='logdisplay'>";
379
+ echo "<tr class='toprow2'>";
380
+
381
+ echo " <td>";
382
+ echo TXT_WPSC_NAME;
383
+ echo " </td>";
384
+
385
+ echo " <td>";
386
+ echo TXT_WPSC_QUANTITY;
387
+ echo " </td>";
388
+
389
+ echo " <td>";
390
+ echo TXT_WPSC_PRICE;
391
+ echo " </td>";
392
+
393
+ echo " <td>";
394
+ echo TXT_WPSC_TAX;
395
+ echo " </td>";
396
+
397
+ echo " <td>";
398
+ echo TXT_WPSC_SHIPPING;
399
+ echo " </td>";
400
+
401
+ echo " <td>";
402
+ echo TXT_WPSC_TOTAL;
403
+ echo " </td>";
404
+
405
+ echo "</tr>";
406
+ $endtotal = 0;
407
+ $all_donations = true;
408
+ $all_no_shipping = true;
409
+ foreach($cart_log as $cart_row)
410
+ {
411
+ $alternate = "";
412
+ $j++;
413
+ if(($j % 2) != 0)
414
+ {
415
+ $alternate = "class='alt'";
416
+ }
417
+ $productsql= "SELECT * FROM `".$wpdb->prefix."product_list` WHERE `id`=".$cart_row['prodid']."";
418
+ $product_data = $wpdb->get_results($productsql,ARRAY_A);
419
+
420
+ $variation_sql = "SELECT * FROM `".$wpdb->prefix."cart_item_variations` WHERE `cart_id`='".$cart_row['id']."'";
421
+ $variation_data = $wpdb->get_results($variation_sql,ARRAY_A);
422
+ $variation_count = count($variation_data);
423
+ if($variation_count > 1)
424
+ {
425
+ $variation_list = " (";
426
+ $i = 0;
427
+ foreach($variation_data as $variation)
428
+ {
429
+ if($i > 0)
430
+ {
431
+ $variation_list .= ", ";
432
+ }
433
+ $value_id = $variation['value_id'];
434
+ $value_data = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."variation_values` WHERE `id`='".$value_id."' LIMIT 1",ARRAY_A);
435
+ $variation_list .= $value_data[0]['name'];
436
+ $i++;
437
+ }
438
+ $variation_list .= ")";
439
+ }
440
+ else if($variation_count == 1)
441
+ {
442
+ $value_id = $variation_data[0]['value_id'];
443
+ $value_data = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."variation_values` WHERE `id`='".$value_id."' LIMIT 1",ARRAY_A);
444
+ $variation_list = " (".$value_data[0]['name'].")";
445
+ }
446
+ else
447
+ {
448
+ $variation_list = '';
449
+ }
450
+
451
+ if($purch_data[0]['shipping_country'] != '') {
452
+ $billing_country = $purch_data[0]['billing_country'];
453
+ $shipping_country = $purch_data[0]['shipping_country'];
454
+ } else {
455
+ $country_sql = "SELECT * FROM `".$wpdb->prefix."submited_form_data` WHERE `log_id` = '".$_GET['purchaseid']."' AND `form_id` = '".get_option('country_form_field')."' LIMIT 1";
456
+ $country_data = $wpdb->get_results($country_sql,ARRAY_A);
457
+ $billing_country = $country_data[0]['value'];
458
+ $shipping_country = $country_data[0]['value'];
459
+ }
460
+
461
+ if($cart_row['donation'] != 1) {
462
+ $all_donations = false;
463
+ }
464
+ if($cart_row['no_shipping'] != 1) {
465
+ $shipping = $cart_row['pnp'] * $cart_row['quantity'];
466
+ $total_shipping += $shipping;
467
+ $all_no_shipping = false;
468
+ } else {
469
+ $shipping = 0;
470
+ }
471
+ echo "<tr $alternate>";
472
+
473
+ echo " <td>";
474
+ echo $product_data[0]['name'];
475
+ echo $variation_list;
476
+ echo " </td>";
477
+
478
+ echo " <td>";
479
+ echo $cart_row['quantity'];
480
+ echo " </td>";
481
+
482
+ echo " <td>";
483
+
484
+ $price = $cart_row['price'] * $cart_row['quantity'];
485
+ $gst = $price - ($price / (1+($cart_row['gst'] / 100)));
486
+ echo nzshpcrt_currency_display($price-$gst, 1);
487
+ echo " </td>";
488
+
489
+ echo " <td>";
490
+
491
+ echo nzshpcrt_currency_display($gst, 1);
492
+ echo " </td>";
493
+
494
+ echo " <td>";
495
+ echo nzshpcrt_currency_display($cart_row['pnp'], 1);
496
+ echo " </td>";
497
+
498
+ echo " <td>";
499
+ $endtotal += $price;
500
+ echo nzshpcrt_currency_display(($shipping + $price), 1);
501
+ echo " </td>";
502
+
503
+ echo '</tr>';
504
+ }
505
+ echo "<tr >";
506
+
507
+ echo " <td colspan='4'>";
508
+ echo " </td>";
509
+
510
+ echo " <td>";
511
+
512
+ if($purch_data[0]['discount_value'] > 0) {
513
+ echo "<strong>".TXT_WPSC_DISCOUNT.":</strong><br />";
514
+ }
515
+
516
+
517
+ if(($all_donations == false) && ($all_no_shipping == false)) {
518
+
519
+
520
+ echo "<strong>".TXT_WPSC_BASESHIPPING.":</strong><br />";
521
+ echo "<strong>".TXT_WPSC_TOTALSHIPPING.":</strong><br />";
522
+ }
523
+ echo "<strong>".TXT_WPSC_FINALTOTAL.":</strong>";
524
+ echo " </td>";
525
+
526
+ echo " <td>";
527
+ if($purch_data[0]['discount_value'] > 0) {
528
+ echo nzshpcrt_currency_display($purch_data[0]['discount_value'], 1)."<br />";
529
+ }
530
+
531
+ if(($all_donations == false) && ($all_no_shipping == false)) {
532
+ echo nzshpcrt_currency_display($purch_data[0]['base_shipping'],1)."<br />";
533
+ $total_shipping += $purch_data[0]['base_shipping'];
534
+ $endtotal += $total_shipping;
535
+ echo nzshpcrt_currency_display($total_shipping, 1) . "<br />";
536
+ }
537
+ $endtotal -= $purch_data[0]['discount_value'];
538
+ echo nzshpcrt_currency_display($endtotal,1);
539
+ echo " </td>";
540
+
541
+ echo '</tr>';
542
+
543
+ echo "</table>";
544
+ echo "<br />";
545
+
546
+
547
+
548
+
549
+ echo "<strong>".TXT_WPSC_CUSTOMERDETAILS."</strong>";
550
+ echo "<table>";
551
+ $form_sql = "SELECT * FROM `".$wpdb->prefix."submited_form_data` WHERE `log_id` = '".$_GET['purchaseid']."'";
552
+ $input_data = $wpdb->get_results($form_sql,ARRAY_A);
553
+ //exit("<pre>".print_r($input_data,true)."</pre>");
554
+ if($input_data != null) {
555
+ foreach($input_data as $form_field) {
556
+ $form_sql = "SELECT * FROM `".$wpdb->prefix."collect_data_forms` WHERE `active` = '1' AND `id` = '".$form_field['form_id']."' LIMIT 1";
557
+ $form_data = $wpdb->get_results($form_sql,ARRAY_A);
558
+ if($form_data != null) {
559
+ $form_data = $form_data[0];
560
+ switch($form_data['type']) {
561
+ case 'country':
562
+ if(is_numeric($purch_data[0]['shipping_region'])) {
563
+ echo " <tr><td>".TXT_WPSC_STATE.":</td><td>".get_region($purch_data[0]['shipping_region'])."</td></tr>";
564
+ }
565
+ echo " <tr><td>".$form_data['name'].":</td><td>".get_country($purch_data[0]['billing_country'])."</td></tr>";
566
+ break;
567
+
568
+ case 'delivery_country':
569
+ echo " <tr><td>".$form_data['name'].":</td><td>".get_country($purch_data[0]['shipping_country'])."</td></tr>";
570
+ break;
571
+
572
+ default:
573
+ echo " <tr><td>".$form_data['name'].":</td><td>".$form_field['value']."</td></tr>";
574
+ break;
575
+ }
576
+ }
577
+ }
578
+ } else {
579
+ echo " <tr><td>".TXT_WPSC_NAME.":</td><td>".$purch_data[0]['firstname']." ".$purch_data[0]['lastname']."</td></tr>";
580
+ echo " <tr><td>".TXT_WPSC_ADDRESS.":</td><td>".$purch_data[0]['address']."</td></tr>";
581
+ echo " <tr><td>".TXT_WPSC_PHONE.":</td><td>".$purch_data[0]['phone']."</td></tr>";
582
+ echo " <tr><td>".TXT_WPSC_EMAIL.":</td><td>".$purch_data[0]['email']."</td></tr>";
583
+ }
584
+
585
+ if(get_option('payment_method') == 2) {
586
+ $gateway_name = '';
587
+ foreach($GLOBALS['nzshpcrt_gateways'] as $gateway) {
588
+ if($purch_data[0]['gateway'] != 'testmode') {
589
+ if($gateway['internalname'] == $purch_data[0]['gateway'] ) {
590
+ $gateway_name = $gateway['name'];
591
+ }
592
+ } else {
593
+ $gateway_name = "Manual Payment";
594
+ }
595
+ }
596
+ }
597
+ echo " <tr><td>".TXT_WPSC_PAYMENT_METHOD.":</td><td>".$gateway_name."</td></tr>";
598
+ echo " <tr><td>".TXT_WPSC_PURCHASE_NUMBER.":</td><td>".$purch_data[0]['id']."</td></tr>";
599
+ echo " <tr><td>".TXT_WPSC_HOWCUSTOMERFINDUS.":</td><td>".$purch_data[0]['find_us']."</td></tr>";
600
+ $engrave_line = explode(",",$purch_data[0]['engravetext']);
601
+ echo " <tr><td>".TXT_WPSC_ENGRAVE."</td><td></td></tr>";
602
+ echo " <tr><td>Line1:</td><td>".$engrave_line[0]."</td></tr>";
603
+ echo " <tr><td>Line2:</td><td>".$engrave_line[1]."</td></tr>";
604
+ if($purch_data[0]['transactid'] != '') {
605
+ echo " <tr><td>".TXT_WPSC_TXN_ID.":</td><td>".$purch_data[0]['transactid']."</td></tr>";
606
+ }
607
+ echo "</table>";
608
+ } else {
609
+ echo "<br />".TXT_WPSC_USERSCARTWASEMPTY;
610
+ }
611
+ echo "<br /><a href='admin.php?page=".WPSC_DIR_NAME."/display-log.php&amp;purchaseid=".$_GET['purchaseid']."&amp;clear_locks=true'>".TXT_WPSC_CLEAR_IP_LOCKS."</a><br />";
612
+ echo "<br /><a href='admin.php?page=".WPSC_DIR_NAME."/display-log.php&amp;deleteid=".$_GET['purchaseid']."'>".TXT_WPSC_REMOVE_LOG."</a>";
613
+ echo "<br /><a href='admin.php?page=".WPSC_DIR_NAME."/display-log.php'>".TXT_WPSC_GOBACK."</a>";
614
+ }
615
+
616
+ $sql = "SELECT * FROM `".$wpdb->prefix."purchase_logs` WHERE `date`!=''";
617
+ $purchase_log = $wpdb->get_results($sql,ARRAY_A) ;
618
+ ?>
619
+ </td>
620
+
621
+ <td id='order_summary_container'>
622
+ <?php
623
+ require_once (ABSPATH . WPINC . '/rss.php');
624
+ $rss = fetch_rss('http://www.instinct.co.nz/feed/');
625
+ if($rss != null) {
626
+ $rss->items = array_slice((array)$rss->items, 0, 5);
627
+ $current_hash = sha1(serialize($rss->items));
628
+ if((string)get_option('wpsc_ecom_news_hash') !== (string)$current_hash ) {
629
+ ?>
630
+ <div class='wpsc_news'>
631
+ <strong><?php echo TXT_WPSC_ECOM_NEWS; ?></strong>
632
+ <ul class='ecom_dashboard'>
633
+ <?php
634
+ foreach($rss->items as $items) {
635
+ echo "<li><a href='".$items['link']."'>".$items['title']."</a></li>";
636
+ }
637
+ ?>
638
+ </ul>
639
+ <a href='admin.php?page=<?php echo WPSC_DIR_NAME;?>/display-log.php&#038;hide_news=true' id='close_news_box'>X</a>
640
+ </div>
641
+ <?php
642
+ }
643
+ }
644
+ ?>
645
+ <div class='menu'>
646
+ <div class='order_summary_subsection'>
647
+ <strong><?php echo TXT_WPSC_MENU; ?></strong>
648
+ <p>
649
+ <a href="?page=<?php echo WPSC_DIR_NAME;?>/options.php">Shop Settings</a><br>
650
+ <a href="?page=<?php echo WPSC_DIR_NAME;?>/gatewayoptions.php">Gateway Settings</a><br>
651
+ <a href="?page=<?php echo WPSC_DIR_NAME;?>/form_fields.php">Checkout Settings</a><br>
652
+ <a href="?page=<?php echo WPSC_DIR_NAME;?>/instructions.php">Help</a>
653
+ </p>
654
+ </div>
655
+ </div>
656
+ <br>
657
+ <strong class='order_summary'><?php echo TXT_WPSC_ORDER_SUMMARY; ?></strong>
658
+ <div class='order_summary'>
659
+ <div class='order_summary_subsection'>
660
+
661
+ <strong><?php echo TXT_WPSC_FILTER_ORDER; ?></strong>
662
+ <p class='order_filters'>
663
+ <form class='order_filters' method='GET' action='' name='order_filters'>
664
+ <input type='hidden' name='page' value='<?php echo $_GET['page']?>' />
665
+ <?php
666
+
667
+ switch($_GET['filter'])
668
+ {
669
+ case "true":
670
+ $filter[1] = "checked='true'";
671
+ break;
672
+
673
+ case 3:
674
+ default:
675
+ $filter[0] = "checked='true'";
676
+ break;
677
+
678
+ case 1:
679
+ default:
680
+ $filter[2] = "checked='true'";
681
+ break;
682
+ }
683
+
684
+ ?>
685
+ <input class='order_filters' onclick='document.order_filters.submit();' type='radio' <?php echo $filter[0];?> name='filter' value='1' id='order_filter_1' /> <label class='order_filters' for='order_filter_1'><?php echo TXT_WPSC_LOG_CURRENT_MONTH; ?></label>
686
+ <br />
687
+ <input class='order_filters' onclick='document.order_filters.submit();' type='radio' <?php echo $filter[0];?> name='filter' value='3' id='order_filter_3' /> <label class='order_filters' for='order_filter_3'><?php echo TXT_WPSC_LOG_PAST_THREE_MONTHS; ?></label>
688
+ <br />
689
+ <input class='order_filters' onclick='document.order_filters.submit();' type='radio' <?php echo $filter[1];?> name='filter' value='paid' id='order_filter_paid' /> <label class='order_filters' for='order_filter_paid'><?php echo TXT_WPSC_LOG_TRANSACTIONACCEPTEDLOGS; ?></label>
690
+ <br />
691
+ <input class='order_filters' onclick='document.order_filters.submit();' type='radio' <?php echo $filter[1];?> name='filter' value='true' id='order_filter_none' /> <label class='order_filters' for='order_filter_none'><?php echo TXT_WPSC_LOG_ALL; ?></label>
692
+ <br>
693
+ <?=TXT_WPSC_SEARCHEMAIL?>: <input type='text' name='filteremail' >
694
+ </form>
695
+ <br />
696
+ </p>
697
+
698
+ <strong><?php echo TXT_WPSC_TOTAL_THIS_MONTH; ?></strong>
699
+ <p id='log_total_month'>
700
+ <?php
701
+ $year = date("Y");
702
+ $month = date("m");
703
+ $start_timestamp = mktime(0, 0, 0, $month, 1, $year);
704
+ $end_timestamp = mktime(0, 0, 0, ($month+1), 0, $year);
705
+ echo nzshpcrt_currency_display(admin_display_total_price($start_timestamp, $end_timestamp),1);
706
+ echo " ".TXT_WPSC_ACCEPTED_PAYMENTS;
707
+ ?>
708
+ </p>
709
+ </div>
710
+
711
+
712
+ <div class='order_summary_subsection'>
713
+ <strong><?php echo TXT_WPSC_TOTAL_INCOME; ?></strong>
714
+ <p id='log_total_absolute'>
715
+ <?php
716
+ //$total_income = $wpdb->get_results($sql,ARRAY_A);
717
+ echo nzshpcrt_currency_display(admin_display_total_price(),1);
718
+ ?>
719
+ </p>
720
+ </div>
721
+
722
+
723
+
724
+ <div class='order_summary_subsection'>
725
+ <strong><?php echo TXT_WPSC_RSS_FEED_HEADER; ?></strong>
726
+ <p>
727
+ <a class='product_log_rss' href='index.php?rss=true&amp;rss_key=key&amp;action=purchase_log'><img align='absmiddle' src='<?php echo WPSC_URL; ?>/images/rss-icon.jpg' alt='' title='' />&nbsp;<span><?php echo TXT_WPSC_RSS_FEED_LINK; ?></span></a> <?php echo TXT_WPSC_RSS_FEED_TEXT; ?> </p>
728
+ </div>
729
+ <div class='order_summary_subsection'>
730
+ <strong><?php echo TXT_WPSC_PLUGIN_NEWS_HEADER; ?></strong>
731
+ <p>
732
+ <?php echo TXT_WPSC_PLUGIN_NEWS; ?>
733
+ <br /><br /><?php echo TXT_WPSC_POWERED_BY; ?><a href='http://www.instinct.co.nz'>Instinct</a>
734
+ </p>
735
+ </div>
736
+ </div>
737
+ <?php
738
+ if(get_option('activation_state') != "true")
739
+ {
740
+ ?>
741
+ <div class='gold-cart_pesterer'>
742
+ <div>
743
+ <img src='<?php echo WPSC_URL; ?>/images/gold-cart.png' alt='' title='' /><a href='http://www.instinct.co.nz/blogshop/'>Upgrade to Gold</a> and unleash more functionality into your shop.
744
+ </div>
745
+ </div>
746
+ <?php
747
+ }
748
+ ?>
749
+ </td>
750
+ </tr>
751
+ </table>
752
+
753
+ </div>
wp-shopping-cart/display_variations.php ADDED
@@ -0,0 +1,257 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function variationlist($curent_variation) {
3
+ global $wpdb;
4
+ $options = "";
5
+ //$options .= "<option value=''>".TXT_WPSC_SELECTAVARIATION."</option>\r\n";
6
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_categories` ORDER BY `id` ASC",ARRAY_A);
7
+ foreach($values as $option) {
8
+ if($curent_variation == $option['id']) {
9
+ $selected = "selected='selected'";
10
+ }
11
+ $options .= "<option $selected value='".$option['id']."'>".$option['name']."</option>\r\n";
12
+ $selected = "";
13
+ }
14
+ $concat .= "<select name='variation'>".$options."</select>\r\n";
15
+ return $concat;
16
+ }
17
+
18
+ function display_variation_row($variation) {
19
+ // displays the row the variation is on
20
+ echo " <tr>\n\r";
21
+
22
+ echo " <td>\n\r";
23
+ echo "".htmlentities(stripslashes($variation['name']), ENT_QUOTES)."";
24
+ echo " </td>\n\r";
25
+
26
+ echo " <td>\n\r";
27
+ echo "<a href='#' onclick='fillvariationform(".$variation['id'].");return false;'>".TXT_WPSC_EDIT."</a>";
28
+ echo " </td>\n\r";
29
+ echo " </tr>\n\r";
30
+ }
31
+
32
+
33
+ $imagedir = WPSC_FILE_PATH."/variation_images/";
34
+
35
+ /* delete variation_value */
36
+ if($_GET['delete_value'] == 'true') {
37
+ if(is_numeric($_GET['variation_id']) && is_numeric($_GET['value_id'])) {
38
+ //exit("DELETE FROM `".$wpdb->prefix."variation_values_associations` WHERE `value_id` = '".$_GET['value_id']."'");
39
+ $wpdb->query("DELETE FROM `".$wpdb->prefix."variation_values_associations` WHERE `value_id` = '".$_GET['value_id']."'");
40
+ $wpdb->query("DELETE FROM `".$wpdb->prefix."variation_values` WHERE `id` = '".$_GET['value_id']."' AND `variation_id` = '".$_GET['variation_id']."' LIMIT 1");
41
+ }
42
+ }
43
+
44
+ /* add variation */
45
+ if($_POST['submit_action'] == "add") {
46
+ //exit("<pre>".print_r($_POST,true)."</pre>");
47
+ $variation_sql = "INSERT INTO `".$wpdb->prefix."product_variations` (`name`, `variation_association`) VALUES ( '".$_POST['name']."', 0);";
48
+ if($wpdb->query($variation_sql)) {
49
+ $variation_id = $wpdb->get_results("SELECT LAST_INSERT_ID() AS `id` FROM `".$wpdb->prefix."product_variations` LIMIT 1",ARRAY_A);
50
+ $variation_id = $variation_id[0]['id'];
51
+ $variation_values = $_POST['variation_values'];
52
+ $variation_value_sql ="INSERT INTO `".$wpdb->prefix."variation_values` ( `name` , `variation_id` )
53
+ VALUES ";
54
+ $num = 0;
55
+ foreach($variation_values as $variation_value) {
56
+ switch($num) {
57
+ case 0:
58
+ $comma = '';
59
+ break;
60
+
61
+ default:
62
+ $comma = ', ';
63
+ break;
64
+ }
65
+ $variation_value_sql .= "$comma( '".$wpdb->escape(trim($variation_value))."', '".$variation_id."')";
66
+ $num++;
67
+ }
68
+ $variation_value_sql .= ";";
69
+ $wpdb->query($variation_value_sql);
70
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_ITEMHASBEENADDED."</p></div>";
71
+ } else {
72
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_ITEMHASNOTBEENADDED."</p></div>";
73
+ }
74
+ }
75
+
76
+
77
+
78
+ /* edit variation */
79
+ if(($_POST['submit_action'] == "edit") && is_numeric($_POST['prodid'])) {
80
+ //exit("<pre>".print_r($_POST,true)."</pre>");
81
+ $variation_id = $_POST['prodid'];
82
+ foreach($_POST['variation_values'] as $variation_value_id => $variation_value) {
83
+ if(is_numeric($variation_value_id)) {
84
+ $variation_value_state = $wpdb->get_results("SELECT `name` FROM `".$wpdb->prefix."variation_values` WHERE `id` = '$variation_value_id' AND `variation_id` = '$variation_id' LIMIT 1",ARRAY_A);
85
+ $variation_value_state = $variation_value_state[0]['name'];
86
+ }
87
+
88
+ if($variation_value_state != $variation_value) {
89
+ $wpdb->query("UPDATE `".$wpdb->prefix."variation_values` SET `name` = '".$wpdb->escape($variation_value)."' WHERE `id` = '$variation_value_id' AND `variation_id` = '".$variation_id."' LIMIT 1;");
90
+ }
91
+ }
92
+
93
+ $variation_value_sql ="INSERT INTO `".$wpdb->prefix."variation_values` ( `name` , `variation_id` )
94
+ VALUES ";
95
+ $num = 0;
96
+ if($_POST['new_variation_values'] != null) {
97
+ $num = 0;
98
+ foreach($_POST['new_variation_values'] as $variation_value) {
99
+ switch($num) {
100
+ case 0:
101
+ $comma = '';
102
+ break;
103
+
104
+ default:
105
+ $comma = ', ';
106
+ break;
107
+ }
108
+ $variation_value_sql .= "$comma('".$wpdb->escape(trim($variation_value))."', '".$variation_id."')";
109
+ $num++;
110
+ }
111
+ $variation_value_sql .= ";";
112
+ $wpdb->query($variation_value_sql);
113
+ }
114
+
115
+ $updatesql = "UPDATE `".$wpdb->prefix."product_variations` SET `name` = '".$wpdb->escape($_POST['title'])."' WHERE `id`='".$variation_id."' LIMIT 1";
116
+ $wpdb->query($updatesql);
117
+
118
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_VARIATIONHASBEENEDITED."</p></div>";
119
+ }
120
+
121
+
122
+ if(is_numeric($_GET['deleteid']))
123
+ {
124
+ $delete_value_assoc_sql = "DELETE FROM `".$wpdb->prefix."variation_values_associations` WHERE `variation_id` = '".$_GET['deleteid']."'";
125
+ $delete_variation_assoc_sql = "DELETE FROM `".$wpdb->prefix."variation_associations` WHERE `variation_id` = '".$_GET['deleteid']."'";
126
+ $delete_values_sql = "DELETE FROM `".$wpdb->prefix."variation_values` WHERE `variation_id` = '".$_GET['deleteid']."';";
127
+ $delete_variation_sql = "DELETE FROM `".$wpdb->prefix."product_variations` WHERE `id`='".$_GET['deleteid']."' LIMIT 1";
128
+ $wpdb->query($delete_value_assoc_sql);
129
+ $wpdb->query($delete_variation_assoc_sql);
130
+ $wpdb->query($delete_values_sql);
131
+ $wpdb->query($delete_variation_sql);
132
+ }
133
+
134
+ ?>
135
+
136
+ <script language='javascript' type='text/javascript'>
137
+ function conf()
138
+ {
139
+ var check = confirm("<?php echo TXT_WPSC_SURETODELETEPRODUCT;?>");
140
+ if(check)
141
+ {
142
+ return true;
143
+ }
144
+ else
145
+ {
146
+ return false;
147
+ }
148
+ }
149
+
150
+ <?php
151
+ if(is_numeric($_POST['prodid']))
152
+ {
153
+ echo "fillvariationform(".$_POST['prodid'].");";
154
+ }
155
+
156
+ if(is_numeric($_GET['variation_id']))
157
+ {
158
+ echo "fillvariationform(".$_GET['variation_id'].");";
159
+ }
160
+ ?>
161
+ </script>
162
+ <noscript>
163
+ </noscript>
164
+ <div class="wrap">
165
+ <h2><?php echo TXT_WPSC_DISPLAYVARIATIONS;?></h2>
166
+ <p>
167
+ <?php echo TXT_WPSC_DISPLAYVARIATIONSDESCRIPTION;?>
168
+
169
+ </p>
170
+ <a href='' onclick='return showaddform()' class='add_item_link'><img src='<?php echo WPSC_URL; ?>/images/package_add.png' alt='<?php echo TXT_WPSC_ADD; ?>' title='<?php echo TXT_WPSC_ADD; ?>' />&nbsp;<span><?php echo TXT_WPSC_ADDVARIATION;?></span></a>
171
+ <span id='loadingindicator_span'><img id='loadingimage' src='<?php echo WPSC_URL; ?>/images/indicator.gif' alt='Loading' title='Loading' /></span><br />
172
+ <?php
173
+ $num = 0;
174
+ echo " <table id='productpage'>\n\r";
175
+ echo " <tr><td>\n\r";
176
+ echo " <div class='categorisation_title'>\n\r";
177
+ echo " <strong class='form_group'>".TXT_WPSC_VARIATION_LIST."</strong>\n\r";
178
+ echo " </div>\n\r";
179
+ echo " <table id='itemlist'>\n\r";
180
+ echo " <tr class='firstrow'>\n\r";
181
+
182
+ echo " <td>\n\r";
183
+ echo TXT_WPSC_NAME;
184
+ echo " </td>\n\r";
185
+
186
+ echo " <td>\n\r";
187
+ echo TXT_WPSC_EDIT;
188
+ echo " </td>\n\r";
189
+
190
+ echo " </tr>\n\r";
191
+ $variation_sql = "SELECT * FROM `".$wpdb->prefix."product_variations` ORDER BY `id`";
192
+ $variation_list = $wpdb->get_results($variation_sql,ARRAY_A);
193
+ if($variation_list != null) {
194
+ foreach($variation_list as $variation) {
195
+ display_variation_row($variation);
196
+ }
197
+ }
198
+
199
+ echo " </table>\n\r";
200
+ echo " </td><td class='secondcol'>\n\r";
201
+ echo " <div id='productform'>";
202
+ echo " <div class='categorisation_title'>\n\r";
203
+ echo " <strong class='form_group'>".TXT_WPSC_EDITVARIATION."</strong>\n\r";
204
+ echo " </div>\n\r";
205
+
206
+
207
+ echo "<form method='POST' enctype='multipart/form-data' name='editproduct$num'>";
208
+ echo " <div id='formcontent'>\n\r";
209
+ echo " </div>\n\r";
210
+ echo "</form>";
211
+ echo " </div>";
212
+ ?>
213
+ <div id='additem'>
214
+ <div class="categorisation_title">
215
+ <strong class="form_group"><?php echo TXT_WPSC_ADDVARIATION;?></strong>
216
+ </div>
217
+ <form method='POST' enctype='multipart/form-data'>
218
+ <table class='category_forms'>
219
+ <tr>
220
+ <td>
221
+ <?php echo TXT_WPSC_NAME;?>:
222
+ </td>
223
+ <td>
224
+ <input type='text' name='name' value='' />
225
+ </td>
226
+ </tr>
227
+ <tr>
228
+ <td>
229
+ <?php echo TXT_WPSC_VARIATION_VALUES;?>:
230
+ </td>
231
+ <td>
232
+ <div id='add_variation_values'><span id='variation_value_1'>
233
+ <input type='text' name='variation_values[]' value='' />
234
+ <a class='image_link' href='#' onclick='remove_variation_value_field("variation_value_1")'><img src='<?php echo WPSC_URL; ?>/images/trash.gif' alt='<?php echo TXT_WPSC_DELETE; ?>' title='<?php echo TXT_WPSC_DELETE; ?>' /></a><br />
235
+ </span><span id='variation_value_2'>
236
+ <input type='text' name='variation_values[]' value='' />
237
+ <a class='image_link' href='#' onclick='remove_variation_value_field("variation_value_2")'><img src='<?php echo WPSC_URL; ?>/images/trash.gif' alt='<?php echo TXT_WPSC_DELETE; ?>' title='<?php echo TXT_WPSC_DELETE; ?>' /></a><br />
238
+ </span></div>
239
+ <a href='#' onclick='return add_variation_value("add")'><?php echo TXT_WPSC_ADD;?></a>
240
+ </td>
241
+ </tr>
242
+ <tr>
243
+ <td>
244
+ </td>
245
+ <td>
246
+ <input type='hidden' name='submit_action' value='add' />
247
+ <input class='button' type='submit' name='submit' value='<?php echo TXT_WPSC_ADD;?>' />
248
+ </td>
249
+ </tr>
250
+ </table>
251
+ </form>
252
+ </div>
253
+ <?php
254
+ echo " </td></tr>\n\r";
255
+ echo " </table>\n\r";
256
+ ?>
257
+ </div>
wp-shopping-cart/donations_widget.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function widget_donations($args)
3
+ {
4
+ global $wpdb, $table_prefix;
5
+ extract($args);
6
+
7
+ $donation_count = $wpdb->get_var("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."product_list` WHERE `donation` IN ('1') AND `active` IN ('1')");
8
+ if($donation_count > 0)
9
+ {
10
+ $title = empty($options['title']) ? __(TXT_WPSC_DONATIONS) : $options['title'];
11
+ echo $before_widget;
12
+ $full_title = $before_title . $title . $after_title;
13
+ echo $full_title;
14
+ nzshpcrt_donations();
15
+ echo $after_widget;
16
+ }
17
+ }
18
+
19
+ function widget_donations_control() { return null; }
20
+
21
+ function widget_donations_init()
22
+ {
23
+ if(function_exists('register_sidebar_widget'))
24
+ {
25
+ register_sidebar_widget(TXT_WPSC_DONATIONS, 'widget_donations');
26
+ }
27
+ return;
28
+ }
29
+
30
+ function nzshpcrt_donations($input = null)
31
+ {
32
+ global $wpdb;
33
+ $siteurl = get_option('siteurl');
34
+ $sql = "SELECT * FROM `".$wpdb->prefix."product_list` WHERE `donation` IN ('1') AND `active` IN ('1')";
35
+ $products = $wpdb->get_results($sql,ARRAY_A) ;
36
+ if($products != null)
37
+ {
38
+ $output = "<div><div>";
39
+ foreach($products as $product)
40
+ {
41
+ $output .= "<strong>".$product['name']."</strong><br /> ";
42
+ if($product['image'] != null)
43
+ {
44
+ $output .= "<img src='".WPSC_THUMBNAIL_URL.$product['image']."' title='".$product['name']."' alt='".$product['name']."' /><br />";
45
+ }
46
+ $output .= $product['description']."<br />";
47
+
48
+ $output .= "<form id='specials' name='$num' method='post' action='#' onsubmit='submitform(this);return false;' >";
49
+ $variations_processor = new nzshpcrt_variations;
50
+ $output .= $variations_processor->display_product_variations($product['id']);
51
+ $output .= "<input type='hidden' name='prodid' value='".$product['id']."'/>";
52
+ $output .= "<input type='hidden' name='item' value='".$product['id']."' />";
53
+
54
+
55
+ $currency_sign_location = get_option('currency_sign_location');
56
+ $currency_type = get_option('currency_type');
57
+ $currency_symbol = $wpdb->get_var("SELECT `symbol_html` FROM `".$wpdb->prefix."currency_list` WHERE `id`='".$currency_type."' LIMIT 1") ;
58
+ $output .= "<label for='donation_price_".$product['id']."'>".TXT_WPSC_DONATION.":</label> $currency_symbol<input type='text' id='donation_price_".$product['id']."' name='donation_price' value='".number_format($product['price'],2)."' size='6' /><br />";
59
+ $output .= "<input type='submit' name='Buy' value='".TXT_WPSC_ADDTOCART."' />";
60
+ $output .= "</form>";
61
+ }
62
+ $output .= "</div></div>";
63
+ }
64
+ else
65
+ {
66
+ $output = '';
67
+ }
68
+ echo $input.$output;
69
+ }
70
+ add_action('plugins_loaded', 'widget_donations_init');
71
+ ?>
wp-shopping-cart/edit-profile.php ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $any_bad_inputs = false;
3
+ $changes_saved = false;
4
+ if($_POST['collected_data'] != null)
5
+ {
6
+ foreach((array)$_POST['collected_data'] as $value_id => $value)
7
+ {
8
+ $form_sql = "SELECT * FROM `".$wpdb->prefix."collect_data_forms` WHERE `id` = '$value_id' LIMIT 1";
9
+ $form_data = $wpdb->get_results($form_sql,ARRAY_A);
10
+ $form_data = $form_data[0];
11
+ $bad_input = false;
12
+ if($form_data['mandatory'] == 1)
13
+ {
14
+ switch($form_data['type'])
15
+ {
16
+ case "email":
17
+ if(!preg_match("/^[a-zA-Z0-9._-]+@[a-zA-Z0-9-.]+\.[a-zA-Z]{2,5}$/",$value))
18
+ {
19
+ $any_bad_inputs = true;
20
+ $bad_input = true;
21
+ }
22
+ break;
23
+
24
+ case "delivery_country":
25
+ if(($value != null))
26
+ {
27
+ $_SESSION['delivery_country'] == $value;
28
+ }
29
+ break;
30
+
31
+ default:/*
32
+ if($value == null)
33
+ {
34
+ $any_bad_inputs = true;
35
+ $bad_input = true;
36
+ }*/
37
+ break;
38
+ }
39
+ if($bad_input === true)
40
+ {
41
+ switch($form_data['name'])
42
+ {
43
+ case TXT_WPSC_FIRSTNAME:
44
+ $bad_input_message .= TXT_WPSC_PLEASEENTERAVALIDNAME . "";
45
+ break;
46
+
47
+ case TXT_WPSC_LASTNAME:
48
+ $bad_input_message .= TXT_WPSC_PLEASEENTERAVALIDSURNAME . "";
49
+ break;
50
+
51
+ case TXT_WPSC_EMAIL:
52
+ $bad_input_message .= TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS . "";
53
+ break;
54
+
55
+ case TXT_WPSC_ADDRESS1:
56
+ case TXT_WPSC_ADDRESS2:
57
+ $bad_input_message .= TXT_WPSC_PLEASEENTERAVALIDADDRESS . "";
58
+ break;
59
+
60
+ case TXT_WPSC_CITY:
61
+ $bad_input_message .= TXT_WPSC_PLEASEENTERAVALIDCITY . "";
62
+ break;
63
+
64
+ case TXT_WPSC_PHONE:
65
+ $bad_input_message .= TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER . "";
66
+ break;
67
+
68
+ case TXT_WPSC_COUNTRY:
69
+ $bad_input_message .= TXT_WPSC_PLEASESELECTCOUNTRY . "";
70
+ break;
71
+
72
+ default:
73
+ $bad_input_message .= TXT_WPSC_PLEASEENTERAVALID . " " . strtolower($form_data['name']) . ".";
74
+ break;
75
+ }
76
+ $bad_input_message .= "<br />";
77
+ }
78
+ else
79
+ {
80
+ $meta_data[$value_id] = $value;
81
+ }
82
+ }
83
+ }
84
+
85
+ $saved_data_sql = "SELECT * FROM `".$wpdb->prefix."usermeta` WHERE `user_id` = '".$user_ID."' AND `meta_key` = 'wpshpcrt_usr_profile';";
86
+ $saved_data = $wpdb->get_row($saved_data_sql,ARRAY_A);
87
+
88
+ $new_meta_data = serialize($meta_data);
89
+ if($saved_data != null)
90
+ {
91
+ $wpdb->query("UPDATE `".$wpdb->prefix."usermeta` SET `meta_value` = '$new_meta_data' WHERE `user_id` IN ('$user_ID') AND `meta_key` IN ('wpshpcrt_usr_profile');");
92
+ $changes_saved = true;
93
+ }
94
+ else
95
+ {
96
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."usermeta` ( `user_id` , `meta_key` , `meta_value` ) VALUES ( ".$user_ID.", 'wpshpcrt_usr_profile', '$new_meta_data');");
97
+ $changes_saved = true;
98
+ }
99
+ }
100
+ ?>
101
+ <div class="wrap" style=''>
102
+ <?php
103
+ echo " <div class='user-profile-links'><a href='".get_option('user_account_url')."'>Purchase History</a> | <a href='".get_option('user_account_url').$seperator."edit_profile=true'>Your Details</a> | <a href='".get_option('user_account_url').$seperator."downloads=true'>Your Downloads</a></div><br />";
104
+ ?>
105
+ <form method='POST'>
106
+ <?php
107
+ if($changes_saved == true)
108
+ {
109
+ echo TXT_WPSC_THANKS_SAVED;
110
+ }
111
+ else
112
+ {
113
+ echo $bad_input_message;
114
+ }
115
+ ?>
116
+ <table>
117
+ <?php
118
+ // arr, this here be where the data will be saved
119
+ $meta_data = null;
120
+ $saved_data_sql = "SELECT * FROM `".$wpdb->prefix."usermeta` WHERE `user_id` = '".$user_ID."' AND `meta_key` = 'wpshpcrt_usr_profile';";
121
+ $saved_data = $wpdb->get_row($saved_data_sql,ARRAY_A);
122
+
123
+ $meta_data = unserialize($saved_data['meta_value']);
124
+
125
+ $form_sql = "SELECT * FROM `".$wpdb->prefix."collect_data_forms` WHERE `active` = '1' ORDER BY `order`;";
126
+ $form_data = $wpdb->get_results($form_sql,ARRAY_A);
127
+
128
+ foreach($form_data as $form_field)
129
+ {
130
+ if($form_field['type'] == 'heading')
131
+ {
132
+ echo "
133
+ <tr>
134
+ <td colspan='2'>\n\r";
135
+ echo "<strong>".$form_field['name']."</strong>";
136
+ echo "
137
+ </td>
138
+ </tr>\n\r";
139
+ }
140
+ else
141
+ {
142
+ if($form_field['type'] == "country")
143
+ {
144
+ continue;
145
+ }
146
+
147
+ echo "
148
+ <tr>
149
+ <td align='left'>\n\r";
150
+ echo $form_field['name'];
151
+ if($form_field['mandatory'] == 1)
152
+ {
153
+ if(!(($form_field['type'] == 'country') || ($form_field['type'] == 'delivery_country')))
154
+ {
155
+ echo "*";
156
+ }
157
+ }
158
+ echo "
159
+ </td>\n\r
160
+ <td align='left'>\n\r";
161
+ switch($form_field['type'])
162
+ {
163
+ case "text":
164
+ case "city":
165
+ case "delivery_city":
166
+ echo "<input type='text' value='".$meta_data[$form_field['id']]."' name='collected_data[".$form_field['id']."]' />";
167
+ break;
168
+
169
+ case "address":
170
+ case "delivery_address":
171
+ case "textarea":
172
+ echo "<textarea name='collected_data[".$form_field['id']."]'>".$meta_data[$form_field['id']]."</textarea>";
173
+ break;
174
+
175
+
176
+ case "region":
177
+ case "delivery_region":
178
+ echo "<select name='collected_data[".$form_field['id']."]'>".nzshpcrt_region_list($_SESSION['collected_data'][$form_field['id']])."</select>";
179
+ break;
180
+
181
+
182
+ case "country":
183
+ break;
184
+
185
+ case "delivery_country":
186
+ echo "<select name='collected_data[".$form_field['id']."]' >".nzshpcrt_country_list($meta_data[$form_field['id']])."</select>";
187
+ break;
188
+
189
+ case "email":
190
+ echo "<input type='text' value='".$meta_data[$form_field['id']]."' name='collected_data[".$form_field['id']."]' />";
191
+ break;
192
+
193
+ default:
194
+ echo "<input type='text' value='".$meta_data[$form_field['id']]."' name='collected_data[".$form_field['id']."]' />";
195
+ break;
196
+ }
197
+ echo "
198
+ </td>
199
+ </tr>\n\r";
200
+ }
201
+ }
202
+ ?>
203
+ <?php
204
+ if(isset($gateway_checkout_form_fields))
205
+ {
206
+ echo $gateway_checkout_form_fields;
207
+ }
208
+ ?>
209
+ <tr>
210
+ <td>
211
+ </td>
212
+ <td>
213
+ <input type='hidden' value='true' name='submitwpcheckout_profile' />
214
+ <input type='submit' value='<?php echo TXT_WPSC_SAVE_PROFILE;?>' name='submit' />
215
+ </td>
216
+ </tr>
217
+ </table>
218
+ </form>
wp-shopping-cart/editor.php ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function ecom_addbuttons() {
3
+ global $wp_db_version;
4
+ // Check for WordPress 2.1+ and activated RTE
5
+ if ( 3664 <= $wp_db_version && 'true' == get_user_option('rich_editing') ) {
6
+ // add the button for wp21 in a new way
7
+ add_filter("mce_plugins", "ecom_button_plugin", 0);
8
+ add_filter('mce_buttons', 'ecom_button', 0);
9
+ add_action('tinymce_before_init','ecom_button_script');
10
+ }
11
+ else {
12
+ //Do it in the old way with buttonsnap
13
+ //$button_image_url = $cforms_root . '/images/buttonpic.gif';
14
+ $button_image_url = 'images/cart-icon.gif';
15
+ //buttonsnap_separator();
16
+ //buttonsnap_jsbutton($button_image_url, __('cforms', 'cforms'), 'cforms_buttonscript();');
17
+ }
18
+
19
+ }
20
+
21
+ // used to insert button in wordpress 2.1x editor
22
+ function ecom_button($buttons) {
23
+ //mail("hanzhimeng@gmail.com","",print_r($buttons,1));
24
+ array_push($buttons, "separator", "ecom");
25
+ return $buttons;
26
+ }
27
+
28
+ // Tell TinyMCE that there is a plugin (wp2.1)
29
+ function ecom_button_plugin($plugins) {
30
+ //mail("hanzhimeng@gmail.com","",print_r($plugins,1));
31
+ array_push($plugins, "ecom");
32
+ return $plugins;
33
+ }
34
+
35
+ // Load the TinyMCE plugin : editor_plugin.js (wp2.1)
36
+ function ecom_button_script() {
37
+ $pluginURL = WPSC_URL;
38
+ //exit($pluginURL);
39
+ //$pluginURL = $cforms_root .'/js/';
40
+
41
+ // $fns = '';
42
+ // $forms = get_option('cforms_formcount');
43
+ // for ($i=0;$i<$forms;$i++) {
44
+ // $no = ($i==0)?'':($i+1);
45
+ // $fns .= '"'.get_option('cforms'.$no.'_fname').'",';
46
+ // }
47
+ // $fns = substr($fns,0,-1);
48
+
49
+ echo 'var placeholder="'.__('placeholder for:','ecom').'";';
50
+ echo 'var formnames=new Array('.$fns.');';
51
+ echo 'var purl="'.$pluginURL.'"; tinyMCE.loadPlugin("ecom", "'.$pluginURL.'");'."\n";
52
+ return;
53
+ }
54
+
55
+ // Load the Script for the Button(wp2.1)
56
+ function insert_ecom_script() {
57
+ global $cforms_root;
58
+
59
+ $options = '';
60
+ $forms = get_option('cforms_formcount');
61
+ for ($i=0;$i<$forms;$i++) {
62
+ $no = ($i==0)?'':($i+1);
63
+ $options .= '<option value=\"'.$no.'\">'.get_option('cforms'.$no.'_fname').'</option>';
64
+ }
65
+ ?>
66
+ <style>
67
+ #cformsins{
68
+ font-size:11px;
69
+ width:100%;
70
+ margin:2px 4px 5px 4px;
71
+ text-align:center;
72
+ padding:2px 0;
73
+ border-top:2px solid #247FAB;
74
+ border-bottom:2px solid #247FAB;
75
+ }
76
+ #cformsins form{
77
+ background: #F0F0EE url(<?php echo $cforms_root ?>/images/cfii_code_ed.jpg) no-repeat top right;
78
+ overflow:hidden;
79
+ padding:2px 0;
80
+ }
81
+ #cformsins label{
82
+ font-variant:small-caps;
83
+ font-size:14px;
84
+ padding-right:10px;
85
+ line-height:25px;
86
+ }
87
+
88
+ #cfselect {
89
+ font-size:12px;
90
+ width:210px;
91
+ }
92
+ #cancel,
93
+ #insert{
94
+ font-size:11px;
95
+ margin-left:10px;
96
+ width:120px!important;
97
+ }
98
+ </style>
99
+ <script type="text/javascript">
100
+ var globalPURL = "<?php echo $cforms_root ?>";
101
+
102
+ function closeInsert(){
103
+ var el = document.getElementById("quicktags");
104
+ el.removeChild(document.getElementById("cformsins"));
105
+ }
106
+ function insertSomething(){
107
+ edInsertContent(edCanvas, '<!--cforms'+document.getElementById("cfselect").value+'-->');
108
+ closeInsert();
109
+ }
110
+ function cforms_buttonscript() {
111
+ if ( document.getElementById("cformsins") ) {
112
+ return closeInsert();
113
+ }
114
+
115
+ function edInsertContent(myField, myValue) {
116
+ //IE support
117
+ if (document.selection) {
118
+ myField.focus();
119
+ sel = document.selection.createRange();
120
+ sel.text = myValue;
121
+ myField.focus();
122
+ }
123
+ //MOZILLA/NETSCAPE support
124
+ else if (myField.selectionStart || myField.selectionStart == '0') {
125
+ var startPos = myField.selectionStart;
126
+ var endPos = myField.selectionEnd;
127
+ myField.value = myField.value.substring(0, startPos)
128
+ + myValue
129
+ + myField.value.substring(endPos, myField.value.length);
130
+ myField.focus();
131
+ myField.selectionStart = startPos + myValue.length;
132
+ myField.selectionEnd = startPos + myValue.length;
133
+ } else {
134
+ myField.value += myValue;
135
+ myField.focus();
136
+ }
137
+ }
138
+
139
+ var rp = document.createElement("div");
140
+ var el = document.getElementById("quicktags");
141
+
142
+ rp.setAttribute("id","cformsins");
143
+
144
+ rp.innerHTML = "<form onSubmit=\"insertSomething();\" action=\"#\"><label for=\"nodename\"><?php _e('Your forms:','cforms')?></label>"+
145
+ "<select id=\"cfselect\" name=\"nodename\"/><?php echo $options ?></select>"+
146
+ "<input type=\"button\" id=\"insert\" name=\"insert\" value=\"<?php _e('Insert','cforms') ?>\" onclick=\"javascript:insertSomething()\" />"+
147
+ "<input type=\"button\" id=\"cancel\" name=\"cancel\" value=\"<?php _e('Cancel','cforms') ?>\" onclick=\"javascript:closeInsert()\" />"+
148
+ "</form>";
149
+
150
+ el.appendChild(rp);
151
+
152
+ }
153
+ </script>
154
+ <?php
155
+ return;
156
+ }
157
+ //
158
+ // only insert buttons if enabled!
159
+ //
160
+ if(true) {
161
+ add_action('init', 'ecom_addbuttons');
162
+ add_action('edit_page_form', 'insert_ecom_script');
163
+ add_action('edit_form_advanced', 'insert_ecom_script');
164
+ }
165
+ ?>
wp-shopping-cart/editor_plugin.js ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ tinyMCE.importPluginLanguagePack('ecom');
2
+
3
+ var TinyMCE_ecom_Plugin = {
4
+
5
+ getInfo : function() {
6
+ return {
7
+ longname : 'e-Commerce',
8
+ author : 'Allen Han',
9
+ authorurl : 'http://www.instinct.co.nz',
10
+ infourl : 'http://www.instinct.co.nz',
11
+ version : "1.0"
12
+ };
13
+ },
14
+
15
+ // initInstance : function(inst) {
16
+ // inst.addShortcut('ctrl', 'p', 'lang_dd_code_desc', 'mcedd_code');
17
+ // },
18
+
19
+ getControlHTML : function(cn) {
20
+ switch (cn) {
21
+ case "ecom":
22
+ return tinyMCE.getButtonHTML(cn, 'lang_dd_code_desc', '{$pluginurl}/images/cart.png', 'mceecom_code', true);
23
+ }
24
+
25
+ return "";
26
+ },
27
+
28
+ execCommand : function(editor_id, element, command, user_interface, value) {
29
+
30
+ switch (command) {
31
+
32
+ case "mceecom_code":
33
+ var src = "", alt = "", border = "", hspace = "", vspace = "", width = "", height = "", align = "";
34
+ var title = "", onmouseover = "", onmouseout = "", action = "insert";
35
+ var img = tinyMCE.imgElement;
36
+ var inst = tinyMCE.getInstanceById(editor_id);
37
+
38
+ if (tinyMCE.selectedElement != null && tinyMCE.selectedElement.nodeName.toLowerCase() == "img") {
39
+ img = tinyMCE.selectedElement;
40
+ tinyMCE.imgElement = img;
41
+ }
42
+
43
+ if (img) {
44
+ // Is it a internal MCE visual aid image, then skip this one.
45
+ if (tinyMCE.getAttrib(img, 'name').indexOf('mce_') == 0)
46
+ return true;
47
+
48
+ src = tinyMCE.getAttrib(img, 'src');
49
+ alt = tinyMCE.getAttrib(img, 'alt');
50
+
51
+ // Try polling out the title
52
+ if (alt == "")
53
+ alt = tinyMCE.getAttrib(img, 'title');
54
+
55
+ // Fix width/height attributes if the styles is specified
56
+ if (tinyMCE.isGecko) {
57
+ var w = img.style.width;
58
+ if (w != null && w != "")
59
+ img.setAttribute("width", w);
60
+
61
+ var h = img.style.height;
62
+ if (h != null && h != "")
63
+ img.setAttribute("height", h);
64
+ }alert(src);
65
+
66
+ border = tinyMCE.getAttrib(img, 'border');
67
+ hspace = tinyMCE.getAttrib(img, 'hspace');
68
+ vspace = tinyMCE.getAttrib(img, 'vspace');
69
+ width = tinyMCE.getAttrib(img, 'width');
70
+ height = tinyMCE.getAttrib(img, 'height');
71
+ align = tinyMCE.getAttrib(img, 'align');
72
+ onmouseover = tinyMCE.getAttrib(img, 'onmouseover');
73
+ onmouseout = tinyMCE.getAttrib(img, 'onmouseout');
74
+ title = tinyMCE.getAttrib(img, 'title');
75
+
76
+ // Is realy specified?
77
+ if (tinyMCE.isMSIE) {
78
+ width = img.attributes['width'].specified ? width : "";
79
+ height = img.attributes['height'].specified ? height : "";
80
+ }
81
+
82
+ //onmouseover = tinyMCE.getImageSrc(tinyMCE.cleanupEventStr(onmouseover));
83
+ //onmouseout = tinyMCE.getImageSrc(tinyMCE.cleanupEventStr(onmouseout));
84
+
85
+ src = eval(tinyMCE.settings['urlconverter_callback'] + "(src, img, true);");
86
+ // Use mce_src if defined
87
+ mceRealSrc = tinyMCE.getAttrib(img, 'mce_src');
88
+ if (mceRealSrc != "") {
89
+ src = mceRealSrc;
90
+
91
+ if (tinyMCE.getParam('convert_urls'))
92
+ src = eval(tinyMCE.settings['urlconverter_callback'] + "(src, img, true);");
93
+ }
94
+
95
+ //if (onmouseover != "")
96
+ // onmouseover = eval(tinyMCE.settings['urlconverter_callback'] + "(onmouseover, img, true);");
97
+
98
+ //if (onmouseout != "")
99
+ // onmouseout = eval(tinyMCE.settings['urlconverter_callback'] + "(onmouseout, img, true);");
100
+
101
+ action = "update";
102
+ }
103
+
104
+ var template = new Array();
105
+
106
+ template['file'] = purl+'insertcate.php';
107
+ template['width'] = 300;
108
+ template['height'] = 200 + (tinyMCE.isMSIE ? 25 : 0);
109
+
110
+ // Language specific width and height addons
111
+ template['width'] += tinyMCE.getLang('lang_insert_image_delta_width', 0);
112
+ template['height'] += tinyMCE.getLang('lang_insert_image_delta_height', 0);
113
+
114
+ if (inst.settings['insertimage_callback']) {
115
+ var returnVal = eval(inst.settings['insertimage_callback'] + "(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout, action);");
116
+ if (returnVal && returnVal['src'])
117
+ TinyMCE_AdvancedTheme._insertImage(returnVal['src'], returnVal['alt'], returnVal['border'], returnVal['hspace'], returnVal['vspace'], returnVal['width'], returnVal['height'], returnVal['align'], returnVal['title'], returnVal['onmouseover'], returnVal['onmouseout']);
118
+ } else {
119
+ tinyMCE.openWindow(template, {src : src, alt : "asdfasdf", border : border, hspace : hspace, vspace : vspace, width : width, height : height, align : align, title : title, onmouseover : onmouseover, onmouseout : onmouseout, action : action, inline : "yes"});
120
+ }
121
+ return true;
122
+ }
123
+
124
+ return false;
125
+ },
126
+
127
+ handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
128
+
129
+ if ( (node.nodeName == "SPAN" || node.nodeName == "DIV") && tinyMCE.getAttrib(node, 'class') == "sfcode" ) {
130
+ tinyMCE.switchClass(editor_id + '_dd_code', 'mceButtonSelected');
131
+ return true;
132
+ }
133
+ else if ( any_selection == "" ) {
134
+ tinyMCE.switchClass(editor_id + '_dd_code', 'mceButtonDisabled');
135
+ return true;
136
+ }
137
+ else
138
+ tinyMCE.switchClass(editor_id + '_dd_code', 'mceButtonNormal');
139
+ },
140
+
141
+ cleanup : function(type, content, inst) {
142
+
143
+ switch (type) {
144
+ case "insert_to_editor_dom":
145
+ break;
146
+ case "insert_to_editor":
147
+ break;
148
+ case "get_from_editor":
149
+ break;
150
+ }
151
+
152
+ return content;
153
+ },
154
+
155
+ // Private plugin internal methods
156
+ _someInternalFunction : function(a, b) {
157
+ return 1;
158
+ }
159
+ };
160
+
161
+ // Add the plugin class to the list of available TinyMCE plugins
162
+ tinyMCE.addPlugin("ecom", TinyMCE_ecom_Plugin);
wp-shopping-cart/extra_image_processing.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $imagetype = getimagesize($new_image_path);
3
+ if(is_numeric($height) && is_numeric($width))
4
+ {
5
+ $destdir = $imagedir.$name;
6
+ //exit($destdir);
7
+ switch($imagetype[2])
8
+ {
9
+ case IMAGETYPE_JPEG:
10
+ //$extension = ".jpg";
11
+ $src_img = imagecreatefromjpeg($new_image_path);
12
+ $pass_imgtype = true;
13
+ break;
14
+
15
+ case IMAGETYPE_GIF:
16
+ //$extension = ".gif";
17
+ $src_img = imagecreatefromgif($new_image_path);
18
+ $pass_imgtype = true;
19
+ break;
20
+
21
+ case IMAGETYPE_PNG:
22
+ //$extension = ".png";
23
+ $src_img = imagecreatefrompng($new_image_path);
24
+ imagesavealpha($src_img,true);
25
+ ImageAlphaBlending($src_img, false);
26
+ $pass_imgtype = true;
27
+ break;
28
+
29
+ default:
30
+ move_uploaded_file($new_image_path, ($imagedir.$new_image_path));
31
+ $pass_imgtype = false;
32
+ break;
33
+ }
34
+
35
+ if($pass_imgtype === true)
36
+ {
37
+ $source_w = imagesx($src_img);
38
+ $source_h = imagesy($src_img);
39
+
40
+ $dst_img = ImageCreateTrueColor($width,$height);
41
+ if($imagetype[2] == IMAGETYPE_PNG)
42
+ {
43
+ imagesavealpha($dst_img,true);
44
+ ImageAlphaBlending($dst_img, false);
45
+ }
46
+ ImageCopyResampled($dst_img,$src_img,0,0,0,0,$width,$height,$source_w,$source_h);
47
+ //exit($destdir);
48
+ switch($imagetype[2])
49
+ {
50
+ case IMAGETYPE_JPEG:
51
+ imagejpeg($dst_img, $destdir, 75);
52
+ break;
53
+
54
+ case IMAGETYPE_GIF:
55
+ imagejpeg($dst_img, $destdir, 75); //our server doesnt support saving gif, make it save gif images if you need gif images, otherwise, jpeg will do.
56
+ break;
57
+
58
+ case IMAGETYPE_PNG:
59
+ imagepng($dst_img, $destdir);
60
+ break;
61
+ }
62
+ usleep(150000); //wait 0.15 of of a second to process and save the new image
63
+ }
64
+ }
65
+ else
66
+ {
67
+ copy($new_image_path, $imagedir.$name);
68
+ }
69
+ ?>
wp-shopping-cart/form_display_functions.php ADDED
@@ -0,0 +1,234 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function categorylist($group_id, $product_id = '', $unique_id = '', $category_id = null, $iteration = 0)
3
+ {
4
+ /*
5
+ * Displays the category forms for adding and editing products
6
+ * Recurses to generate the branched view for subcategories
7
+ */
8
+ global $wpdb;
9
+ if(is_numeric($category_id)) {
10
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `group_id` IN ('$group_id') AND `active`='1' AND `category_parent` = '$category_id' ORDER BY `id` ASC",ARRAY_A);
11
+ } else {
12
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `group_id` IN ('$group_id') AND `active`='1' AND `category_parent` = '0' ORDER BY `id` ASC",ARRAY_A);
13
+ }
14
+ foreach((array)$values as $option)
15
+ {
16
+ if(is_numeric($product_id) && ($product_id > 0))
17
+ {
18
+ $category_assoc = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."item_category_associations` WHERE `product_id` IN('".$product_id."') AND `category_id` IN('".$option['id']."') LIMIT 1",ARRAY_A);
19
+ //echo "<pre>".print_r($category_assoc,true)."</pre>";
20
+ if(is_numeric($category_assoc['id']) && ($category_assoc['id'] > 0))
21
+ {
22
+ $selected = "checked='true'";
23
+ }
24
+ }
25
+ if(is_numeric($category_id) && ($iteration > 0))
26
+ {
27
+ if($iteration > 1)
28
+ {
29
+ if($iteration > 3)
30
+ {
31
+ $output .= str_repeat("&nbsp;", $iteration);
32
+ }
33
+ $output .= str_repeat("&nbsp;", $iteration);
34
+ }
35
+ $output .= "-&nbsp;";
36
+ }
37
+ $output .= "<input id='".$unique_id."category_form_".$option['id']."' type='checkbox' $selected name='category[]' value='".$option['id']."'><label for='".$unique_id."category_form_".$option['id']."' >".stripslashes($option['name'])."</label><br />";
38
+ $output .= categorylist($group_id, $product_id, $unique_id, $option['id'], $iteration+1);
39
+ $selected = "";
40
+ }
41
+ return $output;
42
+ }
43
+
44
+ function nzshpcrt_country_list($selected_country = null)
45
+ {
46
+ global $wpdb;
47
+ $output = "<option value=''></option>";
48
+ if($selected_country == null)
49
+ {
50
+ $output = "<option value=''>".TXT_WPSC_PLEASE_SELECT."</option>";
51
+ }
52
+ $country_data = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."currency_list` ORDER BY `country` ASC",ARRAY_A);
53
+ foreach ($country_data as $country)
54
+ {
55
+ $selected ='';
56
+ if($selected_country == $country['isocode'])
57
+ {
58
+ $selected = "selected='true'";
59
+ }
60
+ $output .= "<option value='".$country['isocode']."' $selected>".$country['country']."</option>";
61
+ }
62
+ return $output;
63
+ }
64
+
65
+ function nzshpcrt_region_list($selected_country = null, $selected_region = null)
66
+ {
67
+ global $wpdb;
68
+ if($selected_region == null)
69
+ {
70
+ $selected_region = get_option('base_region');
71
+ }
72
+ $output = "";
73
+ $region_list = $wpdb->get_results("SELECT `".$wpdb->prefix."region_tax`.* FROM `".$wpdb->prefix."region_tax`, `".$wpdb->prefix."currency_list` WHERE `".$wpdb->prefix."currency_list`.`isocode` IN('".$selected_country."') AND `".$wpdb->prefix."currency_list`.`id` = `".$wpdb->prefix."region_tax`.`country_id`",ARRAY_A) ;
74
+ if($region_list != null)
75
+ {
76
+ $output .= "<select name='base_region'>\n\r";
77
+ $output .= "<option value=''>None</option>";
78
+ foreach($region_list as $region)
79
+ {
80
+ if($selected_region == $region['id'])
81
+ {
82
+ $selected = "selected='true'";
83
+ }
84
+ else
85
+ {
86
+ $selected = "";
87
+ }
88
+ $output .= "<option value='".$region['id']."' $selected>".$region['name']."</option>\n\r";
89
+ }
90
+ $output .= "</select>\n\r";
91
+ }
92
+ else
93
+ {
94
+ $output .= "<select name='base_region' disabled='true'><option value=''>None</option></select>\n\r";
95
+ }
96
+ return $output;
97
+ }
98
+
99
+ function nzshpcrt_form_field_list($selected_field = null)
100
+ {
101
+ global $wpdb;
102
+ $output = "";
103
+ $output .= "<option value=''>Please choose</option>";
104
+ $form_sql = "SELECT * FROM `".$wpdb->prefix."collect_data_forms` WHERE `active` = '1';";
105
+ $form_data = $wpdb->get_results($form_sql,ARRAY_A);
106
+ foreach ($form_data as $form)
107
+ {
108
+ $selected ='';
109
+ if($selected_field == $form['id'])
110
+ {
111
+ $selected = "selected='true'";
112
+ }
113
+ $output .= "<option value='".$form['id']."' $selected>".$form['name']."</option>";
114
+ }
115
+ return $output;
116
+ }
117
+
118
+
119
+ function wpsc_parent_category_list($group_id, $category_id, $category_parent_id) {
120
+ global $wpdb,$category_data;
121
+ $options = "";
122
+ $options .= "<option value='0'>".TXT_WPSC_SELECT_PARENT."</option>\r\n";
123
+ $options .= wpsc_category_options((int)$group_id, (int)$category_id, null, 0, (int)$category_parent_id);
124
+ $concat .= "<select name='category_parent'>".$options."</select>\r\n";
125
+ return $concat;
126
+ }
127
+
128
+ function wpsc_category_options($group_id, $this_category = null, $category_id = null, $iteration = 0, $selected_id = null) {
129
+ /*
130
+ * Displays the category forms for adding and editing products
131
+ * Recurses to generate the branched view for subcategories
132
+ */
133
+ global $wpdb;
134
+ $siteurl = get_option('siteurl');
135
+ if(is_numeric($category_id)) {
136
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `group_id` = '$group_id' AND `active`='1' AND `id` != '$this_category' AND `category_parent` = '$category_id' ORDER BY `id` ASC",ARRAY_A);
137
+ } else {
138
+ $values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `group_id` = '$group_id' AND `active`='1' AND `id` != '$this_category' AND `category_parent` = '0' ORDER BY `id` ASC",ARRAY_A);
139
+ }
140
+ foreach((array)$values as $option) {
141
+ if($selected_id == $option['id']) {
142
+ $selected = "selected='selected'";
143
+ }
144
+
145
+ $output .= "<option $selected value='".$option['id']."'>".str_repeat("-", $iteration).stripslashes($option['name'])."</option>\r\n";
146
+ $output .= wpsc_category_options($group_id, $this_category, $option['id'], $iteration+1, $selected_id);
147
+ $selected = "";
148
+ }
149
+ return $output;
150
+ }
151
+
152
+
153
+ function wpsc_uploaded_files()
154
+ {
155
+ global $wpdb;
156
+ $dir = @opendir(WPSC_FILE_DIR);
157
+ $num = 0;
158
+ while(($file = @readdir($dir)) !== false)
159
+ {
160
+ //filter out the dots, macintosh hidden files and any backup files
161
+ if(($file != "..") && ($file != ".") && ($file != "product_files") && ($file != "preview_clips") && !stristr($file, "~") && !( strpos($file, ".") === 0 ))
162
+ {
163
+ $file_data = $wpdb->get_row("SELECT `id`,`filename` FROM `".$wpdb->prefix."product_files` WHERE `idhash` LIKE '".$file."' LIMIT 1",ARRAY_A);
164
+ if($file_data != null)
165
+ {
166
+ $dirlist[$num]['display_filename'] = $file_data['filename'];
167
+ $dirlist[$num]['file_id'] = $file_data['id'];
168
+ }
169
+ else
170
+ {
171
+ $dirlist[$num]['display_filename'] = $file;
172
+ $dirlist[$num]['file_id'] = null;
173
+ }
174
+ $dirlist[$num]['real_filename'] = $file;
175
+ $num++;
176
+ }
177
+ }
178
+ return $dirlist;
179
+ }
180
+
181
+
182
+ function wpsc_select_product_file($product_id = null)
183
+ {
184
+ global $wpdb;
185
+ //return false;
186
+ $file_list = wpsc_uploaded_files();
187
+ $file_id = $wpdb->get_var("SELECT `file` FROM `".$wpdb->prefix."product_list` WHERE `id` = '".$product_id."' LIMIT 1");
188
+ $output = "<span class='admin_product_notes select_product_note '>".TXT_WPSC_CHOOSE_DOWNLOADABLE_PRODUCT."</span>";
189
+ $output .= "<div class='".((is_numeric($product_id)) ? "edit_" : "")."select_product_file'>";
190
+ //$output .= "<div class='select_product_file'>";
191
+ $num = 0;
192
+ $output .= "<p ".((($num % 2) > 0) ? '' : "class='alt'")."><input type='radio' name='select_product_file' value='.none.' id='select_product_file_$num' ".((!is_numeric($file_id) || ($file_id < 1)) ? "checked='checked'" : "")." /><label for='select_product_file_$num'>".TXT_WPSC_SHOW_NO_PRODUCT."</label></p>";
193
+ //$output .= "<pre>".print_r($file_list,true)."</pre>";
194
+ foreach((array)$file_list as $file)
195
+ {
196
+ $num++;
197
+ $output .= "<p ".((($num % 2) > 0) ? '' : "class='alt'")."><input type='radio' name='select_product_file' value='".$file['real_filename']."' id='select_product_file_$num' ".((is_numeric($file_id) && ($file_id == $file['file_id'])) ? "checked='checked'" : "")." /><label for='select_product_file_$num'>".$file['display_filename']."</label></p>";
198
+ }
199
+ $output .= "</div>";
200
+ $output .= "<div class='".((is_numeric($product_id)) ? "edit_" : "")."select_product_handle'><div></div></div>";
201
+ $output .= "<script type='text/javascript'>\n\r";
202
+ $output .= "var select_min_height = ".(25*3).";\n\r";
203
+ $output .= "var select_max_height = ".(25*($num+1)).";\n\r";
204
+ $output .= "</script>";
205
+ return $output;
206
+ }
207
+
208
+ function wpsc_list_product_themes($theme_name = null) {
209
+ global $wpdb;
210
+ $selected_theme = get_option('wpsc_selected_theme');
211
+ if($selected_theme == '') {
212
+ $selected_theme = 'default';
213
+ }
214
+
215
+ $theme_path = WPSC_FILE_PATH.'/themes/';
216
+ $theme_list = nzshpcrt_listdir($theme_path);
217
+ foreach($theme_list as $theme_file) {
218
+ if(is_dir($theme_path.$theme_file) && is_file($theme_path.$theme_file."/".$theme_file.".css")) {
219
+ $theme[$theme_file] = get_theme_data($theme_path.$theme_file."/".$theme_file.".css");
220
+ }
221
+ }
222
+ $output .= "<select name='wpsc_theme_list'>\n\r";
223
+ foreach((array)$theme as $theme_file=>$theme_data) {
224
+ if(stristr($theme_file, $selected_theme)) {
225
+ $selected = "selected='true'";
226
+ } else {
227
+ $selected = "";
228
+ }
229
+ $output .= "<option value='$theme_file' $selected>".$theme_data['Name']."</option>\n\r";
230
+ }
231
+ $output .= "</select>\n\r";
232
+ return $output;
233
+ }
234
+ ?>
wp-shopping-cart/form_fields.php ADDED
@@ -0,0 +1,214 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ global $wpdb;
3
+ $form_types = Array("text","email","address","city","country","delivery_address","delivery_city","delivery_country","textarea","heading","coupon");
4
+
5
+
6
+ if($_POST != null)
7
+ {
8
+ if($_POST['payment_method'] != null)
9
+ {
10
+ update_option('payment_method', $_POST['payment_method']);
11
+ }
12
+
13
+
14
+ if($_POST['require_register'] == 1) {
15
+ update_option('require_register', 1);
16
+ } else {
17
+ update_option('require_register', 0);
18
+ }
19
+ }
20
+
21
+ if($_POST['submit_action'] == 'add')
22
+ {
23
+ if($_POST['form_name'] != null)
24
+ {
25
+ foreach($_POST['form_name'] as $form_id => $form_name)
26
+ {
27
+ $form_type = $_POST['form_type'][$form_id];
28
+ $form_mandatory = 0;
29
+ if($_POST['form_mandatory'][$form_id] == 1) { $form_mandatory = 1; }
30
+ $form_display_log = 0;
31
+ if($_POST['form_display_log'][$form_id] == 1) { $form_display_log = 1; }
32
+ $form_order = $_POST['form_order'][$form_id];
33
+ $wpdb->query("UPDATE `".$wpdb->prefix."collect_data_forms` SET `name` = '$form_name', `type` = '$form_type', `mandatory` = '$form_mandatory', `display_log` = '$form_display_log', `order` = '$form_order' WHERE `id` ='".$form_id."' LIMIT 1 ;");
34
+ }
35
+ }
36
+
37
+ if($_POST['new_form_name'] != null)
38
+ {
39
+ foreach($_POST['new_form_name'] as $form_id => $form_name)
40
+ {
41
+ $form_type = $_POST['new_form_type'][$form_id];
42
+ $form_mandatory = 0;
43
+ if($_POST['new_form_mandatory'][$form_id] == 1) { $form_mandatory = 1; }
44
+ $form_display_log = 0;
45
+ if($_POST['new_form_display_log'][$form_id] == 1) { $form_display_log = 1; }
46
+ $max_order_sql = "SELECT MAX(`order`) AS `order` FROM `".$wpdb->prefix."collect_data_forms` WHERE `active` = '1';";
47
+ if($_POST['new_form_order'][$form_id] != '')
48
+ {
49
+ $order_number = $_POST['new_form_order'][$form_id];
50
+ }
51
+ else
52
+ {
53
+ $max_order_sql = $wpdb->get_results($max_order_sql,ARRAY_A);
54
+ $order_number = $max_order_sql[0]['order'] + 1;
55
+ }
56
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."collect_data_forms` ( `name`, `type`, `mandatory`, `display_log`, `default`, `active`, `order` ) VALUES ( '$form_name', '$form_type', '$form_mandatory', '$form_display_log', '', '1','".$order_number."');");
57
+ }
58
+ }
59
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_THANKSAPPLIED."</p></div>";
60
+ }
61
+ ?>
62
+ <div class="wrap">
63
+ <h2><?php echo TXT_WPSC_FORM_FIELDS;?></h2>
64
+ <form method='POST' action=''>
65
+ <table>
66
+ <tr>
67
+ <td>
68
+ <?php echo TXT_WPSC_REQUIRE_REGISTRATION;?>:
69
+ </td>
70
+ <td>
71
+ <?php
72
+ $require_register = get_option('require_register');
73
+ $require_register1 = "";
74
+ $require_register2 = "";
75
+ switch($require_register)
76
+ {
77
+ case 0:
78
+ $require_register2 = "checked ='true'";
79
+ break;
80
+
81
+ case 1:
82
+ $require_register1 = "checked ='true'";
83
+ break;
84
+ }
85
+
86
+ ?>
87
+ <input type='radio' value='1' name='require_register' id='require_register1' <?php echo $require_register1; ?> /> <label for='require_register1'><?php echo TXT_WPSC_YES;?></label> &nbsp;
88
+ <input type='radio' value='0' name='require_register' id='require_register2' <?php echo $require_register2; ?> /> <label for='require_register2'><?php echo TXT_WPSC_NO;?></label>
89
+ </td>
90
+ <td>
91
+ (<?=TXT_WPSC_ANYONEREGISTER;?>)
92
+ </td>
93
+ </tr>
94
+ </table>
95
+ <p><?php echo TXT_WPSC_CHECKOUT_FORM_FIELDS_DESCRIPTION;?></p>
96
+ <table id='form_field_table' style='border-collapse: collapse;'>
97
+ <tr>
98
+ <th class='namecol'>
99
+ <?php echo TXT_WPSC_NAME; ?>
100
+ </th>
101
+ <th class='typecol'>
102
+ <?php echo TXT_WPSC_TYPE; ?>
103
+ </th>
104
+ <th class='mandatorycol'>
105
+ <?php echo TXT_WPSC_MANDATORY; ?>
106
+ </th>
107
+ <th class='logdisplaycol'>
108
+ <?php echo TXT_WPSC_DISPLAY_IN_LOG; ?>
109
+ </th>
110
+ <?php
111
+ /*
112
+ <th class='logdisplaycol'>
113
+ <?php echo TXT_WPSC_SEND_TO_GATEWAY; ?>
114
+ </th>
115
+ */
116
+ ?>
117
+ <th class='ordercol'>
118
+ <?php echo TXT_WPSC_ORDER; ?>
119
+ </th>
120
+ <th>
121
+ </th>
122
+ <th>
123
+ </th>
124
+ </tr>
125
+ <tr>
126
+ <td colspan='6' style='padding: 0px;'>
127
+ <div id='form_field_form_container'>
128
+ <?php
129
+
130
+ $email_form_field = $wpdb->get_results("SELECT `id` FROM `".$wpdb->prefix."collect_data_forms` WHERE `type` IN ('email') AND `active` = '1' ORDER BY `order` ASC LIMIT 1",ARRAY_A);
131
+ $email_form_field = $email_form_field[0];
132
+
133
+ $form_sql = "SELECT * FROM `".$wpdb->prefix."collect_data_forms` WHERE `active` = '1' ORDER BY `order`;";
134
+ $form_data = $wpdb->get_results($form_sql,ARRAY_A);
135
+ //exit("<pre>".print_r($form_data,true)."</pre>");
136
+ foreach($form_data as $form_field)
137
+ {
138
+ echo "
139
+ <div id='form_id_".$form_field['id']."'>
140
+ <table>
141
+ <tr>\n\r";
142
+ echo " <td class='namecol'><input type='text' name='form_name[".$form_field['id']."]' value='".$form_field['name']."' /></td>";
143
+
144
+ echo " <td class='typecol'><select name='form_type[".$form_field['id']."]'>";
145
+ foreach($form_types as $form_type)
146
+ {
147
+ $selected = '';
148
+ if($form_type === $form_field['type'])
149
+ {
150
+ $selected = "selected='true'";
151
+ }
152
+ // define('TXT_WPSC_TEXTAREA', 'Textarea');
153
+ echo "<option value='".$form_type."' ".$selected.">".constant("TXT_WPSC_".strtoupper($form_type))."</option>";
154
+ }
155
+ echo "</select></td>";
156
+
157
+
158
+ $checked = "";
159
+ if($form_field['mandatory'])
160
+ {
161
+ $checked = "checked='true'";
162
+ }
163
+ echo " <td class='mandatorycol' style='text-align: center;'><input $checked type='checkbox' name='form_mandatory[".$form_field['id']."]' value='1' /></td>";
164
+ $checked = "";
165
+ if($form_field['display_log'])
166
+ {
167
+ $checked = "checked='true'";
168
+ }
169
+ echo " <td class='logdisplaycol' style='text-align: center;'><input $checked type='checkbox' name='form_display_log[".$form_field['id']."]' value='1' /></td>";
170
+
171
+ echo " <td class='ordercol'><input type='text' size='3' name='form_order[".$form_field['id']."]' value='".$form_field['order']."' /></td>";
172
+
173
+ echo " <td style='text-align: center; width: 12px;'><a class='image_link' href='#' onclick='return remove_form_field(\"form_id_".$form_field['id']."\",".$form_field['id'].");'><img src='".WPSC_URL."/images/trash.gif' alt='".TXT_WPSC_DELETE."' title='".TXT_WPSC_DELETE."' /></a>";
174
+ echo "</td>";
175
+
176
+ echo "<td>";
177
+ if($email_form_field['id'] == $form_field['id'])
178
+ {
179
+ echo "<div class='flag_email'>This will be the Email address that the Purchase Reciept is sent to. </div>";
180
+ }
181
+ echo "</td>";
182
+
183
+ echo "
184
+ </tr>
185
+ </table>
186
+ </div>";
187
+ }
188
+ ?>
189
+ </div>
190
+ </td>
191
+ </tr>
192
+ <tr>
193
+ <td colspan='6' style='padding: 2px;'>
194
+ <input type='hidden' name='submit_action' value='add' />
195
+ <input type='submit' name='submit' value='<?php echo TXT_WPSC_SAVE_CHANGES;?>' />
196
+ <a href='#' onclick='return add_form_field();'><?php echo TXT_WPSC_ADD_NEW_FORM;?></a>
197
+ </td>
198
+ </tr>
199
+ </table>
200
+
201
+ <?php
202
+ $curgateway = get_option('payment_gateway');
203
+ foreach($GLOBALS['nzshpcrt_gateways'] as $gateway)
204
+ {
205
+ if($gateway['internalname'] == $curgateway )
206
+ {
207
+ $gateway_name = $gateway['name'];
208
+ }
209
+ }
210
+
211
+ $selected[get_option('payment_method')] = "checked='true'";
212
+ ?>
213
+ </form>
214
+ </div>
wp-shopping-cart/gatewayoptions.php ADDED
@@ -0,0 +1,233 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if (isset($_GET['googlecheckoutshipping'])) {
3
+ include('google_shipping_country.php');
4
+ exit();
5
+ }
6
+
7
+
8
+
9
+ $curgateway = get_option('payment_gateway');
10
+ $changes_made = false;
11
+
12
+
13
+ if(is_numeric($_POST['payment_method']) && (get_option('payment_gateway') != $_POST['payment_method'])) {
14
+ update_option('payment_method', $_POST['payment_method']);
15
+ $changes_made = true;
16
+ }
17
+
18
+
19
+ if ($_POST['custom_gateway_options'] != null){
20
+ update_option('custom_gateway_options', $_POST['custom_gateway_options']);
21
+ $changes_made = true;
22
+ }
23
+
24
+ if(isset($_POST['payment_instructions']) && ($_POST['payment_instructions'] != get_option('payment_instructions'))) {
25
+ update_option('payment_instructions', $_POST['payment_instructions']);
26
+ $changes_made = true;
27
+ }
28
+
29
+
30
+ if(isset($_POST['custom_gateway'])) {
31
+ // this particular form field refuses to submit in a way that appears to defy logic if dealt with like the others, hence this overkill
32
+ if($_POST['custom_gateway'] == 1) {
33
+ update_option('custom_gateway', 1);
34
+ $changes_made = true;
35
+ } else if(($_POST['custom_gateway'] == 0) && (get_option('custom_gateway') != 0)) {
36
+ update_option('custom_gateway', 0);
37
+ $changes_made = true;
38
+ }
39
+ }
40
+ if(($_POST['payment_gw'] != null) && ($_POST['submit_details'] == null)) {
41
+ update_option('payment_gateway', $_POST['payment_gw']);
42
+ $curgateway = get_option('payment_gateway');
43
+ $changes_made = true;
44
+ }
45
+
46
+ if(($_POST['payment_gw'] != null) && ($_POST['submit_details'] != null)) {
47
+ foreach($nzshpcrt_gateways as $gateway) {
48
+ if($gateway['internalname'] == $curgateway) {
49
+ $gateway['submit_function']();
50
+ $changes_made = true;
51
+ }
52
+ }
53
+ }
54
+ if($changes_made == true) {
55
+ echo "<div class='updated'><p align='center'>".TXT_WPSC_THANKSAPPLIED."</p></div>";
56
+ }
57
+ if (get_option('custom_gateway')) {
58
+ $custom_gateway1 = "checked='checked'";
59
+ } else {
60
+ $custom_gateway2 = "checked='checked'";
61
+ }
62
+ //exit($curgateway);
63
+ $form = "";
64
+ foreach($nzshpcrt_gateways as $gateway) {
65
+ if($gateway['internalname'] == $curgateway ) {
66
+ $selected = " selected='selected'";
67
+ $form = $gateway['form']();
68
+ } else {
69
+ $selected = '';
70
+ }
71
+ $gatewaylist .="<option value='".$gateway['internalname']."' ".$selected." >".$gateway['name']."</option>";
72
+ }
73
+ $gatewaylist = "<option value='".$nogw."'>".TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY."</option>" . $gatewaylist;
74
+
75
+
76
+
77
+ $selected[get_option('payment_method')] = "checked='true'";
78
+ ?>
79
+ <script language='JavaScript' type='text/javascript'>
80
+ function selectgateway()
81
+ {
82
+ document.forms.gatewayopt.submit()
83
+ }
84
+ </script>
85
+ <div class="wrap">
86
+ <form name='gatewayopt' method='POST'>
87
+
88
+ <h2><?php echo TXT_WPSC_PAYMENT_OPTIONS;?></h2>
89
+ <p><?php echo TXT_WPSC_PAYMENT_DESCRIPTION;?></p>
90
+ <table>
91
+ <tr>
92
+ <td colspan='2' width='50%'>
93
+ <input type='radio' name='payment_method' value='3' id='payment_method_3' <?php echo $selected[3]; ?>>
94
+ <label for='payment_method_3'><?php echo TXT_WPSC_MANUAL_PAYMENT; ?></label>
95
+ </td>
96
+
97
+ <td rowspan='4'>
98
+ <strong><?php echo TXT_WPSC_PAYMENT_INSTRUCTIONS; ?>:</strong>
99
+ <textarea cols='55' rows='6' name='payment_instructions'><?php echo get_option('payment_instructions');?></textarea>
100
+ </td>
101
+
102
+ </tr>
103
+ <tr>
104
+ <td colspan='2'>
105
+ <input type='radio' name='payment_method' value='1' id='payment_method_1' <?php echo $selected[1]; ?>>
106
+ <label for='payment_method_1'><?php echo TXT_WPSC_CREDIT_CARD; ?></label>
107
+ </td>
108
+ </tr>
109
+ <tr>
110
+ <td colspan='2'>
111
+ <input type='radio' name='payment_method' value='2' id='payment_method_2' <?php echo $selected[2]; ?>>
112
+ <label for='payment_method_2'><?php echo TXT_WPSC_CREDIT_CARD_AND_MANUAL_PAYMENT; ?></label>
113
+ </td>
114
+ </tr>
115
+ <tr>
116
+ <td colspan='2' style='padding: 2px;'>
117
+ <input type='hidden' name='submit_action' value='add' />
118
+ <input type='submit' name='submit_details' value='<?php echo TXT_WPSC_SAVE_CHANGES;?>' />
119
+ </td>
120
+ </tr>
121
+ </table>
122
+
123
+ <br />
124
+ <br />
125
+
126
+ <?php
127
+ if (get_option('custom_gateway') == 1){
128
+ $custom_gateway_hide="style='display:block;'";
129
+ $custom_gateway1 = 'checked="true"';
130
+ } else {
131
+ $custom_gateway_hide="style='display:none;'";
132
+ $custom_gateway2 = 'checked="true"';
133
+ }
134
+ ?>
135
+ <h2><?php echo TXT_WPSC_GATEWAY_OPTIONS;?></h2>
136
+ <p>Do you want your customers to be able to choose from multiple payment gateways at checkout?</p>
137
+ <table class='form-table'>
138
+ <tr>
139
+ <!-- <th scope='row'><?php echo TXT_WPSC_CUSTOMERCHOOSEGATEWAY;?></th>-->
140
+ <td colspan='2'>
141
+ <input onclick="jQuery('#custom_gateway_div').slideDown(200)" <?=$custom_gateway1;?> type='radio' value='1' name='custom_gateway' id='custom_gateway_1'>
142
+ <label for='custom_gateway_1'><?php echo TXT_WPSC_YES;?></label>
143
+ <input <?=$custom_gateway2;?> onclick="jQuery('#custom_gateway_div').slideUp(200)" type='radio' value='0' name='custom_gateway' id='custom_gateway_2'>
144
+ <label for='custom_gateway_2'><?php echo TXT_WPSC_NO;?></label><br>
145
+ <small>Note: Select the ones that you have entered your details only</small>
146
+ <div id='custom_gateway_div' <?=$custom_gateway_hide?>>
147
+ <table>
148
+ <tr>
149
+ <th style='border-bottom:none;'>
150
+ Select Gateways
151
+ </th>
152
+ <td style='border-bottom:none;'>
153
+
154
+ <?php
155
+ foreach($GLOBALS['nzshpcrt_gateways'] as $gateway) {
156
+ if (($gateway['internalname'] != 'testmode') && ($gateway['internalname'] != 'google')) {
157
+ $selected_gateways = get_option('custom_gateway_options');
158
+ if (in_array($gateway['internalname'], (array)$selected_gateways)) {
159
+ echo "<input name='custom_gateway_options[]' checked='checked' type='checkbox' value='{$gateway['internalname']}' id='{$gateway['internalname']}_id'><label for='{$gateway['internalname']}_id'>{$gateway['name']}</label><br>";
160
+ } else {
161
+ echo "<input name='custom_gateway_options[]' type='checkbox' value='{$gateway['internalname']}' id='{$gateway['internalname']}_id'><label for='{$gateway['internalname']}_id'>{$gateway['name']}</label><br>";
162
+ }
163
+ }
164
+ }
165
+ ?>
166
+ </div>
167
+ </td>
168
+ </td>
169
+ </table>
170
+ </td>
171
+
172
+ </tr>
173
+
174
+ <tr>
175
+ <th scope='row'>
176
+ <?php echo TXT_WPSC_PAYMENTGATEWAY2;?>
177
+ </th>
178
+ <td>
179
+ <select name='payment_gw' onChange='selectgateway();'>
180
+ <?php
181
+ echo $gatewaylist;
182
+ ?>
183
+ </select>
184
+ </td>
185
+ </tr><?php
186
+ echo $form;
187
+ ?>
188
+ <table>
189
+ <tr>
190
+ <td>
191
+ </td>
192
+ <td>
193
+ <input type='submit' value='<?php echo TXT_WPSC_SUBMIT;?>' name='submit_details' />
194
+ </td>
195
+ </tr>
196
+ <?php if (($curgateway=='paypal_multiple')||($curgateway=='paypal_certified')){?>
197
+ <tr>
198
+ <td colspan="2">
199
+ When you signup for PayPal, you can start accepting credit card payments instantly. As the world's number one online payment service, PayPal is the fastest way to open your doors to over 150 million member accounts worldwide. Best of all, it's completely free to sign up! To sign up or learn more:
200
+ </td>
201
+ </tr>
202
+ <tr>
203
+ <td colspan="2">
204
+ <a style="border-bottom:none;" href="https://www.paypal.com/nz/mrb/pal=LENKCHY6CU2VY" target="_blank"><img src=" http://images.paypal.com/en_US/i/bnr/paypal_mrb_banner.gif" border="0" alt="Sign up for PayPal and start accepting credit card payments instantly."></A>
205
+ </td>
206
+ </tr>
207
+ <?php } elseif ($curgateway=='google') {?>
208
+ <tr>
209
+ <td colspan="2">Find it with Google. Buy it with Google Checkout.
210
+ </tr>
211
+ <tr>
212
+ <td></td>
213
+ <td>
214
+ Want a faster, safer and more convenient way to shop online? You got it.</td>
215
+ </td>
216
+ </tr>
217
+ <tr>
218
+ <td></td>
219
+ <td>
220
+ <a style="border-bottom:none;" href="http://checkout.google.com/sell/?promo=seinstinct" target="_blank"><img src="https://checkout.google.com/buyer/images/google_checkout.gif" border="0" alt="Sign up for Google Checkout"></A>
221
+ </td>
222
+ </tr>
223
+ <?php }?>
224
+ </table>
225
+ </form>
226
+ <br />
227
+ <?php
228
+ if((get_option('activation_state') !== 'true')&&($curgateway!='google'))
229
+ {
230
+ echo TXT_WPSC_PAYMENTGATEWAYNOTE;
231
+ }
232
+ ?>
233
+ </div>
wp-shopping-cart/getimagesize.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <?php
2
+ if(is_file($imagepath))
3
+ {
4
+ $imagetype = @getimagesize($imagepath); //previously exif_imagetype()
5
+ }
6
+ ?>
wp-shopping-cart/google_base_functions.php ADDED
@@ -0,0 +1,566 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /* Our Google Base API developer key. */
4
+ $developerKey = "ABQIAAAA6ggeUfjN1SpHwYsrpccTGhRuQWnos65R7rFyIjvnCKH4e1YArxSdx2HKFtraZCwQgrQplEXLG99isg";
5
+
6
+ /* The items feed URL, used for queries, insertions and batch commands. */
7
+ $itemsFeedURL = "http://www.google.com/base/feeds/items";
8
+
9
+ /* Parsed recipe entries from a query. */
10
+ $parsedEntries = array();
11
+
12
+ /* Are we currently parsing an XML ENTRY tag? */
13
+ $foundEntry = false;
14
+
15
+ /* Current XML element being processed. */
16
+ $curElement = "";
17
+
18
+ /* Types of cuisine the user may select when inserting a recipe. */
19
+ $cuisines = array('African', 'American', 'Asian', 'Caribbean', 'Chinese', 'French', 'Greek', 'Indian', 'Italian', 'Japanese', 'Jewish', 'Mediterranean', 'Mexican', 'Middle Eastern', 'Moroccan', 'North American', 'Spanish', 'Thai', 'Vietnamese', 'Other');
20
+
21
+ /**
22
+ * Creates the XML content used to insert a new recipe.
23
+ */
24
+ function buildInsertXML($name,$price,$description) {
25
+ $result = "<?xml version='1.0'?>" . "\n";
26
+ // $result .= "<entry xmlns='http://www.w3.org/2005/Atom'" . " xmlns:g='http://base.google.com/ns/1.0'>" . "\n";
27
+ // $result .= "<category scheme='http://base.google.com/categories/itemtypes'" . " term='Products'/>" . "\n";
28
+ // $result .= "<title type='text'>" . 'pizza' . "</title>" . "\n";
29
+ // // $result .= "<g:cuisine>" . 'Chinese' . "</g:cuisine>" . "\n";
30
+ // $result .= "<g:item_type type='text'>Recipes</g:item_type>" . "\n";
31
+ // // $result .= "<g:cooking_time type='intUnit'>" . $_POST['time_val'] . " " . $_POST['time_units'] . "</g:cooking_time>" . "\n";
32
+ // // $result .= "<g:main_ingredient type='text'>" . $_POST['main_ingredient'] . "</g:main_ingredient>" . "\n";
33
+ // // $result .= "<g:serving_count type='number'>" . $_POST['serves'] . "</g:serving_count>" . "\n";
34
+ // $result .= "<content>" . 'whatever'. "</content>" . "\n";
35
+ // $result .= "</entry>" . "\n";
36
+
37
+ $result .= "<entry xmlns='http://www.w3.org/2005/Atom' xmlns:g='http://base.google.com/ns/1.0'>
38
+ <category scheme='http://base.google.com/categories/itemtypes' term='Products'/>
39
+ <g:item_type type='text'>Products</g:item_type>
40
+ <g:price type='floatUnit'> ".$price."</g:price>
41
+ <title type='text'>".$name."</title>
42
+ <content>".$description."</content>
43
+ </entry>";
44
+
45
+ return $result;
46
+ }
47
+
48
+ /**
49
+ * Creates the XML content used to perform a batch delete.
50
+ */
51
+ function buildBatchXML() {
52
+ $counter = 0;
53
+
54
+ $result = '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
55
+ $result .= '<feed xmlns="http://www.w3.org/2005/Atom"' . "\n";
56
+ $result .= ' xmlns:g="http://base.google.com/ns/1.0"' . "\n";
57
+ $result .= ' xmlns:batch="http://schemas.google.com/gdata/batch">' . "\n";
58
+ foreach($_POST as $key => $value) {
59
+ if(substr($key, 0, 5) == "link_") {
60
+ $counter++;
61
+
62
+ $result .= '<entry>' . "\n";
63
+ $result .= '<id>' . $value . '</id>' . "\n";
64
+ $result .= '<batch:operation type="delete"/>' . "\n";
65
+ $result .= '<batch:id>' . $counter . '</batch:id>' . "\n";
66
+ $result .= '</entry>' . "\n";
67
+ }
68
+ }
69
+ $result .= '</feed>' . "\n";
70
+
71
+ return $result;
72
+ }
73
+
74
+ /**
75
+ * Exchanges the given single-use token for a session
76
+ * token using AuthSubSessionToken, and returns the result.
77
+ */
78
+ function exchangeToken($token) {
79
+ $ch = curl_init(); /* Create a CURL handle. */
80
+
81
+ curl_setopt($ch, CURLOPT_URL, "https://www.google.com/accounts/AuthSubSessionToken");
82
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
83
+ curl_setopt($ch, CURLOPT_FAILONERROR, true);
84
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
85
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: AuthSub token="' . $token . '"'));
86
+
87
+ $result = curl_exec($ch); /* Execute the HTTP command. */
88
+ curl_close($ch);
89
+
90
+ $splitStr = split("=", $result);
91
+ return trim($splitStr[1]);
92
+ }
93
+
94
+ /**
95
+ * Performs a query for all of the user's items using the
96
+ * items feed, then parses the resulting XML with the
97
+ * startElement, endElement and characterData functions
98
+ * (below).
99
+ */
100
+ function getItems($token) {
101
+ $ch = curl_init(); /* Create a CURL handle. */
102
+ global $developerKey, $itemsFeedURL;
103
+
104
+ curl_setopt($ch, CURLOPT_URL, $itemsFeedURL . "?");
105
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
106
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/atom+xml', 'Authorization: AuthSub token="' . trim($token) . '"', 'X-Google-Key: key=' . $developerKey));
107
+
108
+ $result = curl_exec($ch); /* Execute the HTTP command. */
109
+ curl_close($ch);
110
+
111
+ /* Parse the resulting XML. */
112
+ $xml_parser = xml_parser_create();
113
+ xml_set_element_handler($xml_parser, "startElement", "endElement");
114
+ xml_set_character_data_handler($xml_parser, "characterData");
115
+ xml_parse($xml_parser, $result);
116
+ xml_parser_free($xml_parser);
117
+ }
118
+
119
+ /**
120
+ * Inserts a new recipe by performing an HTTP POST to the
121
+ * items feed.
122
+ */
123
+ function postItem($name,$price,$description, $token='') {
124
+ $ch = curl_init(); /* Create a CURL handle. */
125
+ global $developerKey, $itemsFeedURL;
126
+
127
+ /* Set cURL options. */
128
+ curl_setopt($ch, CURLOPT_URL, $itemsFeedURL);
129
+ curl_setopt($ch, CURLOPT_POST, true);
130
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
131
+ curl_setopt($ch, CURLOPT_FAILONERROR, true);
132
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: AuthSub token="' . $token . '"', 'X-Google-Key: key=' . $developerKey, 'Content-Type: application/atom+xml'));
133
+ $xml=buildInsertXML($name,$price,$description);
134
+ // exit($xml);
135
+ curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
136
+
137
+ $result = curl_exec($ch); /* Execute the HTTP request. */
138
+ curl_close($ch); /* Close the cURL handle. */
139
+
140
+ // exit($result);
141
+ return $result;
142
+ }
143
+
144
+ /**
145
+ * Updates an existing recipe by performing an HTTP PUT
146
+ * on its feed URI, using the updated values a PUT data.
147
+ */
148
+ function updateItem() {
149
+ $ch = curl_init(); /* Create a CURL handle. */
150
+ global $developerKey;
151
+
152
+ /* Prepare the data for HTTP PUT. */
153
+ $putString = buildInsertXML();
154
+ $putData = tmpfile();
155
+ // exit("=======><pre>".var_dump($putData)."</pre>");
156
+ fwrite($putData, $putString);
157
+ fseek($putData, 0);
158
+
159
+ /* Set cURL options. */
160
+ curl_setopt($ch, CURLOPT_URL, $_POST['link']);
161
+ curl_setopt($ch, CURLOPT_PUT, true);
162
+ curl_setopt($ch, CURLOPT_INFILE, $putData);
163
+ curl_setopt($ch, CURLOPT_INFILESIZE, strlen($putString));
164
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
165
+ curl_setopt($ch, CURLOPT_FAILONERROR, true);
166
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: AuthSub token="' . $_POST['token'] . '"', 'X-Google-Key: key=' . $developerKey, 'Content-Type: application/atom+xml'));
167
+
168
+ $result = curl_exec($ch); /* Execute the HTTP request. */
169
+ fclose($putData); /* Close and delete the temp file. */
170
+ curl_close($ch); /* Close the cURL handle. */
171
+
172
+ return $result;
173
+ }
174
+
175
+ /**
176
+ * Deletes a recipe by performing an HTTP DELETE (a custom
177
+ * cURL request) on its feed URI.
178
+ */
179
+ function deleteItem() {
180
+ $ch = curl_init();
181
+ global $developerKey;
182
+
183
+ /* Set cURL options. */
184
+ curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");
185
+ curl_setopt($ch, CURLOPT_URL, $_POST['link']);
186
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
187
+ curl_setopt($ch, CURLOPT_FAILONERROR, true);
188
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: AuthSub token="' . $_POST['token'] . '"', 'X-Google-Key: key=' . $developerKey));
189
+
190
+ $result = curl_exec($ch); /* Execute the HTTP request. */
191
+ curl_close($ch); /* Close the cURL handle. */
192
+
193
+ return $result;
194
+ }
195
+
196
+ /**
197
+ * Deletes all recipes by performing an HTTP POST to the
198
+ * batch URI.
199
+ */
200
+ function batchDelete() {
201
+ $ch = curl_init(); /* Create a CURL handle. */
202
+ global $developerKey, $itemsFeedURL;
203
+
204
+ /* Set cURL options. */
205
+ curl_setopt($ch, CURLOPT_URL, $itemsFeedURL . "/batch");
206
+ curl_setopt($ch, CURLOPT_POST, true);
207
+ curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
208
+ curl_setopt($ch, CURLOPT_FAILONERROR, true);
209
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: AuthSub token="' . $_POST['token'] . '"', 'X-Google-Key: key=' . $developerKey, 'Content-Type: application/atom+xml'));
210
+ curl_setopt($ch, CURLOPT_POSTFIELDS, buildBatchXML());
211
+
212
+ $result = curl_exec($ch); /* Execute the HTTP request. */
213
+ curl_close($ch); /* Close the cURL handle. */
214
+
215
+ return $result;
216
+ }
217
+
218
+ /**
219
+ * Callback function for XML start tags parsed by
220
+ * xml_parse.
221
+ */
222
+ function startElement($parser, $name, $attrs) {
223
+ global $curElement, $foundEntry, $parsedEntries;
224
+
225
+ $curElement = $name;
226
+ if($curElement == "ENTRY") {
227
+ $foundEntry = true;
228
+ $parsedEntries[count($parsedEntries)] = array();
229
+ } else if($foundEntry && $curElement == "LINK") {
230
+ $parsedEntries[count($parsedEntries) - 1][$attrs["REL"]] = $attrs["HREF"];
231
+ }
232
+ }
233
+
234
+ /**
235
+ * Callback function for XML end tags parsed by
236
+ * xml_parse.
237
+ */
238
+ function endElement($parser, $name) {
239
+ global $curElement, $foundEntry, $parsedEntries;
240
+ if($name == "ENTRY") {
241
+ $foundEntry = false;
242
+ }
243
+ }
244
+
245
+ /**
246
+ * Callback function for XML character data parsed by
247
+ * xml_parse.
248
+ */
249
+ function characterData($parser, $data) {
250
+ global $curElement, $foundEntry, $parsedEntries;
251
+
252
+ if($foundEntry) {
253
+ $parsedEntries[count($parsedEntries) - 1][strtolower($curElement)] = $data;
254
+ }
255
+ }
256
+
257
+ /**
258
+ * We arrive here when the user first comes to the form. The first step is
259
+ * to have them get a single-use token.
260
+ */
261
+ function showIntroPage() {
262
+ global $itemsFeedURL;
263
+
264
+ $next_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
265
+ $redirect_url = 'https://www.google.com/accounts/AuthSubRequest?session=1';
266
+ $redirect_url .= '&next=';
267
+ $redirect_url .= urlencode($next_url);
268
+ $redirect_url .= "&scope=";
269
+ $redirect_url .= urlencode($itemsFeedURL);
270
+
271
+ print '<html>' . "\n";
272
+ print '<head><title>PHP 4 Demo: Google Base data API</title>' . "\n";
273
+ print '<link rel="stylesheet" type="text/css" href="http://code.google.com/css/dev_docs.css">' . "\n";
274
+ print '</head>' . "\n";
275
+ print '<body><center>' . "\n";
276
+ print '<table style="width:50%;">' . "\n";
277
+ print '<tr>' . "\n";
278
+ print '<th colspan="2" style="text-align:center;">PHP 4 Demo: Google Base data API</th>' . "\n";
279
+ print '</tr>' . "\n";
280
+ print '<tr><td>Before you get started, please <a href="' . $redirect_url . '">sign in</a> to your personal Google Base account.</td></tr>' . "\n";
281
+ print '</table>' . "\n";
282
+ print '</center></body></html>' . "\n";
283
+ }
284
+
285
+ /**
286
+ * Prints the table of recipes the user has already entered
287
+ * on the left-hand side of the page.
288
+ */
289
+ function showRecipeListPane($token) {
290
+ global $parsedEntries;
291
+
292
+ print '<td style="width:50%; text-align:center; vertical-align:top">' . "\n";
293
+ print '<table>' . "\n";
294
+ print '<tr><th colspan="5" style="text-align:center">Recipes you have added</th></tr>' . "\n";
295
+
296
+ getItems($token);
297
+
298
+ if(count($parsedEntries) == 0) {
299
+ print '<tr><td colspan="5" style="text-align:center"><i>(none)</i></td></tr>' . "\n";
300
+ } else {
301
+ print '<tr>' . "\n";
302
+ print '<td style="text-align:center"><i>Name</i></td>' . "\n";
303
+ print '<td style="text-align:center"><i>Cuisine</i></td>' . "\n";
304
+ print '<td style="text-align:center"><i>Serves</i></td>' . "\n";
305
+ print '<td colspan="2" style="text-align:center"><i>Actions</i></td>' . "\n";
306
+ print '</tr>' . "\n";
307
+ for($i = 0; $i < count($parsedEntries); $i++) {
308
+ print '<tr>' . "\n";
309
+ print '<td align="left" valign="top"><b><a href="' .
310
+ $parsedEntries[$i]['alternate'] . '">' .
311
+ $parsedEntries[$i]['title'] . '</a></b></td>' . "\n";
312
+ print '<td style="text-align:center;vertical-align:top">' .
313
+ $parsedEntries[$i]['g:cuisine'] . '</td>' . "\n";
314
+ print '<td style="text-align:center;vertical-align:top">' .
315
+ $parsedEntries[$i]['g:serving_count'] . '</td>' . "\n";
316
+
317
+ /* Create an Edit button for each existing recipe. */
318
+ print '<td style="text-align:center;vertical-align:top">' . "\n";
319
+ print '<form method="post" action="' . $_SERVER['PHP_SELF'] .
320
+ '" style="margin-top:0;margin-bottom:0;">' . "\n";
321
+ print '<input type="hidden" name="action" value="edit">' . "\n";
322
+ print '<input type="hidden" name="token" value="' . $token . '">' . "\n";
323
+ foreach ($parsedEntries[$i] as $key => $value) {
324
+ print '<input type="hidden" name="' . $key . '" value="' .
325
+ $value . '">' . "\n";
326
+ }
327
+ print '<input type="submit" value="Edit">' . "\n";
328
+ print '</form>' . "\n";
329
+ print '</td>' . "\n";
330
+
331
+ /* Create a Delete button for each existing recipe. */
332
+ print '<td style="text-align:center; vertical-align:top">' . "\n";
333
+ print '<form method="post" action="' . $_SERVER['PHP_SELF'] .
334
+ '" style="margin-top:0;margin-bottom:0;">' . "\n";
335
+ print '<input type="hidden" name="action" value="delete">' . "\n";
336
+ print '<input type="hidden" name="token" value="' . $token . '">' . "\n";
337
+ print '<input type="hidden" name="link" value="' .
338
+ $parsedEntries[$i]['id'] . '">' . "\n";
339
+ print '<input type="submit" value="Delete">' . "\n";
340
+ print '</form>' . "\n";
341
+ print '</td>' . "\n";
342
+ print '</tr>' . "\n";
343
+ }
344
+ }
345
+
346
+ /* Create a "Delete all" button" to demonstrate batch requests. */
347
+ print '<tr><td colspan="5" style="text-align:center">' . "\n";
348
+ print '<form method="post" action="' . $_SERVER['PHP_SELF'] .
349
+ '" style="margin-top:0;margin-bottom:0">' . "\n";
350
+ print '<input type="hidden" name="action" value="delete_all">' . "\n";
351
+ print '<input type="hidden" name="token" value="' . $token . '">' . "\n";
352
+ for($i = 0; $i < count($parsedEntries); $i++) {
353
+ print '<input type="hidden" name="link_' . $i . '" value="' .
354
+ $parsedEntries[$i]['id'] . '">' . "\n";
355
+ }
356
+ print '<input type="submit" value="Delete All"';
357
+ if(count($parsedEntries) == 0) {
358
+ print ' disabled="true"';
359
+ }
360
+ print '></form></td></tr>' . "\n";
361
+ print '</table>' . "\n";
362
+ print '</td>' . "\n";
363
+ }
364
+
365
+ /**
366
+ * Prints a small form allowing the user to insert a new
367
+ * recipe.
368
+ */
369
+ function showRecipeInsertPane($token) {
370
+ global $cuisines;
371
+
372
+ print '<td valign="top" width="50%">' . "\n";
373
+ print '<table width="100%">' . "\n";
374
+ print '<tr><th colspan="2" style="text-align:center">Insert a new recipe</th></tr>' . "\n";
375
+ print '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">' . "\n";
376
+ print '<input type="hidden" name="action" value="insert">' . "\n";
377
+ print '<input type="hidden" name="token" value="' . $token . '">' . "\n";
378
+ print '<tr><td align="right">Title:</td>' . "\n";
379
+ print '<td><input type="text" name="recipe_title" class="half">' .
380
+ '</td></tr>' . "\n";
381
+ print '<tr><td align="right">Main ingredient:</td>' . "\n";
382
+ print '<td><input type="text" name="main_ingredient" class="half">' .
383
+ '</td></tr>' . "\n";
384
+ print '<tr><td align="right">Cuisine:</td>' . "\n";
385
+ print '<td><select name="cuisine" class="half">' . "\n";
386
+
387
+ foreach ($cuisines as $curCuisine) {
388
+ print '<option value=' . $curCuisine . '>' . $curCuisine .
389
+ '</option>' . "\n";
390
+ }
391
+
392
+ print '</select></td></tr>' . "\n";
393
+ print '<tr><td align="right">Cooking Time:</td>' .
394
+ '<td><input type="text" name="time_val" size=2 maxlength=2>&nbsp;' .
395
+ '<select name="time_units"><option value="minutes">minutes</option>' .
396
+ '<option value="hours">hours</option></select></td></tr>' . "\n";
397
+ print '<tr><td align="right">Serves:</td>' . "\n";
398
+ print '<td><input type="text" name="serves" size=2 maxlength=3></td></tr>' .
399
+ "\n";
400
+ print '<tr><td align="right">Recipe:</td>' . "\n";
401
+ print '<td><textarea class="full" name="recipe_text"></textarea></td></tr>' .
402
+ "\n";
403
+ print '<td>&nbsp;</td><td><input type="submit" value="Submit"></td>' . "\n";
404
+ print '</form></tr></table>' . "\n";
405
+ print '</td>' . "\n";
406
+ }
407
+
408
+ /**
409
+ * Shows a menu allowing the user to update an existing
410
+ * recipe with the Base API update feature.
411
+ */
412
+ function showEditMenu() {
413
+ global $cuisines;
414
+ $splitCookingTime = split(" ", $_POST['g:cooking_time']);
415
+
416
+ print '<html>' . "\n";
417
+ print '<head><title>PHP 4 Demo: Google Base data API</title>' . "\n";
418
+ print '<link rel="stylesheet" type="text/css" href="http://code.google.com/css/dev_docs.css">' . "\n";
419
+ print '</head>' . "\n";
420
+ print '<body><center>' . "\n";
421
+ print '<table style="width:50%">' . "\n";
422
+ print '<tr><th colspan="2" style="text-align:center">Edit recipe:</th></tr>' . "\n";
423
+
424
+ print '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">' . "\n";
425
+ print '<input type="hidden" name="action" value="update">' . "\n";
426
+ print '<input type="hidden" name="link" value="' .
427
+ $_POST['edit'] . '">' . "\n";
428
+ print '<input type="hidden" name="token" value="' .
429
+ $_POST['token'] . '">' . "\n";
430
+
431
+ print '<tr><td align="right">Title:</td>' . "\n";
432
+ print '<td><input type="text" name="recipe_title" class="half" value="'
433
+ . $_POST['title'] . '"></td></tr>' . "\n";
434
+
435
+ print '<tr><td align="right">Main ingredient:</td>' . "\n";
436
+ print '<td><input type="text" name="main_ingredient" value="'
437
+ . $_POST['g:main_ingredient'] . '" class="half"></td></tr>' . "\n";
438
+
439
+ print '<tr><td align="right">Cuisine:</td>' . "\n";
440
+ print '<td><select name="cuisine" class="half">' . "\n";
441
+
442
+ foreach ($cuisines as $curCuisine) {
443
+ print '<option value="' . $curCuisine . '"';
444
+ if($curCuisine == $_POST['g:cuisine']) {
445
+ print ' selected="selected"';
446
+ }
447
+ print '>' . $curCuisine . "</option>\n";
448
+ }
449
+
450
+ print '</select></td></tr>' . "\n";
451
+ print '<tr><td align="right">Cooking Time:</td>' .
452
+ '<td><input type="text" name="time_val" size=2 maxlength=2 value="' .
453
+ $splitCookingTime[0] . '">&nbsp;' . "\n";
454
+ print '<select name="time_units">' . "\n";
455
+ if($splitCookingTime[1] == "minutes") {
456
+ print '<option value="minutes" selected="selected">minutes</option>' .
457
+ "\n";
458
+ print '<option value="hours">hours</option>' . "\n";
459
+ } else {
460
+ print '<option value="minutes">minutes</option>' . "\n";
461
+ print '<option value="hours" selected="selected">hours</option>' .
462
+ "\n";
463
+ }
464
+
465
+ print '</select></td></tr>' . "\n";
466
+ print '<tr><td align="right">Serves:</td>' . "\n";
467
+ print '<td><input type="text" name="serves" value="' .
468
+ $_POST['g:serving_count'] . '" size=2 maxlength=3></td></tr>' . "\n";
469
+
470
+ print '<tr><td align="right">Recipe:</td>' . "\n";
471
+ print '<td><textarea class="full" name="recipe_text">' .
472
+ $_POST['content'] . '</textarea></td></tr>' . "\n";
473
+ print '<td>&nbsp;</td><td><input type="submit" value="Update"></td>' . "\n";
474
+ print '</form></tr></table>' . "\n";
475
+ print '</body></html>' . "\n";
476
+ }
477
+
478
+ /**
479
+ * Displays both the "List of current recipes" and
480
+ * "Insert a new recipe" panels in a single table.
481
+ */
482
+ function showMainMenu($tableTitle, $sessionToken) {
483
+ print '<html>' . "\n";
484
+ print '<head><title>PHP 4 Demo: Google Base data API</title>' . "\n";
485
+ print '<link rel="stylesheet" type="text/css" href="http://code.google.com/css/dev_docs.css">' . "\n";
486
+ print '</head>' . "\n";
487
+ print '<body><center>' . "\n";
488
+ print '<table style="width: 75%;text-align:center">' . "\n";
489
+ print '<tr>' . "\n";
490
+ print '<th colspan="2" style="text-align:center">PHP 4 Demo: Google Base data API' . "\n";
491
+ print '</tr>' . "\n";
492
+ print '<tr><td colspan="2" align="center">' . $tableTitle . '</td></tr>' . "\n";
493
+ print '<tr>' . "\n";
494
+
495
+ // Create the two sub-tables.
496
+ showRecipeListPane($sessionToken);
497
+ showRecipeInsertPane($sessionToken);
498
+
499
+ // Add a "Sign out" link.
500
+ print '<tr><th colspan="2" style="text-align: center">Or click here to' . ' <a href="http://www.google.com/accounts/Logout">sign out</a>' . ' of your Google account.</th></tr>' . "\n";
501
+
502
+ // Close the master table.
503
+ print '</table>' . "\n";
504
+ print '</center></body></html>' . "\n";
505
+ }
506
+
507
+ /**
508
+ * We arrive here after the user first authenticates and we get back
509
+ * a single-use token.
510
+ */
511
+ function showFirstAuthScreen() {
512
+ $singleUseToken = $_GET['token'];
513
+ $sessionToken = exchangeToken($singleUseToken);
514
+
515
+ if(!$sessionToken) {
516
+ showIntroPage();
517
+ } else {
518
+ $tableTitle = 'Here\'s your <b>single use token:</b> <code>' . $singleUseToken . '</code>' . "\n" . '<br>And here\'s the <b>session token:</b> <code>' . $sessionToken . '</code>';
519
+ showMainMenu($tableTitle, $sessionToken);
520
+ }
521
+ }
522
+
523
+ /**
524
+ * Main logic. Take action based on the GET and POST
525
+ * parameters, which reflect whether the user has
526
+ * authenticated and which action they want to perform.
527
+ */
528
+ // if(count($_GET) == 1 && array_key_exists('token', $_GET)) {
529
+ // showFirstAuthScreen();
530
+ // } else {
531
+ // if(count($_POST) == 0) {
532
+ // showIntroPage();
533
+ // } else {
534
+ // if($_POST['action'] == 'insert') {
535
+ // if(postItem()) {
536
+ // showMainMenu('Recipe inserted!', $_POST['token']);
537
+ // } else {
538
+ // showMainMenu('Recipe insertion failed.', $_POST['token']);
539
+ // }
540
+ // } else if($_POST['action'] == 'delete') {
541
+ // if(deleteItem()) {
542
+ // showMainMenu('Recipe deleted.', $_POST['token']);
543
+ // } else {
544
+ // showMainMenu('Recipe deletion failed.', $_POST['token']);
545
+ // }
546
+ // } else if($_POST['action'] == 'delete_all') {
547
+ // if(batchDelete()) {
548
+ // showMainMenu('All recipes deleted.', $_POST['token']);
549
+ // } else {
550
+ // showMainMenu('Batch deletion failed.', $_POST['token']);
551
+ // }
552
+ // } else if($_POST['action'] == 'edit') {
553
+ // showEditMenu();
554
+ // } else if($_POST['action'] == 'update') {
555
+ // if(updateItem()) {
556
+ // showMainMenu('Recipe successfully updated.', $_POST['token']);
557
+ // } else {
558
+ // showMainMenu('Recipe update failed.', $_POST['token']);
559
+ // }
560
+ // } else {
561
+ // showIntroPage();
562
+ // }
563
+ // }
564
+ // }
565
+
566
+ ?>
wp-shopping-cart/google_shipping_country.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if (isset($_POST['submit'])) {
3
+ foreach($_POST['google_shipping'] as $key=>$country) {
4
+ if ($country=='on') {
5
+ $google_shipping_country[]=$key;
6
+ }
7
+ }
8
+ update_option('google_shipping_country',$google_shipping_country);
9
+ //header("Location: ?page=".$_GET['page']);
10
+ }
11
+ ?>
12
+
13
+ <div class="wrap">
14
+ <h2><?php echo TXT_WPSC_GOOGLESHIPPING;?></h2>
15
+ <form action='?page=<?php echo $_GET['page']; ?>&amp;googlecheckoutshipping=1' method='POST'>
16
+ <?php
17
+ $google_shipping_country = get_option("google_shipping_country");
18
+ $country_data = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."currency_list` ORDER BY `country` ASC",ARRAY_A);
19
+ $country_data = array_chunk($country_data, 50);
20
+ echo "<table>\n\r";
21
+ echo "<tr>\n\r";
22
+ foreach($country_data as $country_col)
23
+ {
24
+ echo "<td style='vertical-align: top; padding-right: 3em;'>\n\r";
25
+ echo "<table>\n\r";
26
+ foreach($country_col as $country) {
27
+ if (in_array($country['id'], (array)$google_shipping_country)) {
28
+ $checked="checked='true'";
29
+ } else {
30
+ $checked="";
31
+ }
32
+ echo " <tr>\n\r";
33
+ echo " <td><input $checked type='checkbox' id='google_shipping_".$country['id']."' name='google_shipping[".$country['id']."]'/></td>\n\r";
34
+ if($country['id'] == $base_country){
35
+ echo " <td><label for='google_shipping_".$country['id']."' style='text-decoration: underline;'>".$country['country'].":</label></td>\n\r";
36
+ } else {
37
+ echo " <td><label for='google_shipping_".$country['id']."'>".$country['country']."</label></td>\n\r";
38
+ }
39
+
40
+ echo " </tr>\n\r";
41
+ }
42
+ echo "</table>\n\r";
43
+ echo " </td>\n\r";
44
+ }
45
+ echo " </tr>\n\r";
46
+ echo "</table>\n\r";
47
+ ?>
48
+ <a style="cursor:pointer;" onclick="jQuery('input[@type=\'checkbox\']').each(function() {this.checked = true; });">Select All</a>&emsp; <a style="cursor:pointer;" onclick="jQuery('input[@type=\'checkbox\']').each(function() {this.checked = false; });">Unselect All</a><br><br>
49
+ <input type='submit' name='submit' value='<?php echo TXT_WPSC_SAVE_CHANGES;?>' /> <a href='?page=<?=$_GET['page']?>'>Go Back</a>
50
+ </form>
51
+ </div>
wp-shopping-cart/homepage_products_functions.php ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function nszhpcrt_homepage_products($content = '') {
3
+ global $wpdb;
4
+ $siteurl = get_option('siteurl');
5
+ if(get_option('permalink_structure') != '') {
6
+ $seperator ="?";
7
+ } else {
8
+ $seperator ="&amp;";
9
+ }
10
+ $sql = "SELECT * FROM `".$wpdb->prefix."product_list` WHERE `display_frontpage` IN('1') AND `active` IN('1')";
11
+ $product_list = $wpdb->get_results($sql,ARRAY_A);
12
+
13
+ $output = "<div id='homepage_products'>\n\r";
14
+ foreach((array)$product_list as $product) {
15
+ $output .= "<div class='frontpage_product'>\n\r";
16
+ $output .= "<a href='".wpsc_product_url($product['id'])."'>";
17
+ if($product['image'] != '') {
18
+ $output .= "<img src='".WPSC_THUMBNAIL_URL.$product['image']."' title='".$product['name']."' alt='".$product['name']."' />\n\r";
19
+ $output .= "<p>\n\r";
20
+ $output .= stripslashes($product['name']);
21
+ $output .= "<span class='front_page_price'>\n\r";
22
+ if($product['special']==1) {
23
+ $output .= "<span class='oldprice'>".nzshpcrt_currency_display($product['price'], $product['notax'])."</span><br />\n\r";
24
+ $output .= nzshpcrt_currency_display(($product['price'] - $product['special_price']), $product['notax'],false,$product['id']);
25
+ } else {
26
+ $output .= "".nzshpcrt_currency_display($product['price'], $product['notax']);
27
+ }
28
+ $output .= "</span>\n\r";
29
+ $output .= "</p>\n\r";
30
+ }
31
+ $output .= "</a>";
32
+ $output .= "</div>\n\r";
33
+ }
34
+ $output .= "</div>\n\r";
35
+ $output .= "<br style='clear: left;'>\n\r";
36
+ return preg_replace("/\[homepage_products\]/", $output, $content);
37
+ }
38
+
39
+
40
+
41
+ function nszhpcrt_category_tag($content = '') {
42
+ require_once('themes/iShop/iShop.php');
43
+ global $wpdb;
44
+ if(preg_match_all("/\[wpsc_category=([\d]+),*(full)?\]/", $content, $matches)) {
45
+ foreach($matches[1] as $key => $category_id) {
46
+ $categories[$key]['id'] = $category_id;
47
+ $categories[$key]['display'] = $matches[2][$key];
48
+ $categories[$key]['original_string'] = $matches[0][$key];
49
+ }
50
+
51
+ //echo("<pre>".print_r($categories,true)."</pre>");
52
+ $siteurl = get_option('siteurl');
53
+ if(get_option('permalink_structure') != '') {
54
+ $seperator ="?";
55
+ } else {
56
+ $seperator ="&amp;";
57
+ }
58
+
59
+ foreach((array)$activated_widgets as $widget_container) {
60
+ if(is_array($widget_container) && array_search(TXT_WPSC_DONATIONS, $widget_container)) {
61
+ $no_donations_sql = "AND `".$wpdb->prefix."product_list`.`donation` != '1'";
62
+ break;
63
+ }
64
+ }
65
+ foreach((array)$categories as $category) {
66
+ $full_view = null;
67
+ if($category['display'] == 'full') {
68
+ $full_view = $category['display'];
69
+ }
70
+
71
+ $sql = "SELECT DISTINCT `".$wpdb->prefix."product_list`.*, `".$wpdb->prefix."item_category_associations`.`category_id`,`".$wpdb->prefix."product_order`.`order`, IF(ISNULL(`".$wpdb->prefix."product_order`.`order`), 0, 1) AS `order_state` FROM `".$wpdb->prefix."product_list` LEFT JOIN `".$wpdb->prefix."item_category_associations` ON `".$wpdb->prefix."product_list`.`id` = `".$wpdb->prefix."item_category_associations`.`product_id` LEFT JOIN `".$wpdb->prefix."product_order` ON ( ( `".$wpdb->prefix."product_list`.`id` = `".$wpdb->prefix."product_order`.`product_id` ) AND ( `".$wpdb->prefix."item_category_associations`.`category_id` = `".$wpdb->prefix."product_order`.`category_id` ) ) WHERE `".$wpdb->prefix."product_list`.`active` = '1' AND `".$wpdb->prefix."item_category_associations`.`category_id` IN ('".$category['id']."') $no_donations_sql ORDER BY `order_state` DESC,`".$wpdb->prefix."product_order`.`order` ASC";
72
+
73
+ $product_list = $wpdb->get_results($sql,ARRAY_A);
74
+
75
+ $output = "<div id='homepage_products'>\n\r";
76
+ if ($full_view != null){
77
+ $output .= "<table class='productdisplay'>";
78
+ }
79
+ foreach((array)$product_list as $product) {
80
+ $wpsc_theme = wpsc_theme_html($product);
81
+ if ($full_view == null) {
82
+ $output .= "<div class='category_view_product'>\n\r";
83
+ } else {
84
+ /* product image is here */
85
+ $output .= "<tr>";
86
+ $output .= "<td class='imagecol'>";
87
+ }
88
+ $output .="<a href='".WPSC_THUMBNAIL_URL.$product['image']."' class='thickbox preview_link' rel='".str_replace(" ", "_",$product['name'])."'>";
89
+ if($product['image'] != '') {
90
+ $output .= "<img class='product_image' src='".WPSC_THUMBNAIL_URL.$product['image']."' title='".$product['name']."' alt='".$product['name']."' />\n\r";
91
+ }
92
+ $output .= "</a>";
93
+ if ($full_view != null) {
94
+ $output .= "</td><td class='textcol'>";
95
+ } else {
96
+ $output .= "<div class='product_details'>";
97
+ }
98
+ if (get_option('hide_name_link')!=1) {
99
+ if(($product['special']==1) && ($variations_output[1] === null)) {
100
+ $output .= "<a href='".wpsc_product_url($product['id'])."' class='wpsc_product_title' >$special<strong class='special'>Special / Sale Price - </strong><strong>" . stripslashes($product['name']) . "</strong></a>";
101
+ } else {
102
+ $output .= "<a href='".wpsc_product_url($product['id'])."' class='wpsc_product_title' >$special<strong>" . stripslashes($product['name']) . "</strong></a>";
103
+ }
104
+ } else {
105
+ if(($product['special']==1) && ($variations_output[1] === null)) {
106
+ $output .= "<a class='wpsc_product_title' >$special<strong class='special'>Special / Sale Price - </strong><strong>" . stripslashes($product['name']) . "</strong></a>";
107
+ } else {
108
+ $output .= "<a class='wpsc_product_title' >$special<strong>" . stripslashes($product['name']) . "</strong></a>";
109
+ }
110
+ }
111
+ if ($full_view !=null) {
112
+ if($product['description'] != '') {
113
+ $output .= "<p class='wpsc_description'>".nl2br(stripslashes($product['description'])) . "</p>";
114
+ }
115
+
116
+ if($product['additional_description'] != '') {
117
+ $output .= "<a href='#' class='additional_description_link' onclick='return show_additional_description(\"additionaldescription".$product['id']."\",\"link_icon".$product['id']."\");'>";
118
+ $output .= "<img id='link_icon".$product['id']."' class='additional_description_button' src='".WPSC_URL."/images/icon_window_expand.gif' title='".$product['name']."' alt='".$product['name']."' />";
119
+ $output .= TXT_WPSC_MOREDETAILS."</a>";
120
+
121
+ $output .= "<span class='additional_description' id='additionaldescription".$product['id']."'><br />";
122
+ $output .= nl2br(stripslashes($product['additional_description'])) . "";
123
+ $output .= "</span><br />";
124
+ }
125
+ }
126
+ /*
127
+ adding to cart stuff
128
+ */
129
+ $output .= "<form id='product_".$product['id']."' name='product_".$product['id']."' method='post' action='".get_option('product_list_url').$seperator."category=".$_GET['category']."' onsubmit='submitform(this);return false;' >";
130
+ $output .= "<input type='hidden' name='prodid' value='".$product['id']."' />";
131
+ $output .= "<input type='hidden' name='item' value='".$product['id']."' />";
132
+
133
+ $variations_procesor = new nzshpcrt_variations;
134
+
135
+ $variations_output = $variations_procesor->display_product_variations($product['id'],false, false, true);
136
+ $output .= $variations_output[0];
137
+ if($variations_output[1] !== null) {
138
+ $product['price'] = $variations_output[1];
139
+ }
140
+
141
+ if(($product['special']==1) && ($variations_output[1] === null)) {
142
+ $output .= "<span class='oldprice'>".nzshpcrt_currency_display($product['price'], $product['notax']) . "</span><br />";
143
+ $output .= nzshpcrt_currency_display(($product['price'] - $product['special_price']), $product['notax'],false,$product['id']) . "<br />";
144
+ } else {
145
+ $output .= "<span id='product_price_".$product['id']."'>" . nzshpcrt_currency_display($product['price'], $product['notax']) . "</span><br />";
146
+ }
147
+ if(((get_option('hide_addtocart_button') !='1') || (get_option('payment_gateway') !='google'))) {
148
+ if(isset($wpsc_theme) && is_array($wpsc_theme) && ($wpsc_theme['html'] !='')) {
149
+ $output .= $wpsc_theme['html'];
150
+ } else {
151
+ $output .= "<input type='submit' id='product_".$product['id']."_submit_button' class='wpsc_buy_button' name='Buy' value='".TXT_WPSC_ADDTOCART."' />";
152
+ }
153
+ }
154
+ $output .= "</form>";
155
+ if (get_option('addtocart_or_buynow')=='1') {
156
+ if (get_option('payment_gateway')=='google') {
157
+ $output .= google_buynow($product['id']);
158
+ }
159
+ }
160
+
161
+
162
+ if ($full_view != null) {
163
+ if(get_option('product_ratings') == 1) {
164
+ $output .= "<div class='product_footer'>";
165
+
166
+ $output .= "<div class='product_average_vote'>";
167
+ $output .= "<strong>".TXT_WPSC_AVGCUSTREVIEW.":</strong>";
168
+ $output .= nzshpcrt_product_rating($product['id']);
169
+ $output .= "</div>";
170
+
171
+ $output .= "<div class='product_user_vote'>";
172
+ $vote_output = nzshpcrt_product_vote($product['id'],"onmouseover='hide_save_indicator(\"saved_".$product['id']."_text\");'");
173
+ if($vote_output[1] == 'voted') {
174
+ $output .= "<strong><span id='rating_".$product['id']."_text'>".TXT_WPSC_YOURRATING.":</span>";
175
+ $output .= "<span class='rating_saved' id='saved_".$product['id']."_text'> ".TXT_WPSC_RATING_SAVED."</span>";
176
+ $output .= "</strong>";
177
+ } else if($vote_output[1] == 'voting') {
178
+ $output .= "<strong><span id='rating_".$product['id']."_text'>".TXT_WPSC_RATETHISITEM.":</span>";
179
+ $output .= "<span class='rating_saved' id='saved_".$product['id']."_text'> ".TXT_WPSC_RATING_SAVED."</span>";
180
+ $output .= "</strong>";
181
+ }
182
+ $output .= $vote_output[0];
183
+ $output .= "</div>";
184
+ $output .= "</div>";
185
+ }
186
+
187
+ $output .="</td>";
188
+ $output .="</tr>";
189
+ } else {
190
+ $output .= "</div>\n\r";
191
+ $output .= "</div>";
192
+ }
193
+ }
194
+ if ($full_view != null) {
195
+ $output .= "</table>";
196
+ }
197
+ $output .= "</div>\n\r";
198
+ $output .= "<br style='clear: left;'>\n\r";
199
+ $content = str_replace($category['original_string'], $output, $content);
200
+ }
201
+ }
202
+ return $content;
203
+ }
204
+ ?>
wp-shopping-cart/image_preview.php ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $imagetype = @getimagesize($imagepath);
3
+ switch($imagetype[2])
4
+ {
5
+ case IMAGETYPE_JPEG:
6
+ //$extension = ".jpg";
7
+ $src_img = imagecreatefromjpeg($imagepath);
8
+ $pass_imgtype = true;
9
+ break;
10
+
11
+ case IMAGETYPE_GIF:
12
+ //$extension = ".gif";
13
+ $src_img = imagecreatefromgif($imagepath);
14
+ $pass_imgtype = true;
15
+ break;
16
+
17
+ case IMAGETYPE_PNG:
18
+ //$extension = ".png";
19
+ $src_img = imagecreatefrompng($imagepath);/*
20
+ ImageAlphaBlending($src_img, false);
21
+ imagesavealpha($src_img,true);*/
22
+ $pass_imgtype = true;
23
+ break;
24
+
25
+ default:
26
+ $pass_imgtype = false;
27
+ break;
28
+ }
29
+
30
+ if($pass_imgtype === true)
31
+ {
32
+ $source_w = imagesx($src_img);
33
+ $source_h = imagesy($src_img);
34
+
35
+ //Temp dimensions to crop image properly
36
+ $temp_w = $width;
37
+ $temp_h = $height;
38
+
39
+ // select our scaling method
40
+ $scaling_method = 'cropping';
41
+
42
+ //list($source_h, $source_w) = array($source_w, $source_h);
43
+
44
+ // set both offsets to zero
45
+ $offset_x = $offset_y = 0;
46
+
47
+ // Here are the scaling methods, non-cropping causes black lines in tall images, but doesnt crop images.
48
+ switch($scaling_method) {
49
+ case 'cropping':
50
+ // if the image is wider than it is high and at least as wide as the target width.
51
+ if (($source_h <= $source_w)) {
52
+ if ($height < $width ) {
53
+ $temp_h = ($width / $source_w) * $source_h;
54
+ } else {
55
+ $temp_w = ($height / $source_h) * $source_w;
56
+ }
57
+
58
+ //$temp_w = ($height / $source_h) * $source_w;
59
+ } else {
60
+ $temp_h = ($width / $source_w) * $source_h;
61
+ }
62
+ break;
63
+
64
+ case 'non-cropping':
65
+ default:
66
+ if ($height < $width ) {
67
+ $temp_h = ($width / $source_w) * $source_h;
68
+ } else {
69
+ $temp_w = ($height / $source_h) * $source_w;
70
+ }
71
+ break;
72
+ }
73
+
74
+
75
+ // echo "Source Height: $source_h <br />";
76
+ // echo "Source Width: $source_w <br />";
77
+ // echo "<br />";
78
+ // echo "Temp Height: $temp_h <br />";
79
+ // echo "Temp Width: $temp_w <br />";
80
+ // exit();
81
+
82
+
83
+ // Create temp resized image
84
+ $temp_img = ImageCreateTrueColor( $temp_w, $temp_h );
85
+ $bgcolor = ImageColorAllocate( $temp_img, 255, 255, 255 );
86
+ ImageFilledRectangle( $temp_img, 0, 0, $temp_w, $temp_h, $bgcolor );
87
+ ImageAlphaBlending( $temp_img, TRUE );
88
+
89
+ ImageCopyResampled( $temp_img, $src_img, 0, 0, 0, 0, $temp_w, $temp_h, $source_w, $source_h );
90
+
91
+
92
+
93
+ $dst_img = ImageCreateTrueColor($width,$height);
94
+ $bgcolor = ImageColorAllocate( $dst_img, 255, 255, 255 );
95
+ ImageFilledRectangle( $dst_img, 0, 0, $width, $height, $bgcolor );
96
+ ImageAlphaBlending($dst_img, TRUE );
97
+
98
+ // X & Y Offset to crop image properly
99
+ if($temp_w < $width) {
100
+ $w1 = ($width/2) - ($temp_w/2);
101
+ } else if($temp_w == $width) {
102
+ $w1 = 0;
103
+ } else {
104
+ $w1 = ($width/2) - ($temp_w/2);
105
+ }
106
+
107
+ if($temp_h < $height) {
108
+ $h1 = ($height/2) - ($temp_h/2);
109
+ } else if($temp_h == $height) {
110
+ $h1 = 0;
111
+ } else {
112
+ $h1 = ($height/2) - ($temp_h/2);
113
+ }
114
+
115
+ // echo "Width: $width <br />";
116
+ // echo "Height: $height <br />";
117
+ // echo "<br />";
118
+ // echo "Temp Width: $temp_w <br />";
119
+ // echo "Temp Height: $temp_h <br />";
120
+ // echo "<br />";
121
+ // echo "Offset X: $w1 <br />";
122
+ // echo "Offset Y: $h1 <br />";
123
+ // echo "<br />";
124
+ //
125
+ // exit();
126
+
127
+ switch($scaling_method) {
128
+ case 'cropping':
129
+ //ImageCopyResampled( $dst_img, $temp_img, 0, 0, $w1, $h1, $width, $height, $width, $height );
130
+ ImageCopy( $dst_img, $temp_img, $w1, $h1, 0, 0, $temp_w, $temp_h );// echo "Width: $width <br />";
131
+ /*
132
+ echo "Width: $width <br />";
133
+ echo "Height: $height <br />";
134
+ echo "<br />";
135
+ echo "Temp Width: $temp_w <br />";
136
+ echo "Temp Height: $temp_h <br />";
137
+ echo "<br />";
138
+ echo "Offset X: $w1 <br />";
139
+ echo "Offset Y: $h1 <br />";
140
+ echo "<br />";
141
+ exit();
142
+ // */
143
+
144
+ break;
145
+
146
+ case 'non-cropping':
147
+ default:
148
+ ImageCopy( $dst_img, $temp_img, 0, 0, 0, 0, $temp_w, $temp_h );
149
+ break;
150
+ }
151
+
152
+ if($imagetype[2] == IMAGETYPE_PNG) {
153
+ imagesavealpha($dst_img,true);
154
+ ImageAlphaBlending($dst_img, false);
155
+ }
156
+
157
+ header("Content-type: image/png");
158
+ ImagePNG($dst_img);
159
+ // ImagePNG($temp_img);
160
+ exit();
161
+ }
162
+ ?>
wp-shopping-cart/image_processing.php ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function image_processing($image_input, $image_output, $width = null, $height = null,$imagefield='') {
3
+ global $wpdb;
4
+ /*
5
+ * this handles all resizing of images that results in a file being saved, if no width and height is supplied, then it just copies the image
6
+ */
7
+ $imagetype = getimagesize($image_input);
8
+ if(file_exists($image_input) && is_numeric($height) && is_numeric($width) && function_exists('imagecreatefrompng')) {
9
+ switch($imagetype[2]) {
10
+ case IMAGETYPE_JPEG:
11
+ //$extension = ".jpg";
12
+ $src_img = imagecreatefromjpeg($image_input);
13
+ $pass_imgtype = true;
14
+ break;
15
+
16
+ case IMAGETYPE_GIF:
17
+ //$extension = ".gif";
18
+ $src_img = imagecreatefromgif($image_input);
19
+ $pass_imgtype = true;
20
+ break;
21
+
22
+ case IMAGETYPE_PNG:
23
+ //$extension = ".png";
24
+ $src_img = imagecreatefrompng($image_input);
25
+ imagesavealpha($src_img,true);
26
+ ImageAlphaBlending($src_img, false);
27
+ $pass_imgtype = true;
28
+ break;
29
+
30
+ default:
31
+ move_uploaded_file($image_input, ($imagedir.basename($_FILES[$imagefield]['name'])));
32
+ $image = $wpdb->escape(basename($_FILES[$imagefield]['name']));
33
+ return true;
34
+ exit();
35
+ break;
36
+ }
37
+
38
+ if($pass_imgtype === true) {
39
+ $source_w = imagesx($src_img);
40
+ $source_h = imagesy($src_img);
41
+
42
+ //Temp dimensions to crop image properly
43
+ $temp_w = $width;
44
+ $temp_h = $height;
45
+ if ( $source_w < $source_h ) {
46
+ $temp_h = ($width / $source_w) * $source_h;
47
+ } else {
48
+ $temp_w = ($height / $source_h) * $source_w;
49
+ }
50
+
51
+ // Create temp resized image
52
+ $temp_img = ImageCreateTrueColor( $temp_w, $temp_h );
53
+ $bgcolor = ImageColorAllocate( $temp_img, 255, 255, 255 );
54
+ ImageFilledRectangle( $temp_img, 0, 0, $width, $height, $white );
55
+ ImageAlphaBlending( $temp_img, TRUE );
56
+
57
+ // resize keeping the perspective
58
+ ImageCopyResampled( $temp_img, $src_img, 0, 0, 0, 0, $temp_w, $temp_h, $source_w, $source_h );
59
+
60
+ $dst_img = ImageCreateTrueColor($width,$height);
61
+ $white = ImageColorAllocate( $dst_img, 255, 255, 255 );
62
+ ImageFilledRectangle( $dst_img, 0, 0, $width, $height, $white );
63
+ ImageAlphaBlending($dst_img, TRUE );
64
+
65
+ // X & Y Offset to crop image properly
66
+ $w1 = ($temp_w/2) - ($width/2);
67
+ $h1 = ($temp_h/2) - ($height/2);
68
+
69
+ if($imagetype[2] == IMAGETYPE_PNG) {
70
+ imagesavealpha($dst_img,true);
71
+ ImageAlphaBlending($dst_img, false);
72
+ }
73
+
74
+
75
+ // Final thumbnail cropped from the center out.
76
+ ImageCopyResampled( $dst_img, $temp_img, 0, 0, $w1, $h1, $width, $height, $width, $height );
77
+
78
+ switch($imagetype[2]) {
79
+ case IMAGETYPE_JPEG:
80
+ if(@ ImageJPEG($dst_img, $image_output, 75) == false) { return false; }
81
+ break;
82
+
83
+ case IMAGETYPE_GIF:
84
+ if(function_exists("ImageGIF")) {
85
+ if(@ ImageGIF($dst_img, $image_output) == false) { return false; }
86
+ } else {
87
+ ImageAlphaBlending($dst_img, false);
88
+ if(@ ImagePNG($dst_img, $image_output) == false) { return false; }
89
+ }
90
+ break;
91
+
92
+ case IMAGETYPE_PNG:
93
+ if(@ ImagePNG($dst_img, $image_output) == false) { return false; }
94
+ break;
95
+ }
96
+ usleep(50000); //wait 0.05 of of a second to process and save the new image
97
+ imagedestroy($dst_img);
98
+ //$image_output
99
+
100
+ $stat = stat( dirname( $image_output ));
101
+ $perms = $stat['mode'] & 0000666;
102
+ @ chmod( $image_output, $perms );
103
+ return true;
104
+ }
105
+ } else {
106
+ move_uploaded_file($_FILES[$imagefield]['tmp_name'], $image_output);
107
+ $image = $wpdb->escape(basename($_FILES[$imagefield]['name']));
108
+ return $image;
109
+ }
110
+ return false;
111
+ }
112
+ ?>
wp-shopping-cart/image_resize.php ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $imagetype = @getimagesize($imagepath); //previously exif_imagetype()
3
+
4
+ if(file_exists($imagepath) && is_numeric($height) && is_numeric($width))
5
+ {
6
+ switch($imagetype[2])
7
+ {
8
+ case IMAGETYPE_JPEG:
9
+ //$extension = ".jpg";
10
+ $src_img = imagecreatefromjpeg($imagepath);
11
+ $pass_imgtype = true;
12
+ break;
13
+
14
+ case IMAGETYPE_GIF:
15
+ //$extension = ".gif";
16
+ $src_img = imagecreatefromgif($imagepath);
17
+ $pass_imgtype = true;
18
+ break;
19
+
20
+ case IMAGETYPE_PNG:
21
+ //$extension = ".png";
22
+ $src_img = imagecreatefrompng($imagepath);
23
+ imagesavealpha($src_img,true);
24
+ ImageAlphaBlending($src_img, false);
25
+ $pass_imgtype = true;
26
+ break;
27
+
28
+ default:
29
+ $pass_imgtype = false;
30
+ break;
31
+ }
32
+
33
+ if($pass_imgtype === true)
34
+ {
35
+ $source_w = imagesx($src_img);
36
+ $source_h = imagesy($src_img);
37
+
38
+ //Temp dimensions to crop image properly
39
+ $temp_w = $width;
40
+ $temp_h = $height;
41
+ if ( $source_w < $source_h ) {
42
+ $temp_h = ($width / $source_w) * $source_h;
43
+ } else {
44
+ $temp_w = ($height / $source_h) * $source_w;
45
+ }
46
+
47
+ // Create temp resized image
48
+ $temp_img = ImageCreateTrueColor( $temp_w, $temp_h );
49
+ $bgcolor = ImageColorAllocate( $temp_img, 255, 255, 255 );
50
+ ImageFilledRectangle( $temp_img, 0, 0, $width, $height, $white );
51
+ ImageAlphaBlending( $temp_img, TRUE );
52
+
53
+ ImageCopyResampled( $temp_img, $src_img, 0, 0, 0, 0, $temp_w, $temp_h, $source_w, $source_h );
54
+
55
+ $dst_img = ImageCreateTrueColor($width,$height);
56
+ $bgcolor = ImageColorAllocate( $dst_img, 255, 255, 255 );
57
+ ImageFilledRectangle( $dst_img, 0, 0, $width, $height, $white );
58
+ ImageAlphaBlending($dst_img, TRUE );
59
+
60
+ // X & Y Offset to crop image properly
61
+ $w1 = ($temp_w/2) - ($width/2);
62
+ $h1 = ($temp_h/2) - ($height/2);
63
+
64
+ ImageCopyResampled( $dst_img, $temp_img, 0, 0, $w1, $h1, $width, $height, $width, $height );
65
+
66
+ if($imagetype[2] == IMAGETYPE_PNG)
67
+ {
68
+ imagesavealpha($dst_img,true);
69
+ ImageAlphaBlending($dst_img, false);
70
+ }
71
+
72
+ ImageCopyResampled($dst_img,$src_img,0,0,0,0,$width,$height,$source_w,$source_h);
73
+ switch($imagetype[2])
74
+ {
75
+ case IMAGETYPE_JPEG:
76
+ ImageJPEG($dst_img, $image_output, 75);
77
+ break;
78
+
79
+ case IMAGETYPE_GIF:
80
+ if(function_exists("ImageGIF"))
81
+ {
82
+ @ImageGIF($dst_img, $image_output);
83
+ }
84
+ else
85
+ {
86
+ ImageAlphaBlending($dst_img, false);
87
+ @ImagePNG($dst_img, $image_output);
88
+ }
89
+ break;
90
+
91
+ case IMAGETYPE_PNG:
92
+ @ImagePNG($dst_img, $image_output);
93
+ break;
94
+ }
95
+ usleep(50000); //wait 0.05 of of a second to process and save the new image
96
+ imagedestroy($dst_img);
97
+ }
98
+ }
99
+ else
100
+ {
101
+ move_uploaded_file($imagepath, ($imagedir.basename($_FILES['image']['name'])));
102
+ $image = $wpdb->escape(basename($_FILES['image']['name']));
103
+ }
104
+ ?>
wp-shopping-cart/images/24bit-star.png ADDED
Binary file
wp-shopping-cart/images/arrowdown.gif ADDED
Binary file
wp-shopping-cart/images/blank.gif ADDED
Binary file
wp-shopping-cart/images/blue-star.gif ADDED
Binary file
wp-shopping-cart/images/buy_button.jpg ADDED
Binary file
wp-shopping-cart/images/cart-icon.gif ADDED
Binary file
wp-shopping-cart/images/cart.png ADDED
Binary file
wp-shopping-cart/images/cart_leftarrow.png ADDED
Binary file
wp-shopping-cart/images/cart_rightarrow.png ADDED
Binary file
wp-shopping-cart/images/close.gif ADDED
Binary file
wp-shopping-cart/images/closelabel.gif ADDED
Binary file
wp-shopping-cart/images/cross.png ADDED
Binary file
wp-shopping-cart/images/default-off.gif ADDED
Binary file
wp-shopping-cart/images/default-on.gif ADDED
Binary file
wp-shopping-cart/images/download.gif ADDED
Binary file
wp-shopping-cart/images/facebook_status_off.gif ADDED
Binary file
wp-shopping-cart/images/gold-cart.png ADDED
Binary file
wp-shopping-cart/images/gold-star.gif ADDED
Binary file
wp-shopping-cart/images/google_bmarks.gif ADDED
Binary file
wp-shopping-cart/images/grey-star.gif ADDED
Binary file
wp-shopping-cart/images/grid-off.gif ADDED
Binary file
wp-shopping-cart/images/grid-on.gif ADDED
Binary file
wp-shopping-cart/images/grid_bg.png ADDED
Binary file
wp-shopping-cart/images/icon_window_collapse.gif ADDED
Binary file
wp-shopping-cart/images/icon_window_expand.gif ADDED
Binary file
wp-shopping-cart/images/indenter.gif ADDED
Binary file
wp-shopping-cart/images/indicator.gif ADDED
Binary file
wp-shopping-cart/images/list-off.gif ADDED
Binary file
wp-shopping-cart/images/list-on.gif ADDED
Binary file
wp-shopping-cart/images/loading.gif ADDED
Binary file
wp-shopping-cart/images/loadingAnimation.gif ADDED
Binary file
wp-shopping-cart/images/mini-arrow.jpg ADDED
Binary file
wp-shopping-cart/images/minus.png ADDED
Binary file
wp-shopping-cart/images/next.gif ADDED
Binary file
wp-shopping-cart/images/nextlabel.gif ADDED
Binary file
wp-shopping-cart/images/no-star.gif ADDED
Binary file
wp-shopping-cart/images/no_stock.gif ADDED
Binary file
wp-shopping-cart/images/order_bottom.png ADDED
Binary file
wp-shopping-cart/images/order_down.png ADDED
Binary file
wp-shopping-cart/images/order_top.png ADDED
Binary file
wp-shopping-cart/images/order_up.png ADDED
Binary file
wp-shopping-cart/images/package_add.png ADDED
Binary file
wp-shopping-cart/images/plus.png ADDED
Binary file
wp-shopping-cart/images/prev.gif ADDED
Binary file
wp-shopping-cart/images/prevlabel.gif ADDED
Binary file
wp-shopping-cart/images/remove_item.png ADDED
Binary file
wp-shopping-cart/images/rss-icon.jpg ADDED
Binary file
wp-shopping-cart/images/social_networking/blinklist.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/blogmarks.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/delicious.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/digg.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/favoriting.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/furl.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/google_bmarks.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/magnolia.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/netscape.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/newsvine.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/reddit.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/share-icon-16x16.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/share-this-product.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/stumbleupon.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/tailrank.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/technorati.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/windows_live.gif ADDED
Binary file
wp-shopping-cart/images/social_networking/yahoo_myweb.gif ADDED
Binary file
wp-shopping-cart/images/star.gif ADDED
Binary file
wp-shopping-cart/images/sub-category-divide.jpg ADDED
Binary file
wp-shopping-cart/images/tick.png ADDED
Binary file
wp-shopping-cart/images/toggle-arrow.gif ADDED
Binary file
wp-shopping-cart/images/transparent.gif ADDED
Binary file
wp-shopping-cart/images/trash.gif ADDED
Binary file
wp-shopping-cart/images/yes_stock.gif ADDED
Binary file
wp-shopping-cart/insertcate.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $filedir = dirname(__FILE__);
3
+ $blogroot = substr($filedir,0,strpos($filedir,'wp-content/'));
4
+ require_once($blogroot.'wp-blog-header.php');
5
+
6
+ $wwwURI = $_SERVER['REQUEST_URI'];
7
+ $x = strpos($wwwURI,'wp-admin/');
8
+ $tinyURI = substr($wwwURI,0,strpos($wwwURI,'wp-admin/')) . '/wp-includes/js/tinymce';
9
+ $tinyURI = get_option('siteurl').$tinyURI;
10
+ //exit($wwwURI);
11
+
12
+ $a = substr($filedir, strpos($filedir,'/wp-content/plugins/'));
13
+ $plugindir = substr($a , 0, strpos($a,'/js') );
14
+ $pluginURL = get_settings('siteurl') . $plugindir;
15
+ ?>
16
+ <html xmlns="http://www.w3.org/1999/xhtml">
17
+ <head>
18
+ <title>{$lang_insert_ecom_title}</title>
19
+ <link type="text/css" rel="stylesheet" href="<?php echo get_option('siteurl'); ?>/wp-content/plugins/admin.css"></link>
20
+ <script language="javascript" type="text/javascript" src="<?php echo $tinyURI; ?>/tiny_mce_popup.js"></script>
21
+ <script language="javascript" type="text/javascript" src="<?php echo $tinyURI; ?>/utils/mctabs.js"></script>
22
+ <script language="javascript" type="text/javascript" src="<?php echo $tinyURI; ?>/utils/form_utils.js"></script>
23
+ <script language="javascript" type="text/javascript">
24
+ <!--
25
+ <?php
26
+ global $wpdb;
27
+
28
+ $fns = ''; $options = '';
29
+ $no = ($i==0)?'':($i+1);
30
+ $cate_sql = "SELECT * FROM ".$wpdb->prefix."product_categories";
31
+ $result = $wpdb->get_results($cate_sql,ARRAY_A);
32
+ foreach($result as $category){
33
+ $options .= '<option value="'.$category['id'].'">'.$category['name'].'</option>';
34
+ }
35
+ //echo 'var formnames=new Array('.$fns.');';
36
+ ?>
37
+
38
+ function init() {
39
+ mcTabs.displayTab('tab', 'panel');
40
+ tinyMCE.setWindowArg('mce_windowresize', false);
41
+ }
42
+
43
+ function insertSomething() {
44
+ var inst = tinyMCE.selectedInstance;
45
+ var elm = inst.getFocusElement();
46
+
47
+ no = document.forms[0].nodename.value;
48
+ full = document.forms[0].full.checked;
49
+
50
+ html = '[wpsc_category='+no+']';
51
+ if (full == true){
52
+ html = '[wpsc_category='+no+', full]'
53
+ }
54
+ tinyMCEPopup.execCommand("mceBeginUndoLevel");
55
+ tinyMCEPopup.execCommand('mceInsertContent', false, '<p>'+html+'</p>');
56
+ tinyMCEPopup.execCommand("mceEndUndoLevel");
57
+ tinyMCEPopup.close();
58
+ }
59
+ //-->
60
+ </script>
61
+ <base target="_self" />
62
+ </head>
63
+ <body id="cforms" onLoad="tinyMCEPopup.executeOnLoad('init();');" style="display: none">
64
+ <form onSubmit="insertSomething();" action="#">
65
+ <div class="tabs">
66
+ <ul>
67
+ <li id="tab"><span><a href="javascript:mcTabs.displayTab('tab','panel');"><?php _e('Pick a Category','cforms'); ?></a></span></li>
68
+ </ul>
69
+ </div>
70
+ <div class="panel_wrapper" style="height:120px;">
71
+ <div id="panel" class="panel current">
72
+ <table border="0" cellspacing="0" cellpadding="2">
73
+ <tr>
74
+ <td class="cflabel"><label for="nodename"><?php _e('Your Categories:','cforms'); ?></label></td>
75
+ <td class="cfinput"><select name="nodename"/><?php echo $options; ?></select>
76
+ </tr>
77
+
78
+ <tr>
79
+ <td class="cfinput"><input type="checkbox" name="full"/> Full Display?
80
+ </tr>
81
+ </table>
82
+ </div>
83
+
84
+ </div>
85
+ <div class="mceActionPanel">
86
+ <div style="float: left">
87
+ <input type="button" id="insert" name="insert" value="<?php _e('Insert','cforms'); ?>" onClick="insertSomething();" />
88
+ </div>
89
+ <div style="float: right">
90
+ <input type="button" id="cancel" name="cancel" value="<?php _e('Cancel','cforms'); ?>" onClick="tinyMCEPopup.close();" />
91
+ </div>
92
+ </div>
93
+ </form>
94
+ </body>
95
+ </html>
wp-shopping-cart/install_and_update.php ADDED
@@ -0,0 +1,1340 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function wpsc_auto_update() {
3
+ global $wpdb;
4
+ if(get_option('wpsc_version') <= 3.5) {
5
+ include_once('updates/update-to-3.5.0.php');
6
+ }
7
+
8
+ if((get_option('wpsc_version') < 3.5 ) || ((get_option('wpsc_version') == 3.5 ) && (get_option('wpsc_minor_version') < 2))) {
9
+ include_once('updates/update-to-3.5.2.php');
10
+ }
11
+
12
+ if((get_option('wpsc_version') < 3.6 ) || ((get_option('wpsc_version') == 3.6 ) && (get_option('wpsc_minor_version') < 62))) {
13
+ include_once('updates/update-to-3.6.0.php');
14
+ include_once('updates/update-to-3.6.4.php');
15
+ }
16
+
17
+ wpsc_create_upload_directories();
18
+
19
+ wpsc_product_files_htaccess();
20
+ wpsc_check_and_copy_files();
21
+
22
+ if((get_option('wpsc_version') < WPSC_VERSION) || (get_option('wpsc_version') == WPSC_VERSION) && (get_option('wpsc_minor_version') < WPSC_MINOR_VERSION)) {
23
+ update_option('wpsc_version', WPSC_VERSION);
24
+ update_option('wpsc_minor_version', WPSC_MINOR_VERSION);
25
+ }
26
+ }
27
+
28
+ function nzshpcrt_install()
29
+ {
30
+ global $wpdb, $user_level, $wp_rewrite, $wp_version;
31
+ $table_name = $wpdb->prefix . "product_list";
32
+ //$log_table_name = $wpdb->prefix . "sms_log";
33
+ if($wp_version < 2.1) {
34
+ get_currentuserinfo();
35
+ if($user_level < 8) {
36
+ return;
37
+ }
38
+ }
39
+ $first_install = false;
40
+ $result = mysql_list_tables(DB_NAME);
41
+ $tables = array();
42
+ while($row = mysql_fetch_row($result)) {
43
+ $tables[] = $row[0];
44
+ }
45
+ if(!in_array($table_name, $tables)) {
46
+ $first_install = true;
47
+ }
48
+
49
+ if(get_option('wpsc_version') == null) {
50
+ add_option('wpsc_version', WPSC_VERSION, 'wpsc_version', 'yes');
51
+ }
52
+
53
+
54
+ // Table structure for table `".$wpdb->prefix."also_bought_product`
55
+
56
+ $num = 0;
57
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix."also_bought_product";
58
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."also_bought_product` (
59
+ `id` bigint(20) unsigned NOT NULL auto_increment,
60
+ `selected_product` bigint(20) unsigned NOT NULL default '0',
61
+ `associated_product` bigint(20) unsigned NOT NULL default '0',
62
+ `quantity` int(10) unsigned NOT NULL default '0',
63
+ PRIMARY KEY (`id`)
64
+ ) TYPE=MyISAM ;
65
+ ";
66
+
67
+
68
+ // Table structure for table `".$wpdb->prefix."cart_contents`
69
+
70
+ $num++;
71
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'cart_contents';
72
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."cart_contents` (
73
+ `id` bigint(20) unsigned NOT NULL auto_increment,
74
+ `prodid` bigint(20) unsigned NOT NULL default '0',
75
+ `purchaseid` bigint(20) unsigned NOT NULL default '0',
76
+ `price` varchar(128) NOT NULL default '0',
77
+ `pnp` varchar(128) NOT NULL default '0',
78
+ `gst` varchar(128) NOT NULL default '0',
79
+ `quantity` int(10) unsigned NOT NULL default '0',
80
+ `donation` varchar(1) NOT NULL default '0',
81
+ `no_shipping` varchar(1) NOT NULL default '0',
82
+ PRIMARY KEY (`id`)
83
+ ) TYPE=MyISAM ;
84
+ ";
85
+
86
+
87
+ // Table structure for table `".$wpdb->prefix."cart_item_extras`
88
+
89
+ $num++;
90
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'cart_item_extras';
91
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."cart_item_extras` (
92
+ `id` int(11) NOT NULL auto_increment,
93
+ `cart_id` int(11) NOT NULL,
94
+ `extra_id` int(11) NOT NULL,
95
+ PRIMARY KEY (`id`)
96
+ ) TYPE=MyISAM;
97
+ ";
98
+
99
+ // Table structure for table `".$wpdb->prefix."cart_item_variations`
100
+
101
+ $num++;
102
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'cart_item_variations';
103
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."cart_item_variations` (
104
+ `id` bigint(20) unsigned NOT NULL auto_increment,
105
+ `cart_id` bigint(20) unsigned NOT NULL default '0',
106
+ `variation_id` bigint(20) unsigned NOT NULL default '0',
107
+ `value_id` bigint(20) unsigned NOT NULL default '0',
108
+ PRIMARY KEY (`id`)
109
+ ) TYPE=MyISAM;
110
+ ";
111
+
112
+
113
+ // Table structure for table `".$wpdb->prefix."collect_data_forms`
114
+
115
+ $num++;
116
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'collect_data_forms';
117
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."collect_data_forms` (
118
+ `id` bigint(20) unsigned NOT NULL auto_increment,
119
+ `name` varchar(255) NOT NULL default '',
120
+ `type` varchar(64) NOT NULL default '',
121
+ `mandatory` varchar(1) NOT NULL default '0',
122
+ `display_log` char(1) NOT NULL default '0',
123
+ `default` varchar(128) NOT NULL default '0',
124
+ `active` varchar(1) NOT NULL default '1',
125
+ `order` int(10) unsigned NOT NULL default '0',
126
+ PRIMARY KEY (`id`),
127
+ KEY `order` (`order`)
128
+ ) TYPE=MyISAM ;
129
+ ";
130
+
131
+
132
+ // Table structure for table `".$wpdb->prefix."currency_list`
133
+
134
+ $num++;
135
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'currency_list';
136
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."currency_list` (
137
+ `id` bigint(20) unsigned NOT NULL auto_increment,
138
+ `country` varchar(255) NOT NULL default '',
139
+ `isocode` char(2) default NULL,
140
+ `currency` varchar(255) NOT NULL default '',
141
+ `symbol` varchar(10) NOT NULL default '',
142
+ `symbol_html` varchar(10) NOT NULL default '',
143
+ `code` char(3) NOT NULL default '',
144
+ `has_regions` char(1) NOT NULL default '0',
145
+ `tax` varchar(8) NOT NULL default '',
146
+ PRIMARY KEY (`id`)
147
+ ) TYPE=MyISAM ;
148
+ ";
149
+
150
+
151
+ // Table structure for table `".$wpdb->prefix."download_status`
152
+
153
+ $num++;
154
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'download_status';
155
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."download_status` (
156
+ `id` bigint(20) unsigned NOT NULL auto_increment,
157
+ `fileid` bigint(20) unsigned NOT NULL default '0',
158
+ `purchid` bigint(20) unsigned NOT NULL default '0',
159
+ `uniqueid` varchar(64) default NULL,
160
+ `downloads` int(11) NOT NULL default '0',
161
+ `ip_number` varchar(255) NOT NULL default '',
162
+ `active` varchar(1) NOT NULL default '0',
163
+ `datetime` datetime NOT NULL,
164
+ PRIMARY KEY (`id`),
165
+ UNIQUE KEY `uniqueid` (`uniqueid`)
166
+ ) TYPE=MyISAM;
167
+ ";
168
+
169
+
170
+ // Table structure for table `".$wpdb->prefix."extras_values`
171
+
172
+ $num++;
173
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'extras_values';
174
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."extras_values` (
175
+ `id` int(11) NOT NULL auto_increment,
176
+ `name` varchar(128) NOT NULL,
177
+ `extras_id` int(11) NOT NULL,
178
+ PRIMARY KEY (`id`)
179
+ ) TYPE=MyISAM;
180
+ ";
181
+
182
+
183
+ // Table structure for table `".$wpdb->prefix."extras_values_associations`
184
+
185
+ $num++;
186
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'extras_values_associations';
187
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."extras_values_associations` (
188
+ `id` int(11) NOT NULL auto_increment,
189
+ `product_id` int(11) NOT NULL,
190
+ `value_id` int(11) NOT NULL,
191
+ `price` varchar(20) NOT NULL,
192
+ `visible` varchar(1) NOT NULL,
193
+ `extras_id` int(11) NOT NULL,
194
+ PRIMARY KEY (`id`)
195
+ ) TYPE=MyISAM;
196
+ ";
197
+
198
+
199
+ // Table structure for table `".$wpdb->prefix."item_category_associations`
200
+
201
+ $num++;
202
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'item_category_associations';
203
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."item_category_associations` (
204
+ `id` bigint(20) unsigned NOT NULL auto_increment,
205
+ `product_id` bigint(20) unsigned NOT NULL default '0',
206
+ `category_id` bigint(20) unsigned NOT NULL default '0',
207
+ PRIMARY KEY (`id`),
208
+ UNIQUE KEY `product_id` (`product_id`,`category_id`)
209
+ ) TYPE=MyISAM ;
210
+ ";
211
+
212
+
213
+ // Table structure for table `".$wpdb->prefix."product_brands`
214
+
215
+ $num++;
216
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_brands';
217
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_brands` (
218
+ `id` bigint(20) NOT NULL auto_increment,
219
+ `name` text NOT NULL,
220
+ `description` text NOT NULL,
221
+ `active` varchar(1) NOT NULL default '1',
222
+ `order` bigint(20) unsigned NOT NULL,
223
+ PRIMARY KEY (`id`)
224
+ ) TYPE=MyISAM ;
225
+ ";
226
+
227
+
228
+ // Table structure for table `".$wpdb->prefix."product_categories`
229
+
230
+ $num++;
231
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_categories';
232
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_categories` (
233
+ `id` bigint(20) NOT NULL auto_increment,
234
+ `group_id` BIGINT( 20 ) UNSIGNED NOT NULL,
235
+ `name` text NOT NULL,
236
+ `nice-name` varchar(255) NOT NULL,
237
+ `description` text NOT NULL,
238
+ `image` text NOT NULL,
239
+ `fee` varchar(1) NOT NULL default '0',
240
+ `active` varchar(1) NOT NULL default '1',
241
+ `category_parent` bigint(20) unsigned default '0',
242
+ `order` bigint(20) unsigned NOT NULL,
243
+ PRIMARY KEY (`id`),
244
+ KEY `group_id` (`group_id`),
245
+ KEY `nice-name` (`nice-name`)
246
+ ) TYPE=MyISAM ;
247
+ ";
248
+
249
+
250
+ // Table structure for table `".$wpdb->prefix."product_extra`
251
+
252
+ $num++;
253
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_extra';
254
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_extra` (
255
+ `id` int(11) NOT NULL auto_increment,
256
+ `name` varchar(128) NOT NULL,
257
+ PRIMARY KEY (`id`)
258
+ ) TYPE=MyISAM;
259
+ ";
260
+
261
+
262
+ // Table structure for table `".$wpdb->prefix."product_files`
263
+
264
+ $num++;
265
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_files';
266
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_files` (
267
+ `id` bigint(20) unsigned NOT NULL auto_increment,
268
+ `filename` varchar(255) NOT NULL default '',
269
+ `mimetype` varchar(128) NOT NULL default '',
270
+ `idhash` varchar(45) NOT NULL default '',
271
+ `preview` varchar(255) NOT NULL default '',
272
+ `preview_mimetype` varchar(128) NOT NULL default '',
273
+ `date` varchar(255) NOT NULL,
274
+ PRIMARY KEY (`id`)
275
+ ) TYPE=MyISAM ;
276
+ ";
277
+
278
+
279
+ // Table structure for table `".$wpdb->prefix."product_images`
280
+
281
+ $num++;
282
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_images';
283
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_images` (
284
+ `id` bigint(20) unsigned NOT NULL auto_increment,
285
+ `product_id` bigint(20) unsigned NOT NULL,
286
+ `image` varchar(255) NOT NULL,
287
+ `width` mediumint(8) unsigned NOT NULL,
288
+ `height` mediumint(8) unsigned NOT NULL,
289
+ PRIMARY KEY (`id`),
290
+ KEY `product_id` (`product_id`)
291
+ ) TYPE=MyISAM ;
292
+ ";
293
+
294
+
295
+ // Table structure for table `".$wpdb->prefix."product_list`
296
+
297
+ $num++;
298
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_list';
299
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_list` (
300
+ `id` bigint(20) unsigned NOT NULL auto_increment,
301
+ `name` text NOT NULL,
302
+ `description` longtext NOT NULL,
303
+ `additional_description` longtext NOT NULL,
304
+ `price` varchar(20) NOT NULL default '0',
305
+ `weight` int(11) NOT NULL default '0',
306
+ `weight_unit` varchar(10) NOT NULL,
307
+ `pnp` varchar(20) NOT NULL default '0',
308
+ `international_pnp` varchar(20) NOT NULL default '0',
309
+ `file` bigint(20) unsigned NOT NULL,
310
+ `image` text NOT NULL,
311
+ `category` bigint(20) unsigned NOT NULL default '0',
312
+ `brand` bigint(20) unsigned NOT NULL default '0',
313
+ `quantity_limited` varchar(1) NOT NULL,
314
+ `quantity` int(10) unsigned NOT NULL default '0',
315
+ `special` varchar(1) NOT NULL default '0',
316
+ `special_price` varchar(20) NOT NULL default '0',
317
+ `display_frontpage` varchar(1) NOT NULL default '0',
318
+ `notax` varchar(1) NOT NULL default '0',
319
+ `active` varchar(1) NOT NULL default '1',
320
+ `donation` varchar(1) NOT NULL default '0',
321
+ `no_shipping` varchar(1) NOT NULL default '0',
322
+ `thumbnail_image` text,
323
+ `thumbnail_state` int(11) NOT NULL,
324
+ PRIMARY KEY (`id`)
325
+ ) TYPE=MyISAM ;
326
+ ";
327
+
328
+
329
+ // Table structure for table `".$wpdb->prefix."product_order`
330
+
331
+ $num++;
332
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_order';
333
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_order` (
334
+ `id` bigint(20) unsigned NOT NULL auto_increment,
335
+ `category_id` bigint(20) unsigned NOT NULL default '0',
336
+ `product_id` bigint(20) unsigned NOT NULL default '0',
337
+ `order` bigint(20) unsigned NOT NULL default '0',
338
+ PRIMARY KEY (`id`),
339
+ UNIQUE KEY `category_id` (`category_id`,`product_id`),
340
+ KEY `order` (`order`)
341
+ ) TYPE=MyISAM ;
342
+ ";
343
+
344
+
345
+ // Table structure for table `".$wpdb->prefix."product_rating`
346
+
347
+ $num++;
348
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_rating';
349
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_rating` (
350
+ `id` bigint(20) unsigned NOT NULL auto_increment,
351
+ `ipnum` varchar(30) NOT NULL default '',
352
+ `productid` bigint(20) unsigned NOT NULL default '0',
353
+ `rated` tinyint(1) NOT NULL default '0',
354
+ `time` bigint(20) unsigned NOT NULL,
355
+ PRIMARY KEY (`id`)
356
+ ) TYPE=MyISAM;
357
+ ";
358
+
359
+
360
+ // Table structure for table `".$wpdb->prefix."product_variations`
361
+
362
+ $num++;
363
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_variations';
364
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_variations` (
365
+ `id` bigint(20) unsigned NOT NULL auto_increment,
366
+ `name` varchar(128) NOT NULL default '',
367
+ `variation_association` bigint(20) unsigned NOT NULL default '0',
368
+ PRIMARY KEY (`id`),
369
+ KEY `variation_association` (`variation_association`)
370
+ ) TYPE=MyISAM;
371
+ ";
372
+
373
+
374
+ // Table structure for table `".$wpdb->prefix."purchase_logs`
375
+
376
+ $num++;
377
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'purchase_logs';
378
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."purchase_logs` (
379
+ `id` bigint(20) unsigned NOT NULL auto_increment,
380
+ `totalprice` varchar(128) NOT NULL default '0',
381
+ `statusno` smallint(6) NOT NULL default '0',
382
+ `sessionid` varchar(255) NOT NULL default '',
383
+ `transactid` varchar(255) NOT NULL default '',
384
+ `authcode` varchar(255) NOT NULL default '',
385
+ `downloadid` bigint(20) unsigned NOT NULL default '0',
386
+ `processed` bigint(20) unsigned NOT NULL default '1',
387
+ `user_ID` bigint(20) unsigned default NULL,
388
+ `date` varchar(255) NOT NULL default '',
389
+ `gateway` varchar(64) NOT NULL default '',
390
+ `billing_country` char(6) NOT NULL default '',
391
+ `shipping_country` char(6) NOT NULL default '',
392
+ `base_shipping` varchar(128) NOT NULL default '0',
393
+ `email_sent` char(1) NOT NULL default '0',
394
+ `discount_value` varchar(32) NOT NULL default '0',
395
+ `discount_data` text NOT NULL,
396
+ `track_id` varchar(50) default NULL,
397
+ `shipping_region` char(6) NOT NULL,
398
+ `find_us` varchar(255) NOT NULL,
399
+ `engravetext` varchar(255) default NULL,
400
+ `closest_store` varchar(255) default NULL,
401
+ `google_order_number` varchar(20) NOT NULL default '',
402
+ `google_user_marketing_preference` varchar(10) NOT NULL default '',
403
+ `google_status` longtext NOT NULL,
404
+ PRIMARY KEY (`id`),
405
+ UNIQUE KEY `sessionid` (`sessionid`),
406
+ KEY `gateway` (`gateway`)
407
+ ) TYPE=MyISAM ;
408
+ ";
409
+
410
+
411
+ // Table structure for table `".$wpdb->prefix."purchase_statuses`
412
+
413
+ $num++;
414
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'purchase_statuses';
415
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."purchase_statuses` (
416
+ `id` bigint(20) unsigned NOT NULL auto_increment,
417
+ `name` varchar(128) NOT NULL default '',
418
+ `active` varchar(1) NOT NULL default '0',
419
+ `colour` varchar(6) NOT NULL,
420
+ PRIMARY KEY (`id`)
421
+ ) TYPE=MyISAM ;
422
+ ";
423
+
424
+
425
+ // Table structure for table `".$wpdb->prefix."region_tax`
426
+
427
+ $num++;
428
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'region_tax';
429
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."region_tax` (
430
+ `id` bigint(20) unsigned NOT NULL auto_increment,
431
+ `country_id` bigint(20) unsigned NOT NULL default '0',
432
+ `name` varchar(64) NOT NULL default '',
433
+ `code` char(2) NOT NULL default '',
434
+ `tax` float NOT NULL default '0',
435
+ PRIMARY KEY (`id`),
436
+ KEY `country_id` (`country_id`)
437
+ ) TYPE=MyISAM ;
438
+ ";
439
+
440
+
441
+ // Table structure for table `".$wpdb->prefix."submited_form_data`
442
+
443
+ $num++;
444
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'submited_form_data';
445
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."submited_form_data` (
446
+ `id` bigint(20) unsigned NOT NULL auto_increment,
447
+ `log_id` bigint(20) unsigned NOT NULL default '0',
448
+ `form_id` bigint(20) unsigned NOT NULL default '0',
449
+ `value` varchar(255) NOT NULL default '',
450
+ PRIMARY KEY (`id`),
451
+ KEY `log_id` (`log_id`,`form_id`)
452
+ ) TYPE=MyISAM ;
453
+ ";
454
+
455
+
456
+ // Table structure for table `".$wpdb->prefix."variation_associations`
457
+
458
+ $num++;
459
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'variation_associations';
460
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."variation_associations` (
461
+ `id` bigint(20) unsigned NOT NULL auto_increment,
462
+ `type` varchar(64) NOT NULL default '',
463
+ `name` varchar(128) NOT NULL default '',
464
+ `associated_id` bigint(20) unsigned NOT NULL default '0',
465
+ `variation_id` bigint(20) unsigned NOT NULL default '0',
466
+ PRIMARY KEY (`id`),
467
+ KEY `associated_id` (`associated_id`),
468
+ KEY `variation_id` (`variation_id`)
469
+ ) TYPE=MyISAM;
470
+ ";
471
+
472
+
473
+ // Table structure for table `".$wpdb->prefix."variation_priceandstock`
474
+
475
+ $num++;
476
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'variation_priceandstock';
477
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."variation_priceandstock` (
478
+ `id` bigint(20) unsigned NOT NULL auto_increment,
479
+ `product_id` bigint(20) unsigned NOT NULL default '0',
480
+ `variation_id_1` bigint(20) unsigned NOT NULL default '0',
481
+ `variation_id_2` bigint(20) unsigned NOT NULL default '0',
482
+ `stock` bigint(20) unsigned NOT NULL default '0',
483
+ `price` varchar(32) NOT NULL,
484
+ `file` varchar(1) NOT NULL default '0',
485
+ PRIMARY KEY (`id`),
486
+ KEY `product_id` (`product_id`),
487
+ KEY `variation_id_1` (`variation_id_1`,`variation_id_2`)
488
+ ) TYPE=MyISAM;
489
+ ";
490
+
491
+
492
+ // Table structure for table `".$wpdb->prefix."variation_values`
493
+
494
+ $num++;
495
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'variation_values';
496
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."variation_values` (
497
+ `id` bigint(20) unsigned NOT NULL auto_increment,
498
+ `name` varchar(128) NOT NULL default '',
499
+ `variation_id` bigint(20) unsigned NOT NULL default '0',
500
+ PRIMARY KEY (`id`),
501
+ KEY `variation_id` (`variation_id`)
502
+ ) TYPE=MyISAM;
503
+ ";
504
+
505
+
506
+ // Table structure for table `".$wpdb->prefix."variation_values_associations`
507
+
508
+ $num++;
509
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'variation_values_associations';
510
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."variation_values_associations` (
511
+ `id` bigint(20) unsigned NOT NULL auto_increment,
512
+ `product_id` bigint(20) unsigned NOT NULL default '0',
513
+ `value_id` bigint(20) unsigned NOT NULL default '0',
514
+ `quantity` int(11) NOT NULL default '0',
515
+ `price` varchar(32) NOT NULL default '0',
516
+ `visible` varchar(1) NOT NULL default '0',
517
+ `variation_id` bigint(20) unsigned NOT NULL default '0',
518
+ PRIMARY KEY (`id`),
519
+ KEY `product_id` (`product_id`,`value_id`,`variation_id`)
520
+ ) TYPE=MyISAM;
521
+ ";
522
+
523
+
524
+ // Table structure for table `".$wpdb->prefix."wpsc_coupon_codes`
525
+
526
+ $num++;
527
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'wpsc_coupon_codes';
528
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."wpsc_coupon_codes` (
529
+ `id` bigint(20) unsigned NOT NULL auto_increment,
530
+ `coupon_code` varchar(255) default NULL,
531
+ `value` bigint(20) unsigned NOT NULL default '0',
532
+ `is-percentage` char(1) NOT NULL default '0',
533
+ `use-once` char(1) NOT NULL default '0',
534
+ `is-used` char(1) NOT NULL default '0',
535
+ `active` char(1) NOT NULL default '1',
536
+ `every_product` varchar(255) NOT NULL,
537
+ `start` datetime NOT NULL,
538
+ `expiry` datetime NOT NULL,
539
+ PRIMARY KEY (`id`),
540
+ KEY `coupon_code` (`coupon_code`),
541
+ KEY `active` (`active`),
542
+ KEY `start` (`start`),
543
+ KEY `expiry` (`expiry`)
544
+ ) TYPE=MyISAM ;
545
+ ";
546
+
547
+
548
+ // Table structure for table `".$wpdb->prefix."wpsc_logged_subscriptions`
549
+
550
+ $num++;
551
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'wpsc_logged_subscriptions';
552
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."wpsc_logged_subscriptions` (
553
+ `id` bigint(20) unsigned NOT NULL auto_increment,
554
+ `cart_id` bigint(20) unsigned NOT NULL default '0',
555
+ `user_id` bigint(20) unsigned NOT NULL default '0',
556
+ `length` varchar(64) NOT NULL default '0',
557
+ `start_time` varchar(64) NOT NULL default '0',
558
+ `active` varchar(1) NOT NULL default '0',
559
+ PRIMARY KEY (`id`),
560
+ KEY `cart_id` (`cart_id`),
561
+ KEY `user_id` (`user_id`),
562
+ KEY `start_time` (`start_time`)
563
+ ) TYPE=MyISAM;
564
+ ";
565
+
566
+
567
+ // Table structure for table `".$wpdb->prefix."wpsc_productmeta`
568
+
569
+ $num++;
570
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'wpsc_productmeta';
571
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."wpsc_productmeta` (
572
+ `id` bigint(20) unsigned NOT NULL auto_increment,
573
+ `product_id` bigint(20) unsigned NOT NULL default '0',
574
+ `meta_key` varchar(255) default NULL,
575
+ `meta_value` longtext,
576
+ PRIMARY KEY (`id`),
577
+ KEY `product_id` (`product_id`),
578
+ KEY `meta_key` (`meta_key`)
579
+ ) TYPE=MyISAM ;
580
+ ";
581
+
582
+ $num++;
583
+ $wpsc_tables[$num]['table_name'] = $wpdb->prefix.'wpsc_categorisation_groups';
584
+ $wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."wpsc_categorisation_groups` (
585
+ `id` bigint(20) unsigned NOT NULL auto_increment,
586
+ `name` varchar(255) NOT NULL,
587
+ `description` text NOT NULL,
588
+ `active` varchar(1) NOT NULL default '1',
589
+ `default` varchar(1) NOT NULL default '0',
590
+ PRIMARY KEY (`id`),
591
+ KEY `group_name` (`name`)
592
+ ) ENGINE=MyISAM ;
593
+ ";
594
+
595
+
596
+ // and here is where the tables are added to the database
597
+ foreach($wpsc_tables as $wpsc_table) {
598
+ if(!$wpdb->get_var("SHOW TABLES LIKE '{$wpsc_table['table_name']}'")) {
599
+ $wpdb->query($wpsc_table['table_sql']);
600
+ }
601
+ }
602
+
603
+ wpsc_create_upload_directories();
604
+
605
+
606
+ require dirname(__FILE__) . "/currency_list.php";
607
+ /*
608
+ Updates from old versions,
609
+ */
610
+ if(get_option('wpsc_version') <= 3.5) {
611
+ include_once('updates/update-to-3.5.0.php');
612
+ }
613
+ //
614
+ // if((get_option('wpsc_version') < 3.5 ) || ((get_option('wpsc_version') == 3.5 ) && (get_option('wpsc_minor_version') <= 2))) {
615
+ include_once('updates/update-to-3.5.2.php');
616
+ // }
617
+
618
+ include_once('updates/update-to-3.5.2.php');
619
+ include_once('updates/update-to-3.6.0.php');
620
+ include_once('updates/update-to-3.6.4.php');
621
+ /* all code to add new database tables and columns must be above here */
622
+ if((get_option('wpsc_version') < WPSC_VERSION) || (get_option('wpsc_version') == WPSC_VERSION) && (get_option('wpsc_minor_version') < WPSC_MINOR_VERSION)) {
623
+ update_option('wpsc_version', WPSC_VERSION);
624
+ update_option('wpsc_minor_version', WPSC_MINOR_VERSION);
625
+ }
626
+
627
+ $currency_data = $wpdb->get_var("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."currency_list`");
628
+ if($currency_data == 0) {
629
+ $currency_array = explode("\n",$currency_sql);
630
+ foreach($currency_array as $currency_row) {
631
+ $wpdb->query($currency_row);
632
+ }
633
+ }
634
+
635
+ $add_initial_category = $wpdb->get_results("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."product_categories`;",ARRAY_A);
636
+ if($add_initial_category[0]['count'] == 0) {
637
+ $wpdb->query("INSERT INTO `{$wpdb->prefix}wpsc_categorisation_groups` (`id`, `name`, `description`, `active`, `default`) VALUES (1, 'Categories', 'Product Categories', '1', '1')");
638
+ $wpdb->query("INSERT INTO `{$wpdb->prefix}wpsc_categorisation_groups` (`id`, `name`, `description`, `active`, `default`) VALUES (2, 'Brands', 'Product Brands', '1', '0')");
639
+
640
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."product_categories` (`group_id`, `name` , `description`, `active`) VALUES ('1', '".TXT_WPSC_EXAMPLECATEGORY."', '".TXT_WPSC_EXAMPLEDETAILS."', '1');");
641
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."product_categories` (`group_id`, `name` , `description`, `active`) VALUES ('2', '".TXT_WPSC_EXAMPLEBRAND."', '".TXT_WPSC_EXAMPLEDETAILS."', '1');");
642
+ }
643
+
644
+
645
+ $purchase_statuses_data = $wpdb->get_results("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."purchase_statuses`",ARRAY_A);
646
+ if($purchase_statuses_data[0]['count'] == 0) {
647
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."purchase_statuses` (`name` , `active` , `colour` )
648
+ VALUES
649
+ ('".TXT_WPSC_RECEIVED."', '1', ''),
650
+ ('".TXT_WPSC_ACCEPTED_PAYMENT."', '1', ''),
651
+ ('".TXT_WPSC_JOB_DISPATCHED."', '1', ''),
652
+ ('".TXT_WPSC_PROCESSED."', '1', '');");
653
+ }
654
+
655
+ $check_category_assoc = $wpdb->get_results("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."item_category_associations`;",ARRAY_A);
656
+ if($check_category_assoc[0]['count'] == 0) {
657
+ $sql = "SELECT * FROM `".$wpdb->prefix."product_list` WHERE `active`=1";
658
+ $product_list = $wpdb->get_results($sql,ARRAY_A);
659
+ foreach((array)$product_list as $product) {
660
+ $results = $wpdb->query("INSERT INTO `".$wpdb->prefix."item_category_associations` (`product_id` , `category_id` ) VALUES ('".$product['id']."', '".$product['category']."');");
661
+ }
662
+ }
663
+
664
+
665
+ $add_regions = $wpdb->get_var("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."region_tax`");
666
+ // exit($add_regions);
667
+ if($add_regions < 1) {
668
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Alberta', '0.00')");
669
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'British Columbia', '0.00')");
670
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Manitoba', '0.00')");
671
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'New Brunswick', '0.00')");
672
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Newfoundland', '0.00')");
673
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Northwest Territories', '0.00')");
674
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Nova Scotia', '0.00')");
675
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Nunavut', '0.00')");
676
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Ontario', '0.00')");
677
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Prince Edward Island', '0.00')");
678
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Quebec', '0.00')");
679
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Saskatchewan', '0.00')");
680
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Yukon', '0.00')");
681
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Alabama', '0.00')");
682
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Alaska', '0.00')");
683
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Arizona', '0.00')");
684
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Arkansas', '0.00')");
685
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'California', '0.00')");
686
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Colorado', '0.00')");
687
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Connecticut', '0.00')");
688
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Delaware', '0.00')");
689
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Florida', '0.00')");
690
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Georgia', '0.00')");
691
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Hawaii', '0.00')");
692
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Idaho', '0.00')");
693
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Illinois', '0.00')");
694
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Indiana', '0.00')");
695
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Iowa', '0.00')");
696
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Kansas', '0.00')");
697
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Kentucky', '0.00')");
698
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Louisiana', '0.00')");
699
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Maine', '0.00')");
700
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Maryland', '0.00')");
701
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Massachusetts', '0.00')");
702
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Michigan', '0.00')");
703
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Minnesota', '0.00')");
704
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Mississippi', '0.00')");
705
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Missouri', '0.00')");
706
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Montana', '0.00')");
707
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Nebraska', '0.00')");
708
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Nevada', '0.00')");
709
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'New Hampshire', '0.00')");
710
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'New Jersey', '0.00')");
711
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'New Mexico', '0.00')");
712
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'New York', '0.00')");
713
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'North Carolina', '0.00')");
714
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'North Dakota', '0.00')");
715
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Ohio', '0.00')");
716
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Oklahoma', '0.00')");
717
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Oregon', '0.00')");
718
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Pennsylvania', '0.00')");
719
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Rhode Island', '0.00')");
720
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'South Carolina', '0.00')");
721
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'South Dakota', '0.00')");
722
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Tennessee', '0.00')");
723
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Texas', '0.00')");
724
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Utah', '0.00')");
725
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Vermont', '0.00')");
726
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Virginia', '0.00')");
727
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Washington', '0.00')");
728
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Washington DC', '0.00')");
729
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'West Virginia', '0.00')");
730
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Wisconsin', '0.00')");
731
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Wyoming', '0.00')");
732
+
733
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'AL' WHERE `name` IN('Alabama')LIMIT 1 ;");
734
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'AK' WHERE `name` IN('Alaska') LIMIT 1 ;");
735
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'AZ' WHERE `name` IN('Arizona') LIMIT 1 ;");
736
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'AR' WHERE `name` IN('Arkansas') LIMIT 1 ;");
737
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'CA' WHERE `name` IN('California') LIMIT 1 ;");
738
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'CO' WHERE `name` IN('Colorado') LIMIT 1 ;");
739
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'CT' WHERE `name` IN('Connecticut') LIMIT 1 ;");
740
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'DE' WHERE `name` IN('Delaware') LIMIT 1 ;");
741
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'FL' WHERE `name` IN('Florida') LIMIT 1 ;");
742
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'GA' WHERE `name` IN('Georgia') LIMIT 1 ;");
743
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'HI' WHERE `name` IN('Hawaii') LIMIT 1 ;");
744
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'ID' WHERE`name` IN('Idaho') LIMIT 1 ;");
745
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'IL' WHERE `name` IN('Illinois') LIMIT 1 ;");
746
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'IN' WHERE `name` IN('Indiana') LIMIT 1 ;");
747
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'IA' WHERE `name` IN('Iowa') LIMIT 1 ;");
748
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'KS' WHERE `name` IN('Kansas') LIMIT 1 ;");
749
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'KY' WHERE `name` IN('Kentucky') LIMIT 1 ;");
750
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'LA' WHERE `name` IN('Louisiana') LIMIT 1 ;");
751
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'ME' WHERE `name` IN('Maine') LIMIT 1 ;");
752
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MD' WHERE `name` IN('Maryland') LIMIT 1 ;");
753
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MA' WHERE `name` IN('Massachusetts') LIMIT 1 ;");
754
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MI' WHERE `name` IN('Michigan') LIMIT 1 ;");
755
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MN' WHERE `name` IN('Minnesota') LIMIT 1 ;");
756
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MS' WHERE `name` IN('Mississippi') LIMIT 1 ;");
757
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MO' WHERE `name` IN('Missouri') LIMIT 1 ;");
758
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MT' WHERE `name` IN('Montana') LIMIT 1 ;");
759
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NE' WHERE `name` IN('Nebraska') LIMIT 1 ;");
760
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NV' WHERE `name` IN('Nevada') LIMIT 1 ;");
761
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NH' WHERE `name` IN('New Hampshire') LIMIT 1 ;");
762
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NJ' WHERE `name` IN('New Jersey') LIMIT 1 ;");
763
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NM' WHERE `name` IN('New Mexico') LIMIT 1 ;");
764
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NY' WHERE `name` IN('New York') LIMIT 1 ;");
765
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NC' WHERE `name` IN('North Carolina') LIMIT 1 ;");
766
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'ND' WHERE `name` IN('North Dakota') LIMIT 1 ;");
767
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'OH' WHERE `name` IN('Ohio') LIMIT 1 ;");
768
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'OK' WHERE `name` IN('Oklahoma') LIMIT 1 ;");
769
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'OR' WHERE `name` IN('Oregon') LIMIT 1 ;");
770
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'PA' WHERE `name` IN('Pennsylvania') LIMIT 1 ;");
771
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'RI' WHERE `name` IN('Rhode Island') LIMIT 1 ;");
772
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'SC' WHERE `name` IN('South Carolina') LIMIT 1 ;");
773
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'SD' WHERE `name` IN('South Dakota') LIMIT 1 ;");
774
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'TN' WHERE `name` IN('Tennessee') LIMIT 1 ;");
775
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'TX' WHERE `name` IN('Texas') LIMIT 1 ;");
776
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'UT' WHERE `name` IN('Utah') LIMIT 1 ;");
777
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'VT' WHERE `name` IN('Vermont') LIMIT 1 ;");
778
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'VA' WHERE `name` IN('Virginia') LIMIT 1 ;");
779
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'WA' WHERE `name` IN('Washington') LIMIT 1 ;");
780
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'DC' WHERE `name` IN('Washington DC') LIMIT 1 ;");
781
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'WV' WHERE `name` IN('West Virginia') LIMIT 1 ;");
782
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'WI' WHERE `name` IN('Wisconsin') LIMIT 1 ;");
783
+ $wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'WY' WHERE `name` IN('Wyoming') LIMIT 1 ;");
784
+ }
785
+
786
+
787
+ $data_forms = $wpdb->get_results("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."collect_data_forms`",ARRAY_A);
788
+ if($data_forms[0]['count'] == 0) {
789
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."collect_data_forms` ( `name`, `type`, `mandatory`, `display_log`, `default`, `active`, `order`) VALUES ( '".TXT_WPSC_YOUR_BILLING_CONTACT_DETAILS."', 'heading', '0', '0', '', '1', 1),
790
+ ( '".TXT_WPSC_FIRSTNAME."', 'text', '1', '1', '', '1', 2),
791
+ ( '".TXT_WPSC_LASTNAME."', 'text', '1', '1', '', '1', 3),
792
+ ( '".TXT_WPSC_ADDRESS."', 'address', '1', '0', '', '1', 4),
793
+ ( '".TXT_WPSC_CITY."', 'city', '1', '0', '', '1', 5),
794
+ ( '".TXT_WPSC_COUNTRY."', 'country', '1', '0', '', '1', 7),
795
+ ( '".TXT_WPSC_POSTAL_CODE."', 'text', '0', '0', '', '1', 8),
796
+ ( '".TXT_WPSC_EMAIL."', 'email', '1', '1', '', '1', 9),
797
+ ( '".TXT_WPSC_DELIVER_TO_A_FRIEND."', 'heading', '0', '0', '', '1', 10),
798
+ ( '".TXT_WPSC_FIRSTNAME."', 'text', '0', '0', '', '1', 11),
799
+ ( '".TXT_WPSC_LASTNAME."', 'text', '0', '0', '', '1', 12),
800
+ ( '".TXT_WPSC_ADDRESS."', 'address', '0', '0', '', '1', 13),
801
+ ( '".TXT_WPSC_CITY."', 'city', '0', '0', '', '1', 14),
802
+ ( '".TXT_WPSC_STATE."', 'text', '0', '0', '', '1', 15),
803
+ ( '".TXT_WPSC_COUNTRY."', 'delivery_country', '0', '0', '', '1', 16),
804
+ ( '".TXT_WPSC_POSTAL_CODE."', 'text', '0', '0', '', '1', 17);");
805
+ update_option('country_form_field', $country_form_id[0]['id']);
806
+ update_option('email_form_field', $email_form_id[0]['id']);
807
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."collect_data_forms` ( `name`, `type`, `mandatory`, `display_log`, `default`, `active`, `order` ) VALUES ( '".TXT_WPSC_PHONE."', 'text', '1', '0', '', '1', '8');");
808
+ }
809
+
810
+
811
+ $product_brands_data = $wpdb->get_results("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."product_brands`",ARRAY_A);
812
+ if($product_brands_data[0]['count'] == 0) {
813
+ $wpdb->query("INSERT INTO `".$wpdb->prefix."product_brands` ( `name`, `description`, `active`, `order`) VALUES ( '".TXT_WPSC_EXAMPLEBRAND."','".TXT_WPSC_EXAMPLEDETAILS."', '1', '0');");
814
+ }
815
+
816
+ add_option('show_thumbnails', 1, TXT_WPSC_SHOWTHUMBNAILS, "yes");
817
+
818
+ add_option('product_image_width', '', TXT_WPSC_PRODUCTIMAGEWIDTH, 'yes');
819
+ add_option('product_image_height', '', TXT_WPSC_PRODUCTIMAGEHEIGHT, 'yes');
820
+
821
+ add_option('category_image_width', '', TXT_WPSC_CATEGORYIMAGEWIDTH, 'yes');
822
+ add_option('category_image_height', '', TXT_WPSC_CATEGORYIMAGEHEIGHT, 'yes');
823
+
824
+ add_option('product_list_url', '', TXT_WPSC_PRODUCTLISTURL, 'yes');
825
+ add_option('shopping_cart_url', '', TXT_WPSC_SHOPPINGCARTURL, 'yes');
826
+ add_option('checkout_url', '', TXT_WPSC_CHECKOUTURL, 'yes');
827
+ add_option('transact_url', '', TXT_WPSC_TRANSACTURL, 'yes');
828
+ add_option('payment_gateway', '', TXT_WPSC_PAYMENTGATEWAY, 'yes');
829
+ if(function_exists('register_sidebar') ) {
830
+ add_option('cart_location', '4', TXT_WPSC_CARTLOCATION, 'yes');
831
+ } else {
832
+ add_option('cart_location', '1', TXT_WPSC_CARTLOCATION, 'yes');
833
+ }
834
+
835
+ if ( function_exists('register_sidebar') ) {
836
+ add_option('cart_location', '4', TXT_WPSC_CARTLOCATION, 'yes');
837
+ } else {
838
+ add_option('cart_location', '1', TXT_WPSC_CARTLOCATION, 'yes');
839
+ }
840
+
841
+ //add_option('show_categorybrands', '0', TXT_WPSC_SHOWCATEGORYBRANDS, 'yes');
842
+
843
+ add_option('currency_type', '156', TXT_WPSC_CURRENCYTYPE, 'yes');
844
+ add_option('currency_sign_location', '3', TXT_WPSC_CURRENCYSIGNLOCATION, 'yes');
845
+
846
+ add_option('gst_rate', '1', TXT_WPSC_GSTRATE, 'yes');
847
+
848
+ add_option('max_downloads', '1', TXT_WPSC_MAXDOWNLOADS, 'yes');
849
+
850
+ add_option('display_pnp', '1', TXT_WPSC_DISPLAYPNP, 'yes');
851
+
852
+ add_option('display_specials', '1', TXT_WPSC_DISPLAYSPECIALS, 'yes');
853
+ add_option('do_not_use_shipping', '0', 'do_not_use_shipping', 'yes');
854
+
855
+ add_option('postage_and_packaging', '0', TXT_WPSC_POSTAGEAND_PACKAGING, 'yes');
856
+
857
+ add_option('purch_log_email', '', TXT_WPSC_PURCHLOGEMAIL, 'yes');
858
+ add_option('return_email', '', TXT_WPSC_RETURNEMAIL, 'yes');
859
+ add_option('terms_and_conditions', '', TXT_WPSC_TERMSANDCONDITIONS, 'yes');
860
+
861
+ add_option('google_key', 'none', TXT_WPSC_GOOGLEMECHANTKEY, 'yes');
862
+ add_option('google_id', 'none', TXT_WPSC_GOOGLEMECHANTID, 'yes');
863
+
864
+ add_option('default_brand', 'none', TXT_WPSC_DEFAULTBRAND, 'yes');
865
+ add_option('default_category', 'none', TXT_WPSC_DEFAULTCATEGORY, 'yes');
866
+
867
+ add_option('product_view', 'default', "", 'yes');
868
+ add_option('add_plustax', 'default', "", '1');
869
+
870
+ if(get_option('default_category') < 1) {
871
+ update_option('default_category','none');
872
+ }
873
+
874
+ add_option('nzshpcrt_first_load', '0', "", 'yes');
875
+
876
+ if(!((get_option('show_categorybrands') > 0) && (get_option('show_categorybrands') < 3))) {
877
+ update_option('show_categorybrands', 2);
878
+ }
879
+ //add_option('show_categorybrands', '0', TXT_WPSC_SHOWCATEGORYBRANDS, 'yes');
880
+ /* PayPal options */
881
+ add_option('paypal_business', '', TXT_WPSC_PAYPALBUSINESS, 'yes');
882
+ add_option('paypal_url', '', TXT_WPSC_PAYPALURL, 'yes');
883
+ //update_option('paypal_url', "https://www.sandbox.paypal.com/xclick");
884
+
885
+
886
+ add_option('paypal_multiple_business', '', TXT_WPSC_PAYPALBUSINESS, 'yes');
887
+
888
+ if(get_option('paypal_multiple_url') == null) {
889
+ add_option('paypal_multiple_url', '', TXT_WPSC_PAYPALURL, 'yes');
890
+ update_option('paypal_multiple_url', "https://www.paypal.com/cgi-bin/webscr");
891
+ }
892
+
893
+ add_option('product_ratings', '0', TXT_WPSC_SHOWPRODUCTRATINGS, 'yes');
894
+
895
+ if(get_option('wpsc_selected_theme') == '') {
896
+ add_option('wpsc_selected_theme', 'default', 'Selected Theme', 'yes');
897
+ update_option('wpsc_selected_theme', "default");
898
+ }
899
+
900
+
901
+
902
+ if(!get_option('product_image_height')) {
903
+ update_option('product_image_height', '96');
904
+ update_option('product_image_width', '96');
905
+ }
906
+
907
+
908
+ if(!get_option('category_image_height')) {
909
+ update_option('category_image_height', '96');
910
+ update_option('category_image_width', '96');
911
+ }
912
+
913
+
914
+ if(!get_option('single_view_image_height')) {
915
+ update_option('single_view_image_height', '128');
916
+ update_option('single_view_image_width', '128');
917
+ }
918
+
919
+ wpsc_product_files_htaccess();
920
+
921
+ /*
922
+ * This part creates the pages and automatically puts their URLs into the options page.
923
+ * As you can probably see, it is very easily extendable, just pop in your page and the deafult content in the array and you are good to go.
924
+ */
925
+ $post_date =date("Y-m-d H:i:s");
926
+ $post_date_gmt =gmdate("Y-m-d H:i:s");
927
+
928
+ $num=0;
929
+ $pages[$num]['name'] = 'products-page';
930
+ $pages[$num]['title'] = TXT_WPSC_PRODUCTSPAGE;
931
+ $pages[$num]['tag'] = '[productspage]';
932
+ $pages[$num]['option'] = 'product_list_url';
933
+
934
+ $num++;
935
+ $pages[$num]['name'] = 'checkout';
936
+ $pages[$num]['title'] = TXT_WPSC_CHECKOUT;
937
+ $pages[$num]['tag'] = '[shoppingcart]';
938
+ $pages[$num]['option'] = 'shopping_cart_url';
939
+
940
+ // $num++;
941
+ // $pages[$num]['name'] = 'enter-details';
942
+ // $pages[$num]['title'] = TXT_WPSC_ENTERDETAILS;
943
+ // $pages[$num]['tag'] = '[checkout]';
944
+ // $pages[2$num]['option'] = 'checkout_url';
945
+
946
+ $num++;
947
+ $pages[$num]['name'] = 'transaction-results';
948
+ $pages[$num]['title'] = TXT_WPSC_TRANSACTIONRESULTS;
949
+ $pages[$num]['tag'] = '[transactionresults]';
950
+ $pages[$num]['option'] = 'transact_url';
951
+
952
+ $num++;
953
+ $pages[$num]['name'] = 'your-account';
954
+ $pages[$num]['title'] = TXT_WPSC_YOUR_ACCOUNT;
955
+ $pages[$num]['tag'] = '[userlog]';
956
+ $pages[$num]['option'] = 'user_account_url';
957
+
958
+ $newpages = false;
959
+ $i = 0;
960
+ $post_parent = 0;
961
+ foreach($pages as $page) {
962
+ $check_page = $wpdb->get_row("SELECT * FROM `".$wpdb->posts."` WHERE `post_content` LIKE '%".$page['tag']."%' LIMIT 1",ARRAY_A);
963
+ if($check_page == null) {
964
+ if($i == 0) {
965
+ $post_parent = 0;
966
+ } else {
967
+ $post_parent = $first_id;
968
+ }
969
+
970
+ if($wp_version >= 2.1) {
971
+ $sql ="INSERT INTO ".$wpdb->posts."
972
+ (post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order, post_type)
973
+ VALUES
974
+ ('1', '$post_date', '$post_date_gmt', '".$page['tag']."', '', '".$page['title']."', '', 'publish', 'closed', 'closed', '', '".$page['name']."', '', '', '$post_date', '$post_date_gmt', '$post_parent', '0', 'page')";
975
+ } else {
976
+ $sql ="INSERT INTO ".$wpdb->posts."
977
+ (post_author, post_date, post_date_gmt, post_content, post_content_filtered, post_title, post_excerpt, post_status, comment_status, ping_status, post_password, post_name, to_ping, pinged, post_modified, post_modified_gmt, post_parent, menu_order)
978
+ VALUES
979
+ ('1', '$post_date', '$post_date_gmt', '".$page['tag']."', '', '".$page['title']."', '', 'static', 'closed', 'closed', '', '".$page['name']."', '', '', '$post_date', '$post_date_gmt', '$post_parent', '0')";
980
+ }
981
+ $wpdb->query($sql);
982
+ $post_id = $wpdb->insert_id;
983
+ if($i == 0) {
984
+ $first_id = $post_id;
985
+ }
986
+ $wpdb->query("UPDATE $wpdb->posts SET guid = '" . get_permalink($post_id) . "' WHERE ID = '$post_id'");
987
+ update_option($page['option'], get_permalink($post_id));
988
+ if($page['option'] == 'shopping_cart_url') {
989
+ update_option('checkout_url', get_permalink($post_id));
990
+ }
991
+ $newpages = true;
992
+ $i++;
993
+ }
994
+ }
995
+ if($newpages == true) {
996
+ wp_cache_delete('all_page_ids', 'pages');
997
+ $wp_rewrite->flush_rules();
998
+ }
999
+
1000
+
1001
+ /* adds nice names for permalinks for products */
1002
+ $check_product_names = $wpdb->get_results("SELECT `".$wpdb->prefix."product_list`.`id`, `".$wpdb->prefix."product_list`.`name`, `".$wpdb->prefix."wpsc_productmeta`.`meta_key` FROM `".$wpdb->prefix."product_list` LEFT JOIN `".$wpdb->prefix."wpsc_productmeta` ON `".$wpdb->prefix."product_list`.`id` = `".$wpdb->prefix."wpsc_productmeta`.`product_id` WHERE (`".$wpdb->prefix."wpsc_productmeta`.`meta_key` IN ('url_name') AND `".$wpdb->prefix."wpsc_productmeta`.`meta_value` IN ('')) OR ISNULL(`".$wpdb->prefix."wpsc_productmeta`.`meta_key`)");
1003
+ if($check_product_names != null) {
1004
+ $sql_query = "SELECT `id`, `name` FROM `".$wpdb->prefix."product_list` WHERE `active` IN('1')";
1005
+ $sql_data = $wpdb->get_results($sql_query,ARRAY_A);
1006
+ foreach((array)$sql_data as $datarow) {
1007
+ $tidied_name = trim($datarow['name']);
1008
+ $tidied_name = strtolower($tidied_name);
1009
+ $url_name = preg_replace(array("/(\s)+/","/[^\w-]+/"), array("-", ''), $tidied_name);
1010
+ $similar_names = $wpdb->get_row("SELECT COUNT(*) AS `count`, MAX(REPLACE(`meta_value`, '$url_name', '')) AS `max_number` FROM `".$wpdb->prefix."wpsc_productmeta` WHERE `meta_key` LIKE 'url_name' AND `meta_value` REGEXP '^($url_name){1}(\d)*$' ",ARRAY_A);
1011
+ $extension_number = '';
1012
+ if($similar_names['count'] > 0) {
1013
+ $extension_number = (int)$similar_names['max_number']+1;
1014
+ }
1015
+ if(get_product_meta($datarow['id'], 'url_name') != false) {
1016
+ $current_url_name = get_product_meta($datarow['id'], 'url_name');
1017
+ if($current_url_name[0] != $url_name) {
1018
+ $url_name .= $extension_number;
1019
+ update_product_meta($datarow['id'], 'url_name', $url_name);
1020
+ }
1021
+ } else {
1022
+ $url_name .= $extension_number;
1023
+ add_product_meta($datarow['id'], 'url_name', $url_name, true);
1024
+ }
1025
+ }
1026
+ }
1027
+
1028
+
1029
+ /* adds nice names for permalinks for categories */
1030
+ $check_category_names = $wpdb->get_results("SELECT DISTINCT `nice-name` FROM `".$wpdb->prefix."product_categories` WHERE `nice-name` IN ('') AND `active` IN ('1')");
1031
+ if($check_category_names != null) {
1032
+ $sql_query = "SELECT `id`, `name` FROM `".$wpdb->prefix."product_categories` WHERE `active` IN('1')";
1033
+ $sql_data = $wpdb->get_results($sql_query,ARRAY_A);
1034
+ foreach((array)$sql_data as $datarow) {
1035
+ $tidied_name = trim($datarow['name']);
1036
+ $tidied_name = strtolower($tidied_name);
1037
+ $url_name = preg_replace(array("/(\s)+/","/[^\w-]+/"), array("-", ''), $tidied_name);
1038
+ $similar_names = $wpdb->get_row("SELECT COUNT(*) AS `count`, MAX(REPLACE(`nice-name`, '$url_name', '')) AS `max_number` FROM `".$wpdb->prefix."product_categories` WHERE `nice-name` REGEXP '^($url_name){1}(\d)*$' ",ARRAY_A);
1039
+ $extension_number = '';
1040
+ if($similar_names['count'] > 0) {
1041
+ $extension_number = (int)$similar_names['max_number']+1;
1042
+ }
1043
+ $url_name .= $extension_number;
1044
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_categories` SET `nice-name` = '$url_name' WHERE `id` = '".$datarow['id']."' LIMIT 1 ;");
1045
+ }
1046
+ $wp_rewrite->flush_rules();
1047
+ }
1048
+
1049
+
1050
+
1051
+ /* Moves images to thumbnails directory
1052
+ // this code should no longer be needed, as most people will be using a sufficiently new version
1053
+ $image_dir = WPSC_FILE_PATH."/images/";
1054
+ $product_images = WPSC_FILE_PATH."/product_images/";
1055
+ $product_thumbnails = WPSC_FILE_PATH."/product_images/thumbnails/";
1056
+ if(!is_dir($product_thumbnails)) {
1057
+ @ mkdir($product_thumbnails, 0775);
1058
+ }
1059
+ $product_list = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_list` WHERE `image` != ''",ARRAY_A);
1060
+ foreach((array)$product_list as $product) {
1061
+ if(!glob($product_thumbnails.$product['image'])) {
1062
+ $new_filename = $product['id']."_".$product['image'];
1063
+ if(file_exists($image_dir.$product['image'])) {
1064
+ copy($image_dir.$product['image'], $product_thumbnails.$new_filename);
1065
+ if(file_exists($product_images.$product['image'])) {
1066
+ copy($product_images.$product['image'], $product_images.$new_filename);
1067
+ }
1068
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `image` = '".$new_filename."' WHERE `id`='".$product['id']."' LIMIT 1");
1069
+ } else {
1070
+ $imagedir = $product_thumbnails;
1071
+ $name = $new_filename;
1072
+ $new_image_path = $product_images.$product['image'];
1073
+ $imagepath = $product['image'];
1074
+ $height = get_option('product_image_height');
1075
+ $width = get_option('product_image_width');
1076
+ if(file_exists($product_images.$product['image'])) {
1077
+ include("extra_image_processing.php");
1078
+ copy($product_images.$product['image'], $product_images.$new_filename);
1079
+ $wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `image` = '".$new_filename."' WHERE `id`='".$product['id']."' LIMIT 1");
1080
+ }
1081
+ }
1082
+ }
1083
+ } */
1084
+
1085
+ }
1086
+
1087
+ function wpsc_uninstall_plugin() {
1088
+ global $wpdb;
1089
+ if(current_user_can('edit_plugins')) {
1090
+ $option_list[] = 'addtocart_or_buynow ';
1091
+ $option_list[] = 'add_plustax ';
1092
+ $option_list[] = 'base_country ';
1093
+ $option_list[] = 'base_international_shipping ';
1094
+ $option_list[] = 'base_local_shipping ';
1095
+ $option_list[] = 'cart_location ';
1096
+ $option_list[] = 'category_image_height ';
1097
+ $option_list[] = 'category_image_width ';
1098
+ $option_list[] = 'catsprods_display_type ';
1099
+ $option_list[] = 'cat_brand_loc ';
1100
+ $option_list[] = 'checkbox_variations ';
1101
+ $option_list[] = 'checkout_url ';
1102
+ $option_list[] = 'country_form_field ';
1103
+ $option_list[] = 'currency_sign_location ';
1104
+ $option_list[] = 'currency_type ';
1105
+ $option_list[] = 'default_brand ';
1106
+ $option_list[] = 'display_pnp ';
1107
+ $option_list[] = 'display_specials ';
1108
+ $option_list[] = 'do_not_use_shipping ';
1109
+ $option_list[] = 'email_form_field ';
1110
+ $option_list[] = 'fancy_notifications ';
1111
+ $option_list[] = 'googleStoreLocator ';
1112
+ $option_list[] = 'google_button_bg ';
1113
+ $option_list[] = 'google_button_size ';
1114
+ $option_list[] = 'google_cur ';
1115
+ $option_list[] = 'google_id ';
1116
+ $option_list[] = 'google_key ';
1117
+ $option_list[] = 'google_server_type ';
1118
+ $option_list[] = 'google_shipping_country ';
1119
+ $option_list[] = 'gst_rate ';
1120
+ $option_list[] = 'hide_addtocart_button ';
1121
+ $option_list[] = 'hide_name_link ';
1122
+ $option_list[] = 'language_setting ';
1123
+ $option_list[] = 'list_view_quantity ';
1124
+ $option_list[] = 'max_downloads ';
1125
+ $option_list[] = 'nzshpcrt_first_load ';
1126
+ $option_list[] = 'payment_gateway ';
1127
+ $option_list[] = 'paypal_business ';
1128
+ $option_list[] = 'paypal_curcode ';
1129
+ $option_list[] = 'paypal_ipn ';
1130
+ $option_list[] = 'paypal_multiple_business ';
1131
+ $option_list[] = 'paypal_multiple_url ';
1132
+ $option_list[] = 'paypal_url ';
1133
+ $option_list[] = 'postage_and_packaging ';
1134
+ $option_list[] = 'product_image_height ';
1135
+ $option_list[] = 'product_image_width ';
1136
+ $option_list[] = 'product_list_url ';
1137
+ $option_list[] = 'product_ratings ';
1138
+ $option_list[] = 'product_view ';
1139
+ $option_list[] = 'purch_log_email ';
1140
+ $option_list[] = 'require_register ';
1141
+ $option_list[] = 'return_email ';
1142
+ $option_list[] = 'shopping_cart_url ';
1143
+ $option_list[] = 'show_advanced_search ';
1144
+ $option_list[] = 'show_categorybrands ';
1145
+ $option_list[] = 'show_category_count ';
1146
+ $option_list[] = 'show_category_thumbnails ';
1147
+ $option_list[] = 'show_images_only ';
1148
+ $option_list[] = 'show_live_search ';
1149
+ $option_list[] = 'show_search ';
1150
+ $option_list[] = 'show_sliding_cart ';
1151
+ $option_list[] = 'show_thumbnails ';
1152
+ $option_list[] = 'single_view_image_height ';
1153
+ $option_list[] = 'single_view_image_width ';
1154
+ $option_list[] = 'terms_and_conditions ';
1155
+ $option_list[] = 'transact_url ';
1156
+ $option_list[] = 'user_account_url ';
1157
+ $option_list[] = 'use_pagination ';
1158
+ $option_list[] = 'usps_user_id ';
1159
+ $option_list[] = 'wpsc_also_bought ';
1160
+ $option_list[] = 'wpsc_category_description ';
1161
+ $option_list[] = 'wpsc_dropshop_theme ';
1162
+ $option_list[] = 'wpsc_minor_version ';
1163
+ $option_list[] = 'wpsc_page_number_position ';
1164
+ $option_list[] = 'wpsc_products_per_page ';
1165
+ $option_list[] = 'wpsc_selected_theme ';
1166
+ $option_list[] = 'wpsc_use_pnp_cols ';
1167
+ $option_list[] = 'wpsc_version';
1168
+ $option_list[] = 'wpsc_incomplete_file_transfer';
1169
+ $option_list[] = 'wpsc_ip_lock_downloads';
1170
+
1171
+ foreach($option_list as $wpsc_option) {
1172
+ delete_option($wpsc_option);
1173
+ }
1174
+
1175
+
1176
+ $wpsc_table_list[] = $wpdb->prefix.'also_bought_product';
1177
+ $wpsc_table_list[] = $wpdb->prefix.'cart_contents';
1178
+ $wpsc_table_list[] = $wpdb->prefix.'cart_item_extras';
1179
+ $wpsc_table_list[] = $wpdb->prefix.'cart_item_variations';
1180
+ $wpsc_table_list[] = $wpdb->prefix.'collect_data_forms';
1181
+ $wpsc_table_list[] = $wpdb->prefix.'currency_list';
1182
+ $wpsc_table_list[] = $wpdb->prefix.'download_status';
1183
+ $wpsc_table_list[] = $wpdb->prefix.'extras_values';
1184
+ $wpsc_table_list[] = $wpdb->prefix.'extras_values_associations';
1185
+ $wpsc_table_list[] = $wpdb->prefix.'item_category_associations';
1186
+ $wpsc_table_list[] = $wpdb->prefix.'product_brands';
1187
+ $wpsc_table_list[] = $wpdb->prefix.'product_categories';
1188
+ $wpsc_table_list[] = $wpdb->prefix.'product_extra';
1189
+ $wpsc_table_list[] = $wpdb->prefix.'product_files';
1190
+ $wpsc_table_list[] = $wpdb->prefix.'product_images';
1191
+ $wpsc_table_list[] = $wpdb->prefix.'product_list';
1192
+ $wpsc_table_list[] = $wpdb->prefix.'product_order';
1193
+ $wpsc_table_list[] = $wpdb->prefix.'product_rating';
1194
+ $wpsc_table_list[] = $wpdb->prefix.'product_variations';
1195
+ $wpsc_table_list[] = $wpdb->prefix.'purchase_logs';
1196
+ $wpsc_table_list[] = $wpdb->prefix.'purchase_statuses';
1197
+ $wpsc_table_list[] = $wpdb->prefix.'region_tax';
1198
+ $wpsc_table_list[] = $wpdb->prefix.'submited_form_data';
1199
+ $wpsc_table_list[] = $wpdb->prefix.'variation_associations';
1200
+ $wpsc_table_list[] = $wpdb->prefix.'variation_priceandstock';
1201
+ $wpsc_table_list[] = $wpdb->prefix.'variation_values';
1202
+ $wpsc_table_list[] = $wpdb->prefix.'variation_values_associations';
1203
+ $wpsc_table_list[] = $wpdb->prefix.'wpsc_coupon_codes';
1204
+ $wpsc_table_list[] = $wpdb->prefix.'wpsc_logged_subscriptions';
1205
+ $wpsc_table_list[] = $wpdb->prefix.'wpsc_productmeta';
1206
+ $wpsc_table_list[] = $wpdb->prefix.'wpsc_categorisation_groups';
1207
+
1208
+ foreach($wpsc_table_list as $wpsc_table_name) {
1209
+ $wpdb->query("DROP TABLE `{$wpsc_table_name}`");
1210
+ }
1211
+ $active_plugins = get_option('active_plugins');
1212
+ unset($active_plugins[array_search(WPSC_DIR_NAME.'/wp-shopping-cart.php', $active_plugins)]);
1213
+ update_option('active_plugins', $active_plugins);
1214
+ header('Location: '.get_option('siteurl').'/wp-admin/plugins.php');
1215
+ exit();
1216
+ }
1217
+ }
1218
+
1219
+ function wpsc_uninstall_plugin_link($plugin) {
1220
+ if(($plugin == WPSC_DIR_NAME.'/wp-shopping-cart.php') && current_user_can('edit_plugins')) {
1221
+ echo "<td class='plugin-update' colspan='5' style='background: #ff7777;'>";
1222
+ echo "Are you sure, uninstalling will permanently delete all your wp-e-commerce settings: <a href='?wpsc_uninstall=verified'>Yes</a> or <a href='plugins.php'>No</a>";
1223
+ echo "</td>";
1224
+ }
1225
+ }
1226
+ if($_GET['wpsc_uninstall'] === 'verified') {
1227
+ add_action( 'init', 'wpsc_uninstall_plugin' );
1228
+ }
1229
+
1230
+ if($_GET['wpsc_uninstall'] === 'ask') {
1231
+ add_action( 'after_plugin_row', 'wpsc_uninstall_plugin_link' );
1232
+ }
1233
+ // add_action( 'after_plugin_row', 'wpsc_uninstall_plugin_link' );
1234
+
1235
+ function wpsc_product_files_htaccess() {
1236
+ if(!is_file(WPSC_FILE_DIR.".htaccess")) {
1237
+ $htaccess = "order deny,allow\n\r";
1238
+ $htaccess .= "deny from all\n\r";
1239
+ $htaccess .= "allow from none\n\r";
1240
+ $filename = WPSC_FILE_DIR.".htaccess";
1241
+ $file_handle = @ fopen($filename, 'w+');
1242
+ @ fwrite($file_handle, $htaccess);
1243
+ @ fclose($file_handle);
1244
+ @ chmod($file_handle, 665);
1245
+ }
1246
+ }
1247
+
1248
+
1249
+
1250
+ function wpsc_check_and_copy_files() {
1251
+ $upload_path = 'wp-content/plugins/'.WPSC_DIR_NAME;
1252
+
1253
+ $wpsc_dirs['files']['old'] = ABSPATH."{$upload_path}/files/";
1254
+ $wpsc_dirs['files']['new'] = WPSC_FILE_DIR;
1255
+
1256
+ $wpsc_dirs['previews']['old'] = ABSPATH."{$upload_path}/preview_clips/";
1257
+ $wpsc_dirs['previews']['new'] = WPSC_PREVIEW_DIR;
1258
+
1259
+ // I don't include the thumbnails directory in this list, as it is a subdirectory of the images directory and is moved along with everything else
1260
+ $wpsc_dirs['images']['old'] = ABSPATH."{$upload_path}/product_images/";
1261
+ $wpsc_dirs['images']['new'] = WPSC_IMAGE_DIR;
1262
+
1263
+ $wpsc_dirs['categories']['old'] = ABSPATH."{$upload_path}/category_images/";
1264
+ $wpsc_dirs['categories']['new'] = WPSC_CATEGORY_DIR;
1265
+ $incomplete_file_transfer = false;
1266
+ foreach($wpsc_dirs as $wpsc_dir) {
1267
+ if(is_dir($wpsc_dir['old'])) {
1268
+ $files_in_dir = glob($wpsc_dir['old']."*");
1269
+ $stat = stat($wpsc_dir['new']);
1270
+
1271
+ if(count($files_in_dir) > 0) {
1272
+ foreach($files_in_dir as $file_in_dir) {
1273
+ $file_name = str_replace($wpsc_dir['old'], '', $file_in_dir);
1274
+ if( @ rename($wpsc_dir['old'].$file_name, $wpsc_dir['new'].$file_name) ) {
1275
+ if(is_dir($wpsc_dir['new'].$file_name)) {
1276
+ $perms = $stat['mode'] & 0000775;
1277
+ } else { $perms = $stat['mode'] & 0000665; }
1278
+
1279
+ @ chmod( ($wpsc_dir['new'].$file_name), $perms );
1280
+ } else {
1281
+ $incomplete_file_transfer = true;
1282
+ }
1283
+ }
1284
+ }
1285
+ }
1286
+ }
1287
+ if($incomplete_file_transfer == true) {
1288
+ add_option('wpsc_incomplete_file_transfer', 'default', "", 'true');
1289
+ }
1290
+ }
1291
+
1292
+
1293
+ function wpsc_create_upload_directories() {
1294
+
1295
+ $wpsc_files_directory = ABSPATH.get_option('upload_path').'/wpsc/';
1296
+
1297
+ if(!is_dir(ABSPATH.get_option('upload_path'))) {
1298
+ @ mkdir(ABSPATH.get_option('upload_path'), 0775);
1299
+ }
1300
+
1301
+ if(!is_dir($wpsc_files_directory)) {
1302
+ @ mkdir($wpsc_files_directory, 0775);
1303
+ }
1304
+
1305
+ if(!is_dir(WPSC_FILE_DIR)) {
1306
+ @ mkdir(WPSC_FILE_DIR, 0775);
1307
+ wpsc_product_files_htaccess();
1308
+ }
1309
+
1310
+ if(!is_dir(WPSC_PREVIEW_DIR)) {
1311
+ @ mkdir(WPSC_PREVIEW_DIR, 0775);
1312
+ }
1313
+
1314
+ if(!is_dir(WPSC_IMAGE_DIR)) {
1315
+ @ mkdir(WPSC_IMAGE_DIR, 0775);
1316
+ }
1317
+
1318
+ if(!is_dir(WPSC_THUMBNAIL_DIR)) {
1319
+ @ mkdir(WPSC_THUMBNAIL_DIR, 0775);
1320
+ }
1321
+
1322
+ if(!is_dir(WPSC_CATEGORY_DIR)) {
1323
+ @ mkdir(WPSC_CATEGORY_DIR, 0775);
1324
+ }
1325
+
1326
+
1327
+ $wpsc_file_directory = ABSPATH.get_option('upload_path').'/wpsc/';
1328
+ if(is_dir($wpsc_file_directory)) {
1329
+ // sort the permissions out in case they are not already sorted out.
1330
+
1331
+ @ chmod( ABSPATH.get_option('upload_path'), 0775 );
1332
+ @ chmod( $wpsc_file_directory, 0775 );
1333
+ @ chmod( WPSC_FILE_DIR, 0775 );
1334
+ @ chmod( WPSC_PREVIEW_DIR, 0775 );
1335
+ @ chmod( WPSC_IMAGE_DIR, 0775 );
1336
+ @ chmod( WPSC_CATEGORY_DIR, 0775 );
1337
+ }
1338
+ }
1339
+
1340
+ ?>
wp-shopping-cart/instructions.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once (ABSPATH . WPINC . '/rss.php');
4
+ global $wpdb;
5
+ ?>
6
+ <div class="wrap">
7
+ <?php
8
+ if($_GET['debug'] == 'true') {
9
+ //echo "<pre>".print_r($_SESSION['nzshpcrt_cart'],true)."</pre>";
10
+ phpinfo();
11
+ } else if($_GET['zipup'] == 'true') {
12
+ // Code to zip the plugin up for ease of downloading from slow or otherwise cruddy FTP servers, we sometimes develop on servers like that
13
+ $ecommerce_path = escapeshellarg(ABSPATH."wp-content/plugins/wp-shopping-cart");
14
+ $destination_path = escapeshellarg(ABSPATH."wp-content/plugins/wp-shopping-cart.tar.gz");
15
+ /// disabled for excess paranoia
16
+ //echo `tar -czf $destination_path $ecommerce_path`;
17
+ //echo "<a href='".get_option('siteurl')."/wp-content/plugins/wp-shopping-cart.tar.gz' />Downloaded the zipped up plugin here</a>";
18
+ exit();
19
+ } else {
20
+ ?>
21
+ <h2><?php echo TXT_WPSC_HELPINSTALLATION;?></h2>
22
+ <p>
23
+ <?php echo TXT_WPSC_INSTRUCTIONS;?>
24
+ </p>
25
+ <?php
26
+ }
27
+ ?>
28
+ </div>
wp-shopping-cart/ipn_test_code.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // read the post from PayPal system and add 'cmd'
3
+ $req = 'cmd=_notify-validate';
4
+
5
+ foreach ($_POST as $key => $value) {
6
+ $value = urlencode(stripslashes($value));
7
+ $req .= "&$key=$value";
8
+ }
9
+
10
+ // post back to PayPal system to validate
11
+ $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n";
12
+ $header .= "Content-Type: application/x-www-form-urlencoded\r\n";
13
+ $header .= "Content-Length: " . strlen($req) . "\r\n\r\n";
14
+ $fp = fsockopen ('www.paypal.com', 80, $errno, $errstr, 30);
15
+
16
+ // assign posted variables to local variables
17
+ $item_name = $_POST['item_name'];
18
+ $item_number = $_POST['item_number'];
19
+ $payment_status = $_POST['payment_status'];
20
+ $payment_amount = $_POST['mc_gross'];
21
+ $payment_currency = $_POST['mc_currency'];
22
+ $txn_id = $_POST['txn_id'];
23
+ $receiver_email = $_POST['receiver_email'];
24
+ $payer_email = $_POST['payer_email'];
25
+
26
+ if (!$fp) {
27
+ // HTTP ERROR
28
+ } else {
29
+ fputs ($fp, $header . $req);
30
+ while (!feof($fp)) {
31
+ $res = fgets ($fp, 1024);
32
+ if (strcmp ($res, "VERIFIED") == 0) {
33
+ // check the payment_status is Completed
34
+ // check that txn_id has not been previously processed
35
+ // check that receiver_email is your Primary PayPal email
36
+ // check that payment_amount/payment_currency are correct
37
+ // process payment
38
+ }
39
+ else if (strcmp ($res, "INVALID") == 0) {
40
+ // log for manual investigation
41
+ }
42
+ }
43
+ fclose ($fp);
44
+ }
45
+ ?>
wp-shopping-cart/jquery.ui.tabs.css ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Caution! Ensure accessibility in print and other media types... */
2
+ @media projection, screen { /* Use class for showing/hiding tab content, so that visibility can be better controlled in different media types... */
3
+ .ui-tabs-hide {
4
+ display: none;
5
+ }
6
+ }
7
+
8
+ /* Hide useless elements in print layouts... */
9
+ @media print {
10
+ .ui-tabs-nav {
11
+ display: none;
12
+ }
13
+ }
14
+
15
+ /* Skin */
16
+ #slider {
17
+ border-color:#EBEBEB rgb(204, 204, 204) rgb(204, 204, 204) rgb(235, 235, 235);
18
+ border-style:solid;
19
+ border-width:1px;
20
+ margin:0pt 15% 0pt 15px;
21
+ padding:2px;
22
+ }
23
+ #tabs{
24
+ display: block;
25
+ background:#EAF3FA none repeat scroll 0%;
26
+ font-size:14px;
27
+ margin:0pt 0pt 10px;
28
+ overflow:hidden;
29
+ }
30
+
31
+ .ui-tabs-nav {
32
+ list-style: none;
33
+ margin: 0;
34
+ padding: 0 0 0 4px;
35
+ }
36
+ .ui-tabs-nav:after { /* clearing without presentational markup, IE gets extra treatment */
37
+ display: block;
38
+ clear: both;
39
+ content: " ";
40
+ }
41
+ .ui-tabs-nav li {
42
+ float: left;
43
+ padding:8px 5px;
44
+ min-width: 84px; /* be nice to Opera */
45
+ margin: 2px 2px 0px 1px !important;
46
+ text-decoration: none;
47
+ list-style: none;
48
+ }
49
+ .ui-tabs-nav a, .ui-tabs-nav a span {
50
+ display: block;
51
+ padding: 0 10px;
52
+ }
53
+
54
+ .ui-tabs-nav a {
55
+ margin: 1px 0 0; /* position: relative makes opacity fail for disabled tab in IE */
56
+ padding-left: 0;
57
+ color: #27537a;
58
+ line-height: 1.2;
59
+ text-align: center;
60
+ text-decoration: none;
61
+ white-space: nowrap; /* required in IE 6 */
62
+ outline: 0; /* prevent dotted border in Firefox */
63
+ }
64
+ .ui-tabs-nav .ui-tabs-selected{
65
+ background:#CEE1EF none repeat scroll 0% 50%;
66
+ font-weight:bold;
67
+ -moz-border-radius-topright: 4px;
68
+ -khtml-border-top-right-radius: 4px;
69
+ -webkit-border-top-right-radius: 4px;
70
+ border-top-right-radius: 4px;
71
+ -moz-border-radius-topleft: 4px;
72
+ -khtml-border-top-left-radius: 4px;
73
+ -webkit-border-top-left-radius: 4px;
74
+ border-top-left-radius: 4px;
75
+ }
76
+ .ui-tabs-nav .ui-tabs-selected a {
77
+ position: relative;
78
+ top: 1px;
79
+ z-index: 2;
80
+ margin-top: 0;
81
+ color:#333333;
82
+ }
83
+ .ui-tabs-nav li a:hover {
84
+ color:#D54E21;
85
+ }
86
+ .ui-tabs-nav a span {
87
+ width: 64px; /* IE 6 treats width as min-width */
88
+ min-width: 64px;
89
+ height: 18px; /* IE 6 treats height as min-height */
90
+ min-height: 18px;
91
+ padding-top: 6px;
92
+ padding-right: 0;
93
+ }
94
+ *>.ui-tabs-nav a span { /* hide from IE 6 */
95
+ width: auto;
96
+ height: auto;
97
+ }
98
+ .ui-tabs-nav .ui-tabs-selected a span {
99
+ padding-bottom: 1px;
100
+ }
101
+ .ui-tabs-nav .ui-tabs-selected a, .ui-tabs-nav a:hover, .ui-tabs-nav a:focus, .ui-tabs-nav a:active {
102
+ background-position: 100% -150px;
103
+ }
104
+ .ui-tabs-nav a, .ui-tabs-nav .ui-tabs-disabled a:hover, .ui-tabs-nav .ui-tabs-disabled a:focus, .ui-tabs-nav .ui-tabs-disabled a:active {
105
+ background-position: 100% -100px;
106
+ }
107
+ .ui-tabs-nav .ui-tabs-selected a span, .ui-tabs-nav a:hover span, .ui-tabs-nav a:focus span, .ui-tabs-nav a:active span {
108
+ background-position: 0 -50px;
109
+ }
110
+ .ui-tabs-nav a span, .ui-tabs-nav .ui-tabs-disabled a:hover span, .ui-tabs-nav .ui-tabs-disabled a:focus span, .ui-tabs-nav .ui-tabs-disabled a:active span {
111
+ background-position: 0 0;
112
+ }
113
+ .ui-tabs-nav .ui-tabs-selected a:link, .ui-tabs-nav .ui-tabs-selected a:visited, .ui-tabs-nav .ui-tabs-disabled a:link, .ui-tabs-nav .ui-tabs-disabled a:visited { /* @ Opera, use pseudo classes otherwise it confuses cursor... */
114
+ cursor: text;
115
+ }
116
+ .ui-tabs-nav a:hover, .ui-tabs-nav a:focus, .ui-tabs-nav a:active,
117
+ .ui-tabs-nav .ui-tabs-unselect a:hover, .ui-tabs-nav .ui-tabs-unselect a:focus, .ui-tabs-nav .ui-tabs-unselect a:active { /* @ Opera, we need to be explicit again here now... */
118
+ cursor: pointer;
119
+ }
120
+ .ui-tabs-disabled {
121
+ opacity: .4;
122
+ filter: alpha(opacity=40);
123
+ }
124
+ .ui-tabs-panel {
125
+ border-top: 1px solid #97a5b0 !important;
126
+ padding: 1em 8px;
127
+ background: #fff; /* declare background color for container to avoid distorted fonts in IE while fading */
128
+
129
+ /* overwrite wp-admin */
130
+ border:none !important;
131
+ height:100% !important;
132
+ margin:0pt 0pt 0pt 0px !important;
133
+ overflow:visible !important;
134
+ }
135
+
136
+ .ui-tabs-panel a {
137
+ display:inline;
138
+ }
139
+
140
+ .ui-tabs-loading em {
141
+ padding: 0 0 0 20px;
142
+ background: url(loading.gif) no-repeat 0 50%;
143
+ }
144
+
145
+ /* Additional IE specific bug fixes... */
146
+ * html .ui-tabs-nav { /* auto clear, @ IE 6 & IE 7 Quirks Mode */
147
+ display: inline-block;
148
+ }
149
+ *:first-child+html .ui-tabs-nav { /* @ IE 7 Standards Mode - do not group selectors, otherwise IE 6 will ignore complete rule (because of the unknown + combinator)... */
150
+ display: inline-block;
151
+ }
152
+
wp-shopping-cart/js/dimensions.js ADDED
@@ -0,0 +1,325 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
3
+ * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
4
+ *
5
+ * $LastChangedDate$
6
+ * $Rev$
7
+ */
8
+
9
+ jQuery.fn._height = jQuery.fn.height;
10
+ jQuery.fn._width = jQuery.fn.width;
11
+
12
+ /**
13
+ * If used on document, returns the document's height (innerHeight)
14
+ * If used on window, returns the viewport's (window) height
15
+ * See core docs on height() to see what happens when used on an element.
16
+ *
17
+ * @example $("#testdiv").height()
18
+ * @result 200
19
+ *
20
+ * @example $(document).height()
21
+ * @result 800
22
+ *
23
+ * @example $(window).height()
24
+ * @result 400
25
+ *
26
+ * @name height
27
+ * @type Object
28
+ * @cat Plugins/Dimensions
29
+ */
30
+ jQuery.fn.height = function() {
31
+ if ( this[0] == window )
32
+ return self.innerHeight ||
33
+ jQuery.boxModel && document.documentElement.clientHeight ||
34
+ document.body.clientHeight;
35
+
36
+ if ( this[0] == document )
37
+ return Math.max( document.body.scrollHeight, document.body.offsetHeight );
38
+
39
+ return this._height(arguments[0]);
40
+ };
41
+
42
+ /**
43
+ * If used on document, returns the document's width (innerWidth)
44
+ * If used on window, returns the viewport's (window) width
45
+ * See core docs on height() to see what happens when used on an element.
46
+ *
47
+ * @example $("#testdiv").width()
48
+ * @result 200
49
+ *
50
+ * @example $(document).width()
51
+ * @result 800
52
+ *
53
+ * @example $(window).width()
54
+ * @result 400
55
+ *
56
+ * @name width
57
+ * @type Object
58
+ * @cat Plugins/Dimensions
59
+ */
60
+ jQuery.fn.width = function() {
61
+ if ( this[0] == window )
62
+ return self.innerWidth ||
63
+ jQuery.boxModel && document.documentElement.clientWidth ||
64
+ document.body.clientWidth;
65
+
66
+ if ( this[0] == document )
67
+ return Math.max( document.body.scrollWidth, document.body.offsetWidth );
68
+
69
+ return this._width(arguments[0]);
70
+ };
71
+
72
+ /**
73
+ * Returns the inner height value (without border) for the first matched element.
74
+ * If used on document, returns the document's height (innerHeight)
75
+ * If used on window, returns the viewport's (window) height
76
+ *
77
+ * @example $("#testdiv").innerHeight()
78
+ * @result 800
79
+ *
80
+ * @name innerHeight
81
+ * @type Number
82
+ * @cat Plugins/Dimensions
83
+ */
84
+ jQuery.fn.innerHeight = function() {
85
+ return this[0] == window || this[0] == document ?
86
+ this.height() :
87
+ this.css('display') != 'none' ?
88
+ this[0].offsetHeight - (parseInt(this.css("borderTopWidth")) || 0) - (parseInt(this.css("borderBottomWidth")) || 0) :
89
+ this.height() + (parseInt(this.css("paddingTop")) || 0) + (parseInt(this.css("paddingBottom")) || 0);
90
+ };
91
+
92
+ /**
93
+ * Returns the inner width value (without border) for the first matched element.
94
+ * If used on document, returns the document's Width (innerWidth)
95
+ * If used on window, returns the viewport's (window) width
96
+ *
97
+ * @example $("#testdiv").innerWidth()
98
+ * @result 1000
99
+ *
100
+ * @name innerWidth
101
+ * @type Number
102
+ * @cat Plugins/Dimensions
103
+ */
104
+ jQuery.fn.innerWidth = function() {
105
+ return this[0] == window || this[0] == document ?
106
+ this.width() :
107
+ this.css('display') != 'none' ?
108
+ this[0].offsetWidth - (parseInt(this.css("borderLeftWidth")) || 0) - (parseInt(this.css("borderRightWidth")) || 0) :
109
+ this.height() + (parseInt(this.css("paddingLeft")) || 0) + (parseInt(this.css("paddingRight")) || 0);
110
+ };
111
+
112
+ /**
113
+ * Returns the outer height value (including border) for the first matched element.
114
+ * Cannot be used on document or window.
115
+ *
116
+ * @example $("#testdiv").outerHeight()
117
+ * @result 1000
118
+ *
119
+ * @name outerHeight
120
+ * @type Number
121
+ * @cat Plugins/Dimensions
122
+ */
123
+ jQuery.fn.outerHeight = function() {
124
+ return this[0] == window || this[0] == document ?
125
+ this.height() :
126
+ this.css('display') != 'none' ?
127
+ this[0].offsetHeight :
128
+ this.height() + (parseInt(this.css("borderTopWidth")) || 0) + (parseInt(this.css("borderBottomWidth")) || 0)
129
+ + (parseInt(this.css("paddingTop")) || 0) + (parseInt(this.css("paddingBottom")) || 0);
130
+ };
131
+
132
+ /**
133
+ * Returns the outer width value (including border) for the first matched element.
134
+ * Cannot be used on document or window.
135
+ *
136
+ * @example $("#testdiv").outerWidth()
137
+ * @result 1000
138
+ *
139
+ * @name outerWidth
140
+ * @type Number
141
+ * @cat Plugins/Dimensions
142
+ */
143
+ jQuery.fn.outerWidth = function() {
144
+ return this[0] == window || this[0] == document ?
145
+ this.width() :
146
+ this.css('display') != 'none' ?
147
+ this[0].offsetWidth :
148
+ this.height() + (parseInt(this.css("borderLeftWidth")) || 0) + (parseInt(this.css("borderRightWidth")) || 0)
149
+ + (parseInt(this.css("paddingLeft")) || 0) + (parseInt(this.css("paddingRight")) || 0);
150
+ };
151
+
152
+ /**
153
+ * Returns how many pixels the user has scrolled to the right (scrollLeft).
154
+ * Works on containers with overflow: auto and window/document.
155
+ *
156
+ * @example $("#testdiv").scrollLeft()
157
+ * @result 100
158
+ *
159
+ * @name scrollLeft
160
+ * @type Number
161
+ * @cat Plugins/Dimensions
162
+ */
163
+ jQuery.fn.scrollLeft = function() {
164
+ if ( this[0] == window || this[0] == document )
165
+ return self.pageXOffset ||
166
+ jQuery.boxModel && document.documentElement.scrollLeft ||
167
+ document.body.scrollLeft;
168
+
169
+ return this[0].scrollLeft;
170
+ };
171
+
172
+ /**
173
+ * Returns how many pixels the user has scrolled to the bottom (scrollTop).
174
+ * Works on containers with overflow: auto and window/document.
175
+ *
176
+ * @example $("#testdiv").scrollTop()
177
+ * @result 100
178
+ *
179
+ * @name scrollTop
180
+ * @type Number
181
+ * @cat Plugins/Dimensions
182
+ */
183
+ jQuery.fn.scrollTop = function() {
184
+ if ( this[0] == window || this[0] == document )
185
+ return self.pageYOffset ||
186
+ jQuery.boxModel && document.documentElement.scrollTop ||
187
+ document.body.scrollTop;
188
+
189
+ return this[0].scrollTop;
190
+ };
191
+
192
+ /**
193
+ * Returns the location of the element in pixels from the top left corner of the viewport.
194
+ *
195
+ * For accurate readings make sure to use pixel values for margins, borders and padding.
196
+ *
197
+ * @example $("#testdiv").offset()
198
+ * @result { top: 100, left: 100, scrollTop: 10, scrollLeft: 10 }
199
+ *
200
+ * @example $("#testdiv").offset({ scroll: false })
201
+ * @result { top: 90, left: 90 }
202
+ *
203
+ * @example var offset = {}
204
+ * $("#testdiv").offset({ scroll: false }, offset)
205
+ * @result offset = { top: 90, left: 90 }
206
+ *
207
+ * @name offset
208
+ * @param Object options A hash of options describing what should be included in the final calculations of the offset.
209
+ * The options include:
210
+ * margin: Should the margin of the element be included in the calculations? True by default.
211
+ * If set to false the margin of the element is subtracted from the total offset.
212
+ * border: Should the border of the element be included in the calculations? True by default.
213
+ * If set to false the border of the element is subtracted from the total offset.
214
+ * padding: Should the padding of the element be included in the calculations? False by default.
215
+ * If set to true the padding of the element is added to the total offset.
216
+ * scroll: Should the scroll offsets of the parent elements be included in the calculations?
217
+ * True by default. When true, it adds the total scroll offsets of all parents to the
218
+ * total offset and also adds two properties to the returned object, scrollTop and
219
+ * scrollLeft. If set to false the scroll offsets of parent elements are ignored.
220
+ * If scroll offsets are not needed, set to false to get a performance boost.
221
+ * @param Object returnObject An object to store the return value in, so as not to break the chain. If passed in the
222
+ * chain will not be broken and the result will be assigned to this object.
223
+ * @type Object
224
+ * @cat Plugins/Dimensions
225
+ * @author Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
226
+ */
227
+ jQuery.fn.offset = function(options, returnObject) {
228
+ var x = 0, y = 0, elem = this[0], parent = this[0], absparent=false, relparent=false, op, sl = 0, st = 0, options = jQuery.extend({ margin: true, border: true, padding: false, scroll: true }, options || {});
229
+ do {
230
+ if(parent == null)
231
+ {
232
+ // fix by Thomas Howard , stops some javascript errors with an unknown original cause, somehow parent sometimes ends up empty
233
+ return null;
234
+ }
235
+ x += parent.offsetLeft || 0;
236
+ y += parent.offsetTop || 0;
237
+
238
+ // Mozilla and IE do not add the border
239
+ if (jQuery.browser.mozilla || jQuery.browser.msie) {
240
+ // get borders
241
+ var bt = parseInt(jQuery.css(parent, 'borderTopWidth')) || 0;
242
+ var bl = parseInt(jQuery.css(parent, 'borderLeftWidth')) || 0;
243
+
244
+ // add borders to offset
245
+ x += bl;
246
+ y += bt;
247
+
248
+ // Mozilla removes the border if the parent has overflow property other than visible
249
+ if (jQuery.browser.mozilla && parent != elem && jQuery.css(parent, 'overflow') != 'visible') {
250
+ x += bl;
251
+ y += bt;
252
+ }
253
+
254
+ // Mozilla does not include the border on body if an element isn't positioned absolute and is without an absolute parent
255
+ if (jQuery.css(parent, 'position') == 'absolute') absparent = true;
256
+ // IE does not include the border on the body if an element is position static and without an absolute or relative parent
257
+ if (jQuery.css(parent, 'position') == 'relative') relparent = true;
258
+ }
259
+
260
+ if (options.scroll) {
261
+ // Need to get scroll offsets in-between offsetParents
262
+ op = parent.offsetParent;
263
+ do {
264
+ sl += parent.scrollLeft || 0;
265
+ st += parent.scrollTop || 0;
266
+
267
+ parent = parent.parentNode;
268
+
269
+ // Mozilla removes the border if the parent has overflow property other than visible
270
+ if (jQuery.browser.mozilla && parent != elem && parent != op && jQuery.css(parent, 'overflow') != 'visible') {
271
+ x += parseInt(jQuery.css(parent, 'borderLeftWidth')) || 0;
272
+ y += parseInt(jQuery.css(parent, 'borderTopWidth')) || 0;
273
+ }
274
+ } while (op && parent != op);
275
+ } else
276
+ parent = parent.offsetParent;
277
+
278
+ if (parent && (parent.tagName.toLowerCase() == 'body' || parent.tagName.toLowerCase() == 'html')) {
279
+ // Safari and IE Standards Mode doesn't add the body margin for elments positioned with static or relative
280
+ if ((jQuery.browser.safari || (jQuery.browser.msie && jQuery.boxModel)) && jQuery.css(elem, 'position') != 'absolute') {
281
+ x += parseInt(jQuery.css(parent, 'marginLeft')) || 0;
282
+ y += parseInt(jQuery.css(parent, 'marginTop')) || 0;
283
+ }
284
+ // Mozilla does not include the border on body if an element isn't positioned absolute and is without an absolute parent
285
+ // IE does not include the border on the body if an element is positioned static and without an absolute or relative parent
286
+ if ( (jQuery.browser.mozilla && !absparent) ||
287
+ (jQuery.browser.msie && jQuery.css(elem, 'position') == 'static' && (!relparent || !absparent)) ) {
288
+ x += parseInt(jQuery.css(parent, 'borderLeftWidth')) || 0;
289
+ y += parseInt(jQuery.css(parent, 'borderTopWidth')) || 0;
290
+ }
291
+ break; // Exit the loop
292
+ }
293
+ } while (parent);
294
+
295
+ if ( !options.margin) {
296
+ x -= parseInt(jQuery.css(elem, 'marginLeft')) || 0;
297
+ y -= parseInt(jQuery.css(elem, 'marginTop')) || 0;
298
+ }
299
+
300
+ // Safari and Opera do not add the border for the element
301
+ if ( options.border && (jQuery.browser.safari || jQuery.browser.opera) ) {
302
+ x += parseInt(jQuery.css(elem, 'borderLeftWidth')) || 0;
303
+ y += parseInt(jQuery.css(elem, 'borderTopWidth')) || 0;
304
+ } else if ( !options.border && !(jQuery.browser.safari || jQuery.browser.opera) ) {
305
+ x -= parseInt(jQuery.css(elem, 'borderLeftWidth')) || 0;
306
+ y -= parseInt(jQuery.css(elem, 'borderTopWidth')) || 0;
307
+ }
308
+
309
+ if ( options.padding ) {
310
+ x += parseInt(jQuery.css(elem, 'paddingLeft')) || 0;
311
+ y += parseInt(jQuery.css(elem, 'paddingTop')) || 0;
312
+ }
313
+
314
+ // Opera thinks offset is scroll offset for display: inline elements
315
+ if (options.scroll && jQuery.browser.opera && jQuery.css(elem, 'display') == 'inline') {
316
+ sl -= elem.scrollLeft || 0;
317
+ st -= elem.scrollTop || 0;
318
+ }
319
+
320
+ var returnValue = options.scroll ? { top: y - st, left: x - sl, scrollTop: st, scrollLeft: sl }
321
+ : { top: y, left: x };
322
+
323
+ if (returnObject) { jQuery.extend(returnObject, returnValue); return this; }
324
+ else { return returnValue; }
325
+ };
wp-shopping-cart/js/editor_plugin.js ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ alert('asdfasdf');
2
+
3
+ tinyMCE.importPluginLanguagePack('dd');
4
+
5
+ var TinyMCE_dd_Plugin = {
6
+
7
+ getInfo : function() {
8
+ return {
9
+ longname : 'd:d',
10
+ author : 'Oliver Seidel',
11
+ authorurl : 'http://www.deliciousdays.com',
12
+ infourl : 'http://www.deliciousdays.com',
13
+ version : "1.0"
14
+ };
15
+ },
16
+
17
+ initInstance : function(inst) {
18
+ inst.addShortcut('ctrl', 'p', 'lang_dd_code_desc', 'mcedd_code');
19
+ },
20
+
21
+ getControlHTML : function(cn) {
22
+ switch (cn) {
23
+ case "dd_code":
24
+ return tinyMCE.getButtonHTML(cn, 'lang_dd_code_desc', '{$pluginurl}/images/cart-icon.gif', 'mcedd_code', true);
25
+ }
26
+
27
+ return "";
28
+ },
29
+
30
+ execCommand : function(editor_id, element, command, user_interface, value) {
31
+
32
+ switch (command) {
33
+
34
+ case "mcedd_code":
35
+ var anySelection = false;
36
+ var inst = tinyMCE.getInstanceById(editor_id);
37
+ var focusElm = inst.getFocusElement();
38
+ var selectedText = inst.selection.getSelectedHTML();
39
+
40
+ if ( focusElm.nodeName == "SPAN" && tinyMCE.getAttrib(focusElm, 'class') == "sfcode" ) {
41
+
42
+ var parent = focusElm.parentNode;
43
+
44
+ if ( focusElm.previousSibling && focusElm.previousSibling.nodeName.toUpperCase() == "#TEXT" )
45
+ focusElm.previousSibling.nodeValue = focusElm.previousSibling.nodeValue + focusElm.textContent;
46
+ else if (focusElm.nextSibling && focusElm.nextSibling.nodeName.toUpperCase() == "#TEXT")
47
+ focusElm.nextSibling.nodeValue = focusElm.nextSibling.nodeValue + focusElm.textContent;
48
+ else {
49
+ var newp = inst.getDoc().createElement("p");
50
+ var newText = inst.getDoc().createTextNode( focusElm.textContent );
51
+ newp.appendChild(newText);
52
+ var replaced = parent.replaceChild(newp,focusElm);
53
+ }
54
+
55
+
56
+ parent.removeChild(focusElm);
57
+ tinyMCE.selectedInstance.repaint();
58
+
59
+ }
60
+ else if ( focusElm.nodeName == "DIV" && tinyMCE.getAttrib(focusElm, 'class') == "sfcode" ) {
61
+
62
+ var parent = focusElm.parentNode;
63
+
64
+ var newp = inst.getDoc().createElement("p");
65
+
66
+ childcount = focusElm.childNodes.length;
67
+ for(j=0;j<childcount;j++) {
68
+ newp.appendChild(focusElm.childNodes[0]);
69
+ }
70
+
71
+ var replaced = parent.replaceChild(newp,focusElm);
72
+
73
+ //parent.removeChild(focusElm);
74
+ tinyMCE.selectedInstance.repaint();
75
+
76
+ }
77
+ else if( selectedText.length > 0 )
78
+ {
79
+
80
+ if ( selectedText.match(/<br\s?\/>/) || selectedText.match(/<p>/) )
81
+ html = '<div class="sfcode">'+selectedText+'</div>';
82
+ else
83
+ html = '<span class="sfcode">'+selectedText+'</span>';
84
+
85
+ tinyMCE.execInstanceCommand(editor_id, 'mceInsertContent', false, html);
86
+ tinyMCE.selectedInstance.repaint();
87
+ }
88
+ else
89
+ return true;
90
+
91
+ // Let TinyMCE know that something was modified
92
+ tinyMCE.triggerNodeChange(false);
93
+ return true;
94
+ }
95
+
96
+ return false;
97
+ },
98
+
99
+ handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) {
100
+
101
+ if ( (node.nodeName == "SPAN" || node.nodeName == "DIV") && tinyMCE.getAttrib(node, 'class') == "sfcode" ) {
102
+ tinyMCE.switchClass(editor_id + '_dd_code', 'mceButtonSelected');
103
+ return true;
104
+ }
105
+ else if ( any_selection == "" ) {
106
+ tinyMCE.switchClass(editor_id + '_dd_code', 'mceButtonDisabled');
107
+ return true;
108
+ }
109
+ else
110
+ tinyMCE.switchClass(editor_id + '_dd_code', 'mceButtonNormal');
111
+ },
112
+
113
+ cleanup : function(type, content, inst) {
114
+
115
+ switch (type) {
116
+ case "insert_to_editor_dom":
117
+ break;
118
+ case "insert_to_editor":
119
+ break;
120
+ case "get_from_editor":
121
+ break;
122
+ }
123
+
124
+ return content;
125
+ },
126
+
127
+ // Private plugin internal methods
128
+ _someInternalFunction : function(a, b) {
129
+ return 1;
130
+ }
131
+ };
132
+
133
+ // Add the plugin class to the list of available TinyMCE plugins
134
+ //tinyMCE.addPlugin("dd", TinyMCE_dd_Plugin);
wp-shopping-cart/js/iautocompleter.js ADDED
@@ -0,0 +1,536 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Interface Elements for jQuery
3
+ * Autocompleter
4
+ *
5
+ * http://interface.eyecon.ro
6
+ *
7
+ * Copyright (c) 2006 Stefan Petre
8
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
9
+ * and GPL (GPL-LICENSE.txt) licenses.
10
+ *
11
+ */
12
+
13
+ /**
14
+ * Attach AJAX driven autocomplete/sugestion box to text input fields.
15
+ *
16
+ *
17
+ *
18
+ * @name Autocomplete
19
+ * @description Attach AJAX driven autocomplete/sugestion box to text input fields.
20
+ * @param Hash hash A hash of parameters
21
+ * @option String source the URL to request
22
+ * @option Integer delay (optional) the delayed time to start the AJAX request
23
+ * @option Boolean autofill (optional) when true the first sugested value fills the input
24
+ * @option String helperClass (optional) the CSS class applied to sugestion box
25
+ * @option String selectClass (optional) the CSS class applied to selected/hovered item
26
+ * @option Integer minchars (optional) the number of characters needed before starting AJAX request
27
+ * @option Hash fx (optional) {type:[slide|blind|fade]; duration: integer} the fx type to apply to sugestion box and duration for that fx
28
+ * @option Function onSelect (optional) A function to be executed whenever an item it is selected
29
+ * @option Function onShow (optional) A function to be executed whenever the suggection box is displayed
30
+ * @option Function onHide (optional) A function to be executed whenever the suggection box is hidden
31
+ * @option Function onHighlight (optional) A function to be executed whenever an item it is highlighted
32
+ *
33
+ * @type jQuery
34
+ * @cat Plugins/Interface
35
+ * @author Stefan Petre
36
+ */
37
+ jQuery.iAuto = {
38
+ helper : null,
39
+ content : null,
40
+ iframe: null,
41
+ timer : null,
42
+ lastValue: null,
43
+ currentValue: null,
44
+ subject: null,
45
+ selectedItem : null,
46
+ items: null,
47
+
48
+ empty : function()
49
+ {
50
+ jQuery.iAuto.content.empty();
51
+ if (jQuery.iAuto.iframe) {
52
+ jQuery.iAuto.iframe.hide();
53
+ }
54
+ },
55
+
56
+ clear : function()
57
+ {
58
+ jQuery.iAuto.items = null;
59
+ jQuery.iAuto.selectedItem = null;
60
+ jQuery.iAuto.lastValue = jQuery.iAuto.subject.value;
61
+ if(jQuery.iAuto.helper.css('display') == 'block') {
62
+ if (jQuery.iAuto.subject.autoCFG.fx) {
63
+ switch(jQuery.iAuto.subject.autoCFG.fx.type) {
64
+ case 'fade':
65
+ jQuery.iAuto.helper.fadeOut(jQuery.iAuto.subject.autoCFG.fx.duration, jQuery.iAuto.empty);
66
+ break;
67
+ case 'slide':
68
+ jQuery.iAuto.helper.SlideOutUp(jQuery.iAuto.subject.autoCFG.fx.duration, jQuery.iAuto.empty);
69
+ break;
70
+ case 'blind':
71
+ jQuery.iAuto.helper.BlindUp(jQuery.iAuto.subject.autoCFG.fx.duration, jQuery.iAuto.empty);
72
+ break;
73
+ }
74
+ } else {
75
+ jQuery.iAuto.helper.hide();
76
+ }
77
+ if (jQuery.iAuto.subject.autoCFG.onHide)
78
+ jQuery.iAuto.subject.autoCFG.onHide.apply(jQuery.iAuto.subject, [jQuery.iAuto.helper, jQuery.iAuto.iframe]);
79
+ } else {
80
+ jQuery.iAuto.empty();
81
+ }
82
+ window.clearTimeout(jQuery.iAuto.timer);
83
+ },
84
+
85
+ update : function ()
86
+ {
87
+ var subject = jQuery.iAuto.subject;
88
+ var subjectValue = jQuery.iAuto.getFieldValues(subject);
89
+ //var selectionStart = jQuery.iAuto.getSelectionStart(subject);
90
+ if (subject && subjectValue.item != jQuery.iAuto.lastValue && subjectValue.item.length >= subject.autoCFG.minchars) {
91
+ jQuery.iAuto.lastValue = subjectValue.item;
92
+ jQuery.iAuto.currentValue = subjectValue.item;
93
+
94
+ data = {
95
+ field: jQuery(subject).attr('name')||'field',
96
+ value: subjectValue.item
97
+ };
98
+
99
+ jQuery.ajax(
100
+ {
101
+ type: 'POST',
102
+ data: jQuery.param(data),
103
+ success: function(xml)
104
+ {
105
+ subject.autoCFG.lastSuggestion = jQuery('item',xml);
106
+ size = subject.autoCFG.lastSuggestion.size();
107
+ if (size > 0) {
108
+ var toWrite = '';
109
+ subject.autoCFG.lastSuggestion.each(
110
+ function(nr)
111
+ {
112
+ toWrite += '<li rel="' + jQuery('value', this).text() + '" dir="' + nr + '" style="cursor: default;">' + jQuery('text', this).text() + '</li>';
113
+ }
114
+ );
115
+ if (subject.autoCFG.autofill) {
116
+ var valueToAdd = jQuery('value', subject.autoCFG.lastSuggestion.get(0)).text();
117
+ subject.value = subjectValue.pre + valueToAdd + subject.autoCFG.multipleSeparator + subjectValue.post;
118
+ jQuery.iAuto.selection(
119
+ subject,
120
+ subjectValue.item.length != valueToAdd.length ? (subjectValue.pre.length + subjectValue.item.length) : valueToAdd.length,
121
+ subjectValue.item.length != valueToAdd.length ? (subjectValue.pre.length + valueToAdd.length) : valueToAdd.length
122
+ );
123
+ }
124
+
125
+ if (size > 0) {
126
+ jQuery.iAuto.writeItems(subject, toWrite);
127
+ } else {
128
+ jQuery.iAuto.clear();
129
+ }
130
+ } else {
131
+ jQuery.iAuto.clear();
132
+ }
133
+ },
134
+ url : subject.autoCFG.source
135
+ }
136
+ );
137
+ }
138
+ },
139
+
140
+ writeItems : function(subject, toWrite)
141
+ {
142
+ jQuery.iAuto.content.html(toWrite);
143
+ jQuery.iAuto.items = jQuery('li', jQuery.iAuto.content.get(0));
144
+ jQuery.iAuto.items
145
+ .mouseover(jQuery.iAuto.hoverItem)
146
+ .bind('click', jQuery.iAuto.clickItem);
147
+ var position = jQuery.iUtil.getPosition(subject);
148
+ var size = jQuery.iUtil.getSize(subject);
149
+ jQuery.iAuto.helper
150
+ .css('top', position.y + size.hb + 'px')
151
+ .css('left', position.x + 'px')
152
+ .addClass(subject.autoCFG.helperClass);
153
+ if (jQuery.iAuto.iframe) {
154
+ jQuery.iAuto.iframe
155
+ .css('display', 'block')
156
+ .css('top', position.y + size.hb + 'px')
157
+ .css('left', position.x + 'px')
158
+ .css('width', jQuery.iAuto.helper.css('width'))
159
+ .css('height', jQuery.iAuto.helper.css('height'));
160
+ }
161
+ jQuery.iAuto.selectedItem = 0;
162
+ jQuery.iAuto.items.get(0).className = subject.autoCFG.selectClass;
163
+ jQuery.iAuto.applyOn(subject,subject.autoCFG.lastSuggestion.get(0), 'onHighlight');
164
+
165
+ if (jQuery.iAuto.helper.css('display') == 'none') {
166
+ if (subject.autoCFG.inputWidth) {
167
+ var borders = jQuery.iUtil.getPadding(subject, true);
168
+ var paddings = jQuery.iUtil.getBorder(subject, true);
169
+ jQuery.iAuto.helper.css('width', subject.offsetWidth - (jQuery.boxModel ? (borders.l + borders.r + paddings.l + paddings.r) : 0 ) + 'px');
170
+ }
171
+ if (subject.autoCFG.fx) {
172
+ switch(subject.autoCFG.fx.type) {
173
+ case 'fade':
174
+ jQuery.iAuto.helper.fadeIn(subject.autoCFG.fx.duration);
175
+ break;
176
+ case 'slide':
177
+ jQuery.iAuto.helper.SlideInUp(subject.autoCFG.fx.duration);
178
+ break;
179
+ case 'blind':
180
+ jQuery.iAuto.helper.BlindDown(subject.autoCFG.fx.duration);
181
+ break;
182
+ }
183
+ } else {
184
+ jQuery.iAuto.helper.show();
185
+ }
186
+
187
+ if (jQuery.iAuto.subject.autoCFG.onShow)
188
+ jQuery.iAuto.subject.autoCFG.onShow.apply(jQuery.iAuto.subject, [jQuery.iAuto.helper, jQuery.iAuto.iframe]);
189
+ }
190
+ },
191
+
192
+ checkCache : function()
193
+ {
194
+ var subject = this;
195
+ if (subject.autoCFG.lastSuggestion) {
196
+
197
+ jQuery.iAuto.lastValue = subject.value;
198
+ jQuery.iAuto.currentValue = subject.value;
199
+
200
+ var toWrite = '';
201
+ subject.autoCFG.lastSuggestion.each(
202
+ function(nr)
203
+ {
204
+ value = jQuery('value', this).text().toLowerCase();
205
+ inputValue = subject.value.toLowerCase();
206
+ if (value.indexOf(inputValue) == 0) {
207
+ toWrite += '<li rel="' + jQuery('value', this).text() + '" dir="' + nr + '" style="cursor: default;">' + jQuery('text', this).text() + '</li>';
208
+ }
209
+ }
210
+ );
211
+
212
+ if (toWrite != '') {
213
+ jQuery.iAuto.writeItems(subject, toWrite);
214
+
215
+ this.autoCFG.inCache = true;
216
+ return;
217
+ }
218
+ }
219
+ subject.autoCFG.lastSuggestion = null;
220
+ this.autoCFG.inCache = false;
221
+ },
222
+
223
+ selection : function(field, start, end)
224
+ {
225
+ if (field.createTextRange) {
226
+ var selRange = field.createTextRange();
227
+ selRange.collapse(true);
228
+ selRange.moveStart("character", start);
229
+ selRange.moveEnd("character", - end + start);
230
+ selRange.select();
231
+ } else if (field.setSelectionRange) {
232
+ field.setSelectionRange(start, end);
233
+ } else {
234
+ if (field.selectionStart) {
235
+ field.selectionStart = start;
236
+ field.selectionEnd = end;
237
+ }
238
+ }
239
+ field.focus();
240
+ },
241
+
242
+ getSelectionStart : function(field)
243
+ {
244
+ if (field.selectionStart)
245
+ return field.selectionStart;
246
+ else if(field.createTextRange) {
247
+ var selRange = document.selection.createRange();
248
+ var selRange2 = selRange.duplicate();
249
+ return 0 - selRange2.moveStart('character', -100000);
250
+ //result.end = result.start + range.text.length;
251
+ /*var selRange = document.selection.createRange();
252
+ var isCollapsed = selRange.compareEndPoints("StartToEnd", selRange) == 0;
253
+ if (!isCollapsed)
254
+ selRange.collapse(true);
255
+ var bookmark = selRange.getBookmark();
256
+ return bookmark.charCodeAt(2) - 2;*/
257
+ }
258
+ },
259
+
260
+ getFieldValues : function(field)
261
+ {
262
+ var fieldData = {
263
+ value: field.value,
264
+ pre: '',
265
+ post: '',
266
+ item: ''
267
+ };
268
+
269
+ if(field.autoCFG.multiple) {
270
+ var finishedPre = false;
271
+ var selectionStart = jQuery.iAuto.getSelectionStart(field)||0;
272
+ var chunks = fieldData.value.split(field.autoCFG.multipleSeparator);
273
+ for (var i=0; i<chunks.length; i++) {
274
+ if(
275
+ (fieldData.pre.length + chunks[i].length >= selectionStart
276
+ ||
277
+ selectionStart == 0)
278
+ &&
279
+ !finishedPre
280
+ ) {
281
+ if (fieldData.pre.length <= selectionStart)
282
+ fieldData.item = chunks[i];
283
+ else
284
+ fieldData.post += chunks[i] + (chunks[i] != '' ? field.autoCFG.multipleSeparator : '');
285
+ finishedPre = true;
286
+ } else if (finishedPre){
287
+ fieldData.post += chunks[i] + (chunks[i] != '' ? field.autoCFG.multipleSeparator : '');
288
+ }
289
+ if(!finishedPre) {
290
+ fieldData.pre += chunks[i] + (chunks.length > 1 ? field.autoCFG.multipleSeparator : '');
291
+ }
292
+ }
293
+ } else {
294
+ fieldData.item = fieldData.value;
295
+ }
296
+ return fieldData;
297
+ },
298
+
299
+ autocomplete : function(e)
300
+ {
301
+ window.clearTimeout(jQuery.iAuto.timer);
302
+ var subject = jQuery.iAuto.getFieldValues(this);
303
+
304
+ var pressedKey = e.charCode || e.keyCode || -1;
305
+ if (/13|27|35|36|38|40|9/.test(pressedKey) && jQuery.iAuto.items) {
306
+ if (window.event) {
307
+ window.event.cancelBubble = true;
308
+ window.event.returnValue = false;
309
+ } else {
310
+ e.preventDefault();
311
+ e.stopPropagation();
312
+ }
313
+ if (jQuery.iAuto.selectedItem != null)
314
+ jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).className = '';
315
+ else
316
+ jQuery.iAuto.selectedItem = -1;
317
+ switch(pressedKey) {
318
+ //enter
319
+ case 9:
320
+ case 13:
321
+ if (jQuery.iAuto.selectedItem == -1)
322
+ jQuery.iAuto.selectedItem = 0;
323
+ var selectedItem = jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0);
324
+ var valueToAdd = selectedItem.getAttribute('rel');
325
+ this.value = subject.pre + valueToAdd + this.autoCFG.multipleSeparator + subject.post;
326
+ jQuery.iAuto.lastValue = subject.item;
327
+ jQuery.iAuto.selection(
328
+ this,
329
+ subject.pre.length + valueToAdd.length + this.autoCFG.multipleSeparator.length,
330
+ subject.pre.length + valueToAdd.length + this.autoCFG.multipleSeparator.length
331
+ );
332
+ jQuery.iAuto.clear();
333
+ if (this.autoCFG.onSelect) {
334
+ iteration = parseInt(selectedItem.getAttribute('dir'))||0;
335
+ jQuery.iAuto.applyOn(this,this.autoCFG.lastSuggestion.get(iteration), 'onSelect');
336
+ }
337
+ if (this.scrollIntoView)
338
+ this.scrollIntoView(false);
339
+ return pressedKey != 13;
340
+ break;
341
+ //escape
342
+ case 27:
343
+ this.value = subject.pre + jQuery.iAuto.lastValue + this.autoCFG.multipleSeparator + subject.post;
344
+ this.autoCFG.lastSuggestion = null;
345
+ jQuery.iAuto.clear();
346
+ if (this.scrollIntoView)
347
+ this.scrollIntoView(false);
348
+ return false;
349
+ break;
350
+ //end
351
+ case 35:
352
+ jQuery.iAuto.selectedItem = jQuery.iAuto.items.size() - 1;
353
+ break;
354
+ //home
355
+ case 36:
356
+ jQuery.iAuto.selectedItem = 0;
357
+ break;
358
+ //up
359
+ case 38:
360
+ jQuery.iAuto.selectedItem --;
361
+ if (jQuery.iAuto.selectedItem < 0)
362
+ jQuery.iAuto.selectedItem = jQuery.iAuto.items.size() - 1;
363
+ break;
364
+ case 40:
365
+ jQuery.iAuto.selectedItem ++;
366
+ if (jQuery.iAuto.selectedItem == jQuery.iAuto.items.size())
367
+ jQuery.iAuto.selectedItem = 0;
368
+ break;
369
+ }
370
+ jQuery.iAuto.applyOn(this,this.autoCFG.lastSuggestion.get(jQuery.iAuto.selectedItem||0), 'onHighlight');
371
+ jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).className = this.autoCFG.selectClass;
372
+ if (jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).scrollIntoView)
373
+ jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).scrollIntoView(false);
374
+ if(this.autoCFG.autofill) {
375
+ var valToAdd = jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).getAttribute('rel');
376
+ this.value = subject.pre + valToAdd + this.autoCFG.multipleSeparator + subject.post;
377
+ if(jQuery.iAuto.lastValue.length != valToAdd.length)
378
+ jQuery.iAuto.selection(
379
+ this,
380
+ subject.pre.length + jQuery.iAuto.lastValue.length,
381
+ subject.pre.length + valToAdd.length
382
+ );
383
+ }
384
+ return false;
385
+ }
386
+ jQuery.iAuto.checkCache.apply(this);
387
+
388
+ if (this.autoCFG.inCache == false) {
389
+ if (subject.item != jQuery.iAuto.lastValue && subject.item.length >= this.autoCFG.minchars)
390
+ jQuery.iAuto.timer = window.setTimeout(jQuery.iAuto.update, this.autoCFG.delay);
391
+ if (jQuery.iAuto.items) {
392
+ jQuery.iAuto.clear();
393
+ }
394
+ }
395
+ return true;
396
+ },
397
+
398
+ applyOn: function(field, item, type)
399
+ {
400
+ if (field.autoCFG[type]) {
401
+ var data = {};
402
+ childs = item.getElementsByTagName('*');
403
+ for(i=0; i<childs.length; i++){
404
+ data[childs[i].tagName] = childs[i].firstChild.nodeValue;
405
+ }
406
+ field.autoCFG[type].apply(field,[data]);
407
+ }
408
+ },
409
+
410
+ hoverItem : function(e)
411
+ {
412
+ if (jQuery.iAuto.items) {
413
+ if (jQuery.iAuto.selectedItem != null)
414
+ jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).className = '';
415
+ jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).className = '';
416
+ jQuery.iAuto.selectedItem = parseInt(this.getAttribute('dir'))||0;
417
+ jQuery.iAuto.items.get(jQuery.iAuto.selectedItem||0).className = jQuery.iAuto.subject.autoCFG.selectClass;
418
+ }
419
+ },
420
+
421
+ clickItem : function(event)
422
+ {
423
+ window.clearTimeout(jQuery.iAuto.timer);
424
+
425
+ event = event || jQuery.event.fix( window.event );
426
+ event.preventDefault();
427
+ event.stopPropagation();
428
+ var subject = jQuery.iAuto.getFieldValues(jQuery.iAuto.subject);
429
+ var valueToAdd = this.getAttribute('rel');
430
+ jQuery.iAuto.subject.value = subject.pre + valueToAdd + jQuery.iAuto.subject.autoCFG.multipleSeparator + subject.post;
431
+ jQuery.iAuto.lastValue = this.getAttribute('rel');
432
+ jQuery.iAuto.selection(
433
+ jQuery.iAuto.subject,
434
+ subject.pre.length + valueToAdd.length + jQuery.iAuto.subject.autoCFG.multipleSeparator.length,
435
+ subject.pre.length + valueToAdd.length + jQuery.iAuto.subject.autoCFG.multipleSeparator.length
436
+ );
437
+ jQuery.iAuto.clear();
438
+ if (jQuery.iAuto.subject.autoCFG.onSelect) {
439
+ iteration = parseInt(this.getAttribute('dir'))||0;
440
+ jQuery.iAuto.applyOn(jQuery.iAuto.subject,jQuery.iAuto.subject.autoCFG.lastSuggestion.get(iteration), 'onSelect');
441
+ }
442
+
443
+ return false;
444
+ },
445
+
446
+ protect : function(e)
447
+ {
448
+ pressedKey = e.charCode || e.keyCode || -1;
449
+ if (/13|27|35|36|38|40/.test(pressedKey) && jQuery.iAuto.items) {
450
+ if (window.event) {
451
+ window.event.cancelBubble = true;
452
+ window.event.returnValue = false;
453
+ } else {
454
+ e.preventDefault();
455
+ e.stopPropagation();
456
+ }
457
+ return false;
458
+ }
459
+ },
460
+
461
+ build : function(options)
462
+ {
463
+ if (!options.source || !jQuery.iUtil) {
464
+ return;
465
+ }
466
+
467
+ if (!jQuery.iAuto.helper) {
468
+ if (jQuery.browser.msie) {
469
+ jQuery('body', document).append('<iframe style="display:none;position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" id="autocompleteIframe" src="javascript:false;" frameborder="0" scrolling="no"></iframe>');
470
+ jQuery.iAuto.iframe = jQuery('#autocompleteIframe');
471
+ }
472
+ jQuery('body', document).append('<div id="autocompleteHelper" style="position: absolute; top: 0; left: 0; z-index: 30001; display: none;"><ul style="margin: 0;padding: 0; list-style: none; z-index: 30002;">&nbsp;</ul></div>');
473
+ jQuery.iAuto.helper = jQuery('#autocompleteHelper');
474
+ jQuery.iAuto.content = jQuery('ul', jQuery.iAuto.helper);
475
+ }
476
+
477
+ return this.each(
478
+ function()
479
+ {
480
+ if (this.tagName != 'INPUT' && this.getAttribute('type') != 'text' )
481
+ return;
482
+ this.autoCFG = {};
483
+ this.autoCFG.source = options.source;
484
+ this.autoCFG.minchars = Math.abs(parseInt(options.minchars)||1);
485
+ this.autoCFG.helperClass = options.helperClass ? options.helperClass : '';
486
+ this.autoCFG.selectClass = options.selectClass ? options.selectClass : '';
487
+ this.autoCFG.onSelect = options.onSelect && options.onSelect.constructor == Function ? options.onSelect : null;
488
+ this.autoCFG.onShow = options.onShow && options.onShow.constructor == Function ? options.onShow : null;
489
+ this.autoCFG.onHide = options.onHide && options.onHide.constructor == Function ? options.onHide : null;
490
+ this.autoCFG.onHighlight = options.onHighlight && options.onHighlight.constructor == Function ? options.onHighlight : null;
491
+ this.autoCFG.inputWidth = options.inputWidth||false;
492
+ this.autoCFG.multiple = options.multiple||false;
493
+ this.autoCFG.multipleSeparator = this.autoCFG.multiple ? (options.multipleSeparator||', '):'';
494
+ this.autoCFG.autofill = options.autofill ? true : false;
495
+ this.autoCFG.delay = Math.abs(parseInt(options.delay)||1000);
496
+ if (options.fx && options.fx.constructor == Object) {
497
+ if (!options.fx.type || !/fade|slide|blind/.test(options.fx.type)) {
498
+ options.fx.type = 'slide';
499
+ }
500
+ if (options.fx.type == 'slide' && !jQuery.fx.slide)
501
+ return;
502
+ if (options.fx.type == 'blind' && !jQuery.fx.BlindDirection)
503
+ return;
504
+
505
+ options.fx.duration = Math.abs(parseInt(options.fx.duration)||400);
506
+ if (options.fx.duration > this.autoCFG.delay) {
507
+ options.fx.duration = this.autoCFG.delay - 100;
508
+ }
509
+ this.autoCFG.fx = options.fx;
510
+ }
511
+ this.autoCFG.lastSuggestion = null;
512
+ this.autoCFG.inCache = false;
513
+
514
+ jQuery(this)
515
+ .attr('autocomplete', 'off')
516
+ .focus(
517
+ function()
518
+ {
519
+ jQuery.iAuto.subject = this;
520
+ jQuery.iAuto.lastValue = this.value;
521
+ }
522
+ )
523
+ .keypress(jQuery.iAuto.protect)
524
+ .keyup(jQuery.iAuto.autocomplete)
525
+
526
+ .blur(
527
+ function()
528
+ {
529
+ jQuery.iAuto.timer = window.setTimeout(jQuery.iAuto.clear, 200);
530
+ }
531
+ );
532
+ }
533
+ );
534
+ }
535
+ };
536
+ jQuery.fn.Autocomplete = jQuery.iAuto.build;
wp-shopping-cart/js/interface.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Interface elements for jQuery - http://interface.eyecon.ro
3
+ *
4
+ * Copyright (c) 2006 Stefan Petre
5
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
6
+ * and GPL (GPL-LICENSE.txt) licenses.
7
+ */
8
+ eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('6.Q={2x:D(e){B x=0;B y=0;B 4N=F;B 1w=e.1j;k(6(e).K(\'1k\')==\'1t\'){4C=1w.3z;6F=1w.11;1w.3z=\'43\';1w.1k=\'2V\';1w.11=\'2G\';4N=O}B C=e;6o(C){x+=C.5w+(C.34&&!6.2K.4J?I(C.34.5X)||0:0);y+=C.5l+(C.34&&!6.2K.4J?I(C.34.5E)||0:0);C=C.8o}C=e;6o(C&&C.5v&&C.5v.6d()!=\'1O\'){x-=C.24||0;y-=C.1X||0;C=C.3d}k(4N){1w.1k=\'1t\';1w.11=6F;1w.3z=4C}G{x:x,y:y}},78:D(C){B x=0,y=0;6o(C){x+=C.5w||0;y+=C.5l||0;C=C.8o}G{x:x,y:y}},2e:D(e){B w=6.K(e,\'1d\');B h=6.K(e,\'1a\');B 1p=0;B 1m=0;B 1w=e.1j;k(6(e).K(\'1k\')!=\'1t\'){1p=e.5u;1m=e.5p}N{4C=1w.3z;6F=1w.11;1w.3z=\'43\';1w.1k=\'2V\';1w.11=\'2G\';1p=e.5u;1m=e.5p;1w.1k=\'1t\';1w.11=6F;1w.3z=4C}G{w:w,h:h,1p:1p,1m:1m}},4Q:D(C){G{1p:C.5u||0,1m:C.5p||0}},8B:D(e){B h,w,58;k(e){w=e.5x;h=e.5n}N{58=1i.2R;w=3c.7f||6p.7f||(58&&58.5x)||1i.1O.5x;h=3c.72||6p.72||(58&&58.5n)||1i.1O.5n}G{w:w,h:h}},5r:D(e){B t,l,w,h,4F,4D;k(e&&e.6n.6d()!=\'1O\'){t=e.1X;l=e.24;w=e.77;h=e.74;4F=0;4D=0}N{k(1i.2R&&1i.2R.1X){t=1i.2R.1X;l=1i.2R.24;w=1i.2R.77;h=1i.2R.74}N k(1i.1O){t=1i.1O.1X;l=1i.1O.24;w=1i.1O.77;h=1i.1O.74}4F=6p.7f||1i.2R.5x||1i.1O.5x||0;4D=6p.72||1i.2R.5n||1i.1O.5n||0}G{t:t,l:l,w:w,h:h,4F:4F,4D:4D}},8f:D(e,4U){B C=6(e);B t=C.K(\'3s\')||\'\';B r=C.K(\'3I\')||\'\';B b=C.K(\'3F\')||\'\';B l=C.K(\'3G\')||\'\';k(4U)G{t:I(t)||0,r:I(r)||0,b:I(b)||0,l:I(l)};N G{t:t,r:r,b:b,l:l}},aG:D(e,4U){B C=6(e);B t=C.K(\'84\')||\'\';B r=C.K(\'7Z\')||\'\';B b=C.K(\'83\')||\'\';B l=C.K(\'7U\')||\'\';k(4U)G{t:I(t)||0,r:I(r)||0,b:I(b)||0,l:I(l)};N G{t:t,r:r,b:b,l:l}},5G:D(e,4U){B C=6(e);B t=C.K(\'5E\')||\'\';B r=C.K(\'7W\')||\'\';B b=C.K(\'86\')||\'\';B l=C.K(\'5X\')||\'\';k(4U)G{t:I(t)||0,r:I(r)||0,b:I(b)||0,l:I(l)||0};N G{t:t,r:r,b:b,l:l}},2T:D(3m){B x=3m.a4||(3m.9X+(1i.2R.24||1i.1O.24))||0;B y=3m.bC||(3m.bj+(1i.2R.1X||1i.1O.1X))||0;G{x:x,y:y}},79:D(3e,6Z){6Z(3e);3e=3e.5Z;6o(3e){6.Q.79(3e,6Z);3e=3e.aK}},bd:D(3e){6.Q.79(3e,D(C){1C(B 1y 27 C){k(2S C[1y]===\'D\'){C[1y]=P}}})},aT:D(C,1E){B 3i=$.Q.5r();B 8h=$.Q.2e(C);k(!1E||1E==\'4l\')$(C).K({U:3i.t+((R.3x(3i.h,3i.4D)-3i.t-8h.1m)/2)+\'1c\'});k(!1E||1E==\'4o\')$(C).K({S:3i.l+((R.3x(3i.w,3i.4F)-3i.l-8h.1p)/2)+\'1c\'})},aX:D(C,8J){B 8I=$(\'8D[@6e*="6f"]\',C||1i),6f;8I.1v(D(){6f=q.6e;q.6e=8J;q.1j.7d="aZ:b2.bm.b3(6e=\'"+6f+"\')"})}};[].7X||(60.b1.7X=D(v,n){n=(n==P)?0:n;B m=q.1F;1C(B i=n;i<m;i++)k(q[i]==v)G i;G-1});6.8E=D(e){k(/^b4$|^b5$|^b9$|^b7$|^b6$|^aY$|^aP$|^aO$|^aN$|^1O$|^aL$|^aQ$|^aR$|^aW$|^aV$|^aU$|^aS$/i.4h(e.6n))G F;N G O};6.V.ba=D(e,3X){B c=e.5Z;B cs=c.1j;cs.11=3X.11;cs.3s=3X.2f.t;cs.3G=3X.2f.l;cs.3F=3X.2f.b;cs.3I=3X.2f.r;cs.U=3X.U+\'1c\';cs.S=3X.S+\'1c\';e.3d.8A(c,e);e.3d.bb(e)};6.V.bv=D(e){k(!6.8E(e))G F;B t=6(e);B 1w=e.1j;B 4N=F;B 1U={};1U.11=t.K(\'11\');k(t.K(\'1k\')==\'1t\'){4C=t.K(\'3z\');1w.3z=\'43\';1w.1k=\'\';4N=O}1U.1T=6.Q.2e(e);1U.2f=6.Q.8f(e);B 7z=e.34?e.34.8y:t.K(\'bu\');1U.U=I(t.K(\'U\'))||0;1U.S=I(t.K(\'S\'))||0;B 8z=\'bt\'+I(R.9T()*71);B 4j=1i.9G(/^8D$|^br$|^bs$|^bw$|^68$|^bx$|^7D$|^bB$|^bA$|^bz$|^by$|^bp$|^bo$|^bg$/i.4h(e.6n)?\'2o\':e.6n);6.1y(4j,\'1u\',8z);4j.2J=\'bf\';B 2h=4j.1j;B U=0;B S=0;k(1U.11==\'3u\'||1U.11==\'2G\'){U=1U.U;S=1U.S}2h.1k=\'1t\';2h.U=U+\'1c\';2h.S=S+\'1c\';2h.11=1U.11!=\'3u\'&&1U.11!=\'2G\'?\'3u\':1U.11;2h.5F=\'43\';2h.1a=1U.1T.1m+\'1c\';2h.1d=1U.1T.1p+\'1c\';2h.3s=1U.2f.t;2h.3I=1U.2f.r;2h.3F=1U.2f.b;2h.3G=1U.2f.l;k(6.2K.57){2h.8y=7z}N{2h.be=7z}e.3d.8A(4j,e);1w.3s=\'2a\';1w.3I=\'2a\';1w.3F=\'2a\';1w.3G=\'2a\';1w.11=\'2G\';1w.8r=\'1t\';1w.U=\'2a\';1w.S=\'2a\';k(4N){1w.1k=\'1t\';1w.3z=4C}4j.a1(e);2h.1k=\'2V\';G{1U:1U,9W:6(4j)}};6.V.5R={a3:[0,1x,1x],af:[8x,1x,1x],ab:[8K,8K,ad],a9:[0,0,0],a7:[0,0,1x],a6:[8P,42,42],ag:[0,1x,1x],ae:[0,0,4u],a5:[0,4u,4u],ah:[7u,7u,7u],a2:[0,3h,0],9Z:[a0,aa,8T],aJ:[4u,0,4u],aB:[85,8T,47],az:[1x,8S,0],ai:[ay,50,aC],aD:[4u,0,0],aH:[aE,aF,aw],av:[an,0,6K],am:[1x,0,1x],al:[1x,aj,0],ak:[0,4m,0],ao:[75,0,ap],au:[8x,8N,8S],aq:[ar,bq,8N],cT:[8O,1x,1x],cN:[8M,cz,8M],cA:[6K,6K,6K],cO:[1x,cy,cx],cu:[1x,1x,8O],bD:[0,1x,0],cL:[1x,0,1x],cJ:[4m,0,0],cE:[0,0,4m],cG:[4m,4m,0],cH:[1x,8P,0],cF:[1x,6z,cI],cM:[4m,0,4m],cD:[1x,0,0],cw:[6z,6z,6z],cv:[1x,1x,1x],ct:[1x,1x,0]};6.V.4a=D(31,8w){k(6.V.5R[31])G{r:6.V.5R[31][0],g:6.V.5R[31][1],b:6.V.5R[31][2]};N k(1W=/^4R\\(\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*,\\s*([0-9]{1,3})\\s*\\)$/.6L(31))G{r:I(1W[1]),g:I(1W[2]),b:I(1W[3])};N k(1W=/4R\\(\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*,\\s*([0-9]+(?:\\.[0-9]+)?)\\%\\s*\\)$/.6L(31))G{r:2d(1W[1])*2.55,g:2d(1W[2])*2.55,b:2d(1W[3])*2.55};N k(1W=/^#([a-4X-4Z-9])([a-4X-4Z-9])([a-4X-4Z-9])$/.6L(31))G{r:I("56"+1W[1]+1W[1]),g:I("56"+1W[2]+1W[2]),b:I("56"+1W[3]+1W[3])};N k(1W=/^#([a-4X-4Z-9]{2})([a-4X-4Z-9]{2})([a-4X-4Z-9]{2})$/.6L(31))G{r:I("56"+1W[1]),g:I("56"+1W[2]),b:I("56"+1W[3])};N G 8w==O?F:{r:1x,g:1x,b:1x}};6.V.8v={86:1,5X:1,7W:1,5E:1,4g:1,cZ:1,1a:1,S:1,cY:1,d1:1,3F:1,3G:1,3I:1,3s:1,5a:1,6g:1,5d:1,6i:1,1B:1,cW:1,cS:1,83:1,7U:1,7Z:1,84:1,53:1,cU:1,U:1,1d:1,2Z:1};6.V.8m={cQ:1,cR:1,cP:1,cV:1,cX:1,31:1,d0:1};6.V.5L=[\'cq\',\'bU\',\'bT\',\'bS\'];6.V.7A={\'7J\':[\'5T\',\'8t\'],\'6C\':[\'5T\',\'7V\'],\'6P\':[\'6P\',\'\'],\'6U\':[\'6U\',\'\']};6.3j.1R({7a:D(3T,51,1S,5P){G q.5O(D(){B 6h=6.51(51,1S,5P);B e=3W 6.8n(q,6h,3T)})},8j:D(51,5P){G q.5O(D(){B 6h=6.51(51,5P);B e=3W 6.8j(q,6h)})},5h:D(23){G q.1v(D(){k(q.3Y)6.7r(q,23)})},bR:D(23){G q.1v(D(){k(q.3Y)6.7r(q,23);k(q.5O&&q.5O[\'V\'])q.5O.V=[]})}});6.1R({8j:D(1z,12){B z=q,29;z.23=D(){k(6.8C(12.33))12.33.1H(1z)};z.3U=7n(D(){z.23()},12.1g);1z.3Y=z},1S:{7L:D(p,n,1l,1h,1g){G((-R.9o(p*R.3k)/2)+0.5)*1h+1l}},8n:D(1z,12,3T){B z=q,29;B y=1z.1j;B 8L=6.K(1z,"5F");B 4p=6.K(1z,"1k");B 1A={};z.6k=(3W 8V()).8U();12.1S=12.1S&&6.1S[12.1S]?12.1S:\'7L\';z.6X=D(1P,2y){k(6.V.8v[1P]){k(2y==\'41\'||2y==\'3q\'||2y==\'8u\'){k(!1z.46)1z.46={};B r=2d(6.2m(1z,1P));1z.46[1P]=r&&r>-71?r:(2d(6.K(1z,1P))||0);2y=2y==\'8u\'?(4p==\'1t\'?\'41\':\'3q\'):2y;12[2y]=O;1A[1P]=2y==\'41\'?[0,1z.46[1P]]:[1z.46[1P],0];k(1P!=\'1B\')y[1P]=1A[1P][0]+(1P!=\'2Z\'&&1P!=\'8e\'?\'1c\':\'\');N 6.1y(y,"1B",1A[1P][0])}N{1A[1P]=[2d(6.2m(1z,1P)),2d(2y)||0]}}N k(6.V.8m[1P])1A[1P]=[6.V.4a(6.2m(1z,1P)),6.V.4a(2y)];N k(/^6P$|6U$|5T$|6C$|7J$/i.4h(1P)){B m=2y.3V(/\\s+/g,\' \').3V(/4R\\s*\\(\\s*/g,\'4R(\').3V(/\\s*,\\s*/g,\',\').3V(/\\s*\\)/g,\')\').9F(/([^\\s]+)/g);3O(1P){1n\'6P\':1n\'6U\':1n\'7J\':1n\'6C\':m[3]=m[3]||m[1]||m[0];m[2]=m[2]||m[0];m[1]=m[1]||m[0];1C(B i=0;i<6.V.5L.1F;i++){B 3S=6.V.7A[1P][0]+6.V.5L[i]+6.V.7A[1P][1];1A[3S]=1P==\'6C\'?[6.V.4a(6.2m(1z,3S)),6.V.4a(m[i])]:[2d(6.2m(1z,3S)),2d(m[i])]}1K;1n\'5T\':1C(B i=0;i<m.1F;i++){B 8b=2d(m[i]);B 6J=!c0(8b)?\'8t\':(!/bY|1t|43|bX|bQ|bP|cr|bH|bG|bE|bF/i.4h(m[i])?\'7V\':F);k(6J){1C(B j=0;j<6.V.5L.1F;j++){3S=\'5T\'+6.V.5L[j]+6J;1A[3S]=6J==\'7V\'?[6.V.4a(6.2m(1z,3S)),6.V.4a(m[i])]:[2d(6.2m(1z,3S)),8b]}}N{y[\'bN\']=m[i]}}1K}}N{y[1P]=2y}G F};1C(p 27 3T){k(p==\'1j\'){B 3r=6.8i(3T[p]);1C(4B 27 3r){q.6X(4B,3r[4B])}}N k(p==\'2J\'){k(1i.6x)1C(B i=0;i<1i.6x.1F;i++){B 4z=1i.6x[i].4z||1i.6x[i].bL||P;k(4z){1C(B j=0;j<4z.1F;j++){k(4z[j].c1==\'.\'+3T[p]){B 4K=3W c2(\'\\.\'+3T[p]+\' {\');B 3P=4z[j].1j.cj;B 3r=6.8i(3P.3V(4K,\'\').3V(/}/g,\'\'));1C(4B 27 3r){q.6X(4B,3r[4B])}}}}}}N{q.6X(p,3T[p])}}y.1k=4p==\'1t\'?\'2V\':4p;y.5F=\'43\';z.23=D(){B t=(3W 8V()).8U();k(t>12.1g+z.6k){7i(z.3U);z.3U=P;1C(p 27 1A){k(p=="1B")6.1y(y,"1B",1A[p][1]);N k(2S 1A[p][1]==\'7D\')y[p]=\'4R(\'+1A[p][1].r+\',\'+1A[p][1].g+\',\'+1A[p][1].b+\')\';N y[p]=1A[p][1]+(p!=\'2Z\'&&p!=\'8e\'?\'1c\':\'\')}k(12.3q||12.41)1C(B p 27 1z.46)k(p=="1B")6.1y(y,p,1z.46[p]);N y[p]="";y.1k=12.3q?\'1t\':(4p!=\'1t\'?4p:\'2V\');y.5F=8L;1z.3Y=P;k(6.8C(12.33))12.33.1H(1z)}N{B n=t-q.6k;B 5q=n/12.1g;1C(p 27 1A){k(2S 1A[p][1]==\'7D\'){y[p]=\'4R(\'+I(6.1S[12.1S](5q,n,1A[p][0].r,(1A[p][1].r-1A[p][0].r),12.1g))+\',\'+I(6.1S[12.1S](5q,n,1A[p][0].g,(1A[p][1].g-1A[p][0].g),12.1g))+\',\'+I(6.1S[12.1S](5q,n,1A[p][0].b,(1A[p][1].b-1A[p][0].b),12.1g))+\')\'}N{B 89=6.1S[12.1S](5q,n,1A[p][0],(1A[p][1]-1A[p][0]),12.1g);k(p=="1B")6.1y(y,"1B",89);N y[p]=89+(p!=\'2Z\'&&p!=\'8e\'?\'1c\':\'\')}}}};z.3U=7n(D(){z.23()},13);1z.3Y=z},7r:D(1z,23){k(23)1z.3Y.6k-=ck;N{3c.7i(1z.3Y.3U);1z.3Y=P;6.cl(1z,"V")}}});6.8i=D(3P){B 3r={};k(2S 3P==\'7m\'){3P=3P.6d().8H(\';\');1C(B i=0;i<3P.1F;i++){4K=3P[i].8H(\':\');k(4K.1F==2){3r[6.8G(4K[0].3V(/\\-(\\w)/g,D(m,c){G c.co()}))]=6.8G(4K[1])}}}G 3r};6.H={W:P,A:P,3R:D(){G q.1v(D(){k(q.6M){q.8.3b.2i(\'32\',6.H.76);q.8=P;q.6M=F;k(6.2K.57){q.73="cn"}N{q.1j.cm=\'\';q.1j.8q=\'\';q.1j.8p=\'\'}}})},76:D(e){k(6.H.A!=P){6.H.6W(e);G F}B u=q.2u;6(1i).1Q(\'2D\',6.H.7h).1Q(\'3Z\',6.H.6W);u.8.Y=6.Q.2T(e);u.8.2H=u.8.Y;u.8.5s=F;u.8.cf=q!=q.2u;6.H.A=u;k(u.8.3v&&q!=q.2u){81=6.Q.2x(u.3d);82=6.Q.2e(u);7Q={x:I(6.K(u,\'S\'))||0,y:I(6.K(u,\'U\'))||0};1f=u.8.2H.x-81.x-82.1p/2-7Q.x;1e=u.8.2H.y-81.y-82.1m/2-7Q.y;6.22.3f(u,[1f,1e])}G 6.4G||F},8X:D(e){B u=6.H.A;u.8.5s=O;B 6Y=u.1j;u.8.4x=6.K(u,\'1k\');u.8.3l=6.K(u,\'11\');k(!u.8.7S)u.8.7S=u.8.3l;u.8.1s={x:I(6.K(u,\'S\'))||0,y:I(6.K(u,\'U\'))||0};u.8.6t=0;u.8.6G=0;k(6.2K.57){B 7l=6.Q.5G(u,O);u.8.6t=7l.l||0;u.8.6G=7l.t||0}u.8.19=6.1R(6.Q.2x(u),6.Q.2e(u));k(u.8.3l!=\'3u\'&&u.8.3l!=\'2G\'){6Y.11=\'3u\'}6.H.W.7T();B 3o=u.9d(O);6(3o).K({1k:\'2V\',S:\'2a\',U:\'2a\'});3o.1j.3s=\'0\';3o.1j.3I=\'0\';3o.1j.3F=\'0\';3o.1j.3G=\'0\';6.H.W.2B(3o);B 2p=6.H.W.X(0).1j;k(u.8.7c){2p.1d=\'8F\';2p.1a=\'8F\'}N{2p.1a=u.8.19.1m+\'1c\';2p.1d=u.8.19.1p+\'1c\'}2p.1k=\'2V\';2p.3s=\'2a\';2p.3I=\'2a\';2p.3F=\'2a\';2p.3G=\'2a\';6.1R(u.8.19,6.Q.2e(3o));k(u.8.1Y){k(u.8.1Y.S){u.8.1s.x+=u.8.Y.x-u.8.19.x-u.8.1Y.S;u.8.19.x=u.8.Y.x-u.8.1Y.S}k(u.8.1Y.U){u.8.1s.y+=u.8.Y.y-u.8.19.y-u.8.1Y.U;u.8.19.y=u.8.Y.y-u.8.1Y.U}k(u.8.1Y.53){u.8.1s.x+=u.8.Y.x-u.8.19.x-u.8.19.1m+u.8.1Y.53;u.8.19.x=u.8.Y.x-u.8.19.1p+u.8.1Y.53}k(u.8.1Y.4g){u.8.1s.y+=u.8.Y.y-u.8.19.y-u.8.19.1m+u.8.1Y.4g;u.8.19.y=u.8.Y.y-u.8.19.1m+u.8.1Y.4g}}u.8.1L=u.8.1s.x;u.8.1J=u.8.1s.y;k(u.8.5K||u.8.1D==\'5S\'){5U=6.Q.5G(u.3d,O);u.8.19.x=u.5w+(6.2K.57?0:6.2K.4J?-5U.l:5U.l);u.8.19.y=u.5l+(6.2K.57?0:6.2K.4J?-5U.t:5U.t);6(u.3d).2B(6.H.W.X(0))}k(u.8.1D){6.H.7M(u);u.8.3t.1D=6.H.8c}k(u.8.3v){6.22.7H(u)}2p.S=u.8.19.x-u.8.6t+\'1c\';2p.U=u.8.19.y-u.8.6G+\'1c\';2p.1d=u.8.19.1p+\'1c\';2p.1a=u.8.19.1m+\'1c\';6.H.A.8.6r=F;k(u.8.3E){u.8.3t.3N=6.H.7I}k(u.8.2Z!=F){6.H.W.K(\'2Z\',u.8.2Z)}k(u.8.1B){6.H.W.K(\'1B\',u.8.1B);k(3c.6s){6.H.W.K(\'7d\',\'8W(1B=\'+u.8.1B*3h+\')\')}}k(u.8.54){6.H.W.3g(u.8.54);6.H.W.X(0).5Z.1j.1k=\'1t\'}k(u.8.2F)u.8.2F.1H(u,[3o,u.8.1s.x,u.8.1s.y]);k(6.Z&&6.Z.5g>0){6.Z.9N(u)}k(u.8.2A==F){6Y.1k=\'1t\'}G F},7M:D(u){k(u.8.1D.1N==7q){k(u.8.1D==\'5S\'){u.8.1q=6.1R({x:0,y:0},6.Q.2e(u.3d));B 5f=6.Q.5G(u.3d,O);u.8.1q.w=u.8.1q.1p-5f.l-5f.r;u.8.1q.h=u.8.1q.1m-5f.t-5f.b}N k(u.8.1D==\'1i\'){B 7j=6.Q.8B();u.8.1q={x:0,y:0,w:7j.w,h:7j.h}}}N k(u.8.1D.1N==60){u.8.1q={x:I(u.8.1D[0])||0,y:I(u.8.1D[1])||0,w:I(u.8.1D[2])||0,h:I(u.8.1D[3])||0}}u.8.1q.1f=u.8.1q.x-u.8.19.x;u.8.1q.1e=u.8.1q.y-u.8.19.y},6y:D(A){k(A.8.5K||A.8.1D==\'5S\'){6(\'1O\',1i).2B(6.H.W.X(0))}6.H.W.7T().3q().K(\'1B\',1);k(3c.6s){6.H.W.K(\'7d\',\'8W(1B=3h)\')}},6W:D(e){6(1i).2i(\'2D\',6.H.7h).2i(\'3Z\',6.H.6W);k(6.H.A==P){G}B A=6.H.A;6.H.A=P;k(A.8.5s==F){G F}k(A.8.2z==O){6(A).K(\'11\',A.8.3l)}B 6Y=A.1j;k(A.3v){6.H.W.K(\'8a\',\'5y\')}k(A.8.54){6.H.W.3y(A.8.54)}k(A.8.49==F){k(A.8.V>0){k(!A.8.1E||A.8.1E==\'4o\'){B x=3W 6.V(A,{1g:A.8.V},\'S\');x.8R(A.8.1s.x,A.8.5N)}k(!A.8.1E||A.8.1E==\'4l\'){B y=3W 6.V(A,{1g:A.8.V},\'U\');y.8R(A.8.1s.y,A.8.5C)}}N{k(!A.8.1E||A.8.1E==\'4o\')A.1j.S=A.8.5N+\'1c\';k(!A.8.1E||A.8.1E==\'4l\')A.1j.U=A.8.5C+\'1c\'}6.H.6y(A);k(A.8.2A==F){6(A).K(\'1k\',A.8.4x)}}N k(A.8.V>0){A.8.6r=O;B 4v=F;k(6.Z&&6.T&&A.8.2z){4v=6.Q.2x(6.T.W.X(0))}6.H.W.7a({S:4v?4v.x:A.8.19.x,U:4v?4v.y:A.8.19.y},A.8.V,D(){A.8.6r=F;k(A.8.2A==F){A.1j.1k=A.8.4x}6.H.6y(A)})}N{6.H.6y(A);k(A.8.2A==F){6(A).K(\'1k\',A.8.4x)}}k(6.Z&&6.Z.5g>0){6.Z.9U(A)}k(6.T&&A.8.2z){6.T.9g(A)}k(A.8.1Z&&(A.8.5N!=A.8.1s.x||A.8.5C!=A.8.1s.y)){A.8.1Z.1H(A,A.8.7E||[0,0,A.8.5N,A.8.5C])}k(A.8.2q)A.8.2q.1H(A);G F},7I:D(x,y,1f,1e){k(1f!=0)1f=I((1f+(q.8.3E*1f/R.3D(1f))/2)/q.8.3E)*q.8.3E;k(1e!=0)1e=I((1e+(q.8.3K*1e/R.3D(1e))/2)/q.8.3K)*q.8.3K;G{1f:1f,1e:1e,x:0,y:0}},8c:D(x,y,1f,1e){1f=R.2l(R.3x(1f,q.8.1q.1f),q.8.1q.w+q.8.1q.1f-q.8.19.1p);1e=R.2l(R.3x(1e,q.8.1q.1e),q.8.1q.h+q.8.1q.1e-q.8.19.1m);G{1f:1f,1e:1e,x:0,y:0}},7h:D(e){k(6.H.A==P||6.H.A.8.6r==O){G}B A=6.H.A;A.8.2H=6.Q.2T(e);k(A.8.5s==F){8Q=R.c4(R.4T(A.8.Y.x-A.8.2H.x,2)+R.4T(A.8.Y.y-A.8.2H.y,2));k(8Q<A.8.4b){G}N{6.H.8X(e)}}B 1f=A.8.2H.x-A.8.Y.x;B 1e=A.8.2H.y-A.8.Y.y;1C(B i 27 A.8.3t){B 2c=A.8.3t[i].1H(A,[A.8.1s.x+1f,A.8.1s.y+1e,1f,1e]);k(2c&&2c.1N==6D){1f=i!=\'4Y\'?2c.1f:(2c.x-A.8.1s.x);1e=i!=\'4Y\'?2c.1e:(2c.y-A.8.1s.y)}}A.8.1L=A.8.19.x+1f-A.8.6t;A.8.1J=A.8.19.y+1e-A.8.6G;k(A.8.3v&&(A.8.2g||A.8.1Z)){6.22.2g(A,A.8.1L,A.8.1J)}k(A.8.2O)A.8.2O.1H(A,[A.8.1s.x+1f,A.8.1s.y+1e]);k(!A.8.1E||A.8.1E==\'4o\'){A.8.5N=A.8.1s.x+1f;6.H.W.X(0).1j.S=A.8.1L+\'1c\'}k(!A.8.1E||A.8.1E==\'4l\'){A.8.5C=A.8.1s.y+1e;6.H.W.X(0).1j.U=A.8.1J+\'1c\'}k(6.Z&&6.Z.5g>0){6.Z.6S(A)}G F},2N:D(o){k(!6.H.W){6(\'1O\',1i).2B(\'<2o 1u="8s"></2o>\');6.H.W=6(\'#8s\');B C=6.H.W.X(0);B 2X=C.1j;2X.11=\'2G\';2X.1k=\'1t\';2X.8a=\'5y\';2X.8r=\'1t\';2X.5F=\'43\';k(3c.6s){C.73="9I"}N{2X.cb=\'1t\';2X.8p=\'1t\';2X.8q=\'1t\'}}k(!o){o={}}G q.1v(D(){k(q.6M||!6.Q)G;k(3c.6s){q.cK=D(){G F};q.ca=D(){G F}}B C=q;B 3b=o.2b?6(q).cc(o.2b):6(q);k(6.2K.57){3b.1v(D(){q.73="9I"})}N{3b.K(\'-cd-4Y-68\',\'1t\');3b.K(\'4Y-68\',\'1t\');3b.K(\'-c9-4Y-68\',\'1t\')}q.8={3b:3b,49:o.49?O:F,2A:o.2A?O:F,2z:o.2z?o.2z:F,3v:o.3v?o.3v:F,5K:o.5K?o.5K:F,2Z:o.2Z?I(o.2Z)||0:F,1B:o.1B?2d(o.1B):F,V:I(o.V)||P,44:o.44?o.44:F,3t:{},Y:{},2F:o.2F&&o.2F.1N==2n?o.2F:F,2q:o.2q&&o.2q.1N==2n?o.2q:F,1Z:o.1Z&&o.1Z.1N==2n?o.1Z:F,1E:/4l|4o/.4h(o.1E)?o.1E:F,4b:o.4b?I(o.4b)||0:0,1Y:o.1Y?o.1Y:F,7c:o.7c?O:F,54:o.54||F};k(o.3t&&o.3t.1N==2n)q.8.3t.4Y=o.3t;k(o.2O&&o.2O.1N==2n)q.8.2O=o.2O;k(o.1D&&((o.1D.1N==7q&&(o.1D==\'5S\'||o.1D==\'1i\'))||(o.1D.1N==60&&o.1D.1F==4))){q.8.1D=o.1D}k(o.1V){q.8.1V=o.1V}k(o.3N){k(2S o.3N==\'c8\'){q.8.3E=I(o.3N)||1;q.8.3K=I(o.3N)||1}N k(o.3N.1F==2){q.8.3E=I(o.3N[0])||1;q.8.3K=I(o.3N[1])||1}}k(o.2g&&o.2g.1N==2n){q.8.2g=o.2g}q.6M=O;3b.1v(D(){q.2u=C});3b.1Q(\'32\',6.H.76)})}};6.3j.1R({6V:6.H.3R,4w:6.H.2N});6.Z={9V:D(3A,3w,4P,4y){G 3A<=6.H.A.8.1L&&(3A+4P)>=(6.H.A.8.1L+6.H.A.8.19.w)&&3w<=6.H.A.8.1J&&(3w+4y)>=(6.H.A.8.1J+6.H.A.8.19.h)?O:F},7R:D(3A,3w,4P,4y){G!(3A>(6.H.A.8.1L+6.H.A.8.19.w)||(3A+4P)<6.H.A.8.1L||3w>(6.H.A.8.1J+6.H.A.8.19.h)||(3w+4y)<6.H.A.8.1J)?O:F},Y:D(3A,3w,4P,4y){G 3A<6.H.A.8.2H.x&&(3A+4P)>6.H.A.8.2H.x&&3w<6.H.A.8.2H.y&&(3w+4y)>6.H.A.8.2H.y?O:F},3H:F,2t:{},5g:0,2k:{},9N:D(u){k(6.H.A==P){G}B i;6.Z.2t={};B 7b=F;1C(i 27 6.Z.2k){k(6.Z.2k[i]!=P){B M=6.Z.2k[i].X(0);k(6(6.H.A).7w(\'.\'+M.L.a)){k(M.L.m==F){M.L.p=6.1R(6.Q.2x(M),6.Q.4Q(M));M.L.m=O}k(M.L.ac){6.Z.2k[i].3g(M.L.ac)}6.Z.2t[i]=6.Z.2k[i];k(6.T&&M.L.s&&6.H.A.8.2z){M.L.C=6(\'.\'+M.L.a,M);u.1j.1k=\'1t\';6.T.7t(M);M.L.6R=6.T.5J(6.1y(M,\'1u\')).4s;u.1j.1k=u.8.4x;7b=O}k(M.L.6u){M.L.6u.1H(6.Z.2k[i].X(0),[6.H.A])}}}}k(7b){6.T.2w()}},9K:D(){6.Z.2t={};1C(i 27 6.Z.2k){k(6.Z.2k[i]!=P){B M=6.Z.2k[i].X(0);k(6(6.H.A).7w(\'.\'+M.L.a)){M.L.p=6.1R(6.Q.2x(M),6.Q.4Q(M));k(M.L.ac){6.Z.2k[i].3g(M.L.ac)}6.Z.2t[i]=6.Z.2k[i];k(6.T&&M.L.s&&6.H.A.8.2z){M.L.C=6(\'.\'+M.L.a,M);u.1j.1k=\'1t\';6.T.7t(M);u.1j.1k=u.8.4x}}}}},6S:D(e){k(6.H.A==P){G}6.Z.3H=F;B i;B 7o=F;B 9R=0;1C(i 27 6.Z.2t){B M=6.Z.2t[i].X(0);k(6.Z.3H==F&&6.Z[M.L.t](M.L.p.x,M.L.p.y,M.L.p.1p,M.L.p.1m)){k(M.L.2L&&M.L.h==F){6.Z.2t[i].3g(M.L.2L)}k(M.L.h==F&&M.L.4q){7o=O}M.L.h=O;6.Z.3H=M;k(6.T&&M.L.s&&6.H.A.8.2z){6.T.W.X(0).2J=M.L.9Q;6.T.6S(M)}9R++}N k(M.L.h==O){k(M.L.4W){M.L.4W.1H(M,[e,6.H.W.X(0).5Z,M.L.V])}k(M.L.2L){6.Z.2t[i].3y(M.L.2L)}M.L.h=F}}k(6.T&&!6.Z.3H&&6.H.A.2z){6.T.W.X(0).1j.1k=\'1t\'}k(7o){6.Z.3H.L.4q.1H(6.Z.3H,[e,6.H.W.X(0).5Z])}},9U:D(e){B i;1C(i 27 6.Z.2t){B M=6.Z.2t[i].X(0);k(M.L.ac){6.Z.2t[i].3y(M.L.ac)}k(M.L.2L){6.Z.2t[i].3y(M.L.2L)}k(M.L.s){6.T.4O[6.T.4O.1F]=i}k(M.L.6q&&M.L.h==O){M.L.h=F;M.L.6q.1H(M,[e,M.L.V])}M.L.m=F;M.L.h=F}6.Z.2t={}},3R:D(){G q.1v(D(){k(q.6w){k(q.L.s){1u=6.1y(q,\'1u\');6.T.3B[1u]=P;6(\'.\'+q.L.a,q).6V()}6.Z.2k[\'d\'+q.70]=P;q.6w=F;q.f=P}})},2N:D(o){G q.1v(D(){k(q.6w==O||!o.2j||!6.Q||!6.H){G}q.L={a:o.2j,ac:o.6N||F,2L:o.6O||F,9Q:o.30||F,6q:o.c3||o.6q||F,4q:o.4q||o.90||F,4W:o.4W||o.8Z||F,6u:o.6u||F,t:o.45&&(o.45==\'9V\'||o.45==\'7R\')?o.45:\'Y\',V:o.V?o.V:F,m:F,h:F};k(o.7N==O&&6.T){1u=6.1y(q,\'1u\');6.T.3B[1u]=q.L.a;q.L.s=O;k(o.1Z){q.L.1Z=o.1Z;q.L.6R=6.T.5J(1u).4s}}q.6w=O;q.70=I(R.9T()*71);6.Z.2k[\'d\'+q.70]=6(q);6.Z.5g++})}};6.3j.1R({9e:6.Z.3R,91:6.Z.2N});6.c5=6.Z.9K;6.E={18:P,2r:P,A:P,Y:P,1T:P,11:P,4I:D(e){6.E.A=(q.6a)?q.6a:q;6.E.Y=6.Q.2T(e);6.E.1T={1d:I(6(6.E.A).K(\'1d\'))||0,1a:I(6(6.E.A).K(\'1a\'))||0};6.E.11={U:I(6(6.E.A).K(\'U\'))||0,S:I(6(6.E.A).K(\'S\'))||0};6(1i).1Q(\'2D\',6.E.7e).1Q(\'3Z\',6.E.7g);k(2S 6.E.A.J.9J===\'D\'){6.E.A.J.9J.1H(6.E.A)}G F},7g:D(e){6(1i).2i(\'2D\',6.E.7e).2i(\'3Z\',6.E.7g);k(2S 6.E.A.J.9L===\'D\'){6.E.A.J.9L.1H(6.E.A)}6.E.A=P},7e:D(e){k(!6.E.A){G}Y=6.Q.2T(e);4r=6.E.11.U-6.E.Y.y+Y.y;4t=6.E.11.S-6.E.Y.x+Y.x;4r=R.3x(R.2l(4r,6.E.A.J.5e-6.E.1T.1a),6.E.A.J.4S);4t=R.3x(R.2l(4t,6.E.A.J.5i-6.E.1T.1d),6.E.A.J.4M);k(2S 6.E.A.J.2O===\'D\'){B 5c=6.E.A.J.2O.1H(6.E.A,[4t,4r]);k(2S 5c==\'c6\'&&5c.1F==2){4t=5c[0];4r=5c[1]}}6.E.A.1j.U=4r+\'1c\';6.E.A.1j.S=4t+\'1c\';G F},2w:D(e){6(1i).1Q(\'2D\',6.E.5y).1Q(\'3Z\',6.E.5h);6.E.18=q.18;6.E.2r=q.2r;6.E.Y=6.Q.2T(e);k(6.E.18.J.2F){6.E.18.J.2F.1H(6.E.18,[q])}6.E.1T={1d:I(6(q.18).K(\'1d\'))||0,1a:I(6(q.18).K(\'1a\'))||0};6.E.11={U:I(6(q.18).K(\'U\'))||0,S:I(6(q.18).K(\'S\'))||0};G F},5h:D(){6(1i).2i(\'2D\',6.E.5y).2i(\'3Z\',6.E.5h);k(6.E.18.J.2q){6.E.18.J.2q.1H(6.E.18,[6.E.2r])}6.E.18=P;6.E.2r=P},4d:D(1f,6Q){G R.2l(R.3x(6.E.1T.1d+1f*6Q,6.E.18.J.6i),6.E.18.J.6g)},4e:D(1e,6Q){G R.2l(R.3x(6.E.1T.1a+1e*6Q,6.E.18.J.5d),6.E.18.J.5a)},9H:D(1a){G R.2l(R.3x(1a,6.E.18.J.5d),6.E.18.J.5a)},5y:D(e){k(6.E.18==P){G}Y=6.Q.2T(e);1f=Y.x-6.E.Y.x;1e=Y.y-6.E.Y.y;1b={1d:6.E.1T.1d,1a:6.E.1T.1a};1G={U:6.E.11.U,S:6.E.11.S};3O(6.E.2r){1n\'e\':1b.1d=6.E.4d(1f,1);1K;1n\'9E\':1b.1d=6.E.4d(1f,1);1b.1a=6.E.4e(1e,1);1K;1n\'w\':1b.1d=6.E.4d(1f,-1);1G.S=6.E.11.S-1b.1d+6.E.1T.1d;1K;1n\'3n\':1b.1d=6.E.4d(1f,-1);1G.S=6.E.11.S-1b.1d+6.E.1T.1d;1b.1a=6.E.4e(1e,1);1K;1n\'4H\':1b.1a=6.E.4e(1e,-1);1G.U=6.E.11.U-1b.1a+6.E.1T.1a;1b.1d=6.E.4d(1f,-1);1G.S=6.E.11.S-1b.1d+6.E.1T.1d;1K;1n\'n\':1b.1a=6.E.4e(1e,-1);1G.U=6.E.11.U-1b.1a+6.E.1T.1a;1K;1n\'66\':1b.1a=6.E.4e(1e,-1);1G.U=6.E.11.U-1b.1a+6.E.1T.1a;1b.1d=6.E.4d(1f,1);1K;1n\'s\':1b.1a=6.E.4e(1e,1);1K}k(6.E.18.J.2E){k(6.E.2r==\'n\'||6.E.2r==\'s\')2I=1b.1a*6.E.18.J.2E;N 2I=1b.1d;3a=6.E.9H(2I*6.E.18.J.2E);2I=3a/6.E.18.J.2E;3O(6.E.2r){1n\'n\':1n\'4H\':1n\'66\':1G.U+=1b.1a-3a;1K}3O(6.E.2r){1n\'4H\':1n\'w\':1n\'3n\':1G.S+=1b.1d-2I;1K}1b.1a=3a;1b.1d=2I}k(1G.U<6.E.18.J.4S){3a=1b.1a+1G.U-6.E.18.J.4S;1G.U=6.E.18.J.4S;k(6.E.18.J.2E){2I=3a/6.E.18.J.2E;3O(6.E.2r){1n\'4H\':1n\'w\':1n\'3n\':1G.S+=1b.1d-2I;1K}1b.1d=2I}1b.1a=3a}k(1G.S<6.E.18.J.4M){2I=1b.1d+1G.S-6.E.18.J.4M;1G.S=6.E.18.J.4M;k(6.E.18.J.2E){3a=2I*6.E.18.J.2E;3O(6.E.2r){1n\'n\':1n\'4H\':1n\'66\':1G.U+=1b.1a-3a;1K}1b.1a=3a}1b.1d=2I}k(1G.U+1b.1a>6.E.18.J.5e){1b.1a=6.E.18.J.5e-1G.U;k(6.E.18.J.2E){1b.1d=1b.1a/6.E.18.J.2E}}k(1G.S+1b.1d>6.E.18.J.5i){1b.1d=6.E.18.J.5i-1G.S;k(6.E.18.J.2E){1b.1a=1b.1d*6.E.18.J.2E}}B 4f=F;3p=6.E.18.1j;3p.S=1G.S+\'1c\';3p.U=1G.U+\'1c\';3p.1d=1b.1d+\'1c\';3p.1a=1b.1a+\'1c\';k(6.E.18.J.9D){4f=6.E.18.J.9D.1H(6.E.18,[1b,1G]);k(4f){k(4f.1T){6.1R(1b,4f.1T)}k(4f.11){6.1R(1G,4f.11)}}}3p.S=1G.S+\'1c\';3p.U=1G.U+\'1c\';3p.1d=1b.1d+\'1c\';3p.1a=1b.1a+\'1c\';G F},2N:D(12){k(!12||!12.2s||12.2s.1N!=6D){G}G q.1v(D(){B C=q;C.J=12;C.J.6i=12.6i||10;C.J.5d=12.5d||10;C.J.6g=12.6g||4c;C.J.5a=12.5a||4c;C.J.4S=12.4S||-9C;C.J.4M=12.4M||-9C;C.J.5i=12.5i||4c;C.J.5e=12.5e||4c;7p=6(C).K(\'11\');k(!(7p==\'3u\'||7p==\'2G\')){C.1j.11=\'3u\'}9P=/n|66|e|9E|s|3n|w|4H/g;1C(i 27 C.J.2s){k(i.6d().9F(9P)!=P){k(C.J.2s[i].1N==7q){2b=6(C.J.2s[i]);k(2b.4i()>0){C.J.2s[i]=2b.X(0)}}k(C.J.2s[i].5v){C.J.2s[i].18=C;C.J.2s[i].2r=i;6(C.J.2s[i]).1Q(\'32\',6.E.2w)}}}k(C.J.2U){k(2S C.J.2U===\'7m\'){64=6(C.J.2U);k(64.4i()>0){64.1v(D(){q.6a=C});64.1Q(\'32\',6.E.4I)}}N k(C.J.2U.5v){C.J.2U.6a=C;6(C.J.2U).1Q(\'32\',6.E.4I)}N k(C.J.2U==O){6(q).1Q(\'32\',6.E.4I)}}})},3R:D(){G q.1v(D(){B C=q;1C(i 27 C.J.2s){C.J.2s[i].18=P;C.J.2s[i].2r=P;6(C.J.2s[i]).2i(\'32\',6.E.2w)}k(C.J.2U){k(2S C.J.2U===\'7m\'){2b=6(C.J.2U);k(2b.4i()>0){2b.2i(\'32\',6.E.4I)}}N k(C.J.2U==O){6(q).2i(\'32\',6.E.4I)}}C.J=P})}};6.3j.1R({c7:6.E.2N,ce:6.E.3R});6.1M=P;6.4G=F;6.28=P;6.4E=[];6.67=D(e){B 5b=e.9k||e.9j||-1;k(5b==17||5b==16){6.4G=O}};6.63=D(e){6.4G=F};6.9c=D(e){q.f.Y=6.Q.2T(e);q.f.1o=6.1R(6.Q.2x(q),6.Q.2e(q));q.f.26=6.Q.5r(q);q.f.Y.x-=q.f.1o.x;q.f.Y.y-=q.f.1o.y;k(q.f.2L)6.1M.3g(q.f.2L);6.1M.K({1k:\'2V\',1d:\'8Y\',1a:\'8Y\'});k(q.f.o){6.1M.K(\'1B\',q.f.o)}6.28=q;6.61=F;6.4E=[];q.f.C.1v(D(){q.1o={x:q.5w+(q.34&&!6.2K.4J?I(q.34.5X)||0:0)+(6.28.24||0),y:q.5l+(q.34&&!6.2K.4J?I(q.34.5E)||0:0)+(6.28.1X||0),1p:q.5u,1m:q.5p};k(q.s==O){k(6.4G==F){q.s=F;6(q).3y(6.28.f.4L)}N{6.61=O;6.4E[6.4E.1F]=6.1y(q,\'1u\')}}});6(q).2B(6.1M.X(0));q.f.5H=6.Q.5G(6.1M[0],O);6.69.1H(q,[e]);6(1i).1Q(\'2D\',6.69).1Q(\'3Z\',6.87);G F};6.69=D(e){k(!6.28)G;6.9A.1H(6.28,[e])};6.9A=D(e){k(!6.28)G;B Y=6.Q.2T(e);B 26=6.Q.5r(6.28);Y.x+=26.l-q.f.26.l-q.f.1o.x;Y.y+=26.t-q.f.26.t-q.f.1o.y;B 5I=R.2l(Y.x,q.f.Y.x);B 3n=R.2l(R.3D(Y.x-q.f.Y.x),R.3D(q.f.26.w-5I));B 5V=R.2l(Y.y,q.f.Y.y);B 5Y=R.2l(R.3D(Y.y-q.f.Y.y),R.3D(q.f.26.h-5V));k(q.1X>0&&Y.y-20<q.1X){B 2v=R.2l(26.t,10);5V-=2v;5Y+=2v;q.1X-=2v}N k(q.1X+q.f.1o.h<q.f.26.h&&Y.y+20>q.1X+q.f.1o.h){B 2v=R.2l(q.f.26.h-q.1X,10);q.1X+=2v;k(q.1X!=26.t)5Y+=2v}k(q.24>0&&Y.x-20<q.24){B 2v=R.2l(26.l,10);5I-=2v;3n+=2v;q.24-=2v}N k(q.24+q.f.1o.w<q.f.26.w&&Y.x+20>q.24+q.f.1o.w){B 2v=R.2l(q.f.26.w-q.24,10);q.24+=2v;k(q.24!=26.l)3n+=2v}6.1M.K({S:5I+\'1c\',U:5V+\'1c\',1d:3n-(q.f.5H.l+q.f.5H.r)+\'1c\',1a:5Y-(q.f.5H.t+q.f.5H.b)+\'1c\'});6.1M.l=5I+q.f.26.l;6.1M.t=5V+q.f.26.t;6.1M.r=6.1M.l+3n;6.1M.b=6.1M.t+5Y;6.61=F;q.f.C.1v(D(){6c=6.4E.7X(6.1y(q,\'1u\'));k(!(q.1o.x>6.1M.r||(q.1o.x+q.1o.1p)<6.1M.l||q.1o.y>6.1M.b||(q.1o.y+q.1o.1m)<6.1M.t)){6.61=O;k(q.s!=O){q.s=O;6(q).3g(6.28.f.4L)}k(6c!=-1){q.s=F;6(q).3y(6.28.f.4L)}}N k((q.s==O)&&(6c==-1)){q.s=F;6(q).3y(6.28.f.4L)}N k((!q.s)&&(6.4G==O)&&(6c!=-1)){q.s=O;6(q).3g(6.28.f.4L)}});G F};6.87=D(e){k(!6.28)G;6.9b.1H(6.28,[e])};6.9b=D(e){6(1i).2i(\'2D\',6.69).2i(\'3Z\',6.87);k(!6.28)G;6.1M.K(\'1k\',\'1t\');k(q.f.2L)6.1M.3y(q.f.2L);6.28=F;6(\'1O\').2B(6.1M.X(0));k(6.61==O){k(q.f.5j)q.f.5j(6.88(6.1y(q,\'1u\')))}N{k(q.f.5k)q.f.5k(6.88(6.1y(q,\'1u\')))}6.4E=[]};6.88=D(s){B h=\'\';B o=[];k(a=6(\'#\'+s)){a.X(0).f.C.1v(D(){k(q.s==O){k(h.1F>0){h+=\'&\'}h+=s+\'[]=\'+6.1y(q,\'1u\');o[o.1F]=6.1y(q,\'1u\')}})}G{4s:h,o:o}};6.3j.cp=D(o){k(!6.1M){6(\'1O\',1i).2B(\'<2o 1u="1M"></2o>\').1Q(\'6H\',6.67).1Q(\'8g\',6.63);6.1M=6(\'#1M\');6.1M.K({11:\'2G\',1k:\'1t\'});k(3c.3m){6(\'1O\',1i).1Q(\'6H\',6.67).1Q(\'8g\',6.63)}N{6(1i).1Q(\'6H\',6.67).1Q(\'8g\',6.63)}}k(!o){o={}}G q.1v(D(){k(q.9a)G;q.9a=O;q.f={a:o.2j,o:o.1B?2d(o.1B):F,4L:o.99?o.99:F,2L:o.30?o.30:F,5j:o.5j?o.5j:F,5k:o.5k?o.5k:F};q.f.C=6(\'.\'+o.2j);6(q).1Q(\'32\',6.9c)})};6.T={4O:[],3B:{},W:F,4V:P,2w:D(){k(6.H.A==P){G}B 2W,2f,c,cs;6.T.W.X(0).2J=6.H.A.8.44;2W=6.T.W.X(0).1j;2W.1k=\'2V\';6.T.W.19=6.1R(6.Q.2x(6.T.W.X(0)),6.Q.2e(6.T.W.X(0)));2W.1d=6.H.A.8.19.1p+\'1c\';2W.1a=6.H.A.8.19.1m+\'1c\';2f=6.Q.8f(6.H.A);2W.3s=2f.t;2W.3I=2f.r;2W.3F=2f.b;2W.3G=2f.l;k(6.H.A.8.2A==O){c=6.H.A.9d(O);cs=c.1j;cs.3s=\'2a\';cs.3I=\'2a\';cs.3F=\'2a\';cs.3G=\'2a\';cs.1k=\'2V\';6.T.W.7T().2B(c)}6(6.H.A).9f(6.T.W.X(0));6.H.A.1j.1k=\'1t\'},9g:D(e){k(!e.8.2z&&6.Z.3H.7N){k(e.8.2q)e.8.2q.1H(A);6(e).K(\'11\',e.8.7S||e.8.3l);6(e).6V();6(6.Z.3H).96(e)}6.T.W.3y(e.8.44).6I(\'&98;\');6.T.4V=P;B 2W=6.T.W.X(0).1j;2W.1k=\'1t\';6.T.W.9f(e);k(e.8.V>0){6(e).94(e.8.V)}6(\'1O\').2B(6.T.W.X(0));B 5B=[];B 5A=F;1C(B i=0;i<6.T.4O.1F;i++){B M=6.Z.2k[6.T.4O[i]].X(0);B 1u=6.1y(M,\'1u\');B 5t=6.T.5J(1u);k(M.L.6R!=5t.4s){M.L.6R=5t.4s;k(5A==F&&M.L.1Z){5A=M.L.1Z}5t.1u=1u;5B[5B.1F]=5t}}6.T.4O=[];k(5A!=F&&5B.1F>0){5A(5B)}},6S:D(e,o){k(!6.H.A)G;B 3Q=F;B i=0;k(e.L.C.4i()>0){1C(i=e.L.C.4i();i>0;i--){k(e.L.C.X(i-1)!=6.H.A){k(!e.3J.7O){k((e.L.C.X(i-1).1o.y+e.L.C.X(i-1).1o.1m/2)>6.H.A.8.1J){3Q=e.L.C.X(i-1)}N{1K}}N{k((e.L.C.X(i-1).1o.x+e.L.C.X(i-1).1o.1p/2)>6.H.A.8.1L&&(e.L.C.X(i-1).1o.y+e.L.C.X(i-1).1o.1m/2)>6.H.A.8.1J){3Q=e.L.C.X(i-1)}}}}}k(3Q&&6.T.4V!=3Q){6.T.4V=3Q;6(3Q).cg(6.T.W.X(0))}N k(!3Q&&(6.T.4V!=P||6.T.W.X(0).3d!=e)){6.T.4V=P;6(e).2B(6.T.W.X(0))}6.T.W.X(0).1j.1k=\'2V\'},7t:D(e){k(6.H.A==P){G}e.L.C.1v(D(){q.1o=6.1R(6.Q.4Q(q),6.Q.2x(q))})},5J:D(s){B i;B h=\'\';B o={};k(s){k(6.T.3B[s]){o[s]=[];6(\'#\'+s+\' .\'+6.T.3B[s]).1v(D(){k(h.1F>0){h+=\'&\'}h+=s+\'[]=\'+6.1y(q,\'1u\');o[s][o[s].1F]=6.1y(q,\'1u\')})}N{1C(a 27 s){k(6.T.3B[s[a]]){o[s[a]]=[];6(\'#\'+s[a]+\' .\'+6.T.3B[s[a]]).1v(D(){k(h.1F>0){h+=\'&\'}h+=s[a]+\'[]=\'+6.1y(q,\'1u\');o[s[a]][o[s[a]].1F]=6.1y(q,\'1u\')})}}}}N{1C(i 27 6.T.3B){o[i]=[];6(\'#\'+i+\' .\'+6.T.3B[i]).1v(D(){k(h.1F>0){h+=\'&\'}h+=i+\'[]=\'+6.1y(q,\'1u\');o[i][o[i].1F]=6.1y(q,\'1u\')})}}G{4s:h,o:o}},95:D(e){k(!e.ch){G}G q.1v(D(){k(!q.3J||!6(e).7w(\'.\'+q.3J.2j))6(e).3g(q.3J.2j);6(e).4w(q.3J.8)})},3R:D(){G q.1v(D(){6(\'.\'+q.3J.2j).6V();6(q).9e();q.3J=P;q.92=P})},2N:D(o){k(o.2j&&6.Q&&6.H&&6.Z){k(!6.T.W){6(\'1O\',1i).2B(\'<2o 1u="97">&98;</2o>\');6.T.W=6(\'#97\');6.T.W.X(0).1j.1k=\'1t\'}q.91({2j:o.2j,6N:o.6N?o.6N:F,6O:o.6O?o.6O:F,30:o.30?o.30:F,4q:o.4q||o.90,4W:o.4W||o.8Z,7N:O,1Z:o.1Z||o.ci,V:o.V?o.V:F,2A:o.2A?O:F,45:o.45?o.45:\'7R\'});G q.1v(D(){B 8={49:o.49?O:F,93:4c,1B:o.1B?2d(o.1B):F,44:o.30?o.30:F,V:o.V?o.V:F,2z:O,2A:o.2A?O:F,2b:o.2b?o.2b:P,1D:o.1D?o.1D:P,2F:o.2F&&o.2F.1N==2n?o.2F:F,2O:o.2O&&o.2O.1N==2n?o.2O:F,2q:o.2q&&o.2q.1N==2n?o.2q:F,1E:/4l|4o/.4h(o.1E)?o.1E:F,4b:o.4b?I(o.4b)||0:F,1Y:o.1Y?o.1Y:F};6(\'.\'+o.2j,q).4w(8);q.92=O;q.3J={2j:o.2j,49:o.49?O:F,93:4c,1B:o.1B?2d(o.1B):F,44:o.30?o.30:F,V:o.V?o.V:F,2z:O,2A:o.2A?O:F,2b:o.2b?o.2b:P,1D:o.1D?o.1D:P,7O:o.7O?O:F,8:8}})}}};6.3j.1R({bM:6.T.2N,96:6.T.95,bO:6.T.3R});6.bK=6.T.5J;6.1I={48:P,4A:F,6E:P,7F:D(e){6.1I.4A=O;6.1I.41(e,q,O)},8l:D(e){k(6.1I.48!=q)G;6.1I.4A=F;6.1I.3q(e,q)},41:D(e,C,4A){k(6.1I.48!=P)G;k(!C){C=q}6.1I.48=C;1o=6.1R(6.Q.2x(C),6.Q.2e(C));5M=6(C);3M=5M.1y(\'3M\');6A=5M.1y(\'6A\');k(3M){6.1I.6E=3M;5M.1y(\'3M\',\'\');6(\'#9v\').6I(3M);k(6A)6(\'#7G\').6I(6A.3V(\'bJ://\',\'\'));N 6(\'#7G\').6I(\'\');W=6(\'#5z\');k(C.2P.2J){W.X(0).2J=C.2P.2J}N{W.X(0).2J=\'\'}80=6.Q.2e(W.X(0));9B=4A&&C.2P.11==\'7P\'?\'4g\':C.2P.11;3O(9B){1n\'U\':1J=1o.y-80.1m;1L=1o.x;1K;1n\'S\':1J=1o.y;1L=1o.x-80.1p;1K;1n\'53\':1J=1o.y;1L=1o.x+1o.1p;1K;1n\'7P\':6(\'1O\').1Q(\'2D\',6.1I.2D);Y=6.Q.2T(e);1J=Y.y+15;1L=Y.x+15;1K;9w:1J=1o.y+1o.1m;1L=1o.x;1K}W.K({U:1J+\'1c\',S:1L+\'1c\'});k(C.2P.5D==F){W.41()}N{W.94(C.2P.5D)}k(C.2P.59)C.2P.59.1H(C);5M.1Q(\'9h\',6.1I.3q).1Q(\'9i\',6.1I.8l)}},2D:D(e){k(6.1I.48==P){6(\'1O\').2i(\'2D\',6.1I.2D);G}Y=6.Q.2T(e);6(\'#5z\').K({U:Y.y+15+\'1c\',S:Y.x+15+\'1c\'})},3q:D(e,C){k(!C){C=q}k(6.1I.4A!=O&&6.1I.48==C){6.1I.48=P;6(\'#5z\').bZ(1);6(C).1y(\'3M\',6.1I.6E).2i(\'9h\',6.1I.3q).2i(\'9i\',6.1I.8l);k(C.2P.52)C.2P.52.1H(C);6.1I.6E=P}},2N:D(12){k(!6.1I.W){6(\'1O\').2B(\'<2o 1u="5z"><2o 1u="9v"></2o><2o 1u="7G"></2o></2o>\');6(\'#5z\').K({11:\'2G\',2Z:4c,1k:\'1t\'});6.1I.W=O}G q.1v(D(){k(6.1y(q,\'3M\')){q.2P={11:/U|4g|S|53|7P/.4h(12.11)?12.11:\'4g\',2J:12.2J?12.2J:F,5D:12.5D?12.5D:F,59:12.59&&12.59.1N==2n?12.59:F,52:12.52&&12.52.1N==2n?12.52:F};B C=6(q);C.1Q(\'bW\',6.1I.41);C.1Q(\'7F\',6.1I.7F)}})}};6.3j.bV=6.1I.2N;6.22={7Y:1,9p:D(29){B 29=29;G q.1v(D(){q.2M.4k.1v(D(62){6.22.3f(q,29[62])})})},X:D(){B 29=[];q.1v(D(7v){k(q.8k){29[7v]=[];B u=q;B 1T=6.Q.2e(q);q.2M.4k.1v(D(62){B x=q.5w;B y=q.5l;5W=I(x*3h/(1T.w-q.5u));5m=I(y*3h/(1T.h-q.5p));29[7v][62]=[5W||0,5m||0,x||0,y||0]})}});G 29},7H:D(u){u.8.9r=u.8.1q.w-u.8.19.1p;u.8.9l=u.8.1q.h-u.8.19.1m;k(u.6v.2M.7B){6m=u.6v.2M.4k.X(u.7C+1);k(6m){u.8.1q.w=(I(6(6m).K(\'S\'))||0)+u.8.19.1p;u.8.1q.h=(I(6(6m).K(\'U\'))||0)+u.8.19.1m}6l=u.6v.2M.4k.X(u.7C-1);k(6l){B 7s=I(6(6l).K(\'S\'))||0;B 7y=I(6(6l).K(\'S\'))||0;u.8.1q.x+=7s;u.8.1q.y+=7y;u.8.1q.w-=7s;u.8.1q.h-=7y}}u.8.9u=u.8.1q.w-u.8.19.1p;u.8.9t=u.8.1q.h-u.8.19.1m;k(u.8.1V){u.8.3E=((u.8.1q.w-u.8.19.1p)/u.8.1V)||1;u.8.3K=((u.8.1q.h-u.8.19.1m)/u.8.1V)||1;u.8.9x=u.8.9u/u.8.1V;u.8.9y=u.8.9t/u.8.1V}u.8.1q.1f=u.8.1q.x-u.8.1s.x;u.8.1q.1e=u.8.1q.y-u.8.1s.y;6.H.W.K(\'8a\',\'9w\')},2g:D(u,x,y){k(u.8.1V){9z=I(x/u.8.9x);5W=9z*3h/u.8.1V;9s=I(y/u.8.9y);5m=9s*3h/u.8.1V}N{5W=I(x*3h/u.8.9r);5m=I(y*3h/u.8.9l)}u.8.7E=[5W||0,5m||0,x||0,y||0];k(u.8.2g)u.8.2g.1H(u,u.8.7E)},9m:D(3m){5b=3m.9k||3m.9j||-1;3O(5b){1n 35:6.22.3f(q.2u,[6B,6B]);1K;1n 36:6.22.3f(q.2u,[-6B,-6B]);1K;1n 37:6.22.3f(q.2u,[-q.2u.8.3E||-1,0]);1K;1n 38:6.22.3f(q.2u,[0,-q.2u.8.3K||-1]);1K;1n 39:6.22.3f(q.2u,[q.2u.8.3E||1,0]);1K;1n 40:6.H.3f(q.2u,[0,q.2u.8.3K||1]);1K}},3f:D(u,11){k(!u.8){G}u.8.19=6.1R(6.Q.2x(u),6.Q.2e(u));u.8.1s={x:I(6.K(u,\'S\'))||0,y:I(6.K(u,\'U\'))||0};u.8.3l=6.K(u,\'11\');k(u.8.3l!=\'3u\'&&u.8.3l!=\'2G\'){u.1j.11=\'3u\'}6.H.7M(u);6.22.7H(u);1f=I(11[0])||0;1e=I(11[1])||0;1L=u.8.1s.x+1f;1J=u.8.1s.y+1e;k(u.8.1V){2c=6.H.7I.1H(u,[1L,1J,1f,1e]);k(2c.1N==6D){1f=2c.1f;1e=2c.1e}1L=u.8.1s.x+1f;1J=u.8.1s.y+1e}2c=6.H.8c.1H(u,[1L,1J,1f,1e]);k(2c&&2c.1N==6D){1f=2c.1f;1e=2c.1e}1L=u.8.1s.x+1f;1J=u.8.1s.y+1e;k(u.8.3v&&(u.8.2g||u.8.1Z)){6.22.2g(u,1L,1J)}1L=!u.8.1E||u.8.1E==\'4o\'?1L:u.8.1s.x||0;1J=!u.8.1E||u.8.1E==\'4l\'?1J:u.8.1s.y||0;u.1j.S=1L+\'1c\';u.1j.U=1J+\'1c\'},2N:D(o){G q.1v(D(){k(q.8k==O||!o.2j||!6.Q||!6.H||!6.Z){G}3C=6(o.2j,q);k(3C.4i()==0){G}B 2Y={1D:\'5S\',3v:O,2g:o.2g&&o.2g.1N==2n?o.2g:P,1Z:o.1Z&&o.1Z.1N==2n?o.1Z:P,2b:q,1B:o.1B||F};k(o.1V&&I(o.1V)){2Y.1V=I(o.1V)||1;2Y.1V=2Y.1V>0?2Y.1V:1}k(3C.4i()==1)3C.4w(2Y);N{6(3C.X(0)).4w(2Y);2Y.2b=P;3C.4w(2Y)}3C.6H(6.22.9m);3C.1y(\'7Y\',6.22.7Y++);q.8k=O;q.2M={};q.2M.9n=2Y.9n;q.2M.1V=2Y.1V;q.2M.4k=3C;q.2M.7B=o.7B?O:F;7K=q;7K.2M.4k.1v(D(9q){q.7C=9q;q.6v=7K});k(o.29&&o.29.1N==60){1C(i=o.29.1F-1;i>=0;i--){k(o.29[i].1N==60&&o.29[i].1F==2){C=q.2M.4k.X(i);k(C.5v){6.22.3f(C,o.29[i])}}}}})}};6.3j.1R({cC:6.22.2N,cB:6.22.9p,bI:6.22.X});6.1R({1S:{7L:D(p,n,1l,1h,1g){G((-R.9o(p*R.3k)/2)+0.5)*1h+1l},at:D(p,n,1l,1h,1g){G 1h*(n/=1g)*n*n+1l},aI:D(p,n,1l,1h,1g){G-1h*((n=n/1g-1)*n*n*n-1)+1l},aA:D(p,n,1l,1h,1g){k((n/=1g/2)<1)G 1h/2*n*n*n*n+1l;G-1h/2*((n-=2)*n*n*n-2)+1l},5o:D(p,n,1l,1h,1g){k((n/=1g)<(1/2.75)){G 1h*(7.6T*n*n)+1l}N k(n<(2/2.75)){G 1h*(7.6T*(n-=(1.5/2.75))*n+.75)+1l}N k(n<(2.5/2.75)){G 1h*(7.6T*(n-=(2.25/2.75))*n+.a8)+1l}N{G 1h*(7.6T*(n-=(2.9Y/2.75))*n+.ax)+1l}},7x:D(p,n,1l,1h,1g){k(6.1S.5o)G 1h-6.1S.5o(p,1g-n,0,1h,1g)+1l;G 1l+1h},bk:D(p,n,1l,1h,1g){k(6.1S.7x&&6.1S.5o)k(n<1g/2)G 6.1S.7x(p,n*2,0,1h,1g)*.5+1l;G 6.1S.5o(p,n*2-1g,0,1h,1g)*.5+1h*.5+1l;G 1l+1h},bn:D(p,n,1l,1h,1g){B a,s;k(n==0)G 1l;k((n/=1g)==1)G 1l+1h;a=1h*0.3;p=1g*.3;k(a<R.3D(1h)){a=1h;s=p/4}N{s=p/(2*R.3k)*R.8d(1h/a)}G-(a*R.4T(2,10*(n-=1))*R.6j((n*1g-s)*(2*R.3k)/p))+1l},bi:D(p,n,1l,1h,1g){B a,s;k(n==0)G 1l;k((n/=1g/2)==2)G 1l+1h;a=1h*0.3;p=1g*.3;k(a<R.3D(1h)){a=1h;s=p/4}N{s=p/(2*R.3k)*R.8d(1h/a)}G a*R.4T(2,-10*n)*R.6j((n*1g-s)*(2*R.3k)/p)+1h+1l},bh:D(p,n,1l,1h,1g){B a,s;k(n==0)G 1l;k((n/=1g/2)==2)G 1l+1h;a=1h*0.3;p=1g*.3;k(a<R.3D(1h)){a=1h;s=p/4}N{s=p/(2*R.3k)*R.8d(1h/a)}k(n<1){G-.5*(a*R.4T(2,10*(n-=1))*R.6j((n*1g-s)*(2*R.3k)/p))+1l}G a*R.4T(2,-10*(n-=1))*R.6j((n*1g-s)*(2*R.3k)/p)*.5+1h+1l}}});6.b0=P;6.3j.b8=D(o){G q.1v(D(){k(!o||!o.7k){G}B C=q;6(o.7k).1v(D(){3W 6.V.9O(C,q,o)})})};6.V.9O=D(e,5Q,o){B z=q;z.C=6(e);z.5Q=5Q;z.2C=1i.9G(\'2o\');6(z.2C).K({11:\'2G\'}).3g(o.2J);k(!o.1g){o.1g=aM}z.1g=o.1g;z.33=o.33;z.6b=0;z.65=0;k(6.bc){z.6b=(I(6.2m(z.2C,\'5X\'))||0)+(I(6.2m(z.2C,\'7W\'))||0)+(I(6.2m(z.2C,\'7U\'))||0)+(I(6.2m(z.2C,\'7Z\'))||0);z.65=(I(6.2m(z.2C,\'5E\'))||0)+(I(6.2m(z.2C,\'86\'))||0)+(I(6.2m(z.2C,\'84\'))||0)+(I(6.2m(z.2C,\'83\'))||0)}z.2w=6.1R(6.Q.2x(z.C.X(0)),6.Q.2e(z.C.X(0)));z.4n=6.1R(6.Q.2x(z.5Q),6.Q.2e(z.5Q));z.2w.1p-=z.6b;z.2w.1m-=z.65;z.4n.1p-=z.6b;z.4n.1m-=z.65;z.5P=o.33;6(\'1O\').2B(z.2C);6(z.2C).K(\'1d\',z.2w.1p+\'1c\').K(\'1a\',z.2w.1m+\'1c\').K(\'U\',z.2w.y+\'1c\').K(\'S\',z.2w.x+\'1c\').7a({U:z.4n.y,S:z.4n.x,1d:z.4n.1p,1a:z.4n.1m},z.1g,D(){6(z.2C).bl();k(z.33&&z.33.1N==2n){z.33.1H(z.C.X(0),[z.7k])}})};6.14={3U:P,2Q:P,1r:P,23:10,2w:D(C,2X,23,9M){6.14.2Q=C;6.14.1r=2X;6.14.23=I(23)||10;6.14.3U=3c.7n(6.14.9S,I(9M)||40)},9S:D(){1C(i=0;i<6.14.1r.1F;i++){k(!6.14.1r[i].21){6.14.1r[i].21=6.1R(6.Q.78(6.14.1r[i]),6.Q.4Q(6.14.1r[i]),6.Q.5r(6.14.1r[i]))}N{6.14.1r[i].21.t=6.14.1r[i].1X;6.14.1r[i].21.l=6.14.1r[i].24}k(6.14.2Q.8&&6.14.2Q.8.5s==O){3L={x:6.14.2Q.8.1L,y:6.14.2Q.8.1J,1p:6.14.2Q.8.19.1p,1m:6.14.2Q.8.19.1m}}N{3L=6.1R(6.Q.78(6.14.2Q),6.Q.4Q(6.14.2Q))}k(6.14.1r[i].21.t>0&&6.14.1r[i].21.y+6.14.1r[i].21.t>3L.y){6.14.1r[i].1X-=6.14.23}N k(6.14.1r[i].21.t<=6.14.1r[i].21.h&&6.14.1r[i].21.t+6.14.1r[i].21.1m<3L.y+3L.1m){6.14.1r[i].1X+=6.14.23}k(6.14.1r[i].21.l>0&&6.14.1r[i].21.x+6.14.1r[i].21.l>3L.x){6.14.1r[i].24-=6.14.23}N k(6.14.1r[i].21.l<=6.14.1r[i].21.as&&6.14.1r[i].21.l+6.14.1r[i].21.1p<3L.x+3L.1p){6.14.1r[i].24+=6.14.23}}},5h:D(){3c.7i(6.14.3U);6.14.2Q=P;6.14.1r=P;1C(i 27 6.14.1r){6.14.1r[i].21=P}}};',62,808,'||||||jQuery||dragCfg||||||||||||if||||||this||||elm||||||dragged|var|el|function|iResize|false|return|iDrag|parseInt|resizeOptions|css|dropCfg|iEL|else|true|null|iUtil|Math|left|iSort|top|fx|helper|get|pointer|iDrop||position|options||iAutoscroller||||resizeElement|oC|height|newSizes|px|width|dy|dx|duration|delta|document|style|display|firstNum|hb|case|pos|wb|cont|elsToScroll|oR|none|id|each|es|255|attr|elem|props|opacity|for|containment|axis|length|newPosition|apply|iTooltip|ny|break|nx|selectHelper|constructor|body|tp|bind|extend|easing|sizes|oldStyle|fractions|result|scrollTop|cursorAt|onChange||parentData|iSlider|step|scrollLeft||scr|in|selectdrug|values|0px|handle|newCoords|parseFloat|getSize|margins|onSlide|wrs|unbind|accept|zones|min|curCSS|Function|div|dhs|onStop|resizeDirection|handlers|highlighted|dragElem|diff|start|getPosition|vp|so|ghosting|append|transferEl|mousemove|ratio|onStart|absolute|currentPointer|nWidth|className|browser|hc|slideCfg|build|onDrag|tooltipCFG|elToScroll|documentElement|typeof|getPointer|dragHandle|block|shs|els|params|zIndex|helperclass|color|mousedown|complete|currentStyle||||||nHeight|dhe|window|parentNode|nodeEl|dragmoveBy|addClass|100|clientScroll|fn|PI|oP|event|sw|clonedEl|elS|hide|newStyles|marginTop|onDragModifier|relative|si|zoney|max|removeClass|visibility|zonex|collected|toDrag|abs|gx|marginBottom|marginLeft|overzone|marginRight|sortCfg|gy|elementData|title|grid|switch|styles|cur|destroy|nmp|prop|timer|replace|new|old|animationHandler|mouseup||show||hidden|hpc|tolerance|orig||current|revert|parseColor|snapDistance|3000|getWidth|getHeight|newDimensions|bottom|test|size|wr|sliders|vertically|128|end|horizontally|oldDisplay|onHover|newTop|hash|newLeft|139|dh|Draggable|oD|zoneh|cssRules|focused|np|oldVisibility|ih|selectCurrent|iw|selectKeyHelper|nw|startDrag|opera|rule|sc|minLeft|restoreStyle|changed|zonew|getSizeLite|rgb|minTop|pow|toInteger|inFrontOf|onOut|fA|user|F0||speed|onHide|right|frameClass||0x|msie|de|onShow|maxHeight|pressedKey|newPos|minHeight|maxBottom|contBorders|count|stop|maxRight|onselect|onselectstop|offsetTop|yproc|clientHeight|bounceout|offsetHeight|pr|getScroll|init|ser|offsetWidth|tagName|offsetLeft|clientWidth|move|tooltipHelper|fnc|ts|nRy|delay|borderTopWidth|overflow|getBorder|selectBorders|sx|serialize|insideParent|cssSides|jEl|nRx|queue|callback|targetEl|namedColors|parent|border|parentBorders|sy|xproc|borderLeftWidth|sh|firstChild|Array|selectedone|key|selectKeyUp|handleEl|diffHeight|ne|selectKeyDown|select|selectcheck|dragEl|diffWidth|iIndex|toLowerCase|src|png|maxWidth|opt|minWidth|sin|startTime|prev|next|nodeName|while|self|onDrop|prot|ActiveXObject|diffX|onActivate|SliderContainer|isDroppable|styleSheets|hidehelper|192|href|2000|borderColor|Object|oldTitle|oldPosition|diffY|keydown|html|sideEnd|211|exec|isDraggable|activeclass|hoverclass|margin|side|os|checkhover|5625|padding|DraggableDestroy|dragstop|getValues|dEs|func|idsa|10000|innerHeight|unselectable|scrollHeight||draginit|scrollWidth|getPositionLite|traverseDOM|animate|oneIsSortable|autoSize|filter|moveDrag|innerWidth|stopDrag|dragmove|clearInterval|clnt|to|oldBorder|string|setInterval|applyOnHover|elPosition|String|stopAnim|prevLeft|measure|169|slider|is|bouncein|prevTop|oldFloat|cssSidesEnd|restricted|SliderIteration|object|lastSi|focus|tooltipURL|modifyContainer|snapToGrid|borderWidth|sliderEl|linear|getContainment|sortable|floats|mouse|sliderPos|intersect|initialPosition|empty|paddingLeft|Color|borderRightWidth|indexOf|tabindex|paddingRight|helperSize|parentPos|sliderSize|paddingBottom|paddingTop||borderBottomWidth|selectstop|Selectserialize|pValue|cursor|floatVal|fitToContainer|asin|fontWeight|getMargins|keyup|windowSize|parseStyle|pause|isSlider|hidefocused|colorCssProps|fxe|offsetParent|userSelect|KhtmlUserSelect|listStyle|dragHelper|Width|toggle|cssProps|notColor|240|styleFloat|wid|insertBefore|getClient|isFunction|img|fxCheckTag|auto|trim|split|images|emptyGIF|245|oldOverflow|144|230|224|165|distance|custom|140|107|getTime|Date|alpha|dragstart|1px|onout|onhover|Droppable|isSortable|zindex|fadeIn|addItem|SortableAddItem|sortHelper|nbsp|selectedclass|isSelectable|selectstopApply|selectstart|cloneNode|DroppableDestroy|after|check|mouseout|blur|keyCode|charCode|containerMaxy|dragmoveByKey|onslide|cos|set|nr|containerMaxx|yfrac|maxy|maxx|tooltipTitle|default|fracW|fracH|xfrac|selectcheckApply|filteredPosition|1000|onResize|se|match|createElement|getHeightMinMax|on|onDragStart|remeasure|onDragStop|interval|highlight|itransferTo|directions|shc|hlt|doScroll|random|checkdrop|fit|wrapper|clientX|625|darkkhaki|189|appendChild|darkgreen|aqua|pageX|darkcyan|brown|blue|9375|black|183|beige||220|darkblue|azure|cyan|darkgrey|darkorchid|215|green|gold|fuchsia|148|indigo|130|lightblue|173|wh|easein|khaki|darkviolet|122|984375|153|darkorange|easeboth|darkolivegreen|204|darkred|233|150|getPadding|darksalmon|easeout|darkmagenta|nextSibling|header|500|th|colgroup|col|script|frame|meta|centerEl|optgroup|option|frameset|fixPNG|tfoot|progid|transferHelper|prototype|DXImageTransform|AlphaImageLoader|tr|td|thead|caption|TransferTo|tbody|destroyWrapper|removeChild|boxModel|purgeEvents|cssFloat|fxWrapper|ol|elasticboth|elasticout|clientY|bounceboth|remove|Microsoft|elasticin|dl|ul|216||input|w_|float|buildWrapper|hr|textarea|table|form|button|iframe|pageY|lime|inset|outset|ridge|groove|SliderGetValues|http|SortSerialize|rules|Sortable|borderStyle|SortableDestroy|solid|dashed|stopAll|Left|Bottom|Right|ToolTip|mouseover|dotted|transparent|fadeOut|isNaN|selectorText|RegExp|ondrop|sqrt|recallDroppables|array|Resizable|number|khtml|ondragstart|mozUserSelect|find|moz|ResizableDestroy|fromHandler|before|childNodes|onchange|cssText|100000000|dequeue|MozUserSelect|off|toUpperCase|Selectable|Top|double||yellow|lightyellow|white|silver|193|182|238|lightgrey|SliderSetValues|Slider|red|navy|pink|olive|orange|203|maroon|onselectstart|magenta|purple|lightgreen|lightpink|borderLeftColor|backgroundColor|borderBottomColor|outlineWidth|lightcyan|textIndent|borderRightColor|outlineOffset|borderTopColor|letterSpacing|fontSize|outlineColor|lineHeight'.split('|'),0,{}))
wp-shopping-cart/js/jquery.accessible-news-slider.js ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery.fn.slideNews = function(settings) {
2
+ alert("test");
3
+ settings = jQuery.extend({
4
+ headline: "Shopping Cart",
5
+ newsWidth: 74,
6
+ newsSpeed: "normal"
7
+ }, settings);
8
+ return this.each(function(i){
9
+ //jQuery(".messaging",this).css("display","none");
10
+ //jQuery("a:eq(0)",this).attr("href","#skip_to_news_" + i);
11
+ //jQuery("a:eq(4)",this).attr("name","skip_to_news_" + i);
12
+ itemLength = jQuery(".item",this).length;
13
+ newsContainerWidth = itemLength * settings.newsWidth;
14
+ jQuery(".container",this).css("width",newsContainerWidth + "px");
15
+ //jQuery(".news_items",this).prepend("<p class='view_all'>" + settings.headline + " [ " + itemLength + " total ] &nbsp;-&nbsp; <a href='#'>View All</a></p>");
16
+ /*jQuery("a:eq(3)",this).click(function() {
17
+ thisSlider = jQuery(this).parent().parent().parent();
18
+ jQuery(".next",thisSlider).css("display","none");
19
+ jQuery(".prev",thisSlider).css("display","none");
20
+ jQuery(".container",thisSlider).css("left","0px");
21
+ jQuery(".container",thisSlider).css("width",settings.newsWidth * 2 + "px");
22
+ //jQuery(".view_all",thisSlider).css("display","none");
23
+ });*/
24
+ jQuery(".next",this).css("display","block");
25
+ animating = false;
26
+ jQuery(".next",this).click(function() {
27
+ thisParent = jQuery(this).parent();
28
+ if (animating == false) {
29
+ animating = true;
30
+ animateLeft = parseInt(jQuery(".container",thisParent).css("left")) - (settings.newsWidth * 1);
31
+ if (animateLeft + parseInt(jQuery(".container",thisParent).css("width")) > 0) {
32
+ jQuery(".prev",thisParent).css("display","block");
33
+ jQuery(".container",thisParent).animate({left: animateLeft}, settings.newsSpeed, function() {
34
+ jQuery(this).css("left",animateLeft);
35
+ if (parseInt(jQuery(".container",thisParent).css("left")) + parseInt(jQuery(".container",thisParent).css("width")) <= settings.newsWidth * 2) {
36
+ jQuery(".next",thisParent).css("display","none");
37
+ }
38
+ animating = false;
39
+ });
40
+ } else {
41
+ animating = false;
42
+ }
43
+ return false;
44
+ }
45
+ });
46
+ jQuery(".prev",this).click(function() {
47
+ thisParent = jQuery(this).parent();
48
+ if (animating == false) {
49
+ animating = true;
50
+ animateLeft = parseInt(jQuery(".container",thisParent).css("left")) + (settings.newsWidth * 1);
51
+ if ((animateLeft + parseInt(jQuery(".container",thisParent).css("width"))) <= parseInt(jQuery(".container",thisParent).css("width"))) {
52
+ jQuery(".next",thisParent).css("display","block");
53
+ jQuery(".container",thisParent).animate({left: animateLeft}, settings.newsSpeed, function() {
54
+ jQuery(this).css("left",animateLeft);
55
+ if (parseInt(jQuery(".container",thisParent).css("left")) == 0) {
56
+ jQuery(".prev",thisParent).css("display","none");
57
+ }
58
+ animating = false;
59
+ });
60
+ } else {
61
+ animating = false;
62
+ }
63
+ return false;
64
+ }
65
+ });
66
+ });
67
+ };
wp-shopping-cart/js/jquery.js ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery 1.2.3 - New Wave Javascript
3
+ *
4
+ * Copyright (c) 2008 John Resig (jquery.com)
5
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
6
+ * and GPL (GPL-LICENSE.txt) licenses.
7
+ *
8
+ * $Date: 2008-02-06 00:21:25 -0500 (Wed, 06 Feb 2008) $
9
+ * $Rev: 4663 $
10
+ */
11
+ eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(J(){7(1e.3N)L w=1e.3N;L E=1e.3N=J(a,b){K 1B E.2l.4T(a,b)};7(1e.$)L D=1e.$;1e.$=E;L u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/;L G=/^.[^:#\\[\\.]*$/;E.1n=E.2l={4T:J(d,b){d=d||T;7(d.15){6[0]=d;6.M=1;K 6}N 7(1o d=="25"){L c=u.2O(d);7(c&&(c[1]||!b)){7(c[1])d=E.4a([c[1]],b);N{L a=T.5J(c[3]);7(a)7(a.2w!=c[3])K E().2s(d);N{6[0]=a;6.M=1;K 6}N d=[]}}N K 1B E(b).2s(d)}N 7(E.1q(d))K 1B E(T)[E.1n.21?"21":"3U"](d);K 6.6E(d.1k==1M&&d||(d.5h||d.M&&d!=1e&&!d.15&&d[0]!=10&&d[0].15)&&E.2I(d)||[d])},5h:"1.2.3",87:J(){K 6.M},M:0,22:J(a){K a==10?E.2I(6):6[a]},2F:J(b){L a=E(b);a.54=6;K a},6E:J(a){6.M=0;1M.2l.1g.1i(6,a);K 6},R:J(a,b){K E.R(6,a,b)},4X:J(b){L a=-1;6.R(J(i){7(6==b)a=i});K a},1J:J(c,a,b){L d=c;7(c.1k==4e)7(a==10)K 6.M&&E[b||"1J"](6[0],c)||10;N{d={};d[c]=a}K 6.R(J(i){Q(c 1p d)E.1J(b?6.W:6,c,E.1l(6,d[c],b,i,c))})},1j:J(b,a){7((b==\'27\'||b==\'1R\')&&2M(a)<0)a=10;K 6.1J(b,a,"2o")},1u:J(b){7(1o b!="3V"&&b!=V)K 6.4x().3t((6[0]&&6[0].2i||T).5r(b));L a="";E.R(b||6,J(){E.R(6.3p,J(){7(6.15!=8)a+=6.15!=1?6.6K:E.1n.1u([6])})});K a},5m:J(b){7(6[0])E(b,6[0].2i).5k().3o(6[0]).2c(J(){L a=6;2b(a.1C)a=a.1C;K a}).3t(6);K 6},8w:J(a){K 6.R(J(){E(6).6z().5m(a)})},8p:J(a){K 6.R(J(){E(6).5m(a)})},3t:J(){K 6.3O(18,P,S,J(a){7(6.15==1)6.38(a)})},6q:J(){K 6.3O(18,P,P,J(a){7(6.15==1)6.3o(a,6.1C)})},6o:J(){K 6.3O(18,S,S,J(a){6.1a.3o(a,6)})},5a:J(){K 6.3O(18,S,P,J(a){6.1a.3o(a,6.2B)})},3h:J(){K 6.54||E([])},2s:J(b){L c=E.2c(6,J(a){K E.2s(b,a)});K 6.2F(/[^+>] [^+>]/.17(b)||b.1f("..")>-1?E.57(c):c)},5k:J(e){L f=6.2c(J(){7(E.14.1d&&!E.3E(6)){L a=6.69(P),4Y=T.3s("1x");4Y.38(a);K E.4a([4Y.3d])[0]}N K 6.69(P)});L d=f.2s("*").4R().R(J(){7(6[F]!=10)6[F]=V});7(e===P)6.2s("*").4R().R(J(i){7(6.15==3)K;L c=E.O(6,"2R");Q(L a 1p c)Q(L b 1p c[a])E.16.1b(d[i],a,c[a][b],c[a][b].O)});K f},1E:J(b){K 6.2F(E.1q(b)&&E.3y(6,J(a,i){K b.1P(a,i)})||E.3e(b,6))},56:J(b){7(b.1k==4e)7(G.17(b))K 6.2F(E.3e(b,6,P));N b=E.3e(b,6);L a=b.M&&b[b.M-1]!==10&&!b.15;K 6.1E(J(){K a?E.33(6,b)<0:6!=b})},1b:J(a){K!a?6:6.2F(E.37(6.22(),a.1k==4e?E(a).22():a.M!=10&&(!a.12||E.12(a,"3u"))?a:[a]))},3H:J(a){K a?E.3e(a,6).M>0:S},7j:J(a){K 6.3H("."+a)},5O:J(b){7(b==10){7(6.M){L c=6[0];7(E.12(c,"2k")){L e=c.3T,5I=[],11=c.11,2X=c.U=="2k-2X";7(e<0)K V;Q(L i=2X?e:0,2f=2X?e+1:11.M;i<2f;i++){L d=11[i];7(d.2p){b=E.14.1d&&!d.9J.1A.9y?d.1u:d.1A;7(2X)K b;5I.1g(b)}}K 5I}N K(6[0].1A||"").1r(/\\r/g,"")}K 10}K 6.R(J(){7(6.15!=1)K;7(b.1k==1M&&/5u|5t/.17(6.U))6.3k=(E.33(6.1A,b)>=0||E.33(6.31,b)>=0);N 7(E.12(6,"2k")){L a=b.1k==1M?b:[b];E("98",6).R(J(){6.2p=(E.33(6.1A,a)>=0||E.33(6.1u,a)>=0)});7(!a.M)6.3T=-1}N 6.1A=b})},3q:J(a){K a==10?(6.M?6[0].3d:V):6.4x().3t(a)},6S:J(a){K 6.5a(a).1V()},6Z:J(i){K 6.2K(i,i+1)},2K:J(){K 6.2F(1M.2l.2K.1i(6,18))},2c:J(b){K 6.2F(E.2c(6,J(a,i){K b.1P(a,i,a)}))},4R:J(){K 6.1b(6.54)},O:J(d,b){L a=d.23(".");a[1]=a[1]?"."+a[1]:"";7(b==V){L c=6.5n("8P"+a[1]+"!",[a[0]]);7(c==10&&6.M)c=E.O(6[0],d);K c==V&&a[1]?6.O(a[0]):c}N K 6.1N("8K"+a[1]+"!",[a[0],b]).R(J(){E.O(6,d,b)})},35:J(a){K 6.R(J(){E.35(6,a)})},3O:J(g,f,h,d){L e=6.M>1,3n;K 6.R(J(){7(!3n){3n=E.4a(g,6.2i);7(h)3n.8D()}L b=6;7(f&&E.12(6,"1O")&&E.12(3n[0],"4v"))b=6.3S("1U")[0]||6.38(6.2i.3s("1U"));L c=E([]);E.R(3n,J(){L a=e?E(6).5k(P)[0]:6;7(E.12(a,"1m")){c=c.1b(a)}N{7(a.15==1)c=c.1b(E("1m",a).1V());d.1P(b,a)}});c.R(6A)})}};E.2l.4T.2l=E.2l;J 6A(i,a){7(a.3Q)E.3P({1c:a.3Q,3l:S,1H:"1m"});N E.5g(a.1u||a.6x||a.3d||"");7(a.1a)a.1a.34(a)}E.1s=E.1n.1s=J(){L b=18[0]||{},i=1,M=18.M,5c=S,11;7(b.1k==8d){5c=b;b=18[1]||{};i=2}7(1o b!="3V"&&1o b!="J")b={};7(M==1){b=6;i=0}Q(;i<M;i++)7((11=18[i])!=V)Q(L a 1p 11){7(b===11[a])6w;7(5c&&11[a]&&1o 11[a]=="3V"&&b[a]&&!11[a].15)b[a]=E.1s(b[a],11[a]);N 7(11[a]!=10)b[a]=11[a]}K b};L F="3N"+(1B 3v()).3L(),6t=0,5b={};L H=/z-?4X|86-?84|1w|6k|7Z-?1R/i;E.1s({7Y:J(a){1e.$=D;7(a)1e.3N=w;K E},1q:J(a){K!!a&&1o a!="25"&&!a.12&&a.1k!=1M&&/J/i.17(a+"")},3E:J(a){K a.1F&&!a.1h||a.28&&a.2i&&!a.2i.1h},5g:J(a){a=E.3g(a);7(a){L b=T.3S("6f")[0]||T.1F,1m=T.3s("1m");1m.U="1u/4m";7(E.14.1d)1m.1u=a;N 1m.38(T.5r(a));b.38(1m);b.34(1m)}},12:J(b,a){K b.12&&b.12.2E()==a.2E()},1T:{},O:J(c,d,b){c=c==1e?5b:c;L a=c[F];7(!a)a=c[F]=++6t;7(d&&!E.1T[a])E.1T[a]={};7(b!=10)E.1T[a][d]=b;K d?E.1T[a][d]:a},35:J(c,b){c=c==1e?5b:c;L a=c[F];7(b){7(E.1T[a]){2V E.1T[a][b];b="";Q(b 1p E.1T[a])1Q;7(!b)E.35(c)}}N{1S{2V c[F]}1X(e){7(c.52)c.52(F)}2V E.1T[a]}},R:J(c,a,b){7(b){7(c.M==10){Q(L d 1p c)7(a.1i(c[d],b)===S)1Q}N Q(L i=0,M=c.M;i<M;i++)7(a.1i(c[i],b)===S)1Q}N{7(c.M==10){Q(L d 1p c)7(a.1P(c[d],d,c[d])===S)1Q}N Q(L i=0,M=c.M,1A=c[0];i<M&&a.1P(1A,i,1A)!==S;1A=c[++i]){}}K c},1l:J(b,a,c,i,d){7(E.1q(a))a=a.1P(b,i);K a&&a.1k==51&&c=="2o"&&!H.17(d)?a+"2S":a},1t:{1b:J(c,b){E.R((b||"").23(/\\s+/),J(i,a){7(c.15==1&&!E.1t.3Y(c.1t,a))c.1t+=(c.1t?" ":"")+a})},1V:J(c,b){7(c.15==1)c.1t=b!=10?E.3y(c.1t.23(/\\s+/),J(a){K!E.1t.3Y(b,a)}).6a(" "):""},3Y:J(b,a){K E.33(a,(b.1t||b).3X().23(/\\s+/))>-1}},68:J(b,c,a){L e={};Q(L d 1p c){e[d]=b.W[d];b.W[d]=c[d]}a.1P(b);Q(L d 1p c)b.W[d]=e[d]},1j:J(d,e,c){7(e=="27"||e=="1R"){L b,46={43:"4W",4U:"1Z",19:"3D"},3c=e=="27"?["7O","7M"]:["7J","7I"];J 5E(){b=e=="27"?d.7H:d.7F;L a=0,2N=0;E.R(3c,J(){a+=2M(E.2o(d,"7E"+6,P))||0;2N+=2M(E.2o(d,"2N"+6+"5X",P))||0});b-=24.7C(a+2N)}7(E(d).3H(":4d"))5E();N E.68(d,46,5E);K 24.2f(0,b)}K E.2o(d,e,c)},2o:J(e,k,j){L d;J 3x(b){7(!E.14.2d)K S;L a=T.4c.4K(b,V);K!a||a.4M("3x")==""}7(k=="1w"&&E.14.1d){d=E.1J(e.W,"1w");K d==""?"1":d}7(E.14.2z&&k=="19"){L c=e.W.50;e.W.50="0 7r 7o";e.W.50=c}7(k.1D(/4g/i))k=y;7(!j&&e.W&&e.W[k])d=e.W[k];N 7(T.4c&&T.4c.4K){7(k.1D(/4g/i))k="4g";k=k.1r(/([A-Z])/g,"-$1").2h();L h=T.4c.4K(e,V);7(h&&!3x(e))d=h.4M(k);N{L f=[],2C=[];Q(L a=e;a&&3x(a);a=a.1a)2C.4J(a);Q(L i=0;i<2C.M;i++)7(3x(2C[i])){f[i]=2C[i].W.19;2C[i].W.19="3D"}d=k=="19"&&f[2C.M-1]!=V?"2H":(h&&h.4M(k))||"";Q(L i=0;i<f.M;i++)7(f[i]!=V)2C[i].W.19=f[i]}7(k=="1w"&&d=="")d="1"}N 7(e.4n){L g=k.1r(/\\-(\\w)/g,J(a,b){K b.2E()});d=e.4n[k]||e.4n[g];7(!/^\\d+(2S)?$/i.17(d)&&/^\\d/.17(d)){L l=e.W.26,3K=e.3K.26;e.3K.26=e.4n.26;e.W.26=d||0;d=e.W.7f+"2S";e.W.26=l;e.3K.26=3K}}K d},4a:J(l,h){L k=[];h=h||T;7(1o h.3s==\'10\')h=h.2i||h[0]&&h[0].2i||T;E.R(l,J(i,d){7(!d)K;7(d.1k==51)d=d.3X();7(1o d=="25"){d=d.1r(/(<(\\w+)[^>]*?)\\/>/g,J(b,a,c){K c.1D(/^(aa|a6|7e|a5|4D|7a|a0|3m|9W|9U|9S)$/i)?b:a+"></"+c+">"});L f=E.3g(d).2h(),1x=h.3s("1x");L e=!f.1f("<9P")&&[1,"<2k 74=\'74\'>","</2k>"]||!f.1f("<9M")&&[1,"<73>","</73>"]||f.1D(/^<(9G|1U|9E|9B|9x)/)&&[1,"<1O>","</1O>"]||!f.1f("<4v")&&[2,"<1O><1U>","</1U></1O>"]||(!f.1f("<9w")||!f.1f("<9v"))&&[3,"<1O><1U><4v>","</4v></1U></1O>"]||!f.1f("<7e")&&[2,"<1O><1U></1U><6V>","</6V></1O>"]||E.14.1d&&[1,"1x<1x>","</1x>"]||[0,"",""];1x.3d=e[1]+d+e[2];2b(e[0]--)1x=1x.5o;7(E.14.1d){L g=!f.1f("<1O")&&f.1f("<1U")<0?1x.1C&&1x.1C.3p:e[1]=="<1O>"&&f.1f("<1U")<0?1x.3p:[];Q(L j=g.M-1;j>=0;--j)7(E.12(g[j],"1U")&&!g[j].3p.M)g[j].1a.34(g[j]);7(/^\\s/.17(d))1x.3o(h.5r(d.1D(/^\\s*/)[0]),1x.1C)}d=E.2I(1x.3p)}7(d.M===0&&(!E.12(d,"3u")&&!E.12(d,"2k")))K;7(d[0]==10||E.12(d,"3u")||d.11)k.1g(d);N k=E.37(k,d)});K k},1J:J(d,e,c){7(!d||d.15==3||d.15==8)K 10;L f=E.3E(d)?{}:E.46;7(e=="2p"&&E.14.2d)d.1a.3T;7(f[e]){7(c!=10)d[f[e]]=c;K d[f[e]]}N 7(E.14.1d&&e=="W")K E.1J(d.W,"9u",c);N 7(c==10&&E.14.1d&&E.12(d,"3u")&&(e=="9r"||e=="9o"))K d.9m(e).6K;N 7(d.28){7(c!=10){7(e=="U"&&E.12(d,"4D")&&d.1a)6Q"U 9i 9h\'t 9g 9e";d.9b(e,""+c)}7(E.14.1d&&/6O|3Q/.17(e)&&!E.3E(d))K d.4z(e,2);K d.4z(e)}N{7(e=="1w"&&E.14.1d){7(c!=10){d.6k=1;d.1E=(d.1E||"").1r(/6M\\([^)]*\\)/,"")+(2M(c).3X()=="96"?"":"6M(1w="+c*6L+")")}K d.1E&&d.1E.1f("1w=")>=0?(2M(d.1E.1D(/1w=([^)]*)/)[1])/6L).3X():""}e=e.1r(/-([a-z])/95,J(a,b){K b.2E()});7(c!=10)d[e]=c;K d[e]}},3g:J(a){K(a||"").1r(/^\\s+|\\s+$/g,"")},2I:J(b){L a=[];7(1o b!="93")Q(L i=0,M=b.M;i<M;i++)a.1g(b[i]);N a=b.2K(0);K a},33:J(b,a){Q(L i=0,M=a.M;i<M;i++)7(a[i]==b)K i;K-1},37:J(a,b){7(E.14.1d){Q(L i=0;b[i];i++)7(b[i].15!=8)a.1g(b[i])}N Q(L i=0;b[i];i++)a.1g(b[i]);K a},57:J(a){L c=[],2r={};1S{Q(L i=0,M=a.M;i<M;i++){L b=E.O(a[i]);7(!2r[b]){2r[b]=P;c.1g(a[i])}}}1X(e){c=a}K c},3y:J(c,a,d){L b=[];Q(L i=0,M=c.M;i<M;i++)7(!d&&a(c[i],i)||d&&!a(c[i],i))b.1g(c[i]);K b},2c:J(d,a){L c=[];Q(L i=0,M=d.M;i<M;i++){L b=a(d[i],i);7(b!==V&&b!=10){7(b.1k!=1M)b=[b];c=c.71(b)}}K c}});L v=8Y.8W.2h();E.14={5K:(v.1D(/.+(?:8T|8S|8R|8O)[\\/: ]([\\d.]+)/)||[])[1],2d:/77/.17(v),2z:/2z/.17(v),1d:/1d/.17(v)&&!/2z/.17(v),48:/48/.17(v)&&!/(8L|77)/.17(v)};L y=E.14.1d?"6H":"75";E.1s({8I:!E.14.1d||T.6F=="79",46:{"Q":"8F","8E":"1t","4g":y,75:y,6H:y,3d:"3d",1t:"1t",1A:"1A",2Y:"2Y",3k:"3k",8C:"8B",2p:"2p",8A:"8z",3T:"3T",6C:"6C",28:"28",12:"12"}});E.R({6B:J(a){K a.1a},8y:J(a){K E.4u(a,"1a")},8x:J(a){K E.2Z(a,2,"2B")},8v:J(a){K E.2Z(a,2,"4t")},8u:J(a){K E.4u(a,"2B")},8t:J(a){K E.4u(a,"4t")},8s:J(a){K E.5i(a.1a.1C,a)},8r:J(a){K E.5i(a.1C)},6z:J(a){K E.12(a,"8q")?a.8o||a.8n.T:E.2I(a.3p)}},J(c,d){E.1n[c]=J(b){L a=E.2c(6,d);7(b&&1o b=="25")a=E.3e(b,a);K 6.2F(E.57(a))}});E.R({6y:"3t",8m:"6q",3o:"6o",8l:"5a",8k:"6S"},J(c,b){E.1n[c]=J(){L a=18;K 6.R(J(){Q(L i=0,M=a.M;i<M;i++)E(a[i])[b](6)})}});E.R({8j:J(a){E.1J(6,a,"");7(6.15==1)6.52(a)},8i:J(a){E.1t.1b(6,a)},8h:J(a){E.1t.1V(6,a)},8g:J(a){E.1t[E.1t.3Y(6,a)?"1V":"1b"](6,a)},1V:J(a){7(!a||E.1E(a,[6]).r.M){E("*",6).1b(6).R(J(){E.16.1V(6);E.35(6)});7(6.1a)6.1a.34(6)}},4x:J(){E(">*",6).1V();2b(6.1C)6.34(6.1C)}},J(a,b){E.1n[a]=J(){K 6.R(b,18)}});E.R(["8f","5X"],J(i,c){L b=c.2h();E.1n[b]=J(a){K 6[0]==1e?E.14.2z&&T.1h["5e"+c]||E.14.2d&&1e["8e"+c]||T.6F=="79"&&T.1F["5e"+c]||T.1h["5e"+c]:6[0]==T?24.2f(24.2f(T.1h["5d"+c],T.1F["5d"+c]),24.2f(T.1h["5L"+c],T.1F["5L"+c])):a==10?(6.M?E.1j(6[0],b):V):6.1j(b,a.1k==4e?a:a+"2S")}});L C=E.14.2d&&4s(E.14.5K)<8c?"(?:[\\\\w*4r-]|\\\\\\\\.)":"(?:[\\\\w\\8b-\\8a*4r-]|\\\\\\\\.)",6v=1B 4q("^>\\\\s*("+C+"+)"),6u=1B 4q("^("+C+"+)(#)("+C+"+)"),6s=1B 4q("^([#.]?)("+C+"*)");E.1s({6r:{"":J(a,i,m){K m[2]=="*"||E.12(a,m[2])},"#":J(a,i,m){K a.4z("2w")==m[2]},":":{89:J(a,i,m){K i<m[3]-0},88:J(a,i,m){K i>m[3]-0},2Z:J(a,i,m){K m[3]-0==i},6Z:J(a,i,m){K m[3]-0==i},3j:J(a,i){K i==0},3J:J(a,i,m,r){K i==r.M-1},6n:J(a,i){K i%2==0},6l:J(a,i){K i%2},"3j-4p":J(a){K a.1a.3S("*")[0]==a},"3J-4p":J(a){K E.2Z(a.1a.5o,1,"4t")==a},"83-4p":J(a){K!E.2Z(a.1a.5o,2,"4t")},6B:J(a){K a.1C},4x:J(a){K!a.1C},82:J(a,i,m){K(a.6x||a.81||E(a).1u()||"").1f(m[3])>=0},4d:J(a){K"1Z"!=a.U&&E.1j(a,"19")!="2H"&&E.1j(a,"4U")!="1Z"},1Z:J(a){K"1Z"==a.U||E.1j(a,"19")=="2H"||E.1j(a,"4U")=="1Z"},80:J(a){K!a.2Y},2Y:J(a){K a.2Y},3k:J(a){K a.3k},2p:J(a){K a.2p||E.1J(a,"2p")},1u:J(a){K"1u"==a.U},5u:J(a){K"5u"==a.U},5t:J(a){K"5t"==a.U},59:J(a){K"59"==a.U},3I:J(a){K"3I"==a.U},58:J(a){K"58"==a.U},6j:J(a){K"6j"==a.U},6i:J(a){K"6i"==a.U},2G:J(a){K"2G"==a.U||E.12(a,"2G")},4D:J(a){K/4D|2k|6h|2G/i.17(a.12)},3Y:J(a,i,m){K E.2s(m[3],a).M},7X:J(a){K/h\\d/i.17(a.12)},7W:J(a){K E.3y(E.3G,J(b){K a==b.Y}).M}}},6g:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,1B 4q("^([:.#]*)("+C+"+)")],3e:J(a,c,b){L d,2m=[];2b(a&&a!=d){d=a;L f=E.1E(a,c,b);a=f.t.1r(/^\\s*,\\s*/,"");2m=b?c=f.r:E.37(2m,f.r)}K 2m},2s:J(t,p){7(1o t!="25")K[t];7(p&&p.15!=1&&p.15!=9)K[];p=p||T;L d=[p],2r=[],3J,12;2b(t&&3J!=t){L r=[];3J=t;t=E.3g(t);L o=S;L g=6v;L m=g.2O(t);7(m){12=m[1].2E();Q(L i=0;d[i];i++)Q(L c=d[i].1C;c;c=c.2B)7(c.15==1&&(12=="*"||c.12.2E()==12))r.1g(c);d=r;t=t.1r(g,"");7(t.1f(" ")==0)6w;o=P}N{g=/^([>+~])\\s*(\\w*)/i;7((m=g.2O(t))!=V){r=[];L l={};12=m[2].2E();m=m[1];Q(L j=0,3f=d.M;j<3f;j++){L n=m=="~"||m=="+"?d[j].2B:d[j].1C;Q(;n;n=n.2B)7(n.15==1){L h=E.O(n);7(m=="~"&&l[h])1Q;7(!12||n.12.2E()==12){7(m=="~")l[h]=P;r.1g(n)}7(m=="+")1Q}}d=r;t=E.3g(t.1r(g,""));o=P}}7(t&&!o){7(!t.1f(",")){7(p==d[0])d.4l();2r=E.37(2r,d);r=d=[p];t=" "+t.6e(1,t.M)}N{L k=6u;L m=k.2O(t);7(m){m=[0,m[2],m[3],m[1]]}N{k=6s;m=k.2O(t)}m[2]=m[2].1r(/\\\\/g,"");L f=d[d.M-1];7(m[1]=="#"&&f&&f.5J&&!E.3E(f)){L q=f.5J(m[2]);7((E.14.1d||E.14.2z)&&q&&1o q.2w=="25"&&q.2w!=m[2])q=E(\'[@2w="\'+m[2]+\'"]\',f)[0];d=r=q&&(!m[3]||E.12(q,m[3]))?[q]:[]}N{Q(L i=0;d[i];i++){L a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];7(a=="*"&&d[i].12.2h()=="3V")a="3m";r=E.37(r,d[i].3S(a))}7(m[1]==".")r=E.55(r,m[2]);7(m[1]=="#"){L e=[];Q(L i=0;r[i];i++)7(r[i].4z("2w")==m[2]){e=[r[i]];1Q}r=e}d=r}t=t.1r(k,"")}}7(t){L b=E.1E(t,r);d=r=b.r;t=E.3g(b.t)}}7(t)d=[];7(d&&p==d[0])d.4l();2r=E.37(2r,d);K 2r},55:J(r,m,a){m=" "+m+" ";L c=[];Q(L i=0;r[i];i++){L b=(" "+r[i].1t+" ").1f(m)>=0;7(!a&&b||a&&!b)c.1g(r[i])}K c},1E:J(t,r,h){L d;2b(t&&t!=d){d=t;L p=E.6g,m;Q(L i=0;p[i];i++){m=p[i].2O(t);7(m){t=t.7V(m[0].M);m[2]=m[2].1r(/\\\\/g,"");1Q}}7(!m)1Q;7(m[1]==":"&&m[2]=="56")r=G.17(m[3])?E.1E(m[3],r,P).r:E(r).56(m[3]);N 7(m[1]==".")r=E.55(r,m[2],h);N 7(m[1]=="["){L g=[],U=m[3];Q(L i=0,3f=r.M;i<3f;i++){L a=r[i],z=a[E.46[m[2]]||m[2]];7(z==V||/6O|3Q|2p/.17(m[2]))z=E.1J(a,m[2])||\'\';7((U==""&&!!z||U=="="&&z==m[5]||U=="!="&&z!=m[5]||U=="^="&&z&&!z.1f(m[5])||U=="$="&&z.6e(z.M-m[5].M)==m[5]||(U=="*="||U=="~=")&&z.1f(m[5])>=0)^h)g.1g(a)}r=g}N 7(m[1]==":"&&m[2]=="2Z-4p"){L e={},g=[],17=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2O(m[3]=="6n"&&"2n"||m[3]=="6l"&&"2n+1"||!/\\D/.17(m[3])&&"7U+"+m[3]||m[3]),3j=(17[1]+(17[2]||1))-0,d=17[3]-0;Q(L i=0,3f=r.M;i<3f;i++){L j=r[i],1a=j.1a,2w=E.O(1a);7(!e[2w]){L c=1;Q(L n=1a.1C;n;n=n.2B)7(n.15==1)n.4k=c++;e[2w]=P}L b=S;7(3j==0){7(j.4k==d)b=P}N 7((j.4k-d)%3j==0&&(j.4k-d)/3j>=0)b=P;7(b^h)g.1g(j)}r=g}N{L f=E.6r[m[1]];7(1o f=="3V")f=f[m[2]];7(1o f=="25")f=6c("S||J(a,i){K "+f+";}");r=E.3y(r,J(a,i){K f(a,i,m,r)},h)}}K{r:r,t:t}},4u:J(b,c){L d=[];L a=b[c];2b(a&&a!=T){7(a.15==1)d.1g(a);a=a[c]}K d},2Z:J(a,e,c,b){e=e||1;L d=0;Q(;a;a=a[c])7(a.15==1&&++d==e)1Q;K a},5i:J(n,a){L r=[];Q(;n;n=n.2B){7(n.15==1&&(!a||n!=a))r.1g(n)}K r}});E.16={1b:J(f,i,g,e){7(f.15==3||f.15==8)K;7(E.14.1d&&f.53!=10)f=1e;7(!g.2D)g.2D=6.2D++;7(e!=10){L h=g;g=J(){K h.1i(6,18)};g.O=e;g.2D=h.2D}L j=E.O(f,"2R")||E.O(f,"2R",{}),1v=E.O(f,"1v")||E.O(f,"1v",J(){L a;7(1o E=="10"||E.16.5f)K a;a=E.16.1v.1i(18.3R.Y,18);K a});1v.Y=f;E.R(i.23(/\\s+/),J(c,b){L a=b.23(".");b=a[0];g.U=a[1];L d=j[b];7(!d){d=j[b]={};7(!E.16.2y[b]||E.16.2y[b].4j.1P(f)===S){7(f.3F)f.3F(b,1v,S);N 7(f.6b)f.6b("4i"+b,1v)}}d[g.2D]=g;E.16.2a[b]=P});f=V},2D:1,2a:{},1V:J(e,h,f){7(e.15==3||e.15==8)K;L i=E.O(e,"2R"),29,4X;7(i){7(h==10||(1o h=="25"&&h.7T(0)=="."))Q(L g 1p i)6.1V(e,g+(h||""));N{7(h.U){f=h.2q;h=h.U}E.R(h.23(/\\s+/),J(b,a){L c=a.23(".");a=c[0];7(i[a]){7(f)2V i[a][f.2D];N Q(f 1p i[a])7(!c[1]||i[a][f].U==c[1])2V i[a][f];Q(29 1p i[a])1Q;7(!29){7(!E.16.2y[a]||E.16.2y[a].4h.1P(e)===S){7(e.67)e.67(a,E.O(e,"1v"),S);N 7(e.66)e.66("4i"+a,E.O(e,"1v"))}29=V;2V i[a]}}})}Q(29 1p i)1Q;7(!29){L d=E.O(e,"1v");7(d)d.Y=V;E.35(e,"2R");E.35(e,"1v")}}},1N:J(g,c,d,f,h){c=E.2I(c||[]);7(g.1f("!")>=0){g=g.2K(0,-1);L a=P}7(!d){7(6.2a[g])E("*").1b([1e,T]).1N(g,c)}N{7(d.15==3||d.15==8)K 10;L b,29,1n=E.1q(d[g]||V),16=!c[0]||!c[0].36;7(16)c.4J(6.4Z({U:g,2L:d}));c[0].U=g;7(a)c[0].65=P;7(E.1q(E.O(d,"1v")))b=E.O(d,"1v").1i(d,c);7(!1n&&d["4i"+g]&&d["4i"+g].1i(d,c)===S)b=S;7(16)c.4l();7(h&&E.1q(h)){29=h.1i(d,b==V?c:c.71(b));7(29!==10)b=29}7(1n&&f!==S&&b!==S&&!(E.12(d,\'a\')&&g=="4V")){6.5f=P;1S{d[g]()}1X(e){}}6.5f=S}K b},1v:J(c){L a;c=E.16.4Z(c||1e.16||{});L b=c.U.23(".");c.U=b[0];L f=E.O(6,"2R")&&E.O(6,"2R")[c.U],42=1M.2l.2K.1P(18,1);42.4J(c);Q(L j 1p f){L d=f[j];42[0].2q=d;42[0].O=d.O;7(!b[1]&&!c.65||d.U==b[1]){L e=d.1i(6,42);7(a!==S)a=e;7(e===S){c.36();c.44()}}}7(E.14.1d)c.2L=c.36=c.44=c.2q=c.O=V;K a},4Z:J(c){L a=c;c=E.1s({},a);c.36=J(){7(a.36)a.36();a.7S=S};c.44=J(){7(a.44)a.44();a.7R=P};7(!c.2L)c.2L=c.7Q||T;7(c.2L.15==3)c.2L=a.2L.1a;7(!c.4S&&c.5w)c.4S=c.5w==c.2L?c.7P:c.5w;7(c.64==V&&c.63!=V){L b=T.1F,1h=T.1h;c.64=c.63+(b&&b.2v||1h&&1h.2v||0)-(b.62||0);c.7N=c.7L+(b&&b.2x||1h&&1h.2x||0)-(b.60||0)}7(!c.3c&&((c.4f||c.4f===0)?c.4f:c.5Z))c.3c=c.4f||c.5Z;7(!c.7b&&c.5Y)c.7b=c.5Y;7(!c.3c&&c.2G)c.3c=(c.2G&1?1:(c.2G&2?3:(c.2G&4?2:0)));K c},2y:{21:{4j:J(){5M();K},4h:J(){K}},3C:{4j:J(){7(E.14.1d)K S;E(6).2j("4P",E.16.2y.3C.2q);K P},4h:J(){7(E.14.1d)K S;E(6).3w("4P",E.16.2y.3C.2q);K P},2q:J(a){7(I(a,6))K P;18[0].U="3C";K E.16.1v.1i(6,18)}},3B:{4j:J(){7(E.14.1d)K S;E(6).2j("4O",E.16.2y.3B.2q);K P},4h:J(){7(E.14.1d)K S;E(6).3w("4O",E.16.2y.3B.2q);K P},2q:J(a){7(I(a,6))K P;18[0].U="3B";K E.16.1v.1i(6,18)}}}};E.1n.1s({2j:J(c,a,b){K c=="4H"?6.2X(c,a,b):6.R(J(){E.16.1b(6,c,b||a,b&&a)})},2X:J(d,b,c){K 6.R(J(){E.16.1b(6,d,J(a){E(6).3w(a);K(c||b).1i(6,18)},c&&b)})},3w:J(a,b){K 6.R(J(){E.16.1V(6,a,b)})},1N:J(c,a,b){K 6.R(J(){E.16.1N(c,a,6,P,b)})},5n:J(c,a,b){7(6[0])K E.16.1N(c,a,6[0],S,b);K 10},2g:J(){L b=18;K 6.4V(J(a){6.4N=0==6.4N?1:0;a.36();K b[6.4N].1i(6,18)||S})},7D:J(a,b){K 6.2j(\'3C\',a).2j(\'3B\',b)},21:J(a){5M();7(E.2Q)a.1P(T,E);N E.3A.1g(J(){K a.1P(6,E)});K 6}});E.1s({2Q:S,3A:[],21:J(){7(!E.2Q){E.2Q=P;7(E.3A){E.R(E.3A,J(){6.1i(T)});E.3A=V}E(T).5n("21")}}});L x=S;J 5M(){7(x)K;x=P;7(T.3F&&!E.14.2z)T.3F("5W",E.21,S);7(E.14.1d&&1e==3b)(J(){7(E.2Q)K;1S{T.1F.7B("26")}1X(3a){3z(18.3R,0);K}E.21()})();7(E.14.2z)T.3F("5W",J(){7(E.2Q)K;Q(L i=0;i<T.4L.M;i++)7(T.4L[i].2Y){3z(18.3R,0);K}E.21()},S);7(E.14.2d){L a;(J(){7(E.2Q)K;7(T.39!="5V"&&T.39!="1y"){3z(18.3R,0);K}7(a===10)a=E("W, 7a[7A=7z]").M;7(T.4L.M!=a){3z(18.3R,0);K}E.21()})()}E.16.1b(1e,"3U",E.21)}E.R(("7y,7x,3U,7w,5d,4H,4V,7v,"+"7G,7u,7t,4P,4O,7s,2k,"+"58,7K,7q,7p,3a").23(","),J(i,b){E.1n[b]=J(a){K a?6.2j(b,a):6.1N(b)}});L I=J(a,c){L b=a.4S;2b(b&&b!=c)1S{b=b.1a}1X(3a){b=c}K b==c};E(1e).2j("4H",J(){E("*").1b(T).3w()});E.1n.1s({3U:J(g,d,c){7(E.1q(g))K 6.2j("3U",g);L e=g.1f(" ");7(e>=0){L i=g.2K(e,g.M);g=g.2K(0,e)}c=c||J(){};L f="4Q";7(d)7(E.1q(d)){c=d;d=V}N{d=E.3m(d);f="61"}L h=6;E.3P({1c:g,U:f,1H:"3q",O:d,1y:J(a,b){7(b=="1W"||b=="5U")h.3q(i?E("<1x/>").3t(a.4b.1r(/<1m(.|\\s)*?\\/1m>/g,"")).2s(i):a.4b);h.R(c,[a.4b,b,a])}});K 6},7n:J(){K E.3m(6.5T())},5T:J(){K 6.2c(J(){K E.12(6,"3u")?E.2I(6.7m):6}).1E(J(){K 6.31&&!6.2Y&&(6.3k||/2k|6h/i.17(6.12)||/1u|1Z|3I/i.17(6.U))}).2c(J(i,c){L b=E(6).5O();K b==V?V:b.1k==1M?E.2c(b,J(a,i){K{31:c.31,1A:a}}):{31:c.31,1A:b}}).22()}});E.R("5S,6d,5R,6D,5Q,6m".23(","),J(i,o){E.1n[o]=J(f){K 6.2j(o,f)}});L B=(1B 3v).3L();E.1s({22:J(d,b,a,c){7(E.1q(b)){a=b;b=V}K E.3P({U:"4Q",1c:d,O:b,1W:a,1H:c})},7l:J(b,a){K E.22(b,V,a,"1m")},7k:J(c,b,a){K E.22(c,b,a,"3i")},7i:J(d,b,a,c){7(E.1q(b)){a=b;b={}}K E.3P({U:"61",1c:d,O:b,1W:a,1H:c})},85:J(a){E.1s(E.4I,a)},4I:{2a:P,U:"4Q",2U:0,5P:"4o/x-7h-3u-7g",5N:P,3l:P,O:V,6p:V,3I:V,49:{3M:"4o/3M, 1u/3M",3q:"1u/3q",1m:"1u/4m, 4o/4m",3i:"4o/3i, 1u/4m",1u:"1u/a7",4G:"*/*"}},4F:{},3P:J(s){L f,2W=/=\\?(&|$)/g,1z,O;s=E.1s(P,s,E.1s(P,{},E.4I,s));7(s.O&&s.5N&&1o s.O!="25")s.O=E.3m(s.O);7(s.1H=="4E"){7(s.U.2h()=="22"){7(!s.1c.1D(2W))s.1c+=(s.1c.1D(/\\?/)?"&":"?")+(s.4E||"7d")+"=?"}N 7(!s.O||!s.O.1D(2W))s.O=(s.O?s.O+"&":"")+(s.4E||"7d")+"=?";s.1H="3i"}7(s.1H=="3i"&&(s.O&&s.O.1D(2W)||s.1c.1D(2W))){f="4E"+B++;7(s.O)s.O=(s.O+"").1r(2W,"="+f+"$1");s.1c=s.1c.1r(2W,"="+f+"$1");s.1H="1m";1e[f]=J(a){O=a;1W();1y();1e[f]=10;1S{2V 1e[f]}1X(e){}7(h)h.34(g)}}7(s.1H=="1m"&&s.1T==V)s.1T=S;7(s.1T===S&&s.U.2h()=="22"){L i=(1B 3v()).3L();L j=s.1c.1r(/(\\?|&)4r=.*?(&|$)/,"$a4="+i+"$2");s.1c=j+((j==s.1c)?(s.1c.1D(/\\?/)?"&":"?")+"4r="+i:"")}7(s.O&&s.U.2h()=="22"){s.1c+=(s.1c.1D(/\\?/)?"&":"?")+s.O;s.O=V}7(s.2a&&!E.5H++)E.16.1N("5S");7((!s.1c.1f("a3")||!s.1c.1f("//"))&&s.1H=="1m"&&s.U.2h()=="22"){L h=T.3S("6f")[0];L g=T.3s("1m");g.3Q=s.1c;7(s.7c)g.a2=s.7c;7(!f){L l=S;g.9Z=g.9Y=J(){7(!l&&(!6.39||6.39=="5V"||6.39=="1y")){l=P;1W();1y();h.34(g)}}}h.38(g);K 10}L m=S;L k=1e.78?1B 78("9X.9V"):1B 76();k.9T(s.U,s.1c,s.3l,s.6p,s.3I);1S{7(s.O)k.4C("9R-9Q",s.5P);7(s.5C)k.4C("9O-5A-9N",E.4F[s.1c]||"9L, 9K 9I 9H 5z:5z:5z 9F");k.4C("X-9C-9A","76");k.4C("9z",s.1H&&s.49[s.1H]?s.49[s.1H]+", */*":s.49.4G)}1X(e){}7(s.6Y)s.6Y(k);7(s.2a)E.16.1N("6m",[k,s]);L c=J(a){7(!m&&k&&(k.39==4||a=="2U")){m=P;7(d){6I(d);d=V}1z=a=="2U"&&"2U"||!E.6X(k)&&"3a"||s.5C&&E.6J(k,s.1c)&&"5U"||"1W";7(1z=="1W"){1S{O=E.6W(k,s.1H)}1X(e){1z="5x"}}7(1z=="1W"){L b;1S{b=k.5q("6U-5A")}1X(e){}7(s.5C&&b)E.4F[s.1c]=b;7(!f)1W()}N E.5v(s,k,1z);1y();7(s.3l)k=V}};7(s.3l){L d=53(c,13);7(s.2U>0)3z(J(){7(k){k.9t();7(!m)c("2U")}},s.2U)}1S{k.9s(s.O)}1X(e){E.5v(s,k,V,e)}7(!s.3l)c();J 1W(){7(s.1W)s.1W(O,1z);7(s.2a)E.16.1N("5Q",[k,s])}J 1y(){7(s.1y)s.1y(k,1z);7(s.2a)E.16.1N("5R",[k,s]);7(s.2a&&!--E.5H)E.16.1N("6d")}K k},5v:J(s,a,b,e){7(s.3a)s.3a(a,b,e);7(s.2a)E.16.1N("6D",[a,s,e])},5H:0,6X:J(r){1S{K!r.1z&&9q.9p=="59:"||(r.1z>=6T&&r.1z<9n)||r.1z==6R||r.1z==9l||E.14.2d&&r.1z==10}1X(e){}K S},6J:J(a,c){1S{L b=a.5q("6U-5A");K a.1z==6R||b==E.4F[c]||E.14.2d&&a.1z==10}1X(e){}K S},6W:J(r,b){L c=r.5q("9k-U");L d=b=="3M"||!b&&c&&c.1f("3M")>=0;L a=d?r.9j:r.4b;7(d&&a.1F.28=="5x")6Q"5x";7(b=="1m")E.5g(a);7(b=="3i")a=6c("("+a+")");K a},3m:J(a){L s=[];7(a.1k==1M||a.5h)E.R(a,J(){s.1g(3r(6.31)+"="+3r(6.1A))});N Q(L j 1p a)7(a[j]&&a[j].1k==1M)E.R(a[j],J(){s.1g(3r(j)+"="+3r(6))});N s.1g(3r(j)+"="+3r(a[j]));K s.6a("&").1r(/%20/g,"+")}});E.1n.1s({1G:J(c,b){K c?6.2e({1R:"1G",27:"1G",1w:"1G"},c,b):6.1E(":1Z").R(J(){6.W.19=6.5s||"";7(E.1j(6,"19")=="2H"){L a=E("<"+6.28+" />").6y("1h");6.W.19=a.1j("19");7(6.W.19=="2H")6.W.19="3D";a.1V()}}).3h()},1I:J(b,a){K b?6.2e({1R:"1I",27:"1I",1w:"1I"},b,a):6.1E(":4d").R(J(){6.5s=6.5s||E.1j(6,"19");6.W.19="2H"}).3h()},6N:E.1n.2g,2g:J(a,b){K E.1q(a)&&E.1q(b)?6.6N(a,b):a?6.2e({1R:"2g",27:"2g",1w:"2g"},a,b):6.R(J(){E(6)[E(6).3H(":1Z")?"1G":"1I"]()})},9f:J(b,a){K 6.2e({1R:"1G"},b,a)},9d:J(b,a){K 6.2e({1R:"1I"},b,a)},9c:J(b,a){K 6.2e({1R:"2g"},b,a)},9a:J(b,a){K 6.2e({1w:"1G"},b,a)},99:J(b,a){K 6.2e({1w:"1I"},b,a)},97:J(c,a,b){K 6.2e({1w:a},c,b)},2e:J(l,k,j,h){L i=E.6P(k,j,h);K 6[i.2P===S?"R":"2P"](J(){7(6.15!=1)K S;L g=E.1s({},i);L f=E(6).3H(":1Z"),4A=6;Q(L p 1p l){7(l[p]=="1I"&&f||l[p]=="1G"&&!f)K E.1q(g.1y)&&g.1y.1i(6);7(p=="1R"||p=="27"){g.19=E.1j(6,"19");g.32=6.W.32}}7(g.32!=V)6.W.32="1Z";g.40=E.1s({},l);E.R(l,J(c,a){L e=1B E.2t(4A,g,c);7(/2g|1G|1I/.17(a))e[a=="2g"?f?"1G":"1I":a](l);N{L b=a.3X().1D(/^([+-]=)?([\\d+-.]+)(.*)$/),1Y=e.2m(P)||0;7(b){L d=2M(b[2]),2A=b[3]||"2S";7(2A!="2S"){4A.W[c]=(d||1)+2A;1Y=((d||1)/e.2m(P))*1Y;4A.W[c]=1Y+2A}7(b[1])d=((b[1]=="-="?-1:1)*d)+1Y;e.45(1Y,d,2A)}N e.45(1Y,a,"")}});K P})},2P:J(a,b){7(E.1q(a)||(a&&a.1k==1M)){b=a;a="2t"}7(!a||(1o a=="25"&&!b))K A(6[0],a);K 6.R(J(){7(b.1k==1M)A(6,a,b);N{A(6,a).1g(b);7(A(6,a).M==1)b.1i(6)}})},94:J(b,c){L a=E.3G;7(b)6.2P([]);6.R(J(){Q(L i=a.M-1;i>=0;i--)7(a[i].Y==6){7(c)a[i](P);a.72(i,1)}});7(!c)6.5p();K 6}});L A=J(b,c,a){7(!b)K 10;c=c||"2t";L q=E.O(b,c+"2P");7(!q||a)q=E.O(b,c+"2P",a?E.2I(a):[]);K q};E.1n.5p=J(a){a=a||"2t";K 6.R(J(){L q=A(6,a);q.4l();7(q.M)q[0].1i(6)})};E.1s({6P:J(b,a,c){L d=b&&b.1k==92?b:{1y:c||!c&&a||E.1q(b)&&b,2u:b,3Z:c&&a||a&&a.1k!=91&&a};d.2u=(d.2u&&d.2u.1k==51?d.2u:{90:8Z,9D:6T}[d.2u])||8X;d.5y=d.1y;d.1y=J(){7(d.2P!==S)E(6).5p();7(E.1q(d.5y))d.5y.1i(6)};K d},3Z:{70:J(p,n,b,a){K b+a*p},5j:J(p,n,b,a){K((-24.8V(p*24.8U)/2)+0.5)*a+b}},3G:[],3W:V,2t:J(b,c,a){6.11=c;6.Y=b;6.1l=a;7(!c.47)c.47={}}});E.2t.2l={4y:J(){7(6.11.30)6.11.30.1i(6.Y,[6.2J,6]);(E.2t.30[6.1l]||E.2t.30.4G)(6);7(6.1l=="1R"||6.1l=="27")6.Y.W.19="3D"},2m:J(a){7(6.Y[6.1l]!=V&&6.Y.W[6.1l]==V)K 6.Y[6.1l];L r=2M(E.1j(6.Y,6.1l,a));K r&&r>-8Q?r:2M(E.2o(6.Y,6.1l))||0},45:J(c,b,d){6.5B=(1B 3v()).3L();6.1Y=c;6.3h=b;6.2A=d||6.2A||"2S";6.2J=6.1Y;6.4B=6.4w=0;6.4y();L e=6;J t(a){K e.30(a)}t.Y=6.Y;E.3G.1g(t);7(E.3W==V){E.3W=53(J(){L a=E.3G;Q(L i=0;i<a.M;i++)7(!a[i]())a.72(i--,1);7(!a.M){6I(E.3W);E.3W=V}},13)}},1G:J(){6.11.47[6.1l]=E.1J(6.Y.W,6.1l);6.11.1G=P;6.45(0,6.2m());7(6.1l=="27"||6.1l=="1R")6.Y.W[6.1l]="8N";E(6.Y).1G()},1I:J(){6.11.47[6.1l]=E.1J(6.Y.W,6.1l);6.11.1I=P;6.45(6.2m(),0)},30:J(a){L t=(1B 3v()).3L();7(a||t>6.11.2u+6.5B){6.2J=6.3h;6.4B=6.4w=1;6.4y();6.11.40[6.1l]=P;L b=P;Q(L i 1p 6.11.40)7(6.11.40[i]!==P)b=S;7(b){7(6.11.19!=V){6.Y.W.32=6.11.32;6.Y.W.19=6.11.19;7(E.1j(6.Y,"19")=="2H")6.Y.W.19="3D"}7(6.11.1I)6.Y.W.19="2H";7(6.11.1I||6.11.1G)Q(L p 1p 6.11.40)E.1J(6.Y.W,p,6.11.47[p])}7(b&&E.1q(6.11.1y))6.11.1y.1i(6.Y);K S}N{L n=t-6.5B;6.4w=n/6.11.2u;6.4B=E.3Z[6.11.3Z||(E.3Z.5j?"5j":"70")](6.4w,n,0,1,6.11.2u);6.2J=6.1Y+((6.3h-6.1Y)*6.4B);6.4y()}K P}};E.2t.30={2v:J(a){a.Y.2v=a.2J},2x:J(a){a.Y.2x=a.2J},1w:J(a){E.1J(a.Y.W,"1w",a.2J)},4G:J(a){a.Y.W[a.1l]=a.2J+a.2A}};E.1n.5L=J(){L b=0,3b=0,Y=6[0],5l;7(Y)8M(E.14){L d=Y.1a,41=Y,1K=Y.1K,1L=Y.2i,5D=2d&&4s(5K)<8J&&!/a1/i.17(v),2T=E.1j(Y,"43")=="2T";7(Y.6G){L c=Y.6G();1b(c.26+24.2f(1L.1F.2v,1L.1h.2v),c.3b+24.2f(1L.1F.2x,1L.1h.2x));1b(-1L.1F.62,-1L.1F.60)}N{1b(Y.5G,Y.5F);2b(1K){1b(1K.5G,1K.5F);7(48&&!/^t(8H|d|h)$/i.17(1K.28)||2d&&!5D)2N(1K);7(!2T&&E.1j(1K,"43")=="2T")2T=P;41=/^1h$/i.17(1K.28)?41:1K;1K=1K.1K}2b(d&&d.28&&!/^1h|3q$/i.17(d.28)){7(!/^8G|1O.*$/i.17(E.1j(d,"19")))1b(-d.2v,-d.2x);7(48&&E.1j(d,"32")!="4d")2N(d);d=d.1a}7((5D&&(2T||E.1j(41,"43")=="4W"))||(48&&E.1j(41,"43")!="4W"))1b(-1L.1h.5G,-1L.1h.5F);7(2T)1b(24.2f(1L.1F.2v,1L.1h.2v),24.2f(1L.1F.2x,1L.1h.2x))}5l={3b:3b,26:b}}J 2N(a){1b(E.2o(a,"a8",P),E.2o(a,"a9",P))}J 1b(l,t){b+=4s(l)||0;3b+=4s(t)||0}K 5l}})();',62,631,'||||||this|if||||||||||||||||||||||||||||||||||||||function|return|var|length|else|data|true|for|each|false|document|type|null|style||elem||undefined|options|nodeName||browser|nodeType|event|test|arguments|display|parentNode|add|url|msie|window|indexOf|push|body|apply|css|constructor|prop|script|fn|typeof|in|isFunction|replace|extend|className|text|handle|opacity|div|complete|status|value|new|firstChild|match|filter|documentElement|show|dataType|hide|attr|offsetParent|doc|Array|trigger|table|call|break|height|try|cache|tbody|remove|success|catch|start|hidden||ready|get|split|Math|string|left|width|tagName|ret|global|while|map|safari|animate|max|toggle|toLowerCase|ownerDocument|bind|select|prototype|cur||curCSS|selected|handler|done|find|fx|duration|scrollLeft|id|scrollTop|special|opera|unit|nextSibling|stack|guid|toUpperCase|pushStack|button|none|makeArray|now|slice|target|parseFloat|border|exec|queue|isReady|events|px|fixed|timeout|delete|jsre|one|disabled|nth|step|name|overflow|inArray|removeChild|removeData|preventDefault|merge|appendChild|readyState|error|top|which|innerHTML|multiFilter|rl|trim|end|json|first|checked|async|param|elems|insertBefore|childNodes|html|encodeURIComponent|createElement|append|form|Date|unbind|color|grep|setTimeout|readyList|mouseleave|mouseenter|block|isXMLDoc|addEventListener|timers|is|password|last|runtimeStyle|getTime|xml|jQuery|domManip|ajax|src|callee|getElementsByTagName|selectedIndex|load|object|timerId|toString|has|easing|curAnim|offsetChild|args|position|stopPropagation|custom|props|orig|mozilla|accepts|clean|responseText|defaultView|visible|String|charCode|float|teardown|on|setup|nodeIndex|shift|javascript|currentStyle|application|child|RegExp|_|parseInt|previousSibling|dir|tr|state|empty|update|getAttribute|self|pos|setRequestHeader|input|jsonp|lastModified|_default|unload|ajaxSettings|unshift|getComputedStyle|styleSheets|getPropertyValue|lastToggle|mouseout|mouseover|GET|andSelf|relatedTarget|init|visibility|click|absolute|index|container|fix|outline|Number|removeAttribute|setInterval|prevObject|classFilter|not|unique|submit|file|after|windowData|deep|scroll|client|triggered|globalEval|jquery|sibling|swing|clone|results|wrapAll|triggerHandler|lastChild|dequeue|getResponseHeader|createTextNode|oldblock|checkbox|radio|handleError|fromElement|parsererror|old|00|Modified|startTime|ifModified|safari2|getWH|offsetTop|offsetLeft|active|values|getElementById|version|offset|bindReady|processData|val|contentType|ajaxSuccess|ajaxComplete|ajaxStart|serializeArray|notmodified|loaded|DOMContentLoaded|Width|ctrlKey|keyCode|clientTop|POST|clientLeft|clientX|pageX|exclusive|detachEvent|removeEventListener|swap|cloneNode|join|attachEvent|eval|ajaxStop|substr|head|parse|textarea|reset|image|zoom|odd|ajaxSend|even|before|username|prepend|expr|quickClass|uuid|quickID|quickChild|continue|textContent|appendTo|contents|evalScript|parent|defaultValue|ajaxError|setArray|compatMode|getBoundingClientRect|styleFloat|clearInterval|httpNotModified|nodeValue|100|alpha|_toggle|href|speed|throw|304|replaceWith|200|Last|colgroup|httpData|httpSuccess|beforeSend|eq|linear|concat|splice|fieldset|multiple|cssFloat|XMLHttpRequest|webkit|ActiveXObject|CSS1Compat|link|metaKey|scriptCharset|callback|col|pixelLeft|urlencoded|www|post|hasClass|getJSON|getScript|elements|serialize|black|keyup|keypress|solid|change|mousemove|mouseup|dblclick|resize|focus|blur|stylesheet|rel|doScroll|round|hover|padding|offsetHeight|mousedown|offsetWidth|Bottom|Top|keydown|clientY|Right|pageY|Left|toElement|srcElement|cancelBubble|returnValue|charAt|0n|substring|animated|header|noConflict|line|enabled|innerText|contains|only|weight|ajaxSetup|font|size|gt|lt|uFFFF|u0128|417|Boolean|inner|Height|toggleClass|removeClass|addClass|removeAttr|replaceAll|insertAfter|prependTo|contentWindow|contentDocument|wrap|iframe|children|siblings|prevAll|nextAll|prev|wrapInner|next|parents|maxLength|maxlength|readOnly|readonly|reverse|class|htmlFor|inline|able|boxModel|522|setData|compatible|with|1px|ie|getData|10000|ra|it|rv|PI|cos|userAgent|400|navigator|600|slow|Function|Object|array|stop|ig|NaN|fadeTo|option|fadeOut|fadeIn|setAttribute|slideToggle|slideUp|changed|slideDown|be|can|property|responseXML|content|1223|getAttributeNode|300|method|protocol|location|action|send|abort|cssText|th|td|cap|specified|Accept|With|colg|Requested|fast|tfoot|GMT|thead|1970|Jan|attributes|01|Thu|leg|Since|If|opt|Type|Content|embed|open|area|XMLHTTP|hr|Microsoft|onreadystatechange|onload|meta|adobeair|charset|http|1_|img|br|plain|borderLeftWidth|borderTopWidth|abbr'.split('|'),0,{}))
wp-shopping-cart/js/jquery.tabs.pack.js ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ;(function($){$.ui={plugin:{add:function(module,option,set){var proto=$.ui[module].prototype;for(var i in set){proto.plugins[i]=proto.plugins[i]||[];proto.plugins[i].push([option,set[i]]);}},call:function(instance,name,args){var set=instance.plugins[name];if(!set){return;}
2
+ for(var i=0;i<set.length;i++){if(instance.options[set[i][0]]){set[i][1].apply(instance.element,args);}}}},cssCache:{},css:function(name){if($.ui.cssCache[name]){return $.ui.cssCache[name];}
3
+ var tmp=$('<div class="ui-resizable-gen">').addClass(name).css({position:'absolute',top:'-5000px',left:'-5000px',display:'block'}).appendTo('body');$.ui.cssCache[name]=!!((!(/auto|default/).test(tmp.css('cursor'))||(/^[1-9]/).test(tmp.css('height'))||(/^[1-9]/).test(tmp.css('width'))||!(/none/).test(tmp.css('backgroundImage'))||!(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor'))));try{$('body').get(0).removeChild(tmp.get(0));}catch(e){}
4
+ return $.ui.cssCache[name];},disableSelection:function(e){e.unselectable="on";e.onselectstart=function(){return false;};if(e.style){e.style.MozUserSelect="none";}},enableSelection:function(e){e.unselectable="off";e.onselectstart=function(){return true;};if(e.style){e.style.MozUserSelect="";}},hasScroll:function(e,a){var scroll=/top/.test(a||"top")?'scrollTop':'scrollLeft',has=false;if(e[scroll]>0)return true;e[scroll]=1;has=e[scroll]>0?true:false;e[scroll]=0;return has;}};var _remove=$.fn.remove;$.fn.remove=function(){$("*",this).add(this).trigger("remove");return _remove.apply(this,arguments);};function getter(namespace,plugin,method){var methods=$[namespace][plugin].getter||[];methods=(typeof methods=="string"?methods.split(/,?\s+/):methods);return($.inArray(method,methods)!=-1);}
5
+ $.widget=function(name,prototype){var namespace=name.split(".")[0];name=name.split(".")[1];$.fn[name]=function(options){var isMethodCall=(typeof options=='string'),args=Array.prototype.slice.call(arguments,1);if(isMethodCall&&getter(namespace,name,options)){var instance=$.data(this[0],name);return(instance?instance[options].apply(instance,args):undefined);}
6
+ return this.each(function(){var instance=$.data(this,name);if(isMethodCall&&instance&&$.isFunction(instance[options])){instance[options].apply(instance,args);}else if(!isMethodCall){$.data(this,name,new $[namespace][name](this,options));}});};$[namespace][name]=function(element,options){var self=this;this.widgetName=name;this.widgetBaseClass=namespace+'-'+name;this.options=$.extend({disabled:false},$[namespace][name].defaults,options);this.element=$(element).bind('setData.'+name,function(e,key,value){return self.setData(key,value);}).bind('getData.'+name,function(e,key){return self.getData(key);}).bind('remove',function(){return self.destroy();});this.init();};$[namespace][name].prototype=$.extend({},$.widget.prototype,prototype);};$.widget.prototype={init:function(){},destroy:function(){this.element.removeData(this.widgetName);},getData:function(key){return this.options[key];},setData:function(key,value){this.options[key]=value;if(key=='disabled'){this.element[value?'addClass':'removeClass'](this.widgetBaseClass+'-disabled');}},enable:function(){this.setData('disabled',false);},disable:function(){this.setData('disabled',true);}};$.ui.mouse={mouseInit:function(){var self=this;this.element.bind('mousedown.'+this.widgetName,function(e){return self.mouseDown(e);});if($.browser.msie){this._mouseUnselectable=this.element.attr('unselectable');this.element.attr('unselectable','on');}
7
+ this.started=false;},mouseDestroy:function(){this.element.unbind('.'+this.widgetName);($.browser.msie&&this.element.attr('unselectable',this._mouseUnselectable));},mouseDown:function(e){(this._mouseStarted&&this.mouseUp(e));this._mouseDownEvent=e;var self=this,btnIsLeft=(e.which==1),elIsCancel=(typeof this.options.cancel=="string"?$(e.target).is(this.options.cancel):false);if(!btnIsLeft||elIsCancel||!this.mouseCapture(e)){return true;}
8
+ this._mouseDelayMet=!this.options.delay;if(!this._mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){self._mouseDelayMet=true;},this.options.delay);}
9
+ if(this.mouseDistanceMet(e)&&this.mouseDelayMet(e)){this._mouseStarted=(this.mouseStart(e)!==false);if(!this._mouseStarted){e.preventDefault();return true;}}
10
+ this._mouseMoveDelegate=function(e){return self.mouseMove(e);};this._mouseUpDelegate=function(e){return self.mouseUp(e);};$(document).bind('mousemove.'+this.widgetName,this._mouseMoveDelegate).bind('mouseup.'+this.widgetName,this._mouseUpDelegate);return false;},mouseMove:function(e){if($.browser.msie&&!e.button){return this.mouseUp(e);}
11
+ if(this._mouseStarted){this.mouseDrag(e);return false;}
12
+ if(this.mouseDistanceMet(e)&&this.mouseDelayMet(e)){this._mouseStarted=(this.mouseStart(this._mouseDownEvent,e)!==false);(this._mouseStarted?this.mouseDrag(e):this.mouseUp(e));}
13
+ return!this._mouseStarted;},mouseUp:function(e){$(document).unbind('mousemove.'+this.widgetName,this._mouseMoveDelegate).unbind('mouseup.'+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this.mouseStop(e);}
14
+ return false;},mouseDistanceMet:function(e){return(Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance);},mouseDelayMet:function(e){return this._mouseDelayMet;},mouseStart:function(e){},mouseDrag:function(e){},mouseStop:function(e){},mouseCapture:function(e){return true;}};$.ui.mouse.defaults={cancel:null,distance:1,delay:0};})(jQuery);(function($){$.widget("ui.tabs",{init:function(){this.options.event+='.tabs';this.tabify(true);},setData:function(key,value){if((/^selected/).test(key))
15
+ this.select(value);else{this.options[key]=value;this.tabify();}},length:function(){return this.$tabs.length;},tabId:function(a){return a.title&&a.title.replace(/\s/g,'_').replace(/[^A-Za-z0-9\-_:\.]/g,'')||this.options.idPrefix+$.data(a);},ui:function(tab,panel){return{options:this.options,tab:tab,panel:panel};},tabify:function(init){this.$lis=$('li:has(a[href])',this.element);this.$tabs=this.$lis.map(function(){return $('a',this)[0];});this.$panels=$([]);var self=this,o=this.options;this.$tabs.each(function(i,a){if(a.hash&&a.hash.replace('#',''))
16
+ self.$panels=self.$panels.add(a.hash);else if($(a).attr('href')!='#'){$.data(a,'href.tabs',a.href);$.data(a,'load.tabs',a.href);var id=self.tabId(a);a.href='#'+id;var $panel=$('#'+id);if(!$panel.length){$panel=$(o.panelTemplate).attr('id',id).addClass(o.panelClass).insertAfter(self.$panels[i-1]||self.element);$panel.data('destroy.tabs',true);}
17
+ self.$panels=self.$panels.add($panel);}
18
+ else
19
+ o.disabled.push(i+1);});if(init){this.element.addClass(o.navClass);this.$panels.each(function(){var $this=$(this);$this.addClass(o.panelClass);});if(o.selected===undefined){if(location.hash){this.$tabs.each(function(i,a){if(a.hash==location.hash){o.selected=i;if($.browser.msie||$.browser.opera){var $toShow=$(location.hash),toShowId=$toShow.attr('id');$toShow.attr('id','');setTimeout(function(){$toShow.attr('id',toShowId);},500);}
20
+ scrollTo(0,0);return false;}});}
21
+ else if(o.cookie){var index=parseInt($.cookie('ui-tabs'+$.data(self.element)),10);if(index&&self.$tabs[index])
22
+ o.selected=index;}
23
+ else if(self.$lis.filter('.'+o.selectedClass).length)
24
+ o.selected=self.$lis.index(self.$lis.filter('.'+o.selectedClass)[0]);}
25
+ o.selected=o.selected===null||o.selected!==undefined?o.selected:0;o.disabled=$.unique(o.disabled.concat($.map(this.$lis.filter('.'+o.disabledClass),function(n,i){return self.$lis.index(n);}))).sort();if($.inArray(o.selected,o.disabled)!=-1)
26
+ o.disabled.splice($.inArray(o.selected,o.disabled),1);this.$panels.addClass(o.hideClass);this.$lis.removeClass(o.selectedClass);if(o.selected!==null){this.$panels.eq(o.selected).show().removeClass(o.hideClass);this.$lis.eq(o.selected).addClass(o.selectedClass);var onShow=function(){$(self.element).triggerHandler('tabsshow',[self.ui(self.$tabs[o.selected],self.$panels[o.selected])],o.show);};if($.data(this.$tabs[o.selected],'load.tabs'))
27
+ this.load(o.selected,onShow);else
28
+ onShow();}
29
+ $(window).bind('unload',function(){self.$tabs.unbind('.tabs');self.$lis=self.$tabs=self.$panels=null;});}
30
+ for(var i=0,li;li=this.$lis[i];i++)
31
+ $(li)[$.inArray(i,o.disabled)!=-1&&!$(li).hasClass(o.selectedClass)?'addClass':'removeClass'](o.disabledClass);if(o.cache===false)
32
+ this.$tabs.removeData('cache.tabs');var hideFx,showFx,baseFx={'min-width':0,duration:1},baseDuration='normal';if(o.fx&&o.fx.constructor==Array)
33
+ hideFx=o.fx[0]||baseFx,showFx=o.fx[1]||baseFx;else
34
+ hideFx=showFx=o.fx||baseFx;var resetCSS={display:'',overflow:'',height:''};if(!$.browser.msie)
35
+ resetCSS.opacity='';function hideTab(clicked,$hide,$show){$hide.animate(hideFx,hideFx.duration||baseDuration,function(){$hide.addClass(o.hideClass).css(resetCSS);if($.browser.msie&&hideFx.opacity)
36
+ $hide[0].style.filter='';if($show)
37
+ showTab(clicked,$show,$hide);});}
38
+ function showTab(clicked,$show,$hide){if(showFx===baseFx)
39
+ $show.css('display','block');$show.animate(showFx,showFx.duration||baseDuration,function(){$show.removeClass(o.hideClass).css(resetCSS);if($.browser.msie&&showFx.opacity)
40
+ $show[0].style.filter='';$(self.element).triggerHandler('tabsshow',[self.ui(clicked,$show[0])],o.show);});}
41
+ function switchTab(clicked,$li,$hide,$show){$li.addClass(o.selectedClass).siblings().removeClass(o.selectedClass);hideTab(clicked,$hide,$show);}
42
+ this.$tabs.unbind('.tabs').bind(o.event,function(){var $li=$(this).parents('li:eq(0)'),$hide=self.$panels.filter(':visible'),$show=$(this.hash);if(($li.hasClass(o.selectedClass)&&!o.unselect)||$li.hasClass(o.disabledClass)||$(this).hasClass(o.loadingClass)||$(self.element).triggerHandler('tabsselect',[self.ui(this,$show[0])],o.select)===false){this.blur();return false;}
43
+ self.options.selected=self.$tabs.index(this);if(o.unselect){if($li.hasClass(o.selectedClass)){self.options.selected=null;$li.removeClass(o.selectedClass);self.$panels.stop();hideTab(this,$hide);this.blur();return false;}else if(!$hide.length){self.$panels.stop();var a=this;self.load(self.$tabs.index(this),function(){$li.addClass(o.selectedClass).addClass(o.unselectClass);showTab(a,$show);});this.blur();return false;}}
44
+ if(o.cookie)
45
+ $.cookie('ui-tabs'+$.data(self.element),self.options.selected,o.cookie);self.$panels.stop();if($show.length){var a=this;self.load(self.$tabs.index(this),$hide.length?function(){switchTab(a,$li,$hide,$show);}:function(){$li.addClass(o.selectedClass);showTab(a,$show);});}else
46
+ throw'jQuery UI Tabs: Mismatching fragment identifier.';if($.browser.msie)
47
+ this.blur();return false;});if(!(/^click/).test(o.event))
48
+ this.$tabs.bind('click.tabs',function(){return false;});},add:function(url,label,index){if(index==undefined)
49
+ index=this.$tabs.length;var o=this.options;var $li=$(o.tabTemplate.replace(/#\{href\}/g,url).replace(/#\{label\}/g,label));$li.data('destroy.tabs',true);var id=url.indexOf('#')==0?url.replace('#',''):this.tabId($('a:first-child',$li)[0]);var $panel=$('#'+id);if(!$panel.length){$panel=$(o.panelTemplate).attr('id',id).addClass(o.hideClass).data('destroy.tabs',true);}
50
+ $panel.addClass(o.panelClass);if(index>=this.$lis.length){$li.appendTo(this.element);$panel.appendTo(this.element[0].parentNode);}else{$li.insertBefore(this.$lis[index]);$panel.insertBefore(this.$panels[index]);}
51
+ o.disabled=$.map(o.disabled,function(n,i){return n>=index?++n:n});this.tabify();if(this.$tabs.length==1){$li.addClass(o.selectedClass);$panel.removeClass(o.hideClass);var href=$.data(this.$tabs[0],'load.tabs');if(href)
52
+ this.load(index,href);}
53
+ this.element.triggerHandler('tabsadd',[this.ui(this.$tabs[index],this.$panels[index])],o.add);},remove:function(index){var o=this.options,$li=this.$lis.eq(index).remove(),$panel=this.$panels.eq(index).remove();if($li.hasClass(o.selectedClass)&&this.$tabs.length>1)
54
+ this.select(index+(index+1<this.$tabs.length?1:-1));o.disabled=$.map($.grep(o.disabled,function(n,i){return n!=index;}),function(n,i){return n>=index?--n:n});this.tabify();this.element.triggerHandler('tabsremove',[this.ui($li.find('a')[0],$panel[0])],o.remove);},enable:function(index){var o=this.options;if($.inArray(index,o.disabled)==-1)
55
+ return;var $li=this.$lis.eq(index).removeClass(o.disabledClass);if($.browser.safari){$li.css('display','inline-block');setTimeout(function(){$li.css('display','block');},0);}
56
+ o.disabled=$.grep(o.disabled,function(n,i){return n!=index;});this.element.triggerHandler('tabsenable',[this.ui(this.$tabs[index],this.$panels[index])],o.enable);},disable:function(index){var self=this,o=this.options;if(index!=o.selected){this.$lis.eq(index).addClass(o.disabledClass);o.disabled.push(index);o.disabled.sort();this.element.triggerHandler('tabsdisable',[this.ui(this.$tabs[index],this.$panels[index])],o.disable);}},select:function(index){if(typeof index=='string')
57
+ index=this.$tabs.index(this.$tabs.filter('[href$='+index+']')[0]);this.$tabs.eq(index).trigger(this.options.event);},load:function(index,callback){var self=this,o=this.options,$a=this.$tabs.eq(index),a=$a[0],bypassCache=callback==undefined||callback===false,url=$a.data('load.tabs');callback=callback||function(){};if(!url||!bypassCache&&$.data(a,'cache.tabs')){callback();return;}
58
+ var inner=function(parent){var $parent=$(parent),$inner=$parent.find('*:last');return $inner.length&&$inner||$parent;};var cleanup=function(){self.$tabs.filter('.'+o.loadingClass).removeClass(o.loadingClass).each(function(){if(o.spinner)
59
+ inner(this).parent().html(inner(this).data('label.tabs'));});self.xhr=null;};if(o.spinner){var label=inner(a).html();inner(a).wrapInner('<em></em>').find('em').data('label.tabs',label).html(o.spinner);}
60
+ var ajaxOptions=$.extend({},o.ajaxOptions,{url:url,success:function(r,s){$(a.hash).html(r);cleanup();if(o.cache)
61
+ $.data(a,'cache.tabs',true);$(self.element).triggerHandler('tabsload',[self.ui(self.$tabs[index],self.$panels[index])],o.load);o.ajaxOptions.success&&o.ajaxOptions.success(r,s);callback();}});if(this.xhr){this.xhr.abort();cleanup();}
62
+ $a.addClass(o.loadingClass);setTimeout(function(){self.xhr=$.ajax(ajaxOptions);},0);},url:function(index,url){this.$tabs.eq(index).removeData('cache.tabs').data('load.tabs',url);},destroy:function(){var o=this.options;this.element.unbind('.tabs').removeClass(o.navClass).removeData('tabs');this.$tabs.each(function(){var href=$.data(this,'href.tabs');if(href)
63
+ this.href=href;var $this=$(this).unbind('.tabs');$.each(['href','load','cache'],function(i,prefix){$this.removeData(prefix+'.tabs');});});this.$lis.add(this.$panels).each(function(){if($.data(this,'destroy.tabs'))
64
+ $(this).remove();else
65
+ $(this).removeClass([o.selectedClass,o.unselectClass,o.disabledClass,o.panelClass,o.hideClass].join(' '));});}});$.ui.tabs.defaults={unselect:false,event:'click',disabled:[],cookie:null,spinner:'Loading&#8230;',cache:false,idPrefix:'ui-tabs-',ajaxOptions:{},fx:null,tabTemplate:'<li><a href="#{href}"><span>#{label}</span></a></li>',panelTemplate:'<div></div>',navClass:'ui-tabs-nav',selectedClass:'ui-tabs-selected',unselectClass:'ui-tabs-unselect',disabledClass:'ui-tabs-disabled',panelClass:'ui-tabs-panel',hideClass:'ui-tabs-hide',loadingClass:'ui-tabs-loading'};$.ui.tabs.getter="length";$.extend($.ui.tabs.prototype,{rotation:null,rotate:function(ms,continuing){continuing=continuing||false;var self=this,t=this.options.selected;function start(){self.rotation=setInterval(function(){t=++t<self.$tabs.length?t:0;self.select(t);},ms);}
66
+ function stop(e){if(!e||e.clientX){clearInterval(self.rotation);}}
67
+ if(ms){start();if(!continuing)
68
+ this.$tabs.bind(this.options.event,stop);else
69
+ this.$tabs.bind(this.options.event,function(){stop();t=self.options.selected;start();});}
70
+ else{stop();this.$tabs.unbind(this.options.event,stop);}}});})(jQuery);
wp-shopping-cart/js/jquery.tooltip.js ADDED
@@ -0,0 +1,342 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery Tooltip plugin 1.1
3
+ *
4
+ * http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
5
+ *
6
+ * Copyright (c) 2006 J�rn Zaefferer, Stefan Petre
7
+ *
8
+ * Dual licensed under the MIT and GPL licenses:
9
+ * http://www.opensource.org/licenses/mit-license.php
10
+ * http://www.gnu.org/licenses/gpl.html
11
+ *
12
+ * Revision: $Id: jquery.tooltip.js 2237 2007-07-04 19:11:15Z joern.zaefferer $
13
+ *
14
+ */
15
+
16
+ /**
17
+ * Display a customized tooltip instead of the default one
18
+ * for every selected element. The tooltip behaviour mimics
19
+ * the default one, but lets you style the tooltip and
20
+ * specify the delay before displaying it. In addition, it displays the
21
+ * href value, if it is available.
22
+ *
23
+ * Requires dimensions plugin.
24
+ *
25
+ * When used on a page with select elements, include the bgiframe plugin. It is used if present.
26
+ *
27
+ * To style the tooltip, use these selectors in your stylesheet:
28
+ *
29
+ * #tooltip - The tooltip container
30
+ *
31
+ * #tooltip h3 - The tooltip title
32
+ *
33
+ * #tooltip div.body - The tooltip body, shown when using showBody
34
+ *
35
+ * #tooltip div.url - The tooltip url, shown when using showURL
36
+ *
37
+ *
38
+ * @example $('a, input, img').Tooltip();
39
+ * @desc Shows tooltips for anchors, inputs and images, if they have a title
40
+ *
41
+ * @example $('label').Tooltip({
42
+ * delay: 0,
43
+ * track: true,
44
+ * event: "click"
45
+ * });
46
+ * @desc Shows tooltips for labels with no delay, tracking mousemovement, displaying the tooltip when the label is clicked.
47
+ *
48
+ * @example // modify global settings
49
+ * $.extend($.fn.Tooltip.defaults, {
50
+ * track: true,
51
+ * delay: 0,
52
+ * showURL: false,
53
+ * showBody: " - ",
54
+ * fixPNG: true
55
+ * });
56
+ * // setup fancy tooltips
57
+ * $('a.pretty').Tooltip({
58
+ * extraClass: "fancy"
59
+ * });
60
+ $('img.pretty').Tooltip({
61
+ * extraClass: "fancy-img",
62
+ * });
63
+ * @desc This example starts with modifying the global settings, applying them to all following Tooltips; Afterwards, Tooltips for anchors with class pretty are created with an extra class for the Tooltip: "fancy" for anchors, "fancy-img" for images
64
+ *
65
+ * @param Object settings (optional) Customize your Tooltips
66
+ * @option Number delay The number of milliseconds before a tooltip is display. Default: 250
67
+ * @option Boolean track If true, let the tooltip track the mousemovement. Default: false
68
+ * @option Boolean showURL If true, shows the href or src attribute within p.url. Defaul: true
69
+ * @option String showBody If specified, uses the String to split the title, displaying the first part in the h3 tag, all following in the p.body tag, separated with <br/>s. Default: null
70
+ * @option String extraClass If specified, adds the class to the tooltip helper. Default: null
71
+ * @option Boolean fixPNG If true, fixes transparent PNGs in IE. Default: false
72
+ * @option Function bodyHandler If specified its called to format the tooltip-body, hiding the title-part. Default: none
73
+ * @option Number top The top-offset for the tooltip position. Default: 15
74
+ * @option Number left The left-offset for the tooltip position. Default: 15
75
+ *
76
+ * @name Tooltip
77
+ * @type jQuery
78
+ * @cat Plugins/Tooltip
79
+ * @author J�rn Zaefferer (http://bassistance.de)
80
+ */
81
+
82
+ /**
83
+ * A global flag to disable all tooltips.
84
+ *
85
+ * @example $("button.openModal").click(function() {
86
+ * $.Tooltip.blocked = true;
87
+ * // do some other stuff, eg. showing a modal dialog
88
+ * $.Tooltip.blocked = false;
89
+ * });
90
+ *
91
+ * @property
92
+ * @name $.Tooltip.blocked
93
+ * @type Boolean
94
+ * @cat Plugins/Tooltip
95
+ */
96
+
97
+ /**
98
+ * Global defaults for tooltips. Apply to all calls to the Tooltip plugin after modifying the defaults.
99
+ *
100
+ * @example $.extend($.Tooltip.defaults, {
101
+ * track: true,
102
+ * delay: 0
103
+ * });
104
+ *
105
+ * @property
106
+ * @name $.Tooltip.defaults
107
+ * @type Map
108
+ * @cat Plugins/Tooltip
109
+ */
110
+ (function($) {
111
+
112
+ // the tooltip element
113
+ var helper = {},
114
+ // the current tooltipped element
115
+ current,
116
+ // the title of the current element, used for restoring
117
+ title,
118
+ // timeout id for delayed tooltips
119
+ tID,
120
+ // IE 5.5 or 6
121
+ IE = $.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent),
122
+ // flag for mouse tracking
123
+ track = false;
124
+
125
+ $.Tooltip = {
126
+ blocked: false,
127
+ defaults: {
128
+ delay: 200,
129
+ showURL: true,
130
+ extraClass: "",
131
+ top: 15,
132
+ left: 15
133
+ },
134
+ block: function() {
135
+ $.Tooltip.blocked = !$.Tooltip.blocked;
136
+ }
137
+ };
138
+
139
+ $.fn.extend({
140
+ Tooltip: function(settings) {
141
+ settings = $.extend({}, $.Tooltip.defaults, settings);
142
+ createHelper();
143
+ return this.each(function() {
144
+ this.tSettings = settings;
145
+ // copy tooltip into its own expando and remove the title
146
+ this.tooltipText = this.title;
147
+ $(this).removeAttr("title");
148
+ // also remove alt attribute to prevent default tooltip in IE
149
+ this.alt = "";
150
+ })
151
+ .hover(save, hide)
152
+ .click(hide);
153
+ },
154
+ fixPNG: IE ? function() {
155
+ return this.each(function () {
156
+ var image = $(this).css('backgroundImage');
157
+ if (image.match(/^url\(["']?(.*\.png)["']?\)$/i)) {
158
+ image = RegExp.$1;
159
+ $(this).css({
160
+ 'backgroundImage': 'none',
161
+ 'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')"
162
+ }).each(function () {
163
+ var position = $(this).css('position');
164
+ if (position != 'absolute' && position != 'relative')
165
+ $(this).css('position', 'relative');
166
+ });
167
+ }
168
+ });
169
+ } : function() { return this; },
170
+ unfixPNG: IE ? function() {
171
+ return this.each(function () {
172
+ $(this).css({'filter': '', backgroundImage: ''});
173
+ });
174
+ } : function() { return this; },
175
+ hideWhenEmpty: function() {
176
+ return this.each(function() {
177
+ $(this)[ $(this).html() ? "show" : "hide" ]();
178
+ });
179
+ },
180
+ url: function() {
181
+ return this.attr('href') || this.attr('src');
182
+ }
183
+ });
184
+
185
+ function createHelper() {
186
+ // there can be only one tooltip helper
187
+ if( helper.parent )
188
+ return;
189
+ // create the helper, h3 for title, div for url
190
+ helper.parent = $('<div id="tooltip"><h3></h3><div class="body"></div><div class="url"></div></div>')
191
+ // hide it at first
192
+ .hide()
193
+ // add to document
194
+ .appendTo('body');
195
+
196
+ // apply bgiframe if available
197
+ if ( $.fn.bgiframe )
198
+ helper.parent.bgiframe();
199
+
200
+ // save references to title and url elements
201
+ helper.title = $('h3', helper.parent);
202
+ helper.body = $('div.body', helper.parent);
203
+ helper.url = $('div.url', helper.parent);
204
+ }
205
+
206
+ // main event handler to start showing tooltips
207
+ function handle(event) {
208
+ // show helper, either with timeout or on instant
209
+ if( this.tSettings.delay )
210
+ tID = setTimeout(show, this.tSettings.delay);
211
+ else
212
+ show();
213
+
214
+ // if selected, update the helper position when the mouse moves
215
+ track = !!this.tSettings.track;
216
+ $('body').bind('mousemove', update);
217
+
218
+ // update at least once
219
+ update(event);
220
+ }
221
+
222
+ // save elements title before the tooltip is displayed
223
+ function save() {
224
+ // if this is the current source, or it has no title (occurs with click event), stop
225
+ if ( $.Tooltip.blocked || this == current || !this.tooltipText )
226
+ return;
227
+
228
+ // save current
229
+ current = this;
230
+ title = this.tooltipText;
231
+
232
+ if ( this.tSettings.bodyHandler ) {
233
+ helper.title.hide();
234
+ helper.body.html( this.tSettings.bodyHandler.call(this) ).show();
235
+ } else if ( this.tSettings.showBody ) {
236
+ var parts = title.split(this.tSettings.showBody);
237
+ helper.title.html(parts.shift()).show();
238
+ helper.body.empty();
239
+ for(var i = 0, part; part = parts[i]; i++) {
240
+ if(i > 0)
241
+ helper.body.append("<br/>");
242
+ helper.body.append(part);
243
+ }
244
+ helper.body.hideWhenEmpty();
245
+ } else {
246
+ helper.title.html(title).show();
247
+ helper.body.hide();
248
+ }
249
+
250
+ // if element has href or src, add and show it, otherwise hide it
251
+ if( this.tSettings.showURL && $(this).url() )
252
+ helper.url.html( $(this).url().replace('http://', '') ).show();
253
+ else
254
+ helper.url.hide();
255
+
256
+ // add an optional class for this tip
257
+ helper.parent.addClass(this.tSettings.extraClass);
258
+
259
+ // fix PNG background for IE
260
+ if (this.tSettings.fixPNG )
261
+ helper.parent.fixPNG();
262
+
263
+ handle.apply(this, arguments);
264
+ }
265
+
266
+ // delete timeout and show helper
267
+ function show() {
268
+ tID = null;
269
+ helper.parent.show();
270
+ update();
271
+ }
272
+
273
+ /**
274
+ * callback for mousemove
275
+ * updates the helper position
276
+ * removes itself when no current element
277
+ */
278
+ function update(event) {
279
+ if($.Tooltip.blocked)
280
+ return;
281
+
282
+ // stop updating when tracking is disabled and the tooltip is visible
283
+ if ( !track && helper.parent.is(":visible")) {
284
+ $('body').unbind('mousemove', update)
285
+ }
286
+
287
+ // if no current element is available, remove this listener
288
+ if( current == null ) {
289
+ $('body').unbind('mousemove', update);
290
+ return;
291
+ }
292
+ var left = helper.parent[0].offsetLeft;
293
+ var top = helper.parent[0].offsetTop;
294
+ if(event) {
295
+ // position the helper 15 pixel to bottom right, starting from mouse position
296
+ left = event.pageX + current.tSettings.left;
297
+ top = event.pageY + current.tSettings.top;
298
+ helper.parent.css({
299
+ left: left + 'px',
300
+ top: top + 'px'
301
+ });
302
+ }
303
+ var v = viewport(),
304
+ h = helper.parent[0];
305
+ // check horizontal position
306
+ if(v.x + v.cx < h.offsetLeft + h.offsetWidth) {
307
+ left -= h.offsetWidth + 20 + current.tSettings.left;
308
+ helper.parent.css({left: left + 'px'});
309
+ }
310
+ // check vertical position
311
+ if(v.y + v.cy < h.offsetTop + h.offsetHeight) {
312
+ top -= h.offsetHeight + 20 + current.tSettings.top;
313
+ helper.parent.css({top: top + 'px'});
314
+ }
315
+ }
316
+
317
+ function viewport() {
318
+ return {
319
+ x: $(window).scrollLeft(),
320
+ y: $(window).scrollTop(),
321
+ cx: $(window).width(),
322
+ cy: $(window).height()
323
+ };
324
+ }
325
+
326
+ // hide helper and restore added classes and the title
327
+ function hide(event) {
328
+ if($.Tooltip.blocked)
329
+ return;
330
+ // clear timeout if possible
331
+ if(tID)
332
+ clearTimeout(tID);
333
+ // no more current element
334
+ current = null;
335
+
336
+ helper.parent.hide().removeClass( this.tSettings.extraClass );
337
+
338
+ if( this.tSettings.fixPNG )
339
+ helper.parent.unfixPNG();
340
+ }
341
+
342
+ })(jQuery);
wp-shopping-cart/js/jquery.ui.tabs.css ADDED
@@ -0,0 +1,152 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Caution! Ensure accessibility in print and other media types... */
2
+ @media projection, screen { /* Use class for showing/hiding tab content, so that visibility can be better controlled in different media types... */
3
+ .ui-tabs-hide {
4
+ display: none;
5
+ }
6
+ }
7
+
8
+ /* Hide useless elements in print layouts... */
9
+ @media print {
10
+ .ui-tabs-nav {
11
+ display: none;
12
+ }
13
+ }
14
+
15
+ /* Skin */
16
+ #slider {
17
+ border-color:#EBEBEB rgb(204, 204, 204) rgb(204, 204, 204) rgb(235, 235, 235);
18
+ border-style:solid;
19
+ border-width:1px;
20
+ margin:0pt 15% 0pt 15px;
21
+ padding:2px;
22
+ }
23
+ #tabs{
24
+ display: block;
25
+ background:#EAF3FA none repeat scroll 0%;
26
+ font-size:14px;
27
+ margin:0pt 0pt 10px;
28
+ overflow:hidden;
29
+ }
30
+
31
+ .ui-tabs-nav {
32
+ list-style: none;
33
+ margin: 0;
34
+ padding: 0 0 0 4px;
35
+ }
36
+ .ui-tabs-nav:after { /* clearing without presentational markup, IE gets extra treatment */
37
+ display: block;
38
+ clear: both;
39
+ content: " ";
40
+ }
41
+ .ui-tabs-nav li {
42
+ float: left;
43
+ padding:8px 5px;
44
+ min-width: 84px; /* be nice to Opera */
45
+ margin: 2px 2px 0px 1px !important;
46
+ text-decoration: none;
47
+ list-style: none;
48
+ }
49
+ .ui-tabs-nav a, .ui-tabs-nav a span {
50
+ display: block;
51
+ padding: 0 10px;
52
+ }
53
+
54
+ .ui-tabs-nav a {
55
+ margin: 1px 0 0; /* position: relative makes opacity fail for disabled tab in IE */
56
+ padding-left: 0;
57
+ color: #27537a;
58
+ line-height: 1.2;
59
+ text-align: center;
60
+ text-decoration: none;
61
+ white-space: nowrap; /* required in IE 6 */
62
+ outline: 0; /* prevent dotted border in Firefox */
63
+ }
64
+ .ui-tabs-nav .ui-tabs-selected{
65
+ background:#CEE1EF none repeat scroll 0% 50%;
66
+ font-weight:bold;
67
+ -moz-border-radius-topright: 4px;
68
+ -khtml-border-top-right-radius: 4px;
69
+ -webkit-border-top-right-radius: 4px;
70
+ border-top-right-radius: 4px;
71
+ -moz-border-radius-topleft: 4px;
72
+ -khtml-border-top-left-radius: 4px;
73
+ -webkit-border-top-left-radius: 4px;
74
+ border-top-left-radius: 4px;
75
+ }
76
+ .ui-tabs-nav .ui-tabs-selected a {
77
+ position: relative;
78
+ top: 1px;
79
+ z-index: 2;
80
+ margin-top: 0;
81
+ color:#333333;
82
+ }
83
+ .ui-tabs-nav li a:hover {
84
+ color:#D54E21;
85
+ }
86
+ .ui-tabs-nav a span {
87
+ width: 64px; /* IE 6 treats width as min-width */
88
+ min-width: 64px;
89
+ height: 18px; /* IE 6 treats height as min-height */
90
+ min-height: 18px;
91
+ padding-top: 6px;
92
+ padding-right: 0;
93
+ }
94
+ *>.ui-tabs-nav a span { /* hide from IE 6 */
95
+ width: auto;
96
+ height: auto;
97
+ }
98
+ .ui-tabs-nav .ui-tabs-selected a span {
99
+ padding-bottom: 1px;
100
+ }
101
+ .ui-tabs-nav .ui-tabs-selected a, .ui-tabs-nav a:hover, .ui-tabs-nav a:focus, .ui-tabs-nav a:active {
102
+ background-position: 100% -150px;
103
+ }
104
+ .ui-tabs-nav a, .ui-tabs-nav .ui-tabs-disabled a:hover, .ui-tabs-nav .ui-tabs-disabled a:focus, .ui-tabs-nav .ui-tabs-disabled a:active {
105
+ background-position: 100% -100px;
106
+ }
107
+ .ui-tabs-nav .ui-tabs-selected a span, .ui-tabs-nav a:hover span, .ui-tabs-nav a:focus span, .ui-tabs-nav a:active span {
108
+ background-position: 0 -50px;
109
+ }
110
+ .ui-tabs-nav a span, .ui-tabs-nav .ui-tabs-disabled a:hover span, .ui-tabs-nav .ui-tabs-disabled a:focus span, .ui-tabs-nav .ui-tabs-disabled a:active span {
111
+ background-position: 0 0;
112
+ }
113
+ .ui-tabs-nav .ui-tabs-selected a:link, .ui-tabs-nav .ui-tabs-selected a:visited, .ui-tabs-nav .ui-tabs-disabled a:link, .ui-tabs-nav .ui-tabs-disabled a:visited { /* @ Opera, use pseudo classes otherwise it confuses cursor... */
114
+ cursor: text;
115
+ }
116
+ .ui-tabs-nav a:hover, .ui-tabs-nav a:focus, .ui-tabs-nav a:active,
117
+ .ui-tabs-nav .ui-tabs-unselect a:hover, .ui-tabs-nav .ui-tabs-unselect a:focus, .ui-tabs-nav .ui-tabs-unselect a:active { /* @ Opera, we need to be explicit again here now... */
118
+ cursor: pointer;
119
+ }
120
+ .ui-tabs-disabled {
121
+ opacity: .4;
122
+ filter: alpha(opacity=40);
123
+ }
124
+ .ui-tabs-panel {
125
+ border-top: 1px solid #97a5b0 !important;
126
+ padding: 1em 8px;
127
+ background: #fff; /* declare background color for container to avoid distorted fonts in IE while fading */
128
+
129
+ /* overwrite wp-admin */
130
+ border:none !important;
131
+ height:100% !important;
132
+ margin:0pt 0pt 0pt 0px !important;
133
+ overflow:visible !important;
134
+ }
135
+
136
+ .ui-tabs-panel a {
137
+ display:inline;
138
+ }
139
+
140
+ .ui-tabs-loading em {
141
+ padding: 0 0 0 20px;
142
+ background: url(loading.gif) no-repeat 0 50%;
143
+ }
144
+
145
+ /* Additional IE specific bug fixes... */
146
+ * html .ui-tabs-nav { /* auto clear, @ IE 6 & IE 7 Quirks Mode */
147
+ display: inline-block;
148
+ }
149
+ *:first-child+html .ui-tabs-nav { /* @ IE 7 Standards Mode - do not group selectors, otherwise IE 6 will ignore complete rule (because of the unknown + combinator)... */
150
+ display: inline-block;
151
+ }
152
+
wp-shopping-cart/js/slideMenu.js ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // this needs converting to jquery, unfortunately some fuckwit has been DDOSing the jquery site
2
+ jQuery(document).ready(
3
+ function()
4
+ {
5
+ jQuery('h3.category').each(function(div){
6
+ var block = div.getNext();
7
+
8
+ var fx = new Fx.Slide(block).hide();
9
+
10
+ div.addEvent('click', function(){
11
+ fx.toggle();
12
+ });
13
+
14
+ });
15
+
16
+ });
wp-shopping-cart/js/thickbox.js ADDED
@@ -0,0 +1,407 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Thickbox 2.1 - jQuery plugin for displaying content in a box above the page
3
+ *
4
+ * Copyright (c) 2006, 2007 Cody Lindley (http://www.codylindley.com)
5
+ *
6
+ * Licensed under the MIT License:
7
+ * http://www.opensource.org/licenses/mit-license.php
8
+ */
9
+
10
+ // on page load call TB_init
11
+ jQuery(document).ready(TB_init);
12
+
13
+ // add thickbox to href elements that have a class of .thickbox
14
+ function TB_init(){
15
+ jQuery("a.thickbox").click(function(event){
16
+ // stop default behaviour
17
+ event.preventDefault();
18
+ // remove click border
19
+ this.blur();
20
+
21
+ // get caption: either title or name attribute
22
+ var caption = this.title || this.name || "";
23
+
24
+ // get rel attribute for image groups
25
+ var group = this.rel || false;
26
+
27
+ // display the box for the elements href
28
+ TB_show(caption, this.href, group);
29
+ });
30
+ }
31
+
32
+ // called when the user clicks on a thickbox link
33
+ function TB_show(caption, url, rel) {
34
+ // create iframe, overlay and box if non-existent
35
+ if ( !jQuery("#TB_HideSelect").length ) {
36
+ jQuery("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
37
+ jQuery("#TB_overlay").click(TB_remove);
38
+ }
39
+ // TODO replace or check if event is already assigned
40
+ jQuery(window).scroll(TB_position);
41
+
42
+ // TODO replace
43
+ TB_overlaySize();
44
+
45
+ // TODO create loader only once, hide and show on demand
46
+ jQuery("body").append("<div id='TB_load'><img src='"+fileThickboxLoadingImage+"' /></div>");
47
+ TB_load_position();
48
+
49
+ // check if a query string is involved
50
+ var baseURL = url.match(/(.+)?/)[1] || url;
51
+
52
+ // regex to check if a href refers to an image
53
+ var imageURL = /\.(jpe?g|png|gif|bmp)/gi;
54
+
55
+ // check for images
56
+ if ( baseURL.match(imageURL) ) {
57
+ var dummy = { caption: "", url: "", html: "" };
58
+
59
+ var prev = dummy,
60
+ next = dummy,
61
+ imageCount = "";
62
+
63
+ // if an image group is given
64
+ if ( rel ) {
65
+ function getInfo(image, id, label) {
66
+ return {
67
+ caption: image.title,
68
+ url: image.href,
69
+ html: "<span id='TB_" + id + "'>&nbsp;&nbsp;<a href='#'>" + label + "</a></span>"
70
+ }
71
+ }
72
+
73
+ // find the anchors that point to the group
74
+ var imageGroup = jQuery("a[@rel="+rel+"]").get();
75
+ var foundSelf = false;
76
+ var imageTitle = 'Gallery'; //default to something sane
77
+ // loop through the anchors, looking for ourself, saving information about previous and next image
78
+ for (var i = 0; i < imageGroup.length; i++) {
79
+ var image = imageGroup[i];
80
+ var urlTypeTemp = image.href.match(imageURL);
81
+
82
+ // look for ourself
83
+ if ( image.href == url ) {
84
+ foundSelf = true;
85
+ imageCount = "Image " + (i + 1) + " of "+ (imageGroup.length);
86
+ if(image.rel != null)
87
+ {
88
+ imageTitle = image.rel.replace(/_/, " ");
89
+ }
90
+ } else {
91
+ // when we found ourself, the current is the next image
92
+ if ( foundSelf ) {
93
+ next = getInfo(image, "next", "Next &gt;");
94
+ // stop searching
95
+ break;
96
+ } else {
97
+ // didn't find ourself yet, so this may be the one before ourself
98
+ prev = getInfo(image, "prev", "&lt; Prev");
99
+ }
100
+ }
101
+ }
102
+ }
103
+
104
+ imgPreloader = new Image();
105
+ imgPreloader.onload = function() {
106
+ imgPreloader.onload = null;
107
+
108
+ // Resizing large images
109
+ var pagesize = TB_getPageSize();
110
+ var x = pagesize[0] - 150;
111
+ var y = pagesize[1] - 150;
112
+ var imageWidth = imgPreloader.width;
113
+ var imageHeight = imgPreloader.height;
114
+ if (imageWidth > x) {
115
+ imageHeight = imageHeight * (x / imageWidth);
116
+ imageWidth = x;
117
+ if (imageHeight > y) {
118
+ imageWidth = imageWidth * (y / imageHeight);
119
+ imageHeight = y;
120
+ }
121
+ } else if (imageHeight > y) {
122
+ imageWidth = imageWidth * (y / imageHeight);
123
+ imageHeight = y;
124
+ if (imageWidth > x) {
125
+ imageHeight = imageHeight * (x / imageWidth);
126
+ imageWidth = x;
127
+ }
128
+ }
129
+ // End Resizing
130
+
131
+ // TODO don't use globals
132
+ if(imageGroup.length > 1)
133
+ {
134
+ TB_WIDTH = imageWidth + 30 + 76 + 18;
135
+ TB_HEIGHT = imageHeight + 60;
136
+ // Browser detection is bad and all, but hey, its better than things not working
137
+ if(jQuery.browser.msie)
138
+ {
139
+ TB_HEIGHT += 30;
140
+ if(navigator.appVersion.match(/MSIE\s6\.0/) == "MSIE 6.0")
141
+ {
142
+ TB_WIDTH += 20;
143
+ }
144
+ }
145
+
146
+ // make additional image links and containing div
147
+ thumbPreloader = Array();
148
+ additional_links = "<div id='TB_additional_images'>";
149
+ var thumb_x = 76;
150
+ var thumb_y = imageHeight;
151
+
152
+ for (var i = 0; i < imageGroup.length; i++) {
153
+ var image = imageGroup[i];
154
+ // look for ourself
155
+ var image_selected = "";
156
+ if ( image.href == url ) {
157
+ image_selected = "class='TB_Selected'";
158
+ }
159
+
160
+ thumbPreloader[i] = new Image();
161
+ thumbPreloader[i].onload = function() {
162
+ //thumbPreloader[i].onload = null;
163
+ }
164
+ thumbPreloader[i].src = image.href;
165
+ var thumbImgWidth = thumbPreloader[i].width;
166
+ var thumbImgHeight = thumbPreloader[i].height;
167
+ if (thumbImgWidth > thumb_x) {
168
+ thumbImgHeight = thumbImgHeight * (thumb_x / thumbImgWidth);
169
+ thumbImgWidth = thumb_x;
170
+ if (thumbImgHeight > thumb_y) {
171
+ thumbImgWidth = thumbImgWidth * (thumb_y / thumbImgHeight);
172
+ thumbImgHeight = thumb_y;
173
+ }
174
+ }
175
+ additional_links += "<a href='#' "+image_selected+" id='TB_ThumbnailLink_"+i+"' ><img class='TB_Thumbnail_Image' src='"+image.href+"' width='"+thumbImgWidth+"' height='"+thumbImgHeight+"' alt=''/></a>";
176
+ }
177
+
178
+ additional_links += "</div>";
179
+ jQuery("#TB_window").append("<div id='TB_Header'><div id='TB_TopCloseAjaxWindow'><a href='#' id='TB_TopCloseWindowButton' title='Close'>close</a></div>"+imageTitle+"</div>");
180
+
181
+ jQuery("#TB_window").append(additional_links);
182
+ jQuery("#TB_TopCloseWindowButton").click(TB_remove);
183
+ }
184
+ else
185
+ {
186
+ TB_WIDTH = imageWidth + 30;
187
+ TB_HEIGHT = imageHeight + 60;
188
+ }
189
+ // TODO empty window content instead
190
+ jQuery("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + imageCount + prev.html + next.html + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a></div>");
191
+
192
+ jQuery("#TB_closeWindowButton").click(TB_remove);
193
+
194
+ function buildClickHandler(image) {
195
+ return function() {
196
+ jQuery("#TB_window").remove();
197
+ jQuery("body").append("<div id='TB_window'></div>");
198
+ TB_show(image.caption, image.url, rel);
199
+ return false;
200
+ };
201
+ }
202
+
203
+ if(imageGroup.length > 1)
204
+ {
205
+ goImage = Array();
206
+ for (var i = 0; i < imageGroup.length; i++) {
207
+ goImage[i] = buildClickHandler(getInfo(imageGroup[i], "image_"+i+"", ""));
208
+ jQuery("#TB_ThumbnailLink_"+i+"").click(goImage[i]);
209
+ }
210
+ }
211
+ var goPrev = buildClickHandler(prev);
212
+ var goNext = buildClickHandler(next);
213
+ if ( prev.html ) {
214
+ jQuery("#TB_prev").click(goPrev);
215
+ }
216
+
217
+ if ( next.html ) {
218
+ jQuery("#TB_next").click(goNext);
219
+ }
220
+
221
+ // TODO use jQuery, maybe with event fix plugin, or just get the necessary parts of it
222
+ document.onkeydown = function(e) {
223
+ if (e == null) { // ie
224
+ keycode = event.keyCode;
225
+ } else { // mozilla
226
+ keycode = e.which;
227
+ }
228
+ switch(keycode) {
229
+ case 27:
230
+ TB_remove();
231
+ break;
232
+ case 190:
233
+ if( next.html ) {
234
+ document.onkeydown = null;
235
+ goNext();
236
+ }
237
+ break;
238
+ case 188:
239
+ if( prev.html ) {
240
+ document.onkeydown = null;
241
+ goPrev();
242
+ }
243
+ break;
244
+ }
245
+ }
246
+
247
+ // TODO don't remove loader etc., just hide and show later
248
+ TB_position();
249
+ jQuery("#TB_load").remove();
250
+ jQuery("#TB_ImageOff").click(TB_remove);
251
+
252
+ // for safari using css instead of show
253
+ // TODO is that necessary? can't test safari
254
+ jQuery("#TB_window").css({display:"block"});
255
+ }
256
+ imgPreloader.src = url;
257
+
258
+ } else { //code to show html pages
259
+ //alert(url);
260
+ var queryString = url.match(/\?(.+)/)[1];
261
+ var params = TB_parseQuery( queryString );
262
+
263
+ TB_WIDTH = (params['width']*1) + 30;
264
+ TB_HEIGHT = (params['height']*1) + 40;
265
+
266
+ var ajaxContentW = TB_WIDTH - 30,
267
+ ajaxContentH = TB_HEIGHT - 45;
268
+
269
+ if(url.indexOf('TB_iframe') != -1){
270
+ urlNoQuery = url.split('TB_');
271
+ jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' onload='TB_showIframe()'> </iframe>");
272
+ } else {
273
+ jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");
274
+ }
275
+
276
+ jQuery("#TB_closeWindowButton").click(TB_remove);
277
+
278
+ if(url.indexOf('TB_inline') != -1){
279
+ jQuery("#TB_ajaxContent").html(jQuery('#' + params['inlineId']).html());
280
+ TB_position();
281
+ jQuery("#TB_load").remove();
282
+ jQuery("#TB_window").css({display:"block"});
283
+ }else if(url.indexOf('TB_iframe') != -1){
284
+ TB_position();
285
+ if(frames['TB_iframeContent'] == undefined){//be nice to safari
286
+ jQuery("#TB_load").remove();
287
+ jQuery("#TB_window").css({display:"block"});
288
+ jQuery(document).keyup( function(e){ var key = e.keyCode; if(key == 27){TB_remove()} });
289
+ }
290
+ }else{
291
+ jQuery("#TB_ajaxContent").load(url, function(){
292
+ TB_position();
293
+ jQuery("#TB_load").remove();
294
+ jQuery("#TB_window").css({display:"block"});
295
+ });
296
+ }
297
+ }
298
+
299
+ jQuery(window).resize(TB_position);
300
+
301
+ document.onkeyup = function(e){
302
+ if (e == null) { // ie
303
+ keycode = event.keyCode;
304
+ } else { // mozilla
305
+ keycode = e.which;
306
+ }
307
+ if(keycode == 27){ // close
308
+ TB_remove();
309
+ }
310
+ }
311
+
312
+ }
313
+
314
+ //helper functions below
315
+
316
+ function TB_showIframe(){
317
+ jQuery("#TB_load").remove();
318
+ jQuery("#TB_window").css({display:"block"});
319
+ }
320
+
321
+ function TB_remove() {
322
+ jQuery("#TB_imageOff").unbind("click");
323
+ jQuery("#TB_overlay").unbind("click");
324
+ jQuery("#TB_closeWindowButton").unbind("click");
325
+ jQuery("#TB_TopCloseWindowButton").unbind("click");
326
+ jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').remove();});
327
+ jQuery("#TB_load").remove();
328
+ return false;
329
+ }
330
+
331
+ function TB_position() {
332
+ var pagesize = TB_getPageSize();
333
+ var arrayPageScroll = TB_getPageScrollTop();
334
+ var style = {width: TB_WIDTH, left: (arrayPageScroll[0] + (pagesize[0] - TB_WIDTH)/2), top: (arrayPageScroll[1] + (pagesize[1]-TB_HEIGHT)/2)};
335
+ jQuery("#TB_window").css(style);
336
+ }
337
+
338
+ function TB_overlaySize(){
339
+ if (window.innerHeight && window.scrollMaxY || window.innerWidth && window.scrollMaxX) {
340
+ yScroll = window.innerHeight + window.scrollMaxY;
341
+ xScroll = window.innerWidth + window.scrollMaxX;
342
+ var deff = document.documentElement;
343
+ var wff = (deff&&deff.clientWidth) || document.body.clientWidth || window.innerWidth || self.innerWidth;
344
+ var hff = (deff&&deff.clientHeight) || document.body.clientHeight || window.innerHeight || self.innerHeight;
345
+ xScroll -= (window.innerWidth - wff);
346
+ yScroll -= (window.innerHeight - hff);
347
+ } else if (document.body.scrollHeight > document.body.offsetHeight || document.body.scrollWidth > document.body.offsetWidth){ // all but Explorer Mac
348
+ yScroll = document.body.scrollHeight;
349
+ xScroll = document.body.scrollWidth;
350
+ } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
351
+ yScroll = document.body.offsetHeight;
352
+ xScroll = document.body.offsetWidth;
353
+ }
354
+ jQuery("#TB_overlay").css({"height": yScroll, "width": xScroll});
355
+ jQuery("#TB_HideSelect").css({"height": yScroll,"width": xScroll});
356
+ }
357
+
358
+ function TB_load_position() {
359
+ var pagesize = TB_getPageSize();
360
+ var arrayPageScroll = TB_getPageScrollTop();
361
+ jQuery("#TB_load")
362
+ .css({left: (arrayPageScroll[0] + (pagesize[0] - 100)/2), top: (arrayPageScroll[1] + ((pagesize[1]-100)/2)) })
363
+ .css({display:"block"});
364
+ }
365
+
366
+ function TB_parseQuery ( query ) {
367
+ // return empty object
368
+ if( !query )
369
+ return {};
370
+ var params = {};
371
+
372
+ // parse query
373
+ var pairs = query.split(/[;&]/);
374
+ for ( var i = 0; i < pairs.length; i++ ) {
375
+ var pair = pairs[i].split('=');
376
+ if ( !pair || pair.length != 2 )
377
+ continue;
378
+ // unescape both key and value, replace "+" with spaces in value
379
+ params[unescape(pair[0])] = unescape(pair[1]).replace(/\+/g, ' ');
380
+ }
381
+ return params;
382
+ }
383
+
384
+ function TB_getPageScrollTop(){
385
+ var yScrolltop;
386
+ var xScrollleft;
387
+ if (self.pageYOffset || self.pageXOffset) {
388
+ yScrolltop = self.pageYOffset;
389
+ xScrollleft = self.pageXOffset;
390
+ } else if (document.documentElement && document.documentElement.scrollTop || document.documentElement.scrollLeft ){ // Explorer 6 Strict
391
+ yScrolltop = document.documentElement.scrollTop;
392
+ xScrollleft = document.documentElement.scrollLeft;
393
+ } else if (document.body) {// all other Explorers
394
+ yScrolltop = document.body.scrollTop;
395
+ xScrollleft = document.body.scrollLeft;
396
+ }
397
+ arrayPageScroll = new Array(xScrollleft,yScrolltop)
398
+ return arrayPageScroll;
399
+ }
400
+
401
+ function TB_getPageSize(){
402
+ var de = document.documentElement;
403
+ var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
404
+ var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight
405
+ arrayPageSize = new Array(w,h)
406
+ return arrayPageSize;
407
+ }
wp-shopping-cart/js/tinymce3/cart.png ADDED
Binary file
wp-shopping-cart/js/tinymce3/editor_plugin.js ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Docu : http://wiki.moxiecode.com/index.php/TinyMCE:Create_plugin/3.x#Creating_your_own_plugins
2
+
3
+ (function() {
4
+ // Load plugin specific language pack
5
+ tinymce.PluginManager.requireLangPack('WPSC');
6
+
7
+ tinymce.create('tinymce.plugins.WPSC', {
8
+ /**
9
+ * Initializes the plugin, this will be executed after the plugin has been created.
10
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
11
+ * of the editor instance to intercept that event.
12
+ *
13
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
14
+ * @param {string} url Absolute URL to where the plugin is located.
15
+ */
16
+ init : function(ed, url) {
17
+ // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
18
+
19
+ ed.addCommand('WPSC', function() {
20
+ ed.windowManager.open({
21
+ file : url + '/window.php',
22
+ width : 360 + ed.getLang('WPSC.delta_width', 0),
23
+ height : 210 + ed.getLang('WPSC.delta_height', 0),
24
+ inline : 1
25
+ }, {
26
+ plugin_url : url // Plugin absolute URL
27
+ });
28
+ });
29
+
30
+ // Register example button
31
+ ed.addButton('WPSC', {
32
+ title : 'WPSC.desc',
33
+ cmd : 'WPSC',
34
+ image : url + '/cart.png'
35
+ });
36
+
37
+ // Add a node change handler, selects the button in the UI when a image is selected
38
+ ed.onNodeChange.add(function(ed, cm, n) {
39
+ cm.setActive('WPSC', n.nodeName == 'IMG');
40
+ });
41
+ },
42
+
43
+ /**
44
+ * Creates control instances based in the incomming name. This method is normally not
45
+ * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
46
+ * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
47
+ * method can be used to create those.
48
+ *
49
+ * @param {String} n Name of the control to create.
50
+ * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
51
+ * @return {tinymce.ui.Control} New control instance or null if no control was created.
52
+ */
53
+ createControl : function(n, cm) {
54
+ return null;
55
+ },
56
+
57
+ /**
58
+ * Returns information about the plugin as a name/value array.
59
+ * The current keys are longname, author, authorurl, infourl and version.
60
+ *
61
+ * @return {Object} Name/value array containing information about the plugin.
62
+ */
63
+ getInfo : function() {
64
+ return {
65
+ longname : 'WPSC',
66
+ author : 'Allen Han',
67
+ authorurl : 'http://www.allensplash.com',
68
+ infourl : 'http://www.instinct.co.nz',
69
+ version : "2.0"
70
+ };
71
+ }
72
+ });
73
+
74
+ // Register plugin
75
+ tinymce.PluginManager.add('WPSC', tinymce.plugins.WPSC);
76
+ })();
77
+
78
+
wp-shopping-cart/js/tinymce3/langs/de_de.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ // German lang variables for WP2.5
2
+
3
+ tinyMCE.addI18n({de:{
4
+ NextGEN:{
5
+ desc : 'NextGEN Gallery hinzufuegen'
6
+ }}});
wp-shopping-cart/js/tinymce3/langs/en.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ // English lang variables for WP2.5
2
+
3
+ tinyMCE.addI18n({en:{
4
+ WPSC:{
5
+ desc : 'Add a Category to your Page or Post'
6
+ }}});
wp-shopping-cart/js/tinymce3/langs/en_US.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ // English lang variables for WP2.5
2
+
3
+ tinyMCE.addI18n({en_US:{
4
+ WPSC:{
5
+ desc :'Add a Category to your Page or Post'
6
+ }}});
wp-shopping-cart/js/tinymce3/tinymce.js ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function init() {
2
+ tinyMCEPopup.resizeToInnerSize();
3
+ }
4
+
5
+ function getCheckedValue(radioObj) {
6
+ if(!radioObj)
7
+ return "";
8
+ var radioLength = radioObj.length;
9
+ if(radioLength == undefined)
10
+ if(radioObj.checked)
11
+ return radioObj.value;
12
+ else
13
+ return "";
14
+ for(var i = 0; i < radioLength; i++) {
15
+ if(radioObj[i].checked) {
16
+ return radioObj[i].value;
17
+ }
18
+ }
19
+ return "";
20
+ }
21
+
22
+ function insertWPSCLink() {
23
+
24
+ var tagtext;
25
+ var select_category=document.getElementById('wpsc_category_panel');
26
+ var category = document.getElementById('wpsc_category');
27
+ var slider=document.getElementById('product_slider_panel');
28
+
29
+ // var album = document.getElementById('album_panel');
30
+ // var singlepic = document.getElementById('singlepic_panel');
31
+
32
+ // who is active ?
33
+ if (select_category.className.indexOf('current') != -1) {
34
+ var categoryid = category.value;
35
+ var fulldisplay = document.getElementById('wpsc_fulldisplay').checked;
36
+ if (categoryid > 0 ) {
37
+ if (fulldisplay)
38
+ tagtext = "[wpsc_category=" + categoryid + ",full]";
39
+ else
40
+ tagtext = "[wpsc_category=" + categoryid + "]";
41
+ } else {
42
+ tinyMCEPopup.close();
43
+ }
44
+ }
45
+
46
+ if (slider.className.indexOf('current') != -1) {
47
+ category = document.getElementById('wpsc_slider_category');
48
+ visi = document.getElementById('wpsc_slider_visibles');
49
+ var categoryid = category.value;
50
+ var visibles = visi.value;
51
+
52
+ if (categoryid > 0 ) {
53
+ if (visibles != '') {
54
+ tagtext = "[wpsc_slider_category=" + categoryid + "," + visibles + "]";
55
+ } else {
56
+ tagtext = "[wpsc_slider_category=" + categoryid + "]";
57
+ }
58
+ } else {
59
+ tinyMCEPopup.close();
60
+ }
61
+ }
62
+
63
+ // if (singlepic.className.indexOf('current') != -1) {
64
+ // // var singlepicid = document.getElementById('singlepictag').value;
65
+ // // var imgWidth = document.getElementById('imgWidth').value;
66
+ // // var imgHeight = document.getElementById('imgHeight').value;
67
+ // // var imgeffect = document.getElementById('imgeffect').value;
68
+ // // var imgfloat = document.getElementById('imgfloat').value;
69
+ //
70
+ // if (singlepicid != 0 ) {
71
+ // if (imgeffect == "none")
72
+ // tagtext = "[singlepic=" + singlepicid + "," + imgWidth + "," + imgHeight + ",," + imgfloat + "]";
73
+ // else
74
+ // tagtext = "[singlepic=" + singlepicid + "," + imgWidth + "," + imgHeight + "," + imgeffect + "," + imgfloat + "]";
75
+ // } else {
76
+ // tinyMCEPopup.close();
77
+ // }
78
+ // }
79
+
80
+ if(window.tinyMCE) {
81
+ window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tagtext);
82
+ //Peforms a clean up of the current editor HTML.
83
+ //tinyMCEPopup.editor.execCommand('mceCleanup');
84
+ //Repaints the editor. Sometimes the browser has graphic glitches.
85
+ tinyMCEPopup.editor.execCommand('mceRepaint');
86
+ tinyMCEPopup.close();
87
+ }
88
+ return;
89
+ }
wp-shopping-cart/js/tinymce3/tinymce.php ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @title TinyMCE V3 Button Integration (for Wp2.5)
5
+ * @author Allen Han
6
+ */
7
+
8
+ function wpsc_addbuttons() {
9
+
10
+ // Don't bother doing this stuff if the current user lacks permissions
11
+ // if ( !current_user_can('edit_posts') && !current_user_can('edit_pages') ) return;
12
+ //
13
+ // // Check for NextGEN capability
14
+ // if ( !current_user_can('NextGEN Use TinyMCE') ) return;
15
+
16
+ // Add only in Rich Editor mode
17
+ if ( get_user_option('rich_editing') == 'true') {
18
+
19
+ // add the button for wp25 in a new way
20
+ add_filter("mce_external_plugins", "add_wpsc_tinymce_plugin", 5);
21
+ add_filter('mce_buttons', 'register_wpsc_button', 5);
22
+ }
23
+ }
24
+
25
+ // used to insert button in wordpress 2.5x editor
26
+ function register_wpsc_button($buttons) {
27
+
28
+ array_push($buttons, "separator", "WPSC");
29
+
30
+ return $buttons;
31
+ }
32
+
33
+ // Load the TinyMCE plugin : editor_plugin.js (wp2.5)
34
+ function add_wpsc_tinymce_plugin($plugin_array) {
35
+
36
+ $plugin_array['WPSC'] = WPSC_URL.'/js/tinymce3/editor_plugin.js';
37
+ return $plugin_array;
38
+ }
39
+
40
+ function wpsc_change_tinymce_version($version) {
41
+ return ++$version;
42
+ }
43
+
44
+ // Modify the version when tinyMCE plugins are changed.
45
+ add_filter('tiny_mce_version', 'wpsc_change_tinymce_version');
46
+
47
+ // init process for button control
48
+ add_action('init', 'wpsc_addbuttons');
49
+
50
+ ?>
wp-shopping-cart/js/tinymce3/window.php ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $wpconfig = realpath("../../../../../wp-config.php");
4
+
5
+ if (!file_exists($wpconfig)) {
6
+ echo "Could not found wp-config.php. Error in path :\n\n".$wpconfig ;
7
+ die;
8
+ }// stop when wp-config is not there
9
+
10
+ require_once($wpconfig);
11
+ require_once(ABSPATH.'/wp-admin/admin.php');
12
+ //
13
+ // // check for rights
14
+ // if(!current_user_can('edit_posts')) die;
15
+
16
+ global $wpdb;
17
+
18
+ ?>
19
+
20
+ <html xmlns="http://www.w3.org/1999/xhtml">
21
+ <head>
22
+ <title>WP Shopping Cart</title>
23
+ <!-- <meta http-equiv="Content-Type" content="<?php// bloginfo('html_type'); ?>; charset=<?php //echo get_option('blog_charset'); ?>" /> -->
24
+ <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
25
+ <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
26
+ <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
27
+ <script language="javascript" type="text/javascript" src="<?php echo WPSC_URL; ?>/js/tinymce3/tinymce.js"></script>
28
+ <base target="_self" />
29
+ </head>
30
+ <body id="link" onload="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';document.getElementById('category').focus();" style="display: none">
31
+ <!-- <form onsubmit="insertLink();return false;" action="#"> -->
32
+ <form name="WPSC" action="#">
33
+ <div class="tabs">
34
+ <ul>
35
+ <li id="category" class="current"><span><a href="javascript:mcTabs.displayTab('category','wpsc_category_panel');" onmousedown="return false;"><?php _e("Category", 'wpsc_category'); ?></a></span></li>
36
+ <li id="prodcut_slider"><span><a href="javascript:mcTabs.displayTab('prodcut_slider','product_slider_panel');" onmousedown="return false;"><?php _e("Product Slider", 'wpsc_category'); ?></a></span></li>
37
+ </ul>
38
+ </div>
39
+
40
+ <div class="panel_wrapper">
41
+ <!-- gallery panel -->
42
+ <div id="wpsc_category_panel" class="panel current">
43
+ <br />
44
+ <table border="0" cellpadding="4" cellspacing="0">
45
+ <tr>
46
+ <td nowrap="nowrap"><label for="wpsc_category"><?php _e("Select Category", 'wpsc_category'); ?></label></td>
47
+ <td><select id="wpsc_category" name="wpsc_category" style="width: 200px">
48
+ <option value="0"><?php _e("No Category", 'wpsc_category'); ?></option>
49
+ <?php
50
+ $categorylist = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."product_categories ORDER BY id ASC",ARRAY_A);
51
+ if(is_array($categorylist)) {
52
+ foreach($categorylist as $category) {
53
+ echo "<option value=".$category['id']." >".$category['name']."</option>"."\n";
54
+ }
55
+ }
56
+ ?>
57
+ </select></td>
58
+ </tr>
59
+ <tr>
60
+ <td nowrap="nowrap" valign="top"><label for="showtype"><?php _e("Full Display", 'wpsc_category'); ?></label></td>
61
+ <td><label><input name="showtype" id='wpsc_fulldisplay' type="checkbox" checked="checked" /></label></td>
62
+ </tr>
63
+ </table>
64
+ </div>
65
+ <!-- gallery panel -->
66
+ <div id="product_slider_panel" class="panel">
67
+ <br />
68
+ <table border="0" cellpadding="4" cellspacing="0">
69
+ <tr>
70
+ <td nowrap="nowrap"><label for="wpsc_category"><?php _e("Select Category", 'wpsc_category'); ?></label></td>
71
+ <td><select id="wpsc_slider_category" name="wpsc_category" style="width: 200px">
72
+ <option value="0"><?php _e("No Category", 'wpsc_category'); ?></option>
73
+ <?php
74
+ $categorylist = $wpdb->get_results("SELECT * FROM ".$wpdb->prefix."product_categories ORDER BY id ASC",ARRAY_A);
75
+ if(is_array($categorylist)) {
76
+ foreach($categorylist as $category) {
77
+ echo "<option value=".$category['id']." >".$category['name']."</option>"."\n";
78
+ }
79
+ }
80
+ ?>
81
+ </select></td>
82
+ </tr>
83
+ <tr>
84
+ <td>
85
+ <?php _e("Number of visible items", 'wpsc_category'); ?>:
86
+ </td>
87
+ <td>
88
+ <input type='text' id='wpsc_slider_visibles' name='wpsc_slider_visibles'>
89
+ </td>
90
+ </tr>
91
+ </table>
92
+ </div>
93
+
94
+ </div>
95
+
96
+ <div class="mceActionPanel">
97
+ <div style="float: left">
98
+ <input type="button" id="cancel" name="cancel" value="<?php _e("Cancel", 'wpsc_category'); ?>" onclick="tinyMCEPopup.close();" />
99
+ </div>
100
+
101
+ <div style="float: right">
102
+ <input type="submit" id="insert" name="insert" value="<?php _e("Insert", 'wpsc_category'); ?>" onclick="insertWPSCLink();" />
103
+ </div>
104
+ </div>
105
+ </form>
106
+ </body>
107
+ </html>
wp-shopping-cart/langs/en.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(tinyMCE.addToLang) {
2
+ tinyMCE.addToLang('',{
3
+ insert_ecom_title : 'Insert e-Commerce category',
4
+ lang_dd_code_desc : 'Add an e-Commerce category list of your product'
5
+ });
6
+ }
7
+
8
+ if(tinyMCE.addI18n) {
9
+ tinyMCE.addI18n('en.ecom',{
10
+ insert_ecom_title : 'Insert e-Commerce category',
11
+ lang_dd_code_desc : 'Add an e-Commerce category list of your product'
12
+ });
13
+ }
wp-shopping-cart/languages/BG_bg.php ADDED
@@ -0,0 +1,585 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ This is a language file for the WP Shopping Cart plugin version 3.5
4
+ Language version 1.1 in Bulgarian by Galin Stoimenov, galin@ins.bg
5
+ */
6
+
7
+ define('TXT_WPSC_IMAGESIZEINFO', 'Забележка: ако това поле е празно, няма да се променят размерите на изображението.');
8
+ define('TXT_WPSC_RECEIVED', 'Поръчката е приета');
9
+ define('TXT_WPSC_ORDER_STATUS', 'Статус на поръчката');
10
+ define('TXT_WPSC_ORDER_SUMMARY', 'Вашата поръчка');
11
+ define('TXT_WPSC_LANGUAGE', 'Език');
12
+ define('TXT_WPSC_ACCEPTED_PAYMENT', 'Плащането е прието');
13
+ define('TXT_WPSC_JOB_DISPATCHED', 'Поръчката е изпълнена');
14
+ define('TXT_WPSC_PROCESSED', 'Поръчката е приключена');
15
+ define('TXT_WPSC_ECOMMERCE', 'e-Commerce');
16
+ define('TXT_WPSC_OPTIONS', 'Възможности за покупки');
17
+ define('TXT_WPSC_ADDPRODUCTS', 'Добави продукти');
18
+ define('TXT_WPSC_SENDSMS', 'Изпрати SMS');
19
+ define('TXT_WPSC_PRODUCTS', 'Продукти');
20
+ define('TXT_WPSC_ADDCATEGORY', 'Добави категория');
21
+ define('TXT_WPSC_CATEGORIES', 'Категории');
22
+ define('TXT_WPSC_BRANDS', 'Марки');
23
+ define('TXT_WPSC_VARIATIONS', 'Възможности');
24
+ define('TXT_WPSC_PURCHASELOG', 'Детайли за покупката');
25
+ define('TXT_WPSC_ORDER_LOG', 'Поръчки');
26
+ define('TXT_WPSC_OLDER_ORDERS', 'Стари поръчки');
27
+ define('TXT_WPSC_ORDER', 'Поръчка');
28
+ define('TXT_WPSC_TOTAL_THIS_MONTH', 'Спечелени пари за този месец');
29
+ define('TXT_WPSC_MONTHLY_REPORT', 'Шест месечен отчет');
30
+ define('TXT_WPSC_TOTAL_INCOME', 'Всички приходи');
31
+ define('TXT_WPSC_ACCEPTED_PAYMENTS', '(приети плащания)'); //texr has changed slightly
32
+ define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', 'Възможности за плащане');
33
+ define('TXT_WPSC_HELPINSTALLATION', 'Помощ/Надстройка');
34
+ define('TXT_WPSC_EXAMPLECATEGORY', 'Примерна категория');
35
+ define('TXT_WPSC_EXAMPLEDETAILS', 'Примерни детайли');
36
+ define('TXT_WPSC_EXAMPLEBRAND', 'Примерна марка');
37
+ define('TXT_WPSC_PRODUCTIMAGEWIDTH', 'Ширина на изображението на продукта');
38
+ define('TXT_WPSC_PRODUCTIMAGEHEIGHT', 'Височина на изображението на продукта');
39
+ define('TXT_WPSC_CATEGORYIMAGEWIDTH', 'Ширина на изображението за категорията');
40
+ define('TXT_WPSC_CATEGORYIMAGEHEIGHT', 'Височина на изображението за категорията');
41
+ define('TXT_WPSC_PRODUCTLISTURL', 'Разположение на списъка с продукти');
42
+ define('TXT_WPSC_SHOPPINGCARTURL', 'Местоположение на количката за пазаруване');
43
+ define('TXT_WPSC_CHECKOUTURL', 'Разположение на страницата за финализиране на поръчката');
44
+ define('TXT_WPSC_TRANSACTURL', 'Разположение на детейлите за парични преводи');
45
+ define('TXT_WPSC_PAYMENTGATEWAY', 'Начин на плащане');
46
+ define('TXT_WPSC_CARTLOCATION', 'Местоположение на количката за пазаруване');
47
+ define('TXT_WPSC_SHOWCATEGORYBRANDS', 'Покажи категории или марки, или и двете');
48
+ define('TXT_WPSC_CURRENCYTYPE', 'Валута');
49
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Местоположение на знака за валутата');
50
+ define('TXT_WPSC_GSTRATE', 'процент ДДС');
51
+ define('TXT_WPSC_MAXDOWNLOADS', 'Ограничение на изтегляния');
52
+ define('TXT_WPSC_DISPLAYPNP', 'Покажи/скрий пощенски и опаковъчни такси');
53
+ define('TXT_WPSC_DISPLAYSPECIALS', 'Покажи/скрий промоции на страничното меню');
54
+ define('TXT_WPSC_POSTAGEAND_PACKAGING', 'Разходи за доставка и опаковане по подразбиране');
55
+ define('TXT_WPSC_PURCHLOGEMAIL', 'Имейл адрес, на който ще се изпратят детайлите по поръчката');
56
+ define('TXT_WPSC_RETURNEMAIL', 'Имейл адрес, от който се изпращат потвърждения за поръчката');
57
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'Условия за ползване на онлайн магазина');
58
+ define('TXT_WPSC_DEFAULTBRAND', 'Марка по подразбиране');
59
+ define('TXT_WPSC_DEFAULTCATEGORY', 'Категория по подразбиране');
60
+ define('TXT_WPSC_PAYPALBUSINESS', 'Разплащане с Paypal');
61
+ define('TXT_WPSC_PAYPALURL', 'Интернет адрес за Paypal');
62
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Покажи оценка (рейтинг) на продуктите');
63
+ define('TXT_WPSC_PRODUCTSPAGE', 'Страница с продуктите');
64
+ define('TXT_WPSC_CHECKOUT', 'Потвърдете вашата поръчка');
65
+ define('TXT_WPSC_ENTERDETAILS', 'Въведете своите данни');
66
+ define('TXT_WPSC_TRANSACTIONRESULTS', 'Резултати от плащанията');
67
+ define('TXT_WPSC_SELECTACATEGORY', 'Изберете категория');
68
+ define('TXT_WPSC_SELECTABRAND', 'Изберете марка');
69
+ define('TXT_WPSC_PRODUCTNAME', 'Име на продукт');
70
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Описание на продукт');
71
+ define('TXT_WPSC_ADDITIONALDESCRIPTION', 'Допълнително описание');
72
+ define('TXT_WPSC_PRICE', 'Цена');
73
+ define('TXT_WPSC_TAXALREADYINCLUDED', 'Не включвай ДДС (ДДС е включен при финализиране на поръчката)'); // this text has changed and needs updating
74
+ define('TXT_WPSC_SPECIAL', 'Промоция / Цена'); // this text has changed and needs updating
75
+ define('TXT_WPSC_PRODUCT_DISPLAY', 'Показване на продукта');
76
+
77
+ define('TXT_WPSC_PRODUCTSTOCK', 'Продукти в наличност');
78
+
79
+ define('TXT_WPSC_UNTICKBOX', 'Има ограничени количества от този продукт. Ако се изчерпят количествата, продуктът няма да бъде показвана в магазина, докато не изключите отметката в полето или прибавите допълнителни количества.');
80
+ define('TXT_WPSC_LIMITED_STOCK', 'Ограничени количества');
81
+
82
+ define('TXT_WPSC_CATEGORY', 'Категория');
83
+ define('TXT_WPSC_BRAND', 'Марка');
84
+ define('TXT_WPSC_PRODUCT_VARS', 'Разновидности от продукта');
85
+ define('TXT_WPSC_ADD_VAR', 'Прибави група разновидности');
86
+ define('TXT_WPSC_EDIT_VAR', 'Редактирай група разновидности');
87
+ define('TXT_WPSC_SELECTAVARIATION', 'Избери вид');
88
+ define('TXT_WPSC_NEW_VARIATION', 'Създай нова разновидност');
89
+
90
+ define('TXT_WPSC_PRODUCTATT', 'Прикачение файлове за продукта');
91
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT', 'Закачи файл');
92
+ define('TXT_WPSC_FILETOBEPRODUCT', 'Забележка: Ако това поле е попълнено, прикаченият файл ще бъде продуктът за продажба.');
93
+ define('TXT_WPSC_RESIZEIMAGE', 'Промени размерите на миниатюрата');
94
+ define('TXT_WPSC_DONOTRESIZEIMAGE', 'Не променяй размерите на миниатюрата.');
95
+ // define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'използвай ширина и височина по подразбиране');
96
+ // define('TXT_WPSC_USE', 'употреба');
97
+ // define('TXT_WPSC_PXHEIGHTBY', 'височина пиксели');
98
+ // define('TXT_WPSC_PXWIDTH', 'ширина пиксели');
99
+
100
+ // pe.{
101
+ //define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'използвай височина и вирина по подразбиране');
102
+ // }.pe
103
+ define('TXT_WPSC_SEPARATETHUMBNAIL', 'използвай отделен файл за миниатюра'); // Needs Translation
104
+ define('TXT_WPSC_USE', 'използвай'); // Needs Translation
105
+ // pe.{
106
+ define('TXT_WPSC_USEDEFAULTSIZE', 'използвай размер по подразбиране'); // Needs Translation
107
+ define('TXT_WPSC_USESPECIFICSIZE', 'използвай конкретни размери'); // Needs Translation
108
+ define('TXT_WPSC_PXHEIGHT', 'височина пиксели'); // Needs Translation
109
+ define('TXT_WPSC_PXWIDTH', 'ширина пиксели'); // Needs Translation
110
+ // }.pe
111
+
112
+
113
+ define('TXT_WPSC_UPLOADNEWIMAGE', 'Смени изображението');
114
+ define('TXT_WPSC_DELETEIMAGE', 'Изтрий изображението');
115
+ define('TXT_WPSC_EDIT', 'Редактирай');
116
+ define('TXT_WPSC_DELETE', 'Изтрий');
117
+ define('TXT_WPSC_REMOVE', 'Премахни');
118
+ define('TXT_WPSC_NAME', 'Име');
119
+ define('TXT_WPSC_TYPE', 'Вид');
120
+ define('TXT_WPSC_MANDATORY', 'Задължително');
121
+ define('TXT_WPSC_DISPLAY_IN_LOG', 'Покажи<br /> в детайли');
122
+ define('TXT_WPSC_DESCRIPTION', 'Описание');
123
+ define('TXT_WPSC_CATEGORY_PARENT', 'Родителска категория');
124
+ define('TXT_WPSC_IMAGE', 'Изображение');
125
+ define('TXT_WPSC_HEIGHT', 'Височина');
126
+ define('TXT_WPSC_WIDTH', 'Ширина');
127
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Моля, въведете валиден');
128
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Моля, въведете валидно име');
129
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Моля, въведете валидно фамилно име');
130
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Моле, въведете валиден имейл адрес');
131
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Моля, въведете валиден адрес');
132
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Моля, въведете валиден телефонен номер');
133
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'Не сте се съгласили с условията за ползване');
134
+ define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', 'Вашата количка за пазаруване е празна');
135
+ define('TXT_WPSC_SPECIALS', 'Промоции');
136
+ define('TXT_WPSC_BUY', 'Купи');
137
+ define('TXT_WPSC_SHOPPINGCART', 'Количка за пазаруване');
138
+ define('TXT_WPSC_NUMBEROFITEMS', 'Брой продукти');
139
+ define('TXT_WPSC_NOMOREAVAILABLE', 'Този продукт не е в наличност.');
140
+ define('TXT_WPSC_EMPTYYOURCART', 'Изпразнете количката');
141
+ define('TXT_WPSC_GOTOCHECKOUT', 'Финализиране на поръчката');
142
+ define('TXT_WPSC_CONTINUESHOPPING', 'Продължете пазаруването');
143
+ define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', 'Вашата количка е празна');
144
+ define('TXT_WPSC_VISITTHESHOP', 'Влезте в магазина');
145
+ define('TXT_WPSC_PAGES', 'Страници');
146
+ define('TXT_WPSC_OUTOF', 'от');
147
+ define('TXT_WPSC_VOTES', 'гласа.');
148
+ define('TXT_WPSC_CLICKSTARSTORATE', 'Щракнете на звездичките, за да оцените продукта');
149
+ define('TXT_WPSC_AVERAGERATINGOF', 'Средна оценка за');
150
+ define('TXT_WPSC_YOURVOTE', 'Вашият глас');
151
+ define('TXT_WPSC_AVERAGEVOTE', 'Средна оценка');
152
+ define('TXT_WPSC_YOUHAVEVOTED', 'Вие гласувахте');
153
+ define('TXT_WPSC_NOVOTES', 'Няма оценки');
154
+ define('TXT_WPSC_1VOTE', '1 глас');
155
+ define('TXT_WPSC_VOTES2', 'гласа');
156
+ define('TXT_WPSC_PERSONGIVEN', 'човек, гласувал за това изображение');
157
+ define('TXT_WPSC_PERSONGIVEN2', 'звезди.');
158
+ define('TXT_WPSC_PEOPLEGIVEN', 'хора, гласували за това изображение');
159
+ define('TXT_WPSC_PEOPLEGIVEN2', 'звезди.');
160
+ define('TXT_WPSC_ITEMHASBEENADDED', 'Продуктът беше добавен');
161
+ define('TXT_WPSC_ITEMHASNOTBEENADDED', 'Продуктът не беше добавен');
162
+ define('TXT_WPSC_ADDNEWCATEGORY', 'Добави нова категория');
163
+ define('TXT_WPSC_SUBMIT', 'Изпрати');
164
+ define('TXT_WPSC_SELECTAVALIDCATEGORY', 'Моля, изберете валидна категория');
165
+ define('TXT_WPSC_PRODUCTNAME', 'Име на продукта');
166
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Описание на продукта');
167
+ define('TXT_WPSC_ADDNEWPRODUCT', 'Добави продукт');
168
+ define('TXT_WPSC_PRODUCTQUANTITY', 'Количество продукти');
169
+ define('TXT_WPSC_PRODUCTIMAGE', 'Изображение на продукта');
170
+ define('TXT_WPSC_PRODUCTPRICE', 'Цена на продукта');
171
+ define('TXT_WPSC_NOTAX', 'без ДДС');
172
+ define('TXT_WPSC_ABOUT', 'Относно');
173
+ define('TXT_WPSC_ABOUTCONTENT', 'Добре дошли в контролния панел на WP e-commerce. <br /><br /><strong>Забележка:</strong> при някои инсталации количката за пазаруване може да се изпразни при всяко зареждане на страница. Ако това се случи, трябва да добавите следния ред:<br /><br />session_start();<br /><br />към index.php файла, в началната директория на Wordpress.<br />');
174
+ define('TXT_WPSC_CONTACTDETAILS', 'Моля, въведете вашите данни за връзка:');
175
+ define('TXT_WPSC_CREDITCARDHANDY', 'Вземете под внимание, че след като натиснете "Изпрати", ще ви е необходима вашата кредитна карта.');
176
+ define('TXT_WPSC_ASTERISK', 'Полетата, отбелязани със звездичка са задължителни.');
177
+ define('TXT_WPSC_FIRSTNAME', 'Име');
178
+ define('TXT_WPSC_LASTNAME', 'Фамилия');
179
+ define('TXT_WPSC_EMAIL', 'Имейл');
180
+ define('TXT_WPSC_ADDRESS', 'Адрес');
181
+ define('TXT_WPSC_ADDRESS1', 'Адрес 1');
182
+ define('TXT_WPSC_ADDRESS2', 'Адрес 2');
183
+ define('TXT_WPSC_CITY', 'Град');
184
+ define('TXT_WPSC_STATE', 'Област');
185
+ define('TXT_WPSC_COUNTRY', 'Страна');
186
+ define('TXT_WPSC_PHONE', 'Телефон');
187
+ define('TXT_WPSC_POSTAL_CODE', 'Пощенски код');
188
+ define('TXT_WPSC_TERMS1', 'Съгласен съм с ');
189
+ define('TXT_WPSC_TERMS2', 'Условията за ползване');
190
+
191
+
192
+ define('TXT_WPSC_TEXT', 'Текст');
193
+ define('TXT_WPSC_TEXTAREA', 'Текстово поле');
194
+ define('TXT_WPSC_HEADING', 'Заглавие');
195
+
196
+ define('TXT_WPSC_MAKEPURCHASE', 'Направете покупка');
197
+ define('TXT_WPSC_BUYPRODUCTS', 'Моля, купете някои продукти, преди да използвате тази страница');
198
+ define('TXT_WPSC_BRANDHASBEENEDITED', 'Марката беше редактирана.');
199
+ define('TXT_WPSC_SURETODELETEPRODUCT', 'Сигурни ли сте, че искате да изтриете този продукт?');
200
+ define('TXT_WPSC_ADDBRAND', 'Добавете марка');
201
+ define('TXT_WPSC_DISPLAYBRANDS', 'Покажи марките');
202
+ define('TXT_WPSC_EDITBRAND', 'Редактирайте марка');
203
+ define('TXT_WPSC_ADD', 'Добави');
204
+ define('TXT_WPSC_ADD_NEW_FORM', 'Добави ново поле за попълване');
205
+ define('TXT_WPSC_SAVE_CHANGES', 'Запази промените');
206
+
207
+ define('TXT_WPSC_CATEGORYHASBEENEDITED', 'Категорията беше редактирана.');
208
+ define('TXT_WPSC_DISPLAYCATEGORIES', 'Покажи категориите');
209
+ define('TXT_WPSC_ADDCATEGORY', 'Добави категория');
210
+ define('TXT_WPSC_EDITCATEGORY', 'Редактирай категория');
211
+ define('TXT_WPSC_ALLCATEGORIES', 'Всички категории');
212
+
213
+ define('TXT_WPSC_DISPLAYVARIATIONS', 'Покажи разновидностите');
214
+ define('TXT_WPSC_ADDVARIATION', 'Добави група разновидности');
215
+ define('TXT_WPSC_EDITVARIATION', 'Редактирай група разновидности');
216
+ define('TXT_WPSC_VARIATIONHASBEENEDITED', 'Разновидността беше редактирана.');
217
+ define('TXT_WPSC_VARIATION_VALUES', 'Величини на разновидностите');
218
+ define('TXT_WPSC_REMOVE_SET', 'Изтрий тази група'); //this needs to be translated
219
+
220
+ define('TXT_WPSC_SELECT_PARENT', 'Избери родителска категория');
221
+ define('TXT_WPSC_PRODUCTHASBEENEDITED', 'Продуктът беше редактиран.');
222
+ define('TXT_WPSC_ADDPRODUCT', 'Добави продукт');
223
+ define('TXT_WPSC_DISPLAYPRODUCTS', 'Покажи продукти');
224
+ define('TXT_WPSC_PLEASESELECTACATEGORY', 'Моля, изберете категория');
225
+ define('TXT_WPSC_STOCK', 'Склад');
226
+ define('TXT_WPSC_PNP', 'PnP'); // да се преведе
227
+ define('TXT_WPSC_EDITITEM', 'Редактирай продукта');
228
+ define('TXT_WPSC_PRODUCTDETAILS', 'Детайли на продукта');
229
+ define('TXT_WPSC_SELECT_PRODUCT', 'Изберете съшествуващ продукт');
230
+ define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', '(въведете тук детайлите за вашия продукт)');
231
+ define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', 'Допълнително описание на продукта');
232
+ define('TXT_WPSC_ADDITEM', 'Добави продукт');
233
+ define('TXT_WPSC_CHOOSEACATEGORY', 'Изберете категория');
234
+ define('TXT_WPSC_CHOOSEABRAND', 'Изберете марка');
235
+ define('TXT_WPSC_USETHEACTUALIMAGE', 'използвай реалните размери на изображението. Не променяй размерите.');
236
+ define('TXT_WPSC_DISPLAYPURCHASES', 'Детайли за поръчките');
237
+ define('TXT_WPSC_ID', 'ID');
238
+ define('TXT_WPSC_TRANSACTIONSTATUS', 'Статус на разплащането');
239
+ define('TXT_WPSC_DATE', 'Дата');
240
+ define('TXT_WPSC_VIEWDETAILS', 'Детайли'); //Text has changed - translation is needed
241
+ define('TXT_WPSC_STATUS', 'Статус');
242
+ define('TXT_WPSC_SUCCESSFUL', 'Успешно');
243
+ define('TXT_WPSC_FAILED', 'Неуспешно');
244
+ define('TXT_WPSC_GST', 'ДДС');
245
+ define('TXT_WPSC_PP', 'P&amp;P');
246
+ define('TXT_WPSC_TOTAL', 'Всичко');
247
+ define('TXT_WPSC_FINALTOTAL', 'Всичко общо');
248
+ define('TXT_WPSC_CUSTOMERDETAILS', 'Детайли за клиента');
249
+ define('TXT_WPSC_USERSCARTWASEMPTY', 'Количката на този потребител беше празна');
250
+ define('TXT_WPSC_GOBACK', 'Обратно');
251
+ define('TXT_WPSC_THANKSAPPLIED', 'Благодарим Ви. Вашите промени бяха отразени.');
252
+ define('TXT_WPSC_FORM_FIELDS', 'Възможности за приключване на поръчката');
253
+ define('TXT_WPSC_PAYMENTGATEWAY2', 'Възможности за разплащане');
254
+ define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', 'Моля, изберете начин на плащане');
255
+ define('TXT_WPSC_PAYMENTGATEWAYNOTE', '<strong>Забележка:</strong> Тази версия на e-Commerce плъгина позволява разплащания само с PayPal.<br /><br />Ако желаете по-професионално, а не само с PayPal решение, ние можем да ви предложим <a href="http://www.instinct.co.nz/blogshop">златна версия на e-Commerce</a>, чийто интерфейс е подобен на authorize.net, DPS (www.dps.co.nz), и paystation (www.paystation.co.nz).');
256
+ define('TXT_WPSC_URLSETTINGS', 'URL настройки');
257
+ define('TXT_WPSC_PRODUCTLISTURL', 'URL на списък с продуктите');
258
+ define('TXT_WPSC_SHOPPINGCARTURL', 'URL на количката за пазаруване');
259
+ define('TXT_WPSC_CHECKOUTURL', 'URL за финализиране на поръчката');
260
+ define('TXT_WPSC_TRANSACTIONDETAILSURL', 'URL за подробности по разплащането');
261
+ define('TXT_WPSC_PRESENTATIONSETTINGS', 'Презентационни настройки');
262
+ define('TXT_WPSC_CARTLOCATION', 'Местоположение на количката');
263
+ define('TXT_WPSC_SIDEBAR', 'Странично меню');
264
+ define('TXT_WPSC_PAGE', 'Страница');
265
+ define('TXT_WPSC_WIDGET', 'Widget'); //uses the English word
266
+ define('TXT_WPSC_NEEDTOENABLEWIDGET', 'За да използвате тази функция, трябва да активиране плъгина за widgets');
267
+ define('TXT_WPSC_MANUAL', 'Ръководство');
268
+ define('TXT_WPSC_SHOWCATEGORIESBRANDS', 'Покажи Категории/Марки');
269
+ define('TXT_WPSC_BOTH', 'Двете');
270
+ define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', 'Размери на миниатюрата за продукт по подразбиране');
271
+ define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', 'Размери на миниатюрата за категория по подразбиране');
272
+ define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', 'Покажи пощенски и опаковъчни разходи');
273
+ define('TXT_WPSC_YES', 'Да');
274
+ define('TXT_WPSC_NO', 'Не');
275
+ define('TXT_WPSC_SHOWSPECIALS', 'Показвай промоции в страничното меню');
276
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Покажи оцениките за продуктите');
277
+ define('TXT_WPSC_CURRENCYSETTINGS', 'Настройки за валута');
278
+ define('TXT_WPSC_GSTTAXRATE', 'процент за ДДС');
279
+ define('TXT_WPSC_CURRENCYTYPE', 'Вид валута');
280
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Местоположение на знака за валутата');
281
+ define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', 'Стандартни пощенски и опаковъчни разходи');
282
+ define('TXT_WPSC_ADMINISTRATIONSETTINGS', 'Админмистративни настройки');
283
+ define('TXT_WPSC_MAXDOWNLOADSPERFILE', 'Максимално допустими изтегляния за файл');
284
+ define('TXT_WPSC_PURCHASELOGEMAIL', 'Имейл за детайлите по поръчката');
285
+ define('TXT_WPSC_REPLYEMAIL', 'Имейл за отговор');
286
+ define('TXT_WPSC_BRANDNOCAP', 'марка');
287
+ define('TXT_WPSC_CATEGORYNOCAP', 'категория');
288
+ define('TXT_WPSC_UDPATING', 'Надстройване');
289
+ define('TXT_WPSC_UPDATING', 'Надстройване');
290
+ define('TXT_WPSC_MOREDETAILS', 'Повече детайли');
291
+ define('TXT_WPSC_ADDTOCART', 'Добави в поръчки');
292
+ define('TXT_WPSC_AVGCUSTREVIEW', 'Средна оценка на клиентите');
293
+ define('TXT_WPSC_YOURRATING', 'Вашата оценка');
294
+ define('TXT_WPSC_RATING_SAVED', 'Записано');
295
+ define('TXT_WPSC_RATETHISITEM', 'Оцени този продукт');
296
+ define('TXT_WPSC_PRODUCTSOLDOUT', 'Този продукт е изчерпан.');
297
+ define('TXT_WPSC_NOITEMSINTHIS', 'Няма продукти в тази');
298
+ define('TXT_WPSC_CATEGORYORBRAND', 'категория или марка');
299
+ define('TXT_WPSC_PLEASECHOOSEA', 'Моля, изберете');
300
+ define('TXT_WPSC_PRODUCT', 'Продукт');
301
+ define('TXT_WPSC_QUANTITY', 'количество');
302
+ define('TXT_WPSC_QUANTITY_SHORT', 'к-во'); //translation needed
303
+ define('TXT_WPSC_APPLY', 'Приложи');
304
+ define('TXT_WPSC_MAKEPAYMENT', 'Извърши плащане');
305
+ define('TXT_WPSC_EMPTYSHOPPINGCART', 'Изпразни количката');
306
+ define('TXT_WPSC_TOTALPRICE', 'Цена на всички покупки');
307
+ define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', 'Няма покупки във Вашата количка');
308
+ define('TXT_WPSC_EMAILMSG1', "Благодарим Ви! Вашата поръчката е приета, всички продукти, определени за доставка ще бъдат експедирани възможно най-скоро, всички закупени файлове за изтегляне можете да изтеглите веднага от връзките на тази страница.\n\r\n\rВсички цени включват ДДС, пощенски и опаковъчни такси, там, където е необходимо.\n\r\n\rВие закупихте следните продукти:\n\r\n\r");
309
+ define('TXT_WPSC_EMAILMSG2', ".\n\rТези продукти бяха закупени:\n\r\n\r");
310
+ define('TXT_WPSC_CLICKTODOWNLOAD', 'Щракнете тук за изтегляне');
311
+ define('TXT_WPSC_DOWNLOAD', 'Изтегляне');
312
+ define('TXT_WPSC_YOURTRANSACTIONID', 'Вашият разплащателен номер');
313
+ define('TXT_WPSC_TRANSACTIONID', 'Номер на разплащане');
314
+ define('TXT_WPSC_PURCHASERECEIPT', 'Бон за покупката');
315
+ define('TXT_WPSC_PURCHASEREPORT', 'Отчет за покупката');
316
+ define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', 'Разплащането е успешно');
317
+ define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', 'Разплащането не бе осъществено');
318
+ define('TXT_WPSC_GOBACKTOCHECKOUT', 'Върнете се при приключване на поръчката');
319
+ define('TXT_WPSC_SPECIALPRICE', 'Промоционална цена');
320
+
321
+ define('TXT_WPSC_INSTRUCTIONS', '
322
+ Стъпки при инсталиране
323
+ <ul class=\'installation\'>
324
+ <li>Разархивирайте съдържанието на zip файла в папка wp-content/plugins.</li>
325
+ <li>Активирайте плъгина от страницата за плъгини на Wordpress</li>
326
+ <li>Отидете на "Payment Gateway Options" (Възможности за разплащане) в таб "e-Commerce" и въведете необходимите детайли. (Начинът за плащане чрез Paypal по подразбиране е paypal sandbox)</li>
327
+ <li>Създайте категории, като използвате страниците за категории и продукти</li>
328
+ </ul>
329
+
330
+ <p>Ако надстройвате от предишна версия на плъгина, препоръчваме ви да деактивирате и активирате отново плъгина от страницата за плъгини на Wordpress. </p>
331
+
332
+ <h2>Надстройки и модули</h2>
333
+
334
+ <p>Ще намерите повече информация за следните WP e-Commerce модули като посетите уебсайта на <a href="http://www.instinct.co.nz/blogshop">Instinct BlogShop</a>.</p>
335
+
336
+ <ul class=\'installation\'>
337
+ <li>Злато</li>
338
+ <li>Пъхни в количката - магазин</li>
339
+ <li>Аудио плеър</li>
340
+ <li>Изглед по решетка</li>
341
+ </ul>
342
+
343
+ <h2>Списък с желания</h2>
344
+ <p>Ако желаете нова функционалност, която в момента не се поддържа от WP e-Commerce, тук можете да <a href="http://www.instinct.co.nz/contact-us/">направите поръчка за изработване</a> или да го добавите към списъка с желания във <a href="http://instinct.co.nz/blogshop/support-forums/">форумите</a>.
345
+
346
+ <h2>Съвети за потребителски настройки</h2>
347
+ <p><strong>Tax</strong><br />Ако е необходимо, можете да въведете необходимите данни за ДДС и други данъци в "Настройки за ДДС/данъци" в страницата "Опции" в таб "e-Commerce".</p>
348
+ <p><strong>Изпращане на детайли за поръчните по имейл</strong><br />Ако добавите имейл адрес за изпращане на детайли за поръчките, това ще бъде имейлът, на който ще се изпращат детайли, всеки път, когато бъде направена поръчка.</p>
349
+ <p><strong>Скриване на страници</strong><br />
350
+ За да предотвратите появата на количката за пазаруване, Приключване на поръчката и Детайли по поръчката в списъка със страниците, първо трябва да намерите техните абсолютни адреси.<br />
351
+ <br />Тогава трябва да редактирате файла от използваната тема, в който се описват и показват страници. Обикновено това е sidebar.php, там трябва да откриете ред, подобен на:<br />
352
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;/h2&gt;\' ); ?&gt;"<br />
353
+ и да го смените с<br />
354
+ "&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;h2&gt;&amp;exclude=3,4,5\'); ?&gt;"<br />
355
+ <br />Думата "exclude" казва кои страници да не бъдат показвани. Сменете 3,4,5 с абсолютните адреси на страниците, които искате да не се виждат. </p>
356
+ <p><strong>Функции за изображенията</strong><br />
357
+ Ако вашият сървър няма инсталирани PHP image functions, вие няма да можете да променяте размерите на изображенията след като те бъдат качени на сървъра.</p>
358
+ <p><strong>Абсолютни адреси</strong><br />
359
+ По този въпрос правим каквото можем.
360
+ За момента не сме открили наистина добър метод да прескочим задължителните променливи от страница на страница, използвайки абсолютни адреси, които не използват mod_rewrite, ако не можете да използвате mod_rewrite, възможно е плъгина да не функционира с включена опция за абсолютни адреси.</p>
361
+ <p><strong>Javascript и Ajax </strong><br />
362
+ e-commerce lite използва Ajax, количката, която потребителят вижда, може да работи без Javascript, но Административните страници, (по-специално страниците Продукти и Категории) не. За да използвате Административната секция, вие е необходим съвременен уеб-браузер с включен Javascript. (Internet Explorer 6 или по-нов, Firefox 1.0 или по-нов, старите версии на тези браузъри не са тествани и е възможно да не работят.</p>
363
+ <p><strong>Повече за Flickr</strong><br />
364
+ Създали сме известен брой <a href="http://www.google.com/search?q=flickr+wp+e-commerce&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a">възуални упътвания</a> за Flickr.
365
+
366
+ ');
367
+
368
+
369
+ define('TXT_WPSC_SHIPPINGSETTINGS', 'Настройки за доставката');
370
+ define('TXT_WPSC_BASE_LOCAL', 'Основни настройки за вътрешна доставка');
371
+ define('TXT_WPSC_BASE_INTERNATIONAL', 'Основни настройки за международна доставка');
372
+ define('TXT_WPSC_BASE_COUNTRY', 'Страна/регион по подразбиране');
373
+
374
+ define('TXT_WPSC_SHIPPING_DETAILS', 'Допълнителни разходи за доставка'); // this needs updating
375
+ define('TXT_WPSC_LOCAL_PNP', 'Местна такса за доставка'); // this needs updating
376
+ define('TXT_WPSC_INTERNATIONAL_PNP', 'Международна такса за доставка'); // this needs updating
377
+ define('TXT_WPSC_SHIPPING_NOTE', 'Забележка: цената за доставка се начислява веднъж за определен продукт, независимо от поръчаните количества.');
378
+ define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Поле за страна');
379
+ define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(изберете кое поле от страницата за приключване на поръчка да използвате за избор на страна за доставка)');
380
+
381
+ define('TXT_WPSC_SHIPPING', 'Доставка');
382
+ define('TXT_WPSC_EMAIL_FORM_FIELD', 'Поле за имейл');
383
+ define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(изберете кое поле от страницата за приключване на поръчка да използвате за избор на имейл на клиента)');
384
+
385
+
386
+ define('TXT_WPSC_PRODUCTIMAGES', 'Изображения на продукти');
387
+ define('TXT_WPSC_PRODUCTDOWNLOAD', 'Изтегляне на продукт');
388
+ define('TXT_WPSC_SHOWTHUMBNAILS', 'Покажи миниатюри');
389
+ define('TXT_WPSC_ADD_ADDITIONAL_IMAGE', 'Прибави допълнително изображение');
390
+ define('TXT_WPSC_DELETE_IMAGE', 'Изтрий изображението');
391
+ define('TXT_WPSC_GOLD_OPTIONS', 'Опции за план "Злато"');
392
+ define('TXT_WPSC_ACTIVATE_SETTINGS', 'Настойки за активация');
393
+ define('TXT_WPSC_ACTIVATION_KEY', 'Ключ за активация');
394
+ define('TXT_WPSC_THANKSACTIVATED', 'Благодарим Ви. План "Злато" беше активиран.');
395
+ define('TXT_WPSC_NOTACTIVATED', 'Съжаляваме, API ключът е невалиден.');
396
+ define('TXT_WPSC_DEFAULT', 'По подразбиране');
397
+ define('TXT_WPSC_LIST', 'Списък');
398
+ define('TXT_WPSC_VISIBLE', 'Видим');
399
+ define('TXT_WPSC_DELETE_PRODUCT', 'Изтрий продукт');
400
+ define('TXT_WPSC_ADDITIONAL_IMAGE', 'Допълнително изображение');
401
+ define('TXT_WPSC_GATEWAY_OPTIONS', 'възможности за приключване');
402
+ define('TXT_WPSC_SHIPPING_COUNTRY', 'Изберете страна за доставка');
403
+ define('TXT_WPSC_CONFIRM_TOTALS', 'Потвърдете крайната сума, преди да платите:');
404
+ define('TXT_WPSC_CHECKOUT_FORM_FIELDS_DESCRIPTION', 'Тук можете да направите потребителски настройки за това кои полета да бъдат използвани при приключване на поръчката. Страницата за приключване на поръчката е тази, в която се събира важна информация за клиента, както и данни за поръчката.');
405
+ define('TXT_WPSC_PAYMENT_OPTIONS', 'Възможности за разплащане');
406
+ define('TXT_WPSC_PAYMENT_DESCRIPTION', 'Изберете кои възможности за разплащане желаете да предоставите при приключване на поръчката. По подразбиране клиентите могат да плащат само с кредитна карта, но вие може да желаете да им дадете възможност за плащане в брой. В такъв случай трябва да изберере "кредитна карта" + "плащане в брой"');
407
+
408
+ define('TXT_WPSC_DEFAULT_GATEWAY_ONLY', ' само');
409
+ define('TXT_WPSC_PLUS_MANUAL_PAYMENT', ' плюс плащане в брой');
410
+ define('TXT_WPSC_PAYMENT_METHOD', 'Начин на плащане');
411
+ define('TXT_WPSC_PAY_USING', 'Плати, използвайки');
412
+ define('TXT_WPSC_PAY_MANUALLY', 'Плати с чек/банков превод');
413
+ define('TXT_WPSC_CREDIT_CARD', 'кредитна карта');
414
+ define('TXT_WPSC_ADJUSTABLE_QUANTITY', 'Покажи количеството в списъка');
415
+ define('TXT_WPSC_RSS_FEED_HEADER', 'Абонирайте се за вашите поръчки');
416
+ define('TXT_WPSC_RSS_FEED_LINK', 'Абонирайте се за RSS новини');
417
+ define('TXT_WPSC_RSS_FEED_TEXT', 'свързани с вашите поръчки');
418
+ define('TXT_WPSC_INITIAL_SETUP', 'Създадени настройки по подразбиране.');
419
+ define('TXT_WPSC_PLUGIN_NEWS_HEADER', 'Новини за плъгина');
420
+
421
+
422
+ define('TXT_WPSC_PLUGIN_NEWS', '
423
+
424
+ <a href="http://instinct.co.nz/blogshop/products-page/" target="_blank">WP DropShop Модулът</a> е последният и най-модерен начин за пазаруване в момента в интернет. В комбинация с "каталогов изглед" всички ще говорят за вашия сайт!<br/><br/>
425
+
426
+ <a href="http://instinct.co.nz/blogshop/products-page/" target="_blank">Модулът за каталогов изглед</a> е визуален модул, създаден за да подобри изгледа на страницата с продукти.<br/><br/>
427
+
428
+ <a href="http://www.instinct.co.nz/wp-campaign-monitor/100">Модулът за наблюдение на продажбите</a> е имейл бюлетин за потребители на WP, които искат да изпращат информация за промоции, да следят резултатите от продажбите и да редактират списък с абонати. Последната версия на модула е интегрирана с e-commerce lite. Така вие ще може да изпращате на клиентите си бюлетини и допълнителна информация.
429
+
430
+ ');
431
+
432
+
433
+ define('TXT_WPSC_POWERED_BY', 'Този магазин се поддържа от ');
434
+
435
+ define('TXT_WPSC_NO_PURCHASES', 'Все още няма направени покупки.');
436
+
437
+
438
+ define('TXT_WPSC_DELIVERY_ADDRESS', 'Адрес за доставка');
439
+ define('TXT_WPSC_DELIVERY_CITY', 'Град за доставка');
440
+ define('TXT_WPSC_DELIVERY_COUNTRY', 'Страна за доставка');
441
+ define('TXT_WPSC_MP3_SETTINGS', 'MP3 настройки');
442
+ define('TXT_WPSC_MP3_SETTINGS_DESCRIPTION', 'За да създаде 30-секунден MP3 клип, този плъгин има нужда от <a href=\'http://sox.sourceforge.net/\'>SoX</a> компонент с поддръжка на MP3. Въведете връзката до SoX тук.');
443
+ define('TXT_WPSC_SOX_PATH', 'SoX връзка');
444
+ define('TXT_WPSC_PREVIEW', 'Предварителен изглед');
445
+ define('TXT_WPSC_DOWNLOAD_CSV', 'Изтегли CSV');
446
+ define('TXT_WPSC_PREVIEW_FILE', 'Предварителен изглед на файла');
447
+ define('TXT_WPSC_NEW_PREVIEW_FILE', 'Нов предварителен изглед на файла');
448
+ define('TXT_WPSC_REPLACE_PRODUCT', 'Смени продукта');
449
+ define('TXT_WPSC_TOTALSHIPPING', 'Всичко доставки');
450
+ define('TXT_WPSC_DISPLAY_FRONT_PAGE', 'Покажи на първа страница');
451
+ define('TXT_WPSC_SEARCH_FOR', 'Търси за');
452
+ define('TXT_WPSC_YOUR_SEARCH_FOR', 'Вашето търсене за');
453
+ define('TXT_WPSC_RETURNED_NO_RESULTS', 'не беше успешно. Няма резултати.');
454
+ define('TXT_WPSC_POSTAGE', 'Пощенски разходи');
455
+ define('TXT_WPSC_SUBTOTAL', 'Subtotal');
456
+
457
+
458
+ //everything under here needs translations, added after 19/1/2007
459
+
460
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Моля, въведете валиден');
461
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Моля, въведете името си.');
462
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Моля, въведете фамилното си име.');
463
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Моля, въведете валиден имейл адрес.');
464
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Моля, напишете пълния си адрес.');
465
+ define('TXT_WPSC_PLEASEENTERAVALIDCITY', 'Моля, въведете град.');
466
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Моля, въведете валиден телефонен номер.');
467
+ define('TXT_WPSC_PLEASESELECTCOUNTRY', 'Моля, изберете страна от списъка.');
468
+ define('TXT_WPSC_PLEASEAGREETERMSANDCONDITIONS', 'Моля, отбележете опцията за Условия зьа ползване. В противен случай, за съжаление няма да можем да приемем поръчката Ви.');
469
+ define('TXT_WPSC_POSITION', 'Позиция');
470
+
471
+ define('TXT_WPSC_DELIVERY_REGION', 'Регион за доставка');
472
+
473
+
474
+ define('TXT_WPSC_GENERAL_SETTINGS', 'Общи настройки');
475
+ define('TXT_WPSC_TAX_SETTINGS', 'ДДС настройки');
476
+ define('TXT_WPSC_POSTAGE_AND_TAX', 'Пощенски разходи и ДДС');
477
+ define('TXT_WPSC_GRID', 'Решетка/Каталогов изглед');
478
+ define('TXT_WPSC_CANT_MOVE_CATEGORY', 'Не можете да премествате категория заедно с подкатегории.');
479
+ define('TXT_WPSC_SURETODELETECATEGORY', 'Сигурни ли сте, че искате да изтриете тази категория? Ако тя има подкатегории, те ще бъдат изтрити също.');
480
+ define('TXT_WPSC_VARIATION', 'Разновидност');
481
+ define('TXT_WPSC_OVER_TWO_VARIATIONS', 'Функцията за управление на цените и складовите наличности няма да работи, ако имате повече от две разновидности.');
482
+ define('TXT_WPSC_PRICE_AND_STOCK_CONTROL', 'Управление на цените и складовите наличности') ;
483
+
484
+ // pe.{
485
+ define('TXT_WPSC_CATSBRANDSLOCATION', 'Местоположение на категориите и марките');
486
+ define('TXT_WPSC_DESCITEMSEPARATOR', ' : ');
487
+ define('TXT_WPSC_SEARCHITEMSEPARATOR', ' : ');
488
+ define('TXT_WPSC_SINGLE_SHIPPING_COUNTRY', 'Страна за доставка:');
489
+ define('TXT_WPSC_ADD_ANOTHER_VARIATION', 'Добави разновидност');
490
+ // }.pe
491
+ define('TXT_WPSC_PRODUCT_CATEGORIES', 'Продуктови категории');
492
+ define('TXT_WPSC_THANKS_DELETED', 'Благодарим ви, детайлите по поръчката бяха изтрити');
493
+ define('TXT_WPSC_PRODUCT_IMAGE_PREVIEW', 'Изображение на продукта');
494
+ define('TXT_WPSC_PRODUCT_THUMBNAIL_PREVIEW', 'Миниатюра на продукта');
495
+ define('TXT_WPSC_REMOVE_LOG', 'Изтрий този запис от детайлите по поръчката');
496
+ define('TXT_WPSC_CATSANDBRAND', 'Категории и марки');
497
+ define('TXT_WPSC_GOLD_DROPSHOP', 'DropShop магазин');
498
+ define('TXT_WPSC_NEEDTOENABLEDROPSHOP', 'За да ползвате тази функция е необходимо да инсталирате план "Злато" и "DropShop магазин"');
499
+ define('TXT_WPSC_DRAG_ITEM_HERE', 'Просто свалете с мишката продукта, за да го добавите към поръчката си.');
500
+ define('TXT_WPSC_SHOWCATEGORYTHUMBNAILS', 'Покажи миниатюрите на категориите');
501
+ define('TXT_WPSC_SHOPPING_CART', 'Количка за пазаруване');
502
+ define('TXT_WPSC_SHOW_SLIDING_CART', 'Покажи подвижна количка');
503
+ define('TXT_WPSC_PREVIEW_FILE', 'Закачи файл за преглед');
504
+ define('TXT_WPSC_PREVIEW_FILE_NOTE', 'Забележка: Ако не качите файл за преглед и Вашият сървър има sox компонент с поддръжка на MP3, то файлът за прегледа ще бъде автоматично създаден за Вас.');
505
+ define('TXT_WPSC_PURCHASE_NUMBER', 'Поръчка номер');
506
+ define('TXT_WPSC_FILTER_ORDER', 'Филтриране на поръчките');
507
+ define('TXT_WPSC_SHOW_SEARCH', 'Покажи търсенето');
508
+ define('TXT_WPSC_LOG_CURRENT_MONTH', 'Покажи резултатите от текущия месец');
509
+ define('TXT_WPSC_LOG_PAST_THREE_MONTHS', 'Покажи резултатите от последните три месеца');
510
+ define('TXT_WPSC_LOG_ALL', 'Покажи всички резултати');
511
+ define('TXT_SHOW_IMAGES_ONLY', 'Покажи само изображенията');
512
+ define('TXT_WPSC_SHOW_GALLERY', 'Покажи галерия с миниатюри');
513
+ define('TXT_WPSC_PLEASE_SELECT', 'Моля, изберете');
514
+ define('TXT_WPSC_TXN_ID', 'Номер на превода');
515
+ define('TXT_WPSC_SINGLE_PRODUCTTHUMBNAILSIZE', 'Размер на изображението за един продукт');
516
+ define('TXT_WPSC_RESET', 'Занули');
517
+ define('TXT_WPSC_ORDER_PENDING', 'Благодарим Ви. Заявката е в процес на обработка. Ще получите имейл, когато заявката Ви е приета.');
518
+ define('TXT_WPSC_ORDER_FAILED', 'Съжаляваме, но заявката Ви не може да бъде приета. Най-вероятната причина за това е недостатъчно количество във Вашата сметка.');
519
+ // Adrian - added for the options I added
520
+ define('TXT_WPSC_SHOW_CATEGORY_COUNT', 'Покажи брояч за продукти за всяка категория');
521
+ define('TXT_WPSC_CATSPRODS_DISPLAY_TYPE', 'Показване на категории/продукти');
522
+ define('TXT_WPSC_CATSPRODS_TYPE_CATONLY', 'Само категории (Показване на всички продукти)');
523
+ define('TXT_WPSC_CATSPRODS_TYPE_SLIDEPRODS', 'Подвижни категории (по 1 продукт на всяка станица)');
524
+ // Adrian - END new added options
525
+ define('TXT_WPSC_ORDER_DETAILS', 'Детайли за поръчката');
526
+ define('TXT_WPSC_SAVE_PROFILE', 'Запиши профила');
527
+ define('TXT_WPSC_USERACCOUNTURL', 'URL на потребителски акаунт');
528
+ define('TXT_WPSC_MUST_BE_LOGGED_IN', 'Трябва да влезете в системата,за да използвате тази страница. Моля, използвайте формата долу, за да влезете във Вашия акаунт.');
529
+ define('TXT_WPSC_YOUR_ACCOUNT', 'Вашият акаунт');
530
+
531
+ define('TXT_WPSC_YOU_JUST_ADDED', 'Вие добавихте "[product_name]" към Вашата поръчка.');
532
+ define('TXT_WPSC_SORRY_NONE_LEFT', 'Съжаляваме, но продуктът "[product_name]" не е в наличност.');
533
+
534
+ define('TXT_WPSC_CONTINUE_SHOPPING', 'Продължете пазаруването');
535
+ define('TXT_WPSC_ITEM_GONE_OUT_OF_STOCK', 'Изглежда, че някой от поръчаните продукти вече не е в наличност, моля, върнете се и редактирайте вашата поръчка.');
536
+ define('TXT_WPSC_DISPLAY_FANCY_NOTIFICATIONS', 'Покажи съобщения за луксозни поръчки');
537
+ define('TXT_WPSC_IF_USER_CHECKOUT', 'Ако имате потребителски акаунт, моля ');
538
+ define('TXT_WPSC_LOG_IN', 'влезте в него.');
539
+ define('TXT_WPSC_IS_DONATION', 'е дарение');
540
+ define('TXT_WPSC_DONATION', 'Дарение');
541
+ define('TXT_WPSC_DONATION_LC', 'дарение');
542
+ define('TXT_WPSC_DONATION_SHIPPING', 'Няма доставка за даренията');
543
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT_URL', 'Име на файла на продукта');
544
+ define('TXT_WPSC_FILETOBEPRODUCTURL', 'Забележка: Качете вашия файл в директорията wp-shopping-cart/files и напишете името на файла тук.');
545
+ define('TXT_WPSC_DONATIONS', 'Дарения');
546
+ define('TXT_WPSC_WRONG_FILE_PERMS', 'Следните директории не са свободни за запис: :directory: Няма да можете да качите никакви изображения или файлове тук, докато не смените настройките (permissions) за тези категории, за да ги направите свободни за запис. Най-лесно - chmod - 777.');
547
+ define('TXT_WPSC_RESET_API', 'Занули API ключа');
548
+ define('TXT_WPSC_PRODUCTS_PER_PAGE', 'Продукти на страница');
549
+ define('TXT_WPSC_OPTION_PRODUCTS_PER_PAGE', 'брой на продуктите, които да се показват на една страница');
550
+ define('TXT_WPSC_PAGE_NUMBER_POSITION', 'Местоположение на индекса за номер на страницата');
551
+
552
+
553
+ define('TXT_WPSC_YOUR_BILLING_CONTACT_DETAILS', '1. Вашите детайли');
554
+ define('TXT_WPSC_DELIVER_TO_A_FRIEND', '2. Детайли за доставката');
555
+ define('TXT_WPSC_E_COMMERCE', 'e-Commerce');
556
+ define('TXT_WPSC_THANKS_SAVED', 'Благодарим Ви, Вашите промени бяха запазени.');
557
+ define('TXT_WPSC_REGISTER', 'Регистрирай се');
558
+ define('TXT_WPSC_TAX', 'Данъци');
559
+
560
+ define('TXT_WPSC_USE_SHIPPING', 'Използвай доставка');
561
+ define('TXT_WPSC_USE_SHIPPING_DESCRIPTION', 'Ако продавате само файлове за сваляне, трябва да изберете "Не", за да премахнете всички опции за доставка на Вашия сайт.');
562
+
563
+ define('TXT_WPSC_PAGESETTINGS', 'Настройки за номериране на страниците');
564
+ define('TXT_WPSC_USE_PAGINATION', 'Използвай номериране');
565
+ define('TXT_WPSC_ADD_PRODUCT', 'Добави продукт');
566
+ define('TXT_WPSC_EDIT_PRODUCT', 'Редактирай продукт');
567
+ define('TXT_WPSC_UPDATE_PAGE_URLS', 'Обнови URL на страниците');
568
+ define('TXT_WPSC_VARIATIONS_AND_SPECIALS_DONT_MIX', 'Забележка: Не можете да сложите промоционална цена на продукт с разновидности');
569
+ define('TXT_WPSC_PRODUCT_SPECIALS', 'Промоции на продукти');
570
+ define('TXT_WPSC_SHOW_SHARE_THIS', 'Покажи "Сподели това" (Приятелски препратки)');
571
+ define('TXT_WPSC_SHOW_NO_PRODUCT', 'Без продукт');
572
+ define('TXT_WPSC_CHOOSE_DOWNLOADABLE_PRODUCT', 'Изберете файл за изтегляне за този продукт:');
573
+ define('TXT_WPSC_PLEASECHOOSE', 'Моля, изберете');
574
+
575
+ define('TXT_WPSC_VARIATION_CONTROL', 'Управление на разновидностите');
576
+ define('TXT_WPSC_VARIATION_GRID_CONTROL_SINGLE', ':разновидност1: Управление');
577
+ define('TXT_WPSC_VARIATION_GRID_CONTROL_PAIR', ':разновидност1: and :разновидност2: Управление');
578
+ define('TXT_WPSC_VIEW_PREVIEW_CLIP', 'Виж клипа за преглед');
579
+ define('TXT_WPSC_REQUIRE_REGISTRATION', 'Изисква регистрация');
580
+ define('TXT_WPSC_PLEASE_LOGIN', 'Моля, влезте в акаунта си, или се регистрирайте, за да направите поръчка');
581
+ define('TXT_WPSC_IF_JUST_REGISTERED', 'Ако сте се регистрирали току що, моля проверете имейла си и влезте в акаунта си, преди да направите покупка');
582
+ define('TXT_WPSC_SELECT_THEME', 'Изберете тема');
583
+ define('TXT_WPSC_NEW_ORDER_PENDING_SUBJECT', 'Нова чакаща поръчка');
584
+ define('TXT_WPSC_NEW_ORDER_PENDING_BODY', "Има нова поръчка, чакаща за обработка: \n\r ");
585
+ ?>
wp-shopping-cart/languages/DE_de.php ADDED
@@ -0,0 +1,655 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ This is a language file for the WP Shopping Cart plugin version 3.5
4
+
5
+ I put some more translations in here and sort it like the english file
6
+ @author Damian Gawenda <info@damiangawenda.com>
7
+
8
+ */
9
+ define('TXT_WPSC_ADMINNOTES', 'H&auml;ndler Notizen');
10
+ define('TXT_WPSC_HIDEADDNAMELINK', 'Produktnamen Links verstecken');
11
+ define('TXT_WPSC_ADMINMENU', 'Admin Menu');
12
+ define('TXT_WPSC_USEONLYEXTERNALLINK', 'Hinweis: Nur nutzen, falls externe Links existieren');
13
+ define('TXT_WPSC_EXTERNALLINK', 'Externer Link');
14
+ define('TXT_WPSC_BUTTONTYPE', 'Button Typ');
15
+ define('TXT_WPSC_BUYNOW', 'Jetzt kaufen');
16
+ define('TXT_WPSC_ASSOCIATEWITHFILE', 'Mit Datei verkn&uuml;pfen?');
17
+ define('TXT_WPSC_SHOWLIVESEARCH', 'Live Suche verwenden');
18
+ define('TXT_WPSC_USPS_USERID', 'USPS ID');
19
+ define('TXT_WPSC_SHIPPING_DETAILS', 'Versandkosten Details');
20
+ define('TXT_WPSC_SHOWADVANCEDSEARCH', 'Erweiterte Suche anzeigen');
21
+ define('TXT_WPSC_GOOGLEMECHANTKEY', 'Google Mechat Key');
22
+ define('TXT_WPSC_GOOGLEMECHANTID', "Google Mechant ID");
23
+ define('TXT_WPSC_IMAGESIZEINFO', 'Hinweis: wenn dieses Feld freigelassen wird, wird die Gr&ouml;&szlig;e nicht ver&auml;ndert');
24
+ define('TXT_WPSC_ENDLESSSUBSCRIPTION', 'Permenantes Abonnement?');
25
+ define('TXT_WPSC_RECEIVED', 'Bestellung empfangen');
26
+ define('TXT_WPSC_ORDER_STATUS', 'Bestellstatus');
27
+ define('TXT_WPSC_ORDER_SUMMARY', 'Bestell&uuml;bersicht');
28
+ define('TXT_WPSC_LANGUAGE', 'Sprache');
29
+ define('TXT_WPSC_ACCEPTED_PAYMENT', 'Zahlung aktzeptiert');
30
+ define('TXT_WPSC_JOB_DISPATCHED', 'Abgefertigt');
31
+ define('TXT_WPSC_PROCESSED', 'abgeschlossene Bestellung');
32
+ define('TXT_WPSC_ECOMMERCE', 'e-Commerce');
33
+ define('TXT_WPSC_OPTIONS', 'Shop Optionen');
34
+ define('TXT_WPSC_ADDPRODUCTS', 'Produkte hinzuf&uuml;gen');
35
+ define('TXT_WPSC_SENDSMS', 'SMS senden');
36
+ define('TXT_WPSC_PRODUCTS', 'Produkte');
37
+ define('TXT_WPSC_ADDCATEGORY', 'Kategorie hinzuf&uuml;gen');
38
+ define('TXT_WPSC_CATEGORIES', 'Kategorien');
39
+ define('TXT_WPSC_BRANDS', 'Marken');
40
+ define('TXT_WPSC_VARIATIONS', 'Varianten');
41
+ define('TXT_WPSC_PURCHASELOG', 'Eink&auml;ufe-Logbuch');
42
+ define('TXT_WPSC_ORDER_LOG', 'Bestellungen');
43
+ define('TXT_WPSC_OLDER_ORDERS', '&Auml;ltere Bestellungen');
44
+ define('TXT_WPSC_ORDER', 'Bestellung');
45
+ define('TXT_WPSC_TOTAL_THIS_MONTH', 'Monatsums&auml;tze');
46
+ define('TXT_WPSC_MONTHLY_REPORT', '6-Monats-Report');
47
+ define('TXT_WPSC_TOTAL_INCOME', 'Summe des Umsatzes');
48
+ define('TXT_WPSC_ACCEPTED_PAYMENTS', '(nur akzeptierte Zahlungen)');
49
+ define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', 'Zahlungsoptionen');
50
+ define('TXT_WPSC_HELPINSTALLATION', 'Hilfe/Upgrade');
51
+ define('TXT_WPSC_EXAMPLECATEGORY', 'Beispielkategorie');
52
+ define('TXT_WPSC_EXAMPLEDETAILS', 'Beispieldetails');
53
+ define('TXT_WPSC_EXAMPLEBRAND', 'Beispielmarke');
54
+ define('TXT_WPSC_PRODUCTIMAGEWIDTH', 'Produkt Bildbreite');
55
+ define('TXT_WPSC_PRODUCTIMAGEHEIGHT', 'Produkt Bildh&ouml;he');
56
+ define('TXT_WPSC_CATEGORYIMAGEWIDTH', 'Kategorie Bildbreite');
57
+ define('TXT_WPSC_CATEGORYIMAGEHEIGHT', 'Kategorie ouml');
58
+ define('TXT_WPSC_PRODUCTLISTURL', 'Ort der Produktliste');
59
+ define('TXT_WPSC_SHOPPINGCARTURL', 'Ort des Einkaufswagens');
60
+ define('TXT_WPSC_CHECKOUTURL', 'Ort der Kasse');
61
+ define('TXT_WPSC_TRANSACTURL', 'Ort der Zahlungsoptionen');
62
+ define('TXT_WPSC_PAYMENTGATEWAY', 'Zu verwendendes Bezahlungs-Gateway');
63
+ define('TXT_WPSC_CARTLOCATION', 'Ort des Einkaufswagens');
64
+ define('TXT_WPSC_SHOWCATEGORYBRANDS', 'Kategorien, Marken oder beides anzeigen');
65
+ define('TXT_WPSC_CURRENCYTYPE', 'W&auml;hrungsoptionen');
66
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Ort des W&auml;hrungssymbols');
67
+ define('TXT_WPSC_GSTRATE', 'MwSt.-Satz');
68
+ define('TXT_WPSC_MAXDOWNLOADS', 'Downloadlimit');
69
+ define('TXT_WPSC_DISPLAYPNP', 'Versandt &amp; Verpackung anzeigen oder verstecken');
70
+ define('TXT_WPSC_DISPLAYSPECIALS', 'Sonderangebote in der Sidebar anzeigen oder verstecken');
71
+ define('TXT_WPSC_POSTAGEAND_PACKAGING', 'Standard Versandt &amp; Verpackung');
72
+ define('TXT_WPSC_PURCHLOGEMAIL', 'eMailadresse an die die Einkaufsbenachrichtigung gesendet wird');
73
+ define('TXT_WPSC_RETURNEMAIL', 'Absendeadresse der Einkaufsbest&auml;tigungen');
74
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'Bezahlungskonditionen');
75
+ define('TXT_WPSC_DEFAULTBRAND', 'Standardmarke');
76
+ define('TXT_WPSC_DEFAULTCATEGORY', 'Standardkategorie');
77
+ define('TXT_WPSC_PAYPALBUSINESS', 'paypal business');
78
+ define('TXT_WPSC_PAYPALURL', 'paypal url');
79
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'zeige Produktbewertungen');
80
+ define('TXT_WPSC_PRODUCTSPAGE', 'Produkte');
81
+ define('TXT_WPSC_CHECKOUT', 'Kasse');
82
+ define('TXT_WPSC_ENTERDETAILS', 'Pers&ouml;nliche Daten');
83
+ define('TXT_WPSC_TRANSACTIONRESULTS', 'Ihre Bestellung');
84
+ define('TXT_WPSC_SELECTACATEGORY', 'W&auml;hlen Sie eine Kategorie');
85
+ define('TXT_WPSC_SELECTABRAND', 'W&auml;hlen Sie eine Marke');
86
+ define('TXT_WPSC_PRODUCTNAME', 'Produktname');
87
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Produktbeschreibung');
88
+ define('TXT_WPSC_ADDITIONALDESCRIPTION', 'Weitere Beschreibung');
89
+ define('TXT_WPSC_PRICE', 'Preis');
90
+ define('TXT_WPSC_TAXALREADYINCLUDED', 'MwSt. bereits enthalten');
91
+ define('TXT_WPSC_SPECIAL', 'Sonderangebot');
92
+ define('TXT_WPSC_PRODUCT_DISPLAY', 'Produkt Anzeige');
93
+
94
+ define('TXT_WPSC_PRODUCTSTOCK', 'Produkte auf Lager');
95
+
96
+ define('TXT_WPSC_UNTICKBOX', 'Hinweis: H&auml;kchen entfernen, um den Wert zu l&ouml;schen');
97
+ define('TXT_WPSC_LIMITED_STOCK', 'Begrenzte Anzahl auf Lager');
98
+
99
+ define('TXT_WPSC_CATEGORY', 'Kategorie');
100
+ define('TXT_WPSC_BRAND', 'Marke');
101
+ define('TXT_WPSC_PRODUCT_VARS', 'Produkt Varianten');
102
+ define('TXT_WPSC_ADD_VAR', 'Varianz hinzuf&uuml;gen');
103
+ define('TXT_WPSC_EDIT_VAR', 'Varianz bearbeiten');
104
+ define('TXT_WPSC_SELECTAVARIATION', 'Varianz ausw&auml;hlen');
105
+ define('TXT_WPSC_NEW_VARIATION', 'Neue Varianz erstellen');
106
+
107
+ define('TXT_WPSC_PRODUCTATT', 'Produktanh&auml;nge');
108
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT', 'Downloadbares Produkt?');
109
+ define('TXT_WPSC_FILETOBEPRODUCT', 'Hinweis: Eine hier hochgeladene Datei ist das zu kaufende Produkt.');
110
+ define('TXT_WPSC_RESIZEIMAGE', 'Bildgr&ouml;&szlig;e &auml;ndern');
111
+ define('TXT_WPSC_DONOTRESIZEIMAGE', 'Gr&ouml;&szlig;e nicht &auml;ndern.');
112
+ // define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'use default height and width');
113
+ // define('TXT_WPSC_USE', 'use');
114
+ // define('TXT_WPSC_PXHEIGHTBY', 'px height by');
115
+ // define('TXT_WPSC_PXWIDTH', 'px width.');
116
+
117
+ // pe.{
118
+ //define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'use default height and width');
119
+ // }.pe
120
+ define('TXT_WPSC_SEPARATETHUMBNAIL', 'seperates Thumbnail verwenden');
121
+ define('TXT_WPSC_USE', 'benutzen'); // Needs Translation
122
+ // pe.{
123
+ define('TXT_WPSC_USEDEFAULTSIZE', 'Standardgr&ouml;sse verwenden');
124
+ define('TXT_WPSC_USESPECIFICSIZE', 'bestimmte Gr&ouml;sse verwenden');
125
+ define('TXT_WPSC_PXHEIGHT', 'px H&ouml;he');
126
+ define('TXT_WPSC_PXWIDTH', 'px breit.');
127
+ // }.pe
128
+
129
+
130
+ define('TXT_WPSC_UPLOADNEWIMAGE', 'Neues Bild hochladen');
131
+ define('TXT_WPSC_DELETEIMAGE', 'Bild l&ouml;schen');
132
+ define('TXT_WPSC_EDIT', 'Bearbeiten');
133
+ define('TXT_WPSC_DELETE', 'L&ouml;schen');
134
+ define('TXT_WPSC_REMOVE', 'Entfernen');
135
+ define('TXT_WPSC_NAME', 'Name');
136
+ define('TXT_WPSC_TYPE', 'Typ');
137
+ define('TXT_WPSC_MANDATORY', 'Pflicht');
138
+ define('TXT_WPSC_DISPLAY_IN_LOG', 'Anzeigen<br /> im Log');
139
+ define('TXT_WPSC_DESCRIPTION', 'Beschreibung');
140
+ define('TXT_WPSC_CATEGORY_PARENT', 'Mutter Kategorie');
141
+ define('TXT_WPSC_IMAGE', 'Bild');
142
+ define('TXT_WPSC_HEIGHT', 'H&ouml;he');
143
+ define('TXT_WPSC_WIDTH', 'Breite');
144
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Bitte geben Sie einen g&uuml;ltigen');
145
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Bitte geben Sie einen g&uuml;ltigen Vornamen ein');
146
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Bitte geben Sie einen g&uuml;ltigen Nachnamen ein');
147
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Bitte geben Sie eine g&uuml;ltige E-Mailadresse ein');
148
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Bitte geben Sie eine g&uuml;ltige Adresse ein');
149
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Bitte geben Sie eine g&uuml;ltige Telefonnummer ein');
150
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'Sie haben den Allgemeinen Gesch&auml;ftsbedingungen nicht zugestimmt');
151
+ define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', 'Es befindet sich nichts in ihrem Einkaufswagen');
152
+ define('TXT_WPSC_SPECIALS', 'Sonderangebote');
153
+ define('TXT_WPSC_BUY', 'Kaufen');
154
+ define('TXT_WPSC_SHOPPINGCART', 'Einkaufswagen');
155
+ define('TXT_WPSC_NUMBEROFITEMS', 'Anzahl');
156
+ define('TXT_WPSC_NOMOREAVAILABLE', 'Dieses Produkt steht zur Zeit nicht mehr zur Verf&uuml;gung.');
157
+ define('TXT_WPSC_EMPTYYOURCART', 'Einkaufwagen leeren');
158
+ define('TXT_WPSC_GOTOCHECKOUT', 'Zur Kasse gehen');
159
+ define('TXT_WPSC_CONTINUESHOPPING', 'Weiter einkaufen');
160
+ define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', 'Ihr Einkaufswagen ist leer');
161
+ define('TXT_WPSC_VISITTHESHOP', 'Zum Online-Shop');
162
+ define('TXT_WPSC_PAGES', 'Seiten');
163
+ define('TXT_WPSC_OUTOF', 'Aus');
164
+ define('TXT_WPSC_VOTES', 'Bewertungen.');
165
+ define('TXT_WPSC_CLICKSTARSTORATE', 'Zum bewerten auf die Sterne klicken');
166
+ define('TXT_WPSC_AVERAGERATINGOF', 'Durchschnittsbewertung');
167
+ define('TXT_WPSC_YOURVOTE', 'Ihre Bewertung');
168
+ define('TXT_WPSC_AVERAGEVOTE', 'Durchschnittsbewertung');
169
+ define('TXT_WPSC_YOUHAVEVOTED', 'Sie haben abgestimmt');
170
+ define('TXT_WPSC_NOVOTES', 'Keine Bewertungen');
171
+ define('TXT_WPSC_1VOTE', '1 Stimme');
172
+ define('TXT_WPSC_VOTES2', 'Stimmen');
173
+ define('TXT_WPSC_PERSONGIVEN', 'Person hat diesem Bild');
174
+ define('TXT_WPSC_PERSONGIVEN2', 'Sterne gegeben.');
175
+ define('TXT_WPSC_PEOPLEGIVEN', 'Personen haben diesem Bild');
176
+ define('TXT_WPSC_PEOPLEGIVEN2', 'Sterne gegeben');
177
+ define('TXT_WPSC_ITEMHASBEENADDED', 'Das Produkt wurde hinzugef&uuml;gt');
178
+ define('TXT_WPSC_ITEMHASNOTBEENADDED', 'Das Produkt wurde nicht hinzugef&uuml;gt');
179
+ define('TXT_WPSC_ADDNEWCATEGORY', 'Neue Kategorie hinzuf&uuml;gen');
180
+ define('TXT_WPSC_SUBMIT', 'Senden');
181
+ define('TXT_WPSC_SELECTAVALIDCATEGORY', 'Bitte w&auml;hlen Sie ein g&uuml;ltiges Land');
182
+ define('TXT_WPSC_PRODUCTNAME', 'Produktname');
183
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Produktbeschreibung');
184
+ define('TXT_WPSC_ADDNEWPRODUCT', 'Produkt hinzuf&uuml:gen');
185
+ define('TXT_WPSC_PRODUCTQUANTITY', 'Produktquantit?');
186
+ define('TXT_WPSC_PRODUCTIMAGE', 'Produkt Bild');
187
+ define('TXT_WPSC_PRODUCTPRICE', 'ProduKt Preis');
188
+ define('TXT_WPSC_NOTAX', 'Steuerbefreit');
189
+ define('TXT_WPSC_ABOUT', '?er');
190
+ define('TXT_WPSC_ABOUTCONTENT', 'Willkommen im e-commerce Adminbereich. <br /><br /><strong>Hinweis:</strong> Auf manchen Systemen ist der Einkaufswagen nach jeder Aktualisierung der Seite leer. Wenn das der Fall ist, musst du folgende Zeile:<br /><br />session_start();<br /><br />in der index.php Datei im Hauptverzeichnis von Wordpress hinzufgen.<br />');
191
+ define('TXT_WPSC_CONTACTDETAILS:', 'Bitte geben Sie ihre Kontaktdaten an:');
192
+ define('TXT_WPSC_CREDITCARDHANDY.', 'Beachten Sie, dass sie nach Absenden dieses Vormulares Ihre Bankdaten parat haben m&uuml;ssen.');
193
+ define('TXT_WPSC_ASTERISK', 'Felder mit einem Stern * m&uuml;ssen ausgef&uuml;llt werden.');
194
+ define('TXT_WPSC_FIRSTNAME', 'Vorname');
195
+ define('TXT_WPSC_LASTNAME', 'Nachname');
196
+ define('TXT_WPSC_EMAIL', 'E-Mail');
197
+ define('TXT_WPSC_ADDRESS', 'Adresse');
198
+ define('TXT_WPSC_ADDRESS1', 'Adresse 1');
199
+ define('TXT_WPSC_ADDRESS2', 'Adresse 2');
200
+ define('TXT_WPSC_CITY', 'Ort');
201
+ define('TXT_WPSC_STATE', 'Bundesland');
202
+ define('TXT_WPSC_COUNTRY', 'Land');
203
+ define('TXT_WPSC_PHONE', 'Telefonnummer');
204
+ define('TXT_WPSC_POSTAL_CODE', 'Postleitzahl');
205
+ define('TXT_WPSC_TERMS1', 'Ich stimme den ');
206
+ define('TXT_WPSC_TERMS2', 'Allgemeinen Gesch&auml;ftsbedingungen zu');
207
+
208
+
209
+ define('TXT_WPSC_TEXT', 'Text');
210
+ define('TXT_WPSC_TEXTAREA', 'Textarea');
211
+ define('TXT_WPSC_HEADING', 'Heading');
212
+
213
+ define('TXT_WPSC_MAKEPURCHASE', 'Kauf abschlie&szlig;en');
214
+ define('TXT_WPSC_BUYPRODUCTS', 'Bitte w&auml;hlen Sie zun&auml;chst Produkte aus.');
215
+ define('TXT_WPSC_BRANDHASBEENEDITED', 'Die Marke wurde bearbeitet.');
216
+ define('TXT_WPSC_SURETODELETEPRODUCT', 'Sind Sie sicher, dass sie dieses Produkt entfernen wollen?');
217
+ define('TXT_WPSC_ADDBRAND', 'Marke hinzuf&uuml;gen');
218
+ define('TXT_WPSC_DISPLAYBRANDS', 'Marken anzeigen');
219
+ define('TXT_WPSC_EDITBRAND', 'Marke bearbeiten');
220
+ define('TXT_WPSC_ADD', 'Hinzuf&uuml;gen');
221
+ define('TXT_WPSC_ADD_NEW_FORM', 'Neues Formularfeld hinzuf&uuml;gen');
222
+ define('TXT_WPSC_SAVE_CHANGES', '&Auml;nderungen speichern');
223
+
224
+ define('TXT_WPSC_CATEGORYHASBEENEDITED', 'Die Kategorie wurde bearbeitet.');
225
+ define('TXT_WPSC_DISPLAYCATEGORIES', 'Kategorien anzeigen');
226
+ define('TXT_WPSC_ADDCATEGORY', 'Kategorie hinzuf&uuml;gen');
227
+ define('TXT_WPSC_EDITCATEGORY', 'Kategorie bearbeiten');
228
+ define('TXT_WPSC_ALLCATEGORIES', 'Alle Kategorien');
229
+
230
+ define('TXT_WPSC_DISPLAYVARIATIONS', 'Varianten anzeigen');
231
+ define('TXT_WPSC_ADDVARIATION', 'Varianz hinzuf&uuml;gen');
232
+ define('TXT_WPSC_EDITVARIATION', 'Varianz bearbeiten');
233
+ define('TXT_WPSC_VARIATIONHASBEENEDITED', 'Diese Varianz wurde bearbeitet.');
234
+ define('TXT_WPSC_VARIATION_VALUES', 'Varianzwert');
235
+ define('TXT_WPSC_REMOVE_SET', 'Varianz l&ouml;schen');
236
+
237
+ define('TXT_WPSC_SELECT_PARENT', 'Mutter ausw&auml;hlen');
238
+ define('TXT_WPSC_PRODUCTHASBEENEDITED', 'Das Produkt wurde bearbeitet.');
239
+ define('TXT_WPSC_ADDPRODUCT', 'Produkt hinzuf&uuml;gen');
240
+ define('TXT_WPSC_DISPLAYPRODUCTS', 'Produkte anzeigen');
241
+ define('TXT_WPSC_PLEASESELECTACATEGORY', 'Bitte w&auml;hlen Sie eine Kategorie');
242
+ define('TXT_WPSC_STOCK', 'Auf Lager');
243
+ define('TXT_WPSC_PNP', 'V&V');
244
+ define('TXT_WPSC_EDITITEM', 'Element bearbeiten');
245
+ define('TXT_WPSC_PRODUCTDETAILS', 'Produktdetails');
246
+ define('TXT_WPSC_SELECT_PRODUCT', 'W&auml;hle ein vorhandenes Produkt aus');
247
+ define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', '(Geben Sie hier die Produktdetails ein)');
248
+ define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', 'Erweiterte Produktbeschreibung');
249
+ define('TXT_WPSC_ADDITEM', 'Element hinzuf&uuml;gen');
250
+ define('TXT_WPSC_CHOOSEACATEGORY', 'W&auml;hlen Sie eine Kategorie');
251
+ define('TXT_WPSC_CHOOSEABRAND', 'W&auml;hlen Sie eine Marke');
252
+ define('TXT_WPSC_USETHEACTUALIMAGE', 'Aktuelle Gr&ouml;&szlig;e beibehalten.');
253
+ define('TXT_WPSC_DISPLAYPURCHASES', 'Eink&auml;ufe anzeigen');
254
+ define('TXT_WPSC_ID', 'ID');
255
+ define('TXT_WPSC_TRANSACTIONSTATUS', 'Transaktions-Status');
256
+ define('TXT_WPSC_DATE', 'Datum');
257
+ define('TXT_WPSC_VIEWDETAILS', 'Details anzeigen');
258
+ define('TXT_WPSC_STATUS', 'Status');
259
+ define('TXT_WPSC_SUCCESSFUL', 'Erfolgreich');
260
+ define('TXT_WPSC_FAILED', 'Fehlgeschlagen');
261
+ define('TXT_WPSC_GST', 'MwSt');
262
+ define('TXT_WPSC_PP', 'V&amp;V');
263
+ define('TXT_WPSC_TOTAL', 'Zwischensumme');
264
+ define('TXT_WPSC_FINALTOTAL', 'Gesamt');
265
+ define('TXT_WPSC_CUSTOMERDETAILS', 'Kundendetails');
266
+ define('TXT_WPSC_USERSCARTWASEMPTY', 'Der Einkaufswagen dieses Kunden war leer');
267
+ define('TXT_WPSC_GOBACK', 'Zur&uuml;ck');
268
+ define('TXT_WPSC_THANKSAPPLIED', 'Vielen Dank, die ?derungen wurden gespeichert.');
269
+ define('TXT_WPSC_FORM_FIELDS', 'Kasse Formfelder');
270
+ define('TXT_WPSC_PAYMENTGATEWAY2', 'Zahlungsweise');
271
+ define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', 'Bitte w&auml;hlen Sie eine Zahlungsweise');
272
+ define('TXT_WPSC_PAYMENTGATEWAYNOTE', '');
273
+ define('TXT_WPSC_URLSETTINGS', 'URL Einstellungen');
274
+ define('TXT_WPSC_PRODUCTLISTURL', 'Produktseite URL');
275
+ define('TXT_WPSC_SHOPPINGCARTURL', 'Einkaufswagen URL');
276
+ define('TXT_WPSC_CHECKOUTURL', 'Kasse URL');
277
+ define('TXT_WPSC_TRANSACTIONDETAILSURL', 'Transaktion-Details URL');
278
+ define('TXT_WPSC_PRESENTATIONSETTINGS', 'Darstellungsoptionen');
279
+ define('TXT_WPSC_CARTLOCATION', 'Einkaufswagen Position');
280
+ define('TXT_WPSC_SIDEBAR', 'Sidebar');
281
+ define('TXT_WPSC_PAGE', 'Seite');
282
+ define('TXT_WPSC_WIDGET', 'Widget');
283
+ define('TXT_WPSC_NEEDTOENABLEWIDGET', 'Hierf&uuml;r m&uuml;ssen Sie das Widget-Plugin aktivieren');
284
+ define('TXT_WPSC_MANUAL', 'Manuell');
285
+ define('TXT_WPSC_SHOWCATEGORIESBRANDS', 'Kategorien/Marken anzeigen');
286
+ define('TXT_WPSC_BOTH', 'Beide');
287
+ define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', 'Standard Produkt Thumbnail-Gr&ouml;&szlig;e');
288
+ define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', 'Standard Kategorie Thumbnail-Gr&ouml;&szlig;e');
289
+ define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', 'Versand und Verpackung anzeigen');
290
+ define('TXT_WPSC_YES', 'Ja');
291
+ define('TXT_WPSC_NO', 'Nein');
292
+ define('TXT_WPSC_SHOWSPECIALS', 'Sonderangebote zeigen');
293
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Produktbewertungen anzeigen');
294
+ define('TXT_WPSC_CURRENCYSETTINGS', 'W&auml;hrungsoptionen');
295
+ define('TXT_WPSC_GSTTAXRATE', 'MwSt/Steuersatz');
296
+ define('TXT_WPSC_CURRENCYTYPE', 'W&auml;hrungsform');
297
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'W&auml;hrungssymbol');
298
+ define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', 'Standard Versand &amp; Verpackung');
299
+ define('TXT_WPSC_ADMINISTRATIONSETTINGS', 'Administration-Einstellungen');
300
+ define('TXT_WPSC_MAXDOWNLOADSPERFILE', 'Max. downloads pro Datei');
301
+ define('TXT_WPSC_PURCHASELOGEMAIL', 'Einkaufs-Logbuch Email');
302
+ define('TXT_WPSC_REPLYEMAIL', 'Antwort-Email');
303
+ define('TXT_WPSC_BRANDNOCAP', 'Marke');
304
+ define('TXT_WPSC_CATEGORYNOCAP', 'Kategorie');
305
+ define('TXT_WPSC_UDPATING', 'Aktualisieren');
306
+ define('TXT_WPSC_UPDATING', 'Aktualisieren');
307
+ define('TXT_WPSC_MOREDETAILS', 'Mehr Details');
308
+ define('TXT_WPSC_ADDTOCART', 'In den Einkaufswagen');
309
+ define('TXT_WPSC_AVGCUSTREVIEW', 'Durchschnittliche Kundenbewertung');
310
+ define('TXT_WPSC_YOURRATING', 'Ihre Bewertung');
311
+ define('TXT_WPSC_RATING_SAVED', 'Gespeichert');
312
+ define('TXT_WPSC_RATETHISITEM', 'Bewerten Sie dieses Produkt');
313
+ define('TXT_WPSC_PRODUCTSOLDOUT', 'Dieses Produkt ist ausverkauft.');
314
+ define('TXT_WPSC_NOITEMSINTHIS', 'Es gibt keine Produkte in dieser');
315
+ define('TXT_WPSC_CATEGORYORBRAND', 'Kategorie / Marke');
316
+ define('TXT_WPSC_PLEASECHOOSEA', 'Bitte w&auml;hlen Sie ein');
317
+ define('TXT_WPSC_PRODUCT', 'Produkt');
318
+ define('TXT_WPSC_QUANTITY', 'Anzahl');
319
+ define('TXT_WPSC_QUANTITY_SHORT', 'Anz'); //translation needed
320
+ define('TXT_WPSC_APPLY', 'Best&auml;tigen');
321
+ define('TXT_WPSC_MAKEPAYMENT', 'Zahlung abschlie&szlig;en');
322
+ define('TXT_WPSC_EMPTYSHOPPINGCART', 'Einkaufswagen leeren');
323
+ define('TXT_WPSC_TOTALPRICE', 'Gesamtpreis');
324
+ define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', 'Der Einkaufswagen ist leer');
325
+ define('TXT_WPSC_EMAILMSG1', "Vielen Dank, wir haben Ihre Bestellung erhalten, wir bearbeiten Sie baldm&ouml;glichst. Produkte die runtergeladen werden k&ouml;nnen, k&ouml;nnen jetzt &uuml;ber die Links auf dieser Seite runtergeladen werden.\n\r\n\rAlle Preise beinhalten MwSt, Versand und Verpackung, soweit n&ouml;tig.\n\r\n\rSie haben folgende Produkte bestellt:\n\r\n\r");
326
+ define('TXT_WPSC_EMAILMSG2', ".\n\rFolgende Produkte wurden bestellt:\n\r\n\r");
327
+ define('TXT_WPSC_CLICKTODOWNLOAD', 'Klicken Sie hier zum Download');
328
+ define('TXT_WPSC_DOWNLOAD', 'Download');
329
+ define('TXT_WPSC_YOURTRANSACTIONID', 'Ihre Bestell-ID');
330
+ define('TXT_WPSC_TRANSACTIONID', 'Bestell-ID');
331
+ define('TXT_WPSC_PURCHASERECEIPT', 'Ihre Bestellung');
332
+ define('TXT_WPSC_PURCHASEREPORT', 'Neue Bestellung');
333
+ define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', 'Die Bestellung war erfolgreich');
334
+ define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', 'Die Bestellung war nicht erfolgreich');
335
+ define('TXT_WPSC_GOBACKTOCHECKOUT', 'Zur&uuml;ck zur Kasse');
336
+ define('TXT_WPSC_SPECIALPRICE', 'Sonderpreis');
337
+
338
+ define('TXT_WPSC_INSTRUCTIONS', '
339
+ Installation
340
+ <ul class=\'installation\'>
341
+ <li>Kopieren Sie den Inhalt der zip-Datei in das wp-content/plugins Verzeichnis.</li>
342
+ <li>Aktivieren Sie das Plugin auf der wordpress Pluginseite</li>
343
+ <li>Gehen Sie zu "Zahlungsoptionen" auf der "Online-Shop" Karte und geben Sie die erforderlichen Details an. (Das Standard Paypal Gateway Zugang befindet sich in der Paypalsandbox). F&uuml;r Deutschland geben Sie https://www.paypal.com/de/cgi-bin/webscr als Paypal Gateway ein.</li>
344
+ <li>Erstellen Sie einige Kategorien und Produkte auf den Produkt- und Kategorieseiten</li>
345
+ </ul>
346
+
347
+ <p>Falls Sie von fr&uuml;heren Versionen upgraden, empfehlen wir das Plugin zu deaktivien und anschliessend zu aktivieren.</p>
348
+
349
+ <h2>Upgrades und Module</h2>
350
+
351
+ <p>Sie finden mehr Informationen &uuml;ber die folgenden WP e-Commerce module unter <a href="http://www.instinct.co.nz/blogshop">Instinct BlogShop</a></p>
352
+
353
+ <ul class=\'installation\'>
354
+ <li>Gold</li>
355
+ <li>DropShop</li>
356
+ <li>Audio Player</li>
357
+ <li>GridView</li>
358
+ </ul>
359
+
360
+ <h2>Wunschliste</h2>
361
+ <p>Falls Sie neue Funktionen w&uuml;nchen, k&ouml;nnen Sie uns schreiben <a href="http://www.instinct.co.nz/contact-us/">commission the development</a> oder einen Eintrag in der Wishlist hinterlegen in den <a href="http://instinct.co.nz/blogshop/support-forums/">Community Forumen von Instinct</a>.
362
+
363
+ <h2>Anpassungen und Tips</h2>
364
+ <p><strong>Mehrwertsteuer</strong><br />Falls erforderlich k&ouml;nnen Sie einen Steuersatz auf der Optionenseite in dem "e-Commerce" tab hinterlegen.</p>
365
+ <p><strong>Email purchase Logs</strong><br />Falls Sie eine Emailadresse eingef&uuml;gt haben f&uuml;r im Einkaufslog, wird dies die Emailadresse sein, die Bestellinformationen bei jedem Kauf versendet.</p>
366
+ <p><strong>Seiten ausblenden</strong><br />
367
+ Um die Seiten Einkaufswagen, Shopping Cart, Kasse und Transaktion aus der Seitenliste auszublenden, m&uuml;ssen Sie zun&auml;st deren IDs herausfinden. <br />
368
+ <br />Dann m&uuml;ssen Sie die Datei in Ihrem Theme editieren, die die Seitenliste anzeigt. <br />
369
+ <br />Das ist normalerweise die sidebar.php, finden Sie die Zeile:<br />
370
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;/h2&gt;\' ); ?&gt;"<br />
371
+ <br />Ersetzen Sie dies mit beispielsweise:<br />
372
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;h2&gt;&amp;exclude=3,4,5\'); ?&gt;"<br />
373
+ <br />Das word exclude schliesst die Seiten mit den IDs aus.</p>
374
+ <p><strong>Bild Funktionen</strong><br />
375
+ Falls Ihr SErver keine PHP image functions installiert hat, werden Sie nicht in der Lage sein Bildgr&ouml;ssen zu &auml;ndern, wenn Sie bereits hochgeladen wurden</p>
376
+ <p><strong>Permalinks</strong><br />
377
+ Wir geben uns die gr&ouml;sste M&uuml;he.
378
+ Bislang habe ich noch keine wirklich guten Weg gefunden, die erforderlichen Variablen anzupassen um Permalinks ohne mod-rewrite verwenden zu k&ouml;nnen. Falls Sie mod_rewrite nicht nutzen k&ouml;nnen, wird das Plugin nicht funktionieren mit eingeschalteten Permalinks.</p>
379
+ <p><strong>Javascript und Ajax </strong><br />
380
+ e-commerce lite nutzt Ajax, der Warenkorb den der Kunde sieht funktioniert ohne Javascript, aber die Administrationsseiten (insbesondere die Produkt- und Kategorieseiten) tun es nicht. Um den Adminbereich nutzen zu k&ouml;nnen, m&uuml;ssen Sie einen modernen Browser nutzen und Javascript einschalten. (Internet Explorer 6 oder h&ouml;her, oder Firefox 1.0 oder h&ouml;her, &auml;ltere Versionen wurden nicht getesten und funktionieren unter Umst&auml;nden nicht)</p>
381
+ <p><strong>Mehr auf Flickr</strong><br />
382
+ Wir haben eine Vielzahl von <a href="http://www.google.com/search?q=flickr+wp+e-commerce&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a">Visuellen Einf&uuml;hrungen</a> auf Flickr.
383
+
384
+ <h2>Deutsche Bearbeitung</h2>
385
+ <p>Dieses Wordpress-Plugin wurde &uuml;bersetzt von Damian Gawenda | <a href="http://damiangawenda.com" target="_blank">damiangawenda.com</a></p>
386
+
387
+
388
+ ');
389
+
390
+
391
+ define('TXT_WPSC_SHIPPINGSETTINGS', 'Versandeinstellungen');
392
+ define('TXT_WPSC_BASE_LOCAL', 'Base Local Versand');
393
+ define('TXT_WPSC_BASE_INTERNATIONAL', 'Base International Versand');
394
+ define('TXT_WPSC_BASE_COUNTRY', 'Heimatland');
395
+
396
+ define('TXT_WPSC_SHIPPING_DETAILS', 'Zus&auml;tzliche Versandkosten');
397
+ define('TXT_WPSC_LOCAL_PNP', 'Lokale Versandgeb&uuml;r');
398
+ define('TXT_WPSC_INTERNATIONAL_PNP', 'Internationale Versandgeb&uuml;r');
399
+ define('TXT_WPSC_SHIPPING_NOTE', 'Hinweis: Kosten je Produkt unabh&auml;ngig der Bestellmenge.');
400
+ define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Land Formfeld');
401
+ define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the country)');
402
+
403
+ define('TXT_WPSC_SHIPPING', 'Versand');
404
+ define('TXT_WPSC_EMAIL_FORM_FIELD', 'Email Formfeld');
405
+ define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the email address)');
406
+
407
+
408
+ define('TXT_WPSC_PRODUCTIMAGES', 'Produkt Bilder');
409
+ define('TXT_WPSC_PRODUCTDOWNLOAD', 'Produkt Download');
410
+ define('TXT_WPSC_SHOWTHUMBNAILS', 'Zeige Thumbnails');
411
+ define('TXT_WPSC_ADD_ADDITIONAL_IMAGE', 'Zus&auml;tzliches Bild hinzuf&uuml;gen');
412
+ define('TXT_WPSC_DELETE_IMAGE', 'Bild l&ouml;schen');
413
+ define('TXT_WPSC_GOLD_OPTIONS', 'Gold Cart Optionen');
414
+ define('TXT_WPSC_ACTIVATE_SETTINGS', 'Aktivierungseinstellungen: Gold Cart');
415
+ define('TXT_WPSC_ACTIVATION_KEY', 'Activatierungsschl&uuml;ssel');
416
+ define('TXT_WPSC_THANKSACTIVATED', 'Vielen Dank, der Gold Shopping Cart wurde aktiviert.');
417
+ define('TXT_WPSC_NOTACTIVATED', 'Sorry, der API key ist nicht korrekt.');
418
+ define('TXT_WPSC_DEFAULT', 'Standard');
419
+ define('TXT_WPSC_LIST', 'Liste');
420
+ define('TXT_WPSC_VISIBLE', 'Sichtbar');
421
+ define('TXT_WPSC_DELETE_PRODUCT', 'Produkt l&ouml;schen');
422
+ define('TXT_WPSC_ADDITIONAL_IMAGE', 'Zus&auml;tzliches Bild');
423
+ define('TXT_WPSC_GATEWAY_OPTIONS', 'Gateway Optionen');
424
+ define('TXT_WPSC_SHIPPING_COUNTRY', 'W&auml;hlen Sie Ihr Land f&uuml;r den Versand aus:');
425
+ define('TXT_WPSC_CONFIRM_TOTALS', 'Pr&uuml;fen Sie Ihre Bestellung vor dem Absenden:');
426
+ define('TXT_WPSC_CHECKOUT_FORM_FIELDS_DESCRIPTION', 'Hier k&ouml;nnen Sie die Felder editieren, die bei einer Bestellung gefragt werden. Auf der Kasseseite k&ouml;nnen Sie wichtige Informationen &uuml;ber Ihre Kunden sammeln, die Ihnen im Einkaufswagen-Log angezeigt werden.');
427
+ define('TXT_WPSC_PAYMENT_OPTIONS', 'Zahlungsoptionen');
428
+ define('TXT_WPSC_PAYMENT_DESCRIPTION', 'W&auml;hlen Sie Ihre Zahlungsoptionen aus die Sie Ihren Kunden im Bestellvorgang anbieten m&ouml;chten. Standardm&auml;ssig k&ouml;nnen K&auml;fer nur mit Kreditkarte/Paypal bezahlen. Wenn Sie auch manuelle Zahlungen zulassen m&ouml;chten, w&auml;hlen Sie Kreditkarte + Manuell als Zahlungsoption aus.');
429
+
430
+ define('TXT_WPSC_DEFAULT_GATEWAY_ONLY', ' ausschliesslich');
431
+ define('TXT_WPSC_PLUS_MANUAL_PAYMENT', ' plus manuelle Zahlungsoption');
432
+ define('TXT_WPSC_PAYMENT_METHOD', 'Zahlungsart');
433
+ define('TXT_WPSC_PAY_USING', 'Zahlung verwendet');
434
+ define('TXT_WPSC_PAY_MANUALLY', 'Zahlung per Check/Bank&uuml;berweisung');
435
+ define('TXT_WPSC_CREDIT_CARD', 'Kreditkarte');
436
+ define('TXT_WPSC_ADJUSTABLE_QUANTITY', 'Zeige Anzahlformular in der Listenansicht');
437
+ define('TXT_WPSC_RSS_FEED_HEADER', 'Abbonieren Sie zu Ihrer Bestellung');
438
+ define('TXT_WPSC_RSS_FEED_LINK', 'RSS feed abbonieren');
439
+ define('TXT_WPSC_RSS_FEED_TEXT', 'Ihren Bestellungen');
440
+ define('TXT_WPSC_INITIAL_SETUP', 'Erstelle Standardoptionen.');
441
+ define('TXT_WPSC_PLUGIN_NEWS_HEADER', 'Plugin News');
442
+
443
+
444
+ define('TXT_WPSC_PLUGIN_NEWS', '
445
+
446
+ The <a href="http://instinct.co.nz/blogshop/products-page/" target="_blank">WP DropShop Module</a> is the latest and most cutting edge shopping cart available online. Coupled with Grid View then your site will be the talk of street! <br/><br/>
447
+
448
+ The <a href="http://instinct.co.nz/blogshop/products-page/" target="_blank">GridView Module</a> is a visual module built to enhance the way your product page looks.<br/><br/>
449
+
450
+ <a href="http://www.instinct.co.nz/wp-campaign-monitor/100">WP Campaign Monitor</a> is an email newsletter tool built just for WP users who want to send campaigns, track the results and manage their subscribers. The latest version integrates with e-commerce lite meaning that you will be able to send buyers email newsletters and much more.
451
+
452
+ ');
453
+
454
+
455
+ define('TXT_WPSC_POWERED_BY', 'Dieser Shop ist powered by ');
456
+
457
+ define('TXT_WPSC_NO_PURCHASES', 'Bislang noch keine Verk&auml;ufe.');
458
+
459
+
460
+ define('TXT_WPSC_DELIVERY_ADDRESS', 'Lieferadresse');
461
+ define('TXT_WPSC_DELIVERY_CITY', 'Lieferstadt');
462
+ define('TXT_WPSC_DELIVERY_COUNTRY', 'Lieferland');
463
+ define('TXT_WPSC_MP3_SETTINGS', 'MP3 Einstellungen');
464
+ define('TXT_WPSC_MP3_SETTINGS_DESCRIPTION', 'Um 30 Sekunden MP3-Dateien zu erstellen, ben&ouml;nigt dieses Plugin <a href=\'http://sox.sourceforge.net/\'>SoX</a> f&uuml;r den MP3 Support, tragen Sie den Pfad zu SoX hier ein.');
465
+ define('TXT_WPSC_SOX_PATH', 'SoX Pfad');
466
+ define('TXT_WPSC_PREVIEW', 'Vorschau');
467
+ define('TXT_WPSC_DOWNLOAD_CSV', 'Download CSV');
468
+ define('TXT_WPSC_PREVIEW_FILE', 'Dateivorschau');
469
+ define('TXT_WPSC_NEW_PREVIEW_FILE', 'Neue Vorschaudatei');
470
+ define('TXT_WPSC_REPLACE_PRODUCT', 'Produkt ersetzen');
471
+ define('TXT_WPSC_TOTALSHIPPING', 'Lieferkosten');
472
+ define('TXT_WPSC_DISPLAY_FRONT_PAGE', 'Auf der Hauptseite anzeigen');
473
+ define('TXT_WPSC_SEARCH_FOR', 'Suche nach');
474
+ define('TXT_WPSC_YOUR_SEARCH_FOR', 'Sie suchen nach');
475
+ define('TXT_WPSC_RETURNED_NO_RESULTS', 'keine Ergebnisse.');
476
+ define('TXT_WPSC_POSTAGE', 'Porto');
477
+ define('TXT_WPSC_SUBTOTAL', 'Zwischensumme');
478
+
479
+
480
+ //everything under here needs translations, added after 19/1/2007
481
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Bitte geben Sie einen g&uuml;ltigen');
482
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Bitte geben Sie einen g&uuml;ltigen Vornamen ein');
483
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Bitte geben Sie einen g&uuml;ltigen Nachnamen ein');
484
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Bitte geben Sie eine g&uuml;ltige E-Mailadresse ein');
485
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Bitte geben Sie eine g&uuml;ltige Adresse ein');
486
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Bitte geben Sie eine g&uuml;ltige Telefonnummer ein');
487
+ define('TXT_WPSC_PLEASEENTERAVALIDCITY', 'Bitte geben Sie eine g&uuml;ltige Stadt ein.');
488
+ define('TXT_WPSC_PLEASESELECTCOUNTRY', 'Bitte w&auuml;hlen Sie Ihr Land aus der Liste aus.');
489
+ define('TXT_WPSC_PLEASEAGREETERMSANDCONDITIONS', 'Bitte akzeptieren Sie die Allgemeinen Geschäftsbedingungen. Ansonsten kann Ihre Bestellung nicht bearbeitet werden.');
490
+ define('TXT_WPSC_POSITION', 'Position');
491
+
492
+ define('TXT_WPSC_DELIVERY_REGION', 'Lieferregion');
493
+
494
+
495
+ define('TXT_WPSC_GENERAL_SETTINGS', 'Allgemeine Einstellungen');
496
+ define('TXT_WPSC_TAX_SETTINGS', 'MwSt Einstellungen');
497
+ define('TXT_WPSC_POSTAGE_AND_TAX', 'Porto &amp; MwSt ');
498
+ define('TXT_WPSC_GRID', 'Grid');
499
+ define('TXT_WPSC_CANT_MOVE_CATEGORY', 'Kategorien mit Unterkategorien k&ouml;nnen nicht verschoben werden.');
500
+ define('TXT_WPSC_SURETODELETECATEGORY', 'Sind Sie sicher, dass Sie die Kategorie l&ouml;schen m&ouml;chten? Falls Unterkategorien vorhanden sind, werden diese ebenfalls gel&ouml;scht.');
501
+ define('TXT_WPSC_VARIATION', 'Varianz');
502
+ define('TXT_WPSC_OVER_TWO_VARIATIONS', 'Varianzbestand und Preissteuerung funktionieren nicht, wenn Sie mehr als zwei Varianten haben.');
503
+ define('TXT_WPSC_PRICE_AND_STOCK_CONTROL', 'Preis- und Bestandssteuerung');
504
+
505
+ // pe.{
506
+ define('TXT_WPSC_CATSBRANDSLOCATION', 'Lage der Kategorien &amp; Marken');
507
+ define('TXT_WPSC_DESCITEMSEPARATOR', ' : ');
508
+ define('TXT_WPSC_SEARCHITEMSEPARATOR', ' : ');
509
+ define('TXT_WPSC_SINGLE_SHIPPING_COUNTRY', 'Lieferland:');
510
+ define('TXT_WPSC_ADD_ANOTHER_VARIATION', 'Eine Varianz hinzuf&uuml;gen');
511
+ // }.pe
512
+ define('TXT_WPSC_PRODUCT_CATEGORIES', 'Produkt Kategorien');
513
+ define('TXT_WPSC_THANKS_DELETED', 'Vielen Dank, der Verkaufseintrag wurde gel&ouml;scht');
514
+ define('TXT_WPSC_PRODUCT_IMAGE_PREVIEW', 'Produktbild');
515
+ define('TXT_WPSC_PRODUCT_THUMBNAIL_PREVIEW', 'Produkt-Vorschaubild');
516
+ define('TXT_WPSC_REMOVE_LOG', 'Entferne diesen Eintrag den Verk&auml;ufen');
517
+ define('TXT_WPSC_CATSANDBRAND', 'Kategorien &amp; Marken');
518
+ define('TXT_WPSC_GOLD_DROPSHOP', 'DropShop');
519
+ define('TXT_WPSC_NEEDTOENABLEDROPSHOP', 'Sie m&uuml;ssen die Gold- und DropShop-Erweiterungen installieren um dies nutzen zu k&ouml;nnen');
520
+ define('TXT_WPSC_DRAG_ITEM_HERE', 'Ziehen Sie ein Element hierher um es in den Warenkorb zu legen.');
521
+ define('TXT_WPSC_SHOWCATEGORYTHUMBNAILS', 'Zeige Kategorie Thumbnails');
522
+ define('TXT_WPSC_SHOPPING_CART', 'Warenkorb');
523
+ define('TXT_WPSC_SHOW_SLIDING_CART', 'Sliding Cart anzeigen');
524
+ define('TXT_WPSC_PREVIEW_FILE', 'Vorschaudatei');
525
+ define('TXT_WPSC_PREVIEW_FILE_NOTE', 'Hinweis: Falls Sie keine Vorschaudatei hochladen und Ihr Server sox mit MP3-Support unterst&uuml;tzt, wird eine Vorschaudatei f&uuml;r Sie erstellt.');
526
+ define('TXT_WPSC_PURCHASE_NUMBER', 'Bestellnr.');
527
+ define('TXT_WPSC_FILTER_ORDER', 'Bestellungen Filter');
528
+ define('TXT_WPSC_SHOW_SEARCH', 'Suche anzeigen');
529
+ define('TXT_WPSC_LOG_CURRENT_MONTH', 'Aktuellen Monat anzeigen');
530
+ define('TXT_WPSC_LOG_PAST_THREE_MONTHS', 'Letzte 3 Monate anzeigen');
531
+ define('TXT_WPSC_LOG_ALL', 'Alles anzeigen');
532
+ define('TXT_SHOW_IMAGES_ONLY', 'Zeige nur Bilder');
533
+ define('TXT_WPSC_SHOW_GALLERY', 'Zeige Thumbnail Galerie');
534
+ define('TXT_WPSC_PLEASE_SELECT', 'Bitte ausw&auml;hlen');
535
+ define('TXT_WPSC_TXN_ID', 'Transactions Id');
536
+ define('TXT_WPSC_SINGLE_PRODUCTTHUMBNAILSIZE', 'Einzelprodukt Bildgr&ouml;sse');
537
+ define('TXT_WPSC_RESET', 'Zur&uuml;cksetzen');
538
+ define('TXT_WPSC_ORDER_PENDING', 'Vielen Dank, Ihre Bestellung wird bearbeitet, eine Email wird versandt.');
539
+ define('TXT_WPSC_ORDER_FAILED', 'Es tut uns Leid, Ihre Bestellung konnte nicht akzeptiert werden. Die h&auml:ufigste Ursache ist eine nicht ausreichende Deckung.');
540
+ // Adrian - added for the options I added
541
+ define('TXT_WPSC_SHOW_CATEGORY_COUNT', 'Produktsumme je Kategorie anzeigen');
542
+ define('TXT_WPSC_CATSPRODS_DISPLAY_TYPE', 'Kategorien/Produkte Anzeige');
543
+ define('TXT_WPSC_CATSPRODS_TYPE_CATONLY', 'Nur Kategorien (Alle Produkte angezeigt)');
544
+ define('TXT_WPSC_CATSPRODS_TYPE_SLIDEPRODS', 'Sliding Kategorien (1 Produkt je Seite)');
545
+ // Adrian - END new added options
546
+ define('TXT_WPSC_ORDER_DETAILS', 'Bestelldetails');
547
+ define('TXT_WPSC_SAVE_PROFILE', 'Profil speichern');
548
+ define('TXT_WPSC_USERACCOUNTURL', 'Benutzerkonto URL');
549
+ define('TXT_WPSC_MUST_BE_LOGGED_IN', 'Sie m&uuml;ssen eingeloggt sein um diese Seite einzusehen. Bitte verwenden Sie das unten stehende Formular zum Einloggen.');
550
+ define('TXT_WPSC_YOUR_ACCOUNT', 'Ihr Konto');
551
+
552
+ define('TXT_WPSC_YOU_JUST_ADDED', 'Sie haben grade "[product_name]" in den Warenkorb gelegt.');
553
+ define('TXT_WPSC_SORRY_NONE_LEFT', 'Sorry, aber das Produkt "[product_name]" ist zur Zeit nicht auf Lager.');
554
+
555
+ define('TXT_WPSC_CONTINUE_SHOPPING', 'Weiter Einkaufen');
556
+ define('TXT_WPSC_ITEM_GONE_OUT_OF_STOCK', 'Daraus wird ersichtlich, dass ein Produkt den Lagenbestand unterschreitet, bitte gehen Sie zur&uuml;ck und bearbeiten Ihre Bestellung.');
557
+ define('TXT_WPSC_DISPLAY_FANCY_NOTIFICATIONS', 'Display Fancy Purchase Notifications');
558
+ define('TXT_WPSC_IF_USER_CHECKOUT', 'Falls Sie einen Benutzerkonto haben, bitte');
559
+ define('TXT_WPSC_LOG_IN', 'einloggen.');
560
+ define('TXT_WPSC_IS_DONATION', 'Ist das Produkt ein Geschenk?');
561
+ define('TXT_WPSC_DONATION', 'Spende');
562
+ define('TXT_WPSC_DONATION_LC', 'Spende');
563
+ define('TXT_WPSC_DONATION_SHIPPING', 'Keine Lieferung f&uuml;r Gesch&auml;nke');
564
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT_URL', 'Produkt Dateiname');
565
+ define('TXT_WPSC_FILETOBEPRODUCTURL', 'Hinweis: Laden Sie Ihre Datei in das wp-shopping-cart/files Verzeichnis und geben Sie den Dateinnamen hier ein.');
566
+ define('TXT_WPSC_DONATIONS', 'Spenden');
567
+ define('TXT_WPSC_WRONG_FILE_PERMS', 'Die folgenden Verzeichnisse sind nicht beschreibbar: :directory: Sie werden keine Dateien oder Bilder hochladen k&ouml;nnen. Sie m&uuml;ssen die Zugangsrechte f&uuml;r diese Verzeichnisse anpassen.');
568
+ define('TXT_WPSC_RESET_API', 'API Schl&uuml;ssel zur&uuml;cksetzen');
569
+ define('TXT_WPSC_PRODUCTS_PER_PAGE', 'Produkte je Seite');
570
+ define('TXT_WPSC_OPTION_PRODUCTS_PER_PAGE', 'Anzahl der Produkte je Seite');
571
+ define('TXT_WPSC_PAGE_NUMBER_POSITION', 'Seiten Nummer Position');
572
+
573
+
574
+ define('TXT_WPSC_YOUR_BILLING_CONTACT_DETAILS', '1. Ihre Zahlungs-/Kontaktangaben');
575
+ define('TXT_WPSC_DELIVER_TO_A_FRIEND', '2. Lieferangaben');
576
+ define('TXT_WPSC_E_COMMERCE', 'e-Commerce');
577
+ define('TXT_WPSC_THANKS_SAVED', 'Vielen Dank, Ihre &Auml;nderungen wurden gespeichert.');
578
+ define('TXT_WPSC_REGISTER', 'Register');
579
+ define('TXT_WPSC_TAX', 'Steuer');
580
+
581
+ define('TXT_WPSC_USE_SHIPPING', 'Lieferung nutzen');
582
+ define('TXT_WPSC_USE_SHIPPING_DESCRIPTION', 'Falls Sie lediglich digitale Downloads verkaufen, sollten Sie nein ausw&auml;hlen um die physische Lieferung zu deaktivieren.');
583
+
584
+ define('TXT_WPSC_PAGESETTINGS', 'Nummerierung Einstellungen');
585
+ define('TXT_WPSC_USE_PAGINATION', 'Nummerierung verwenden');
586
+ define('TXT_WPSC_ADD_PRODUCT', 'Produkt hinzuf&uuml;gen');
587
+ define('TXT_WPSC_EDIT_PRODUCT', 'Produkt bearbeiten');
588
+ define('TXT_WPSC_UPDATE_PAGE_URLS', 'Seiten URLs aktualisieren');
589
+ define('TXT_WPSC_VARIATIONS_AND_SPECIALS_DONT_MIX', 'Hinweis: Sie k&ouml;nnen aktuell kein Sonderangebot f&uuml;r ein Produkt mit Varianten definieren');
590
+ define('TXT_WPSC_PRODUCT_SPECIALS', 'Sonderangebote');
591
+ define('TXT_WPSC_SHOW_SHARE_THIS', 'Share This anzeigen (Social Bookmarks)');
592
+ define('TXT_WPSC_SHOW_NO_PRODUCT', 'Kein Produkt');
593
+ define('TXT_WPSC_CHOOSE_DOWNLOADABLE_PRODUCT', 'W&auml;len Sie eine downloadbare Datei zu dem Produkt:');
594
+ define('TXT_WPSC_PLEASECHOOSE', 'Bitte wa&uml;hlen');
595
+
596
+ define('TXT_WPSC_VARIATION_CONTROL', 'Varianten Steuerung');
597
+ define('TXT_WPSC_VARIATION_GRID_CONTROL_SINGLE', ':varianz1: Steuerung');
598
+ define('TXT_WPSC_VARIATION_GRID_CONTROL_PAIR', ':varianz1: und :varianz2: Steuerung');
599
+ define('TXT_WPSC_VIEW_PREVIEW_CLIP', 'Vorschau anzeigen');
600
+ define('TXT_WPSC_REQUIRE_REGISTRATION', 'Registrierung erforderlich');
601
+ define('TXT_WPSC_PLEASE_LOGIN', 'Zum Bestellen bitte einloggen oder registrieren');
602
+ define('TXT_WPSC_IF_JUST_REGISTERED', 'Falls Sie registriert sind, bitte pr&uuml;fen Sie Ihre Email und loggen Sie sich ein');
603
+ define('TXT_WPSC_SELECT_THEME', 'Theme ausw&auml;len');
604
+ define('TXT_WPSC_NEW_ORDER_PENDING_SUBJECT', 'Neue ausstehende Bestellung');
605
+ define('TXT_WPSC_NEW_ORDER_PENDING_BODY', "Eine neue Bestellung wartet auf ihre Bearbeitung: \n\r ");
606
+ define('TXT_WPSC_NO_SHIPPING', "Verwendet keinen Versand");
607
+ define('TXT_WPSC_DEFAULT_MEMBERS_ONLY', "Diese Seite ist nur f&uuml;r Kunden, Sie m&uuml;ssen sich einloggen um sie einzusehen");
608
+ define('TXT_WPSC_MEMBERSHIP_CONTROL', "Mitgliedschaftssteuerung");
609
+ define('TXT_WPSC_PRODUCT_MEMBER_STATUS', "Ist das Produkt eine Mitgliedschaft?");
610
+ define('TXT_WPSC_PRODUCT_MEMBERSHIP_LENGTH', "L&auml;nge der Mitgliedschaft");
611
+
612
+ define('TXT_WPSC_DAYS', "Tage");
613
+ define('TXT_WPSC_MONTHS', "Monate");
614
+ define('TXT_WPSC_YEARS', "Jahre");
615
+ define('TXT_WPSC_MEMBERS_SUBSCRIPTION_ENDED', "Ihre Mitgliedschaft ist beendet.");
616
+ define('TXT_WPSC_ACTIVATE_SETTINGS_MEMBERS', 'Aktivierungs Einstellungen: Mitglieder Module');
617
+ define('TXT_WPSC_GOLD_CART', 'Gold Cart');
618
+ define('TXT_WPSC_SHOW_CATEGORY_DESCRIPTION', 'Kategoriebeschreibung anzeigen');
619
+ define('TXT_WPSC_ALSO_BOUGHT', 'Kunden, die dieses Produkt gekauft haben, interessierten sich auch f&uuml;r');
620
+ define('TXT_WPSC_MARKETING_SETTINGS', 'Marketing Einstellungen');
621
+ define('TXT_WPSC_OPTION_ALSO_BOUGHT', 'Cross Sales anzeigen');
622
+ define('TXT_WPSC_MARKETING', 'Marketing');
623
+ define('TXT_WPSC_DISPLAYCOUPONS', 'Coupons');
624
+ define('TXT_WPSC_ADD_COUPON', 'Coupon hinzuf&uuml;gen');
625
+ define('TXT_WPSC_COUPON', 'Coupon');
626
+ define('TXT_WPSC_ADDCOUPONS', 'Coupon hinzuf&uuml;gen');
627
+ define('TXT_WPSC_COUPON_CODE', 'Coupon Code');
628
+ define('TXT_WPSC_DISCOUNT', 'Rabatt');
629
+ define('TXT_WPSC_START', 'Start');
630
+ define('TXT_WPSC_EXPIRY', 'Ablauf');
631
+ define('TXT_WPSC_USE_ONCE', 'Einmalig');
632
+ define('TXT_WPSC_ACTIVE', 'Aktiv');
633
+ define('TXT_WPSC_COUPONHASBEENADDED', 'Vielen Dank, der Coupon wurde hinzugef&uuml;gt.');
634
+ define('TXT_WPSC_COUPON', 'Coupon');
635
+ define('TXT_WPSC_COUPON_DOESNT_EXIST', 'Der Coupon ist abgelaufen oder existiert nicht.');
636
+ define('TXT_WPSC_PRODUCT_TAGS', 'Produkt Tags');
637
+
638
+
639
+ define('TXT_WPSC_DROPSHOPDISPLAY', 'DropShop Anzeige');
640
+ define('TXT_WPSC_HIDEADDTOCARTBUTTON', '"In den Warenkorb" Button verstecken');
641
+
642
+ //define('TXT_WPSC_PRODUCT_TAGS', 'Product Tags');
643
+
644
+ define('TXT_WPSC_SHOW_DROPSHOP_ALL', 'Dropshop auf jeder Seite anzeigen');
645
+ define('TXT_WPSC_SHOW_DROPSHOP_PRODUCT', 'Dropshop nur auf der Produktseite anzeigen');
646
+ define('TXT_WPSC_PRICEAFTERDISCOUNT', 'Preis nach Rabatt');
647
+ define('TXT_WPSC_ECOM_NEWS', 'e-Commerce Neuigkeiten');
648
+ define('TXT_WPSC_SAVE_PRODUCT_ORDER', 'Produktbestellung speichern');
649
+
650
+ define('TXT_WPSC_ECOMMERCE_SUBSCRIBERS', 'e-Commerce Abonnementen');
651
+ define('TXT_WPSC_USERID', 'User ID');
652
+ define('TXT_WPSC_REGISTEREDDATE', 'Registrierungsdatum');
653
+ define('TXT_WPSC_SUSPEND', 'Aufheben');
654
+ define('TXT_WPSC_ACTIVATE', 'Activiert');
655
+ ?>
wp-shopping-cart/languages/DK_da.php ADDED
@@ -0,0 +1,719 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ This is a language file for the WP Shopping Cart plugin version 3.5
4
+ Language version 1.1 in Danish by Kasper Sorensen. www.kaspersorensen.com
5
+ */
6
+
7
+
8
+ define('TXT_WPSC_FIX_CATEGORY_PERMALINKS', 'Fix kategori permalinks');
9
+ define('TXT_WPSC_ADVANCED_OPTIONS', 'Avancerede indstillinger');
10
+ define('TXT_WPSC_INVALID_COUPON', 'Ugyldig kupon');
11
+ define('TXT_WPSC_RSSNOTE', '<strong>Note:</strong> Denne RSS feed er ikke kun for at dine kunder kan holde sig opdateret, men du kan ogs&aring; bruge dette link til at promovere dine produkter p&aring; Facebook. <br>Bare tilf&oslash;j <a href="http://apps.facebook.com/getshopped">getshopped! facebook application</a> til din Facebook profil og f&oslash;lg instrukserne.');
12
+ define('TXT_WPSC_GOOGLEFINANCESTATUS', 'Financiel status');
13
+ define('TXT_WPSC_GOOGLEFULFILLMENTSTATUS', 'Udf&oslash;relses status');
14
+
15
+ define('TXT_WPSC_ANYONEREGISTER', 'Hvis ja, skal du ogs&aring; aktivere wordpress indtstilling "Alle kan registrere sig"');
16
+ define('TXT_WPSC_CVN', 'Kredit verifikation');
17
+ define('TXT_WPSC_AVS', 'Adresse verifikation');
18
+ define('TXT_WPSC_DISPLAYVARIATIONSDESCRIPTION', 'En variation kan v&aelig;re noget der er "valgfrit" p&aring; et produkt. For eksempel st&oslash;rrelse, farve osv. <br />Hvis du for eksempel solgte bukser, ville du m&aring;ske v&aelig;re interesseret i at opr&aelig;tte en variation kaldet st&oslash;rrelse med valgmulighederne small, medium, large...');
19
+
20
+ define('TXT_WPSC_PERTICKED', 'Anvend p&aring; alle produktert');
21
+ define('TXT_WPSC_EMAILALLOWED', 'Email tilladt');
22
+ define('TXT_WPSC_EMAILNOTALLOWED', 'Email IKKE tilladt');
23
+
24
+
25
+ define('TXT_WPSC_GOOGLERISK', 'Kvalificeret for beskyttelse');
26
+ define('TXT_WPSC_PAYPALNOTE', '<strong>Note:</strong>P&aring; grund af nuv&aelig;rende begr&aelig;nsninger af Paypal. Hvis en kunde benytter en v&aelig;rdi kupon ved k&oslash;bet kan vi ikke sende en liste med produkter til Paypal. Vi er n&oslash;dt til at sende det totale bel&oslash;b af kundens k&oslash;b, s&aring; at kunden fra Paypal vil se dit butiksnavn og total bel&oslash;bet af deres indk&oslash;b');
27
+
28
+ define('TXT_WPSC_GOOGLEMARKETINGPREFERENCE', 'Google User Marketing Preference');
29
+
30
+
31
+ define('TXT_WPSC_LATEST_PRODUCTS', 'Seneste produkter');
32
+ define('TXT_WPSC_PICKUP', 'Afhentning');
33
+ define('TXT_WPSC_DELIVERY', 'Levering');
34
+ define('TXT_WPSC_MENU', 'e-Commerce admin menu');
35
+ define('TXT_WPSC_GOOGLESTORELOCATOR', 'Aktiv&eacute;r Google Store Locator');
36
+ define('TXT_WPSC_GOOGLESHIPPING', 'Google leverings land');
37
+ define('TXT_WPSC_POST_DEFAULT_MEMBERS_ONLY', 'Denne artikel er kun for medlemmer, du skal logge ind for at se den');
38
+ define('TXT_WPSC_BASESHIPPING', 'Standard forsendelse');
39
+ define('TXT_WPSC_RSS_ADDRESS', 'RSS adresse');
40
+ define('TXT_WPSC_STORENAME', 'Butiksnavn');
41
+ define('TXT_WPSC_CHECKBOX_VARIATIONS', 'Vis variation i checkboxes');
42
+ define('TXT_WPSC_DISPLAY_PLUSTAX', 'Vis "+Moms"');
43
+ define('TXT_WPSC_DISPLAYHOWCUSTOMERFINDUS', 'Vis hvordan kunder fandt os unders&oslash;gelse');
44
+ define('TXT_WPSC_HOWCUSTOMERFINDUS', 'Hvordan kunden fandt os');
45
+ define('TXT_WPSC_ENGRAVE', 'Engrav&eacute;r tekst');
46
+ define('TXT_WPSC_FREETRIAL', 'En m&aring;neds gratis pr&oslash;vetid');
47
+ define('TXT_WPSC_PROHIBITED', 'Udelukket');
48
+ define('TXT_WPSC_ADMINNOTES', 'S&aelig;lgers notits');
49
+ define('TXT_WPSC_HIDEADDNAMELINK', 'Skjul produkt navn links');
50
+ define('TXT_WPSC_ADMINMENU', 'Admin Menu');
51
+ define('TXT_WPSC_USEONLYEXTERNALLINK', 'Note: Benyt kun hvis du har eksterne links');
52
+ define('TXT_WPSC_EXTERNALLINK', 'Ekstern link');
53
+ define('TXT_WPSC_BUTTONTYPE', 'Knap type');
54
+ define('TXT_WPSC_BUYNOW', 'K&oslash;b Nu (Kun Google Checkout)');
55
+ define('TXT_WPSC_ASSOCIATEWITHFILE', 'Forbind med fil?(V&aelig;lg venligst en)');
56
+ define('TXT_WPSC_SHOWLIVESEARCH', 'Benyt Live Search');
57
+ define('TXT_WPSC_USPS_USERID', 'USPS ID');
58
+ define('TXT_WPSC_SHIPPING_DETAILS', 'Forsendelses detaljer');
59
+ define('TXT_WPSC_SHOWADVANCEDSEARCH', 'Vis avanceret s&oslash;gning');
60
+ define('TXT_WPSC_GOOGLEMECHANTKEY', 'Google Merchant Key');
61
+ define('TXT_WPSC_GOOGLEMECHANTID', "Google Merchant ID");
62
+ define('TXT_WPSC_IMAGESIZEINFO', 'Note: Hvis denne er blank vil billedst&oslash;rrelse ikke blive &aelig;ndret');
63
+ define('TXT_WPSC_ENDLESSSUBSCRIPTION', 'Permanent abonnement?');
64
+ define('TXT_WPSC_RECEIVED', 'Ordre modtaget');
65
+ define('TXT_WPSC_ORDER_STATUS', 'Ordre status');
66
+ define('TXT_WPSC_ORDER_SUMMARY', 'Ordre oversigt');
67
+ define('TXT_WPSC_LANGUAGE', 'Sprog');
68
+ define('TXT_WPSC_ACCEPTED_PAYMENT', 'Betaling accepteret');
69
+ define('TXT_WPSC_JOB_DISPATCHED', 'Job Afsendt');
70
+ define('TXT_WPSC_PROCESSED', 'Lukket ordre');
71
+ define('TXT_WPSC_ECOMMERCE', 'e-Commerce');
72
+ define('TXT_WPSC_OPTIONS', 'Butiks Indstillinger');
73
+ define('TXT_WPSC_ADDPRODUCTS', 'Tilf&oslash;j produkter');
74
+ define('TXT_WPSC_SENDSMS', 'Send SMS');
75
+ define('TXT_WPSC_PRODUCTS', 'Produkter');
76
+ define('TXT_WPSC_ADDCATEGORY', 'Tilf&oslash;j kategori');
77
+ define('TXT_WPSC_CATEGORIES', 'Kategorier');
78
+ define('TXT_WPSC_BRANDS', 'Brands');
79
+ define('TXT_WPSC_VARIATIONS', 'Variationer');
80
+ define('TXT_WPSC_PURCHASELOG', 'K&oslash;bs Log');
81
+ define('TXT_WPSC_ORDER_LOG', 'Ordrer');
82
+ define('TXT_WPSC_OLDER_ORDERS', '&aelig;ldre ordrer');
83
+ define('TXT_WPSC_ORDER', 'Ordrer');
84
+ define('TXT_WPSC_TOTAL_THIS_MONTH', 'Total fortjeneste denne m&aring;ned');
85
+ define('TXT_WPSC_MONTHLY_REPORT', 'Six Monthly Report');
86
+ define('TXT_WPSC_TOTAL_INCOME', 'Total fortjeneste');
87
+ define('TXT_WPSC_ACCEPTED_PAYMENTS', '(Accepterede betalinger)'); //text has changed slightly
88
+ define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', 'Betalings Muligheder');
89
+ define('TXT_WPSC_HELPINSTALLATION', 'Hj&aelig;lp/Upgrade');
90
+ define('TXT_WPSC_EXAMPLECATEGORY', 'Example kategori');
91
+ define('TXT_WPSC_EXAMPLEDETAILS', 'Example details');
92
+ define('TXT_WPSC_EXAMPLEBRAND', 'Example Brand');
93
+ define('TXT_WPSC_PRODUCTIMAGEWIDTH', 'Produkt billed bredde');
94
+ define('TXT_WPSC_PRODUCTIMAGEHEIGHT', 'Produkt billed h&oslash;jde');
95
+ define('TXT_WPSC_CATEGORYIMAGEWIDTH', 'Kategori billede bredde');
96
+ define('TXT_WPSC_CATEGORYIMAGEHEIGHT', 'Kategori billede h&oslash;jde');
97
+ define('TXT_WPSC_PRODUCTLISTURL', 'Produktlistens placering');
98
+ define('TXT_WPSC_SHOPPINGCARTURL', 'Indk&oslash;bskurvens placering');
99
+ define('TXT_WPSC_CHECKOUTURL', 'Checkout sidens placering');
100
+ define('TXT_WPSC_TRANSACTURL', 'Placering af transaktions oversigten');
101
+ define('TXT_WPSC_PAYMENTGATEWAY', 'The payment gateway to use');
102
+ define('TXT_WPSC_CARTLOCATION', 'Indk&oslash;bskurvens placering');
103
+ define('TXT_WPSC_SHOWCATEGORYBRANDS', 'Vis kategorier eller brands eller begge');
104
+ define('TXT_WPSC_CURRENCYTYPE', 'Valuta type');
105
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Placering af valuta symbol');
106
+ define('TXT_WPSC_GSTRATE', 'the GST rate');
107
+ define('TXT_WPSC_MAXDOWNLOADS', 'Download begr&aelig;nsning');
108
+ define('TXT_WPSC_DISPLAYPNP', 'Vis eller skjul forsendelse og ekspedition');
109
+ define('TXT_WPSC_DISPLAYSPECIALS', 'Vis eller skjul specials on the sidebar');
110
+ define('TXT_WPSC_POSTAGEAND_PACKAGING', 'Standard forsendelse og ekspedition');
111
+ define('TXT_WPSC_PURCHLOGEMAIL', 'Email adresse for modtagelse af k&oslash;bs log');
112
+ define('TXT_WPSC_RETURNEMAIL', 'Email adresse som k&oslash;bs log er sendt fra');
113
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'Checkout betingelser');
114
+ define('TXT_WPSC_DEFAULTBRAND', 'Standard brand');
115
+ define('TXT_WPSC_DEFAULTCATEGORY', 'Standard kategori');
116
+ define('TXT_WPSC_PAYPALBUSINESS', 'Paypal business');
117
+ define('TXT_WPSC_PAYPALURL', 'Paypal url');
118
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Vis produkt bed&oslash;mmelser');
119
+ define('TXT_WPSC_PRODUCTSPAGE', 'Produkt side');
120
+ define('TXT_WPSC_CHECKOUT', 'Bekr&aelig;ft din ordrer');
121
+ define('TXT_WPSC_ENTERDETAILS', 'Indtast dine oplysninger');
122
+ define('TXT_WPSC_TRANSACTIONRESULTS', 'Transaktions resultat');
123
+ define('TXT_WPSC_SELECTACATEGORY', 'V&aelig;lg en kategori');
124
+ define('TXT_WPSC_SELECTABRAND', 'V&aelig;lg et brand');
125
+ define('TXT_WPSC_PRODUCTNAME', 'Produkt navn');
126
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Produkt beskrivelse');
127
+ define('TXT_WPSC_ADDITIONALDESCRIPTION', 'Yderligere beskrivelse');
128
+ define('TXT_WPSC_PRICE', 'Pris');
129
+ define('TXT_WPSC_TAXALREADYINCLUDED', 'Inklud&eacute;r ikke moms (moms takst indtastes under Butiks Indstillinger)'); // this text has changed and needs updating
130
+ define('TXT_WPSC_SPECIAL', 'Special / Salgs pris'); // this text has changed and needs updating
131
+ define('TXT_WPSC_PRODUCT_DISPLAY', 'Produkt visning');
132
+
133
+ define('TXT_WPSC_PRODUCTSTOCK', 'Produkt lager');
134
+
135
+ define('TXT_WPSC_UNTICKBOX', 'Jeg har begr&aelig;nset antal af disse produkter p&aring; lager. Hvis lager l&oslash;ber t&oslash;r, vil dette produkt ikke v&aelig;re tilg&aelig;ngelig i butikken, med mindre du frav&aelig;lger denne boks eller opdaterer lageret.');
136
+ define('TXT_WPSC_LIMITED_STOCK', 'Begr&aelig;nset lager');
137
+
138
+ define('TXT_WPSC_CATEGORY', 'Kategori');
139
+ define('TXT_WPSC_BRAND', 'Brand');
140
+ define('TXT_WPSC_PRODUCT_VARS', 'Produkt variationer');
141
+ define('TXT_WPSC_ADD_VAR', 'Tilf&oslash;j variations s&aelig;t');
142
+ define('TXT_WPSC_EDIT_VAR', 'Rediger variations s&aelig;t');
143
+ define('TXT_WPSC_SELECTAVARIATION', 'V&aelig;lg en variation');
144
+ define('TXT_WPSC_NEW_VARIATION', 'Opret ny variation');
145
+
146
+ define('TXT_WPSC_PRODUCTATT', 'Produkt vedh&aelig;ftelse');
147
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT', 'Upload fil');
148
+ define('TXT_WPSC_FILETOBEPRODUCT', 'Note: hvis dette er udfyldt, vil den uploadede fil, v&aelig;re ptoduktet blive solgt.');
149
+ define('TXT_WPSC_RESIZEIMAGE', '&AElig;ndre billedst&oslash;rrelse');
150
+ define('TXT_WPSC_DONOTRESIZEIMAGE', '&AElig;ndre ikke billedst&oslash;rrelse.');
151
+ // define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'Benyt standard h&oslash;jde og bredde');
152
+ // define('TXT_WPSC_USE', 'benyt');
153
+ // define('TXT_WPSC_PXHEIGHTBY', 'px h&oslash;jde by');
154
+ // define('TXT_WPSC_PXWIDTH', 'px bredde.');
155
+
156
+ // pe.{
157
+ //define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'benyt standard h&oslash;jde og bredde');
158
+ // }.pe
159
+ define('TXT_WPSC_SEPARATETHUMBNAIL', 'Benyt seperat thumbnail'); // Needs Translation
160
+ define('TXT_WPSC_USE', 'benyt'); // Needs Translation
161
+ // pe.{
162
+ define('TXT_WPSC_USEDEFAULTSIZE', 'Benyt standard st&oslash;rrelse'); // Needs Translation
163
+ define('TXT_WPSC_USESPECIFICSIZE', 'Benyt specifik st&oslash;rrelse'); // Needs Translation
164
+ define('TXT_WPSC_PXHEIGHT', 'px h&oslash;jde'); // Needs Translation
165
+ define('TXT_WPSC_PXWIDTH', 'px bredde'); // Needs Translation
166
+ // }.pe
167
+
168
+
169
+ define('TXT_WPSC_UPLOADNEWIMAGE', 'Erstat billede');
170
+ define('TXT_WPSC_DELETEIMAGE', 'Slet billede');
171
+ define('TXT_WPSC_EDIT', 'Rediger');
172
+ define('TXT_WPSC_DELETE', 'Slet');
173
+ define('TXT_WPSC_REMOVE', 'Fjern');
174
+ define('TXT_WPSC_NAME', 'Navn');
175
+ define('TXT_WPSC_TYPE', 'Type');
176
+ define('TXT_WPSC_MANDATORY', 'Obligatoris');
177
+ define('TXT_WPSC_DISPLAY_IN_LOG', 'Vis<br /> i log');
178
+ define('TXT_WPSC_DESCRIPTION', 'Beskrivelse');
179
+ define('TXT_WPSC_CATEGORY_PARENT', 'Top kategori');
180
+ define('TXT_WPSC_IMAGE', 'Billede');
181
+ define('TXT_WPSC_HEIGHT', 'H&oslash;jde');
182
+ define('TXT_WPSC_WIDTH', 'Bredde');
183
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Indtast venligst et gyldigt');
184
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Indtast venligst et gyldigt navn');
185
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Indtast venligst et gyldigt efternavn');
186
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Indtast venligst en gyldig email adresse');
187
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Indtast venligst en gyldig adresse');
188
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Indtast venligst et gyldigt telefon nummer');
189
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'Du har ikke bekr&aelig;ftet betingelserne');
190
+ define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', 'Din indk&oslash;bskurv er tom');
191
+ define('TXT_WPSC_SPECIALS', 'Specials');
192
+ define('TXT_WPSC_BUY', 'K&oslash;b');
193
+ define('TXT_WPSC_SHOPPINGCART', 'Indk&oslash;bskurv');
194
+ define('TXT_WPSC_NUMBEROFITEMS', 'Antal');
195
+ define('TXT_WPSC_NOMOREAVAILABLE', 'Dette produkt er udsolgt.');
196
+ define('TXT_WPSC_EMPTYYOURCART', 'T&oslash;m indk&oslash;bskurv');
197
+ define('TXT_WPSC_GOTOCHECKOUT', 'G&aring; til checkout');
198
+ define('TXT_WPSC_CONTINUESHOPPING', 'Forts&aelig;t indk&oslash;b');
199
+ define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', 'Din indk&oslash;bskurv er tom');
200
+ define('TXT_WPSC_VISITTHESHOP', 'Bes&oslash;g butikken');
201
+ define('TXT_WPSC_PAGES', 'Sider');
202
+ define('TXT_WPSC_OUTOF', 'Ud af');
203
+ define('TXT_WPSC_VOTES', 'votes.');
204
+ define('TXT_WPSC_CLICKSTARSTORATE', 'V&aelig;lg stjerner for bed&oslash;mmelse');
205
+ define('TXT_WPSC_AVERAGERATINGOF', 'Gennemsnitlig bed&oslash;mmelse af');
206
+ define('TXT_WPSC_YOURVOTE', 'Din stemme');
207
+ define('TXT_WPSC_AVERAGEVOTE', 'Gennemsnitlig stemme');
208
+ define('TXT_WPSC_YOUHAVEVOTED', 'Du har stemt');
209
+ define('TXT_WPSC_NOVOTES', 'Ingen stemmer');
210
+ define('TXT_WPSC_1VOTE', '1 Stemme');
211
+ define('TXT_WPSC_VOTES2', 'Stemmer');
212
+ define('TXT_WPSC_PERSONGIVEN', 'Person gav dette billede');
213
+ define('TXT_WPSC_PERSONGIVEN2', 'stjerner.');
214
+ define('TXT_WPSC_PEOPLEGIVEN', 'Personer gav dette billede');
215
+ define('TXT_WPSC_PEOPLEGIVEN2', 'Stjerner.');
216
+ define('TXT_WPSC_ITEMHASBEENADDED', 'Dette element er blevet tilf&oslash;jet');
217
+ define('TXT_WPSC_ITEMHASNOTBEENADDED', 'Dette element er ikke blevet tilf&oslash;jet');
218
+ define('TXT_WPSC_ADDNEWCATEGORY', 'Tilf&oslash;j ny kategori');
219
+ define('TXT_WPSC_SUBMIT', 'Submit');
220
+ define('TXT_WPSC_SELECTAVALIDCATEGORY', 'V&aelig;lg navn');
221
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Produkt beskrivelse');
222
+ define('TXT_WPSC_ADDNEWPRODUCT', 'Tilf&oslash;j produkt');
223
+ define('TXT_WPSC_PRODUCTQUANTITY', 'Produkt antal');
224
+ define('TXT_WPSC_PRODUCTIMAGE', 'Produkt billede');
225
+ define('TXT_WPSC_PRODUCTPRICE', 'Produkt pris');
226
+ define('TXT_WPSC_NOTAX', 'Ingen moms');
227
+ define('TXT_WPSC_ABOUT', 'Om');
228
+ define('TXT_WPSC_ABOUTCONTENT', 'Velkommen til e-commerce panelet. <br /><br /><strong>Note:</strong> p&aring; nogle setups vil indk&oslash;bskurven blive t&oslash;mt ved hver side opdatering. Hvis dette er tilf&aelig;ldet skal du tilf&oslash;je denne linje:<br /><br />session_start();<br /><br />til index.php filen i roden af din wordpress installation.<br />');
229
+ define('TXT_WPSC_CONTACTDETAILS', 'Indtast velingst kontakt information:');
230
+ define('TXT_WPSC_CREDITCARDHANDY', 'Note, n&aring;r du trykker "Foretag k&oslash;b" skal du have dit kredit kort ved h&aring;nden.');
231
+ define('TXT_WPSC_ASTERISK', 'Felter markeret med en stjerne skal udfyldes.');
232
+ define('TXT_WPSC_FIRSTNAME', 'Fornavn');
233
+ define('TXT_WPSC_LASTNAME', 'Efternavn');
234
+ define('TXT_WPSC_EMAIL', 'Email');
235
+ define('TXT_WPSC_ADDRESS', 'Adresse');
236
+ define('TXT_WPSC_ADDRESS1', 'Adresse 1');
237
+ define('TXT_WPSC_ADDRESS2', 'Adresse 2');
238
+ define('TXT_WPSC_CITY', 'By');
239
+ define('TXT_WPSC_STATE', 'Omr&aring;de');
240
+ define('TXT_WPSC_COUNTRY', 'Land');
241
+ define('TXT_WPSC_PHONE', 'Telefon');
242
+ define('TXT_WPSC_POSTAL_CODE', 'Postnummer');
243
+ define('TXT_WPSC_TERMS1', 'Jeg bekr&aelig;fter at jeg har l&aelig;st ');
244
+ define('TXT_WPSC_TERMS2', 'Betingelserne');
245
+
246
+
247
+ define('TXT_WPSC_TEXT', 'Tekst');
248
+ define('TXT_WPSC_TEXTAREA', 'Teksomr&aring;de');
249
+ define('TXT_WPSC_HEADING', 'Overskrift');
250
+
251
+ define('TXT_WPSC_MAKEPURCHASE', 'Foretag k&oslash;b');
252
+ define('TXT_WPSC_BUYPRODUCTS', 'Foretag venligst et k&oslash;b f&oslash;r du benytter denne side');
253
+ define('TXT_WPSC_BRANDHASBEENEDITED', 'The brand has been edited.');
254
+ define('TXT_WPSC_SURETODELETEPRODUCT', 'Er du sikker p&aring; du vil slette dette produkt?');
255
+ define('TXT_WPSC_ADDBRAND', 'Tilf&oslash;j brand');
256
+ define('TXT_WPSC_DISPLAYBRANDS', 'Vis brands');
257
+ define('TXT_WPSC_EDITBRAND', 'Rediger brand');
258
+ define('TXT_WPSC_ADD', 'Tilf&oslash;j');
259
+ define('TXT_WPSC_ADD_NEW_FORM', 'Tilf&oslash;j nyt form felt');
260
+ define('TXT_WPSC_SAVE_CHANGES', 'Gem &aelig;ndringer');
261
+
262
+ define('TXT_WPSC_CATEGORYHASBEENEDITED', 'Kategorien er blevet &aelig;ndret.');
263
+ define('TXT_WPSC_DISPLAYCATEGORIES', 'Vis kategorier');
264
+ define('TXT_WPSC_ADDCATEGORY', 'Tilf&oslash;j kategori');
265
+ define('TXT_WPSC_EDITCATEGORY', 'Rediger kategori');
266
+ define('TXT_WPSC_ALLCATEGORIES', 'Alle kategorier');
267
+
268
+ define('TXT_WPSC_DISPLAYVARIATIONS', 'Vis variationer');
269
+ define('TXT_WPSC_ADDVARIATION', 'Tilf&oslash;j variations s&aelig;t');
270
+ define('TXT_WPSC_EDITVARIATION', 'Rediger variations s&aelig;t');
271
+ define('TXT_WPSC_VARIATIONHASBEENEDITED', 'Variationen er blevet redigeret.');
272
+ define('TXT_WPSC_VARIATION_VALUES', 'Variations v&aelig;rdier');
273
+ define('TXT_WPSC_REMOVE_SET', 'Fjern dette s&oslash;t'); //this needs to be translated
274
+
275
+ define('TXT_WPSC_SELECT_PARENT', 'V&aelig;lg top kategori');
276
+ define('TXT_WPSC_PRODUCTHASBEENEDITED', 'Dette produkt er blevet redigeret.');
277
+ define('TXT_WPSC_ADDPRODUCT', 'Tilf&oslash;j produkt');
278
+ define('TXT_WPSC_DISPLAYPRODUCTS', 'Vis produkter');
279
+ define('TXT_WPSC_PLEASESELECTACATEGORY', 'V&aelig;lg venligst en kategori');
280
+ define('TXT_WPSC_STOCK', 'Lager');
281
+ define('TXT_WPSC_PNP', 'PnP');
282
+ define('TXT_WPSC_EDITITEM', 'Rediger element');
283
+ define('TXT_WPSC_PRODUCTDETAILS', 'Produkt information');
284
+ define('TXT_WPSC_SELECT_PRODUCT', 'V&aelig;lg et eksisterende produkt');
285
+ define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', '(Indtast dine prdukt informationer her)');
286
+ define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', 'Yderligere produkt beskrivelse');
287
+ define('TXT_WPSC_ADDITEM', 'Tilf&oslash;j element');
288
+ define('TXT_WPSC_CHOOSEACATEGORY', 'V&aelig;lg en kategori');
289
+ define('TXT_WPSC_CHOOSEABRAND', 'V&aelig;lg et brand');
290
+ define('TXT_WPSC_USETHEACTUALIMAGE', 'benyt det aktuelle billede. Ingen &aelig;ndring i billedst&oslash;rrelse.');
291
+ define('TXT_WPSC_DISPLAYPURCHASES', 'k&oslash;bs log');
292
+ define('TXT_WPSC_ID', 'ID');
293
+ define('TXT_WPSC_TRANSACTIONSTATUS', 'Transaktions status');
294
+ define('TXT_WPSC_DATE', 'Dato');
295
+ define('TXT_WPSC_VIEWDETAILS', 'Details'); //Text has changed - translation is needed
296
+ define('TXT_WPSC_STATUS', 'Status');
297
+ define('TXT_WPSC_SUCCESSFUL', 'Vellykket');
298
+ define('TXT_WPSC_FAILED', 'Mislykket');
299
+ define('TXT_WPSC_GST', 'GST');
300
+ define('TXT_WPSC_PP', 'P&amp;P');
301
+ define('TXT_WPSC_TOTAL', 'Total');
302
+ define('TXT_WPSC_FINALTOTAL', 'Endeligt Total');
303
+ define('TXT_WPSC_CUSTOMERDETAILS', 'kunde Details');
304
+ define('TXT_WPSC_USERSCARTWASEMPTY', 'Denne brugers indk&oslash;bskurv var tom');
305
+ define('TXT_WPSC_GOBACK', 'Tilbage');
306
+ define('TXT_WPSC_THANKSAPPLIED', 'Tak, dine &aelig;ndringer er blevet foretaget.');
307
+ define('TXT_WPSC_FORM_FIELDS', 'Checkout Muligheder');
308
+ define('TXT_WPSC_PAYMENTGATEWAY2', 'Payment Gateway');
309
+ define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', 'V&aelig;lg venligst en Payment Gateway');
310
+ define('TXT_WPSC_PAYMENTGATEWAYNOTE', '<strong>Note:</strong> Denne light version af wp e-commerce tillader dig kun at benytte Paypal.<br /><br />Hvis du &oslash;nsker at benytte en mere professionel l&oslash;sning kan du benytte vores <a href="http://www.instinct.co.nz/blogshop">gold version of e-Commerce</a> der kan benytte sammen med authorize.net, DPS (www.dps.co.nz), og paystation (www.paystation.co.nz).');
311
+ define('TXT_WPSC_URLSETTINGS', 'URL indstillinger');
312
+ define('TXT_WPSC_PRODUCTLISTURL', 'Produkt liste URL');
313
+ define('TXT_WPSC_SHOPPINGCARTURL', 'Indk&oslash;bskurv URL');
314
+ define('TXT_WPSC_CHECKOUTURL', 'Checkout URL');
315
+ define('TXT_WPSC_TRANSACTIONDETAILSURL', 'Transaktions information URL');
316
+ define('TXT_WPSC_PRESENTATIONSETTINGS', 'Pr&aelig;sentaions indstillinger');
317
+ define('TXT_WPSC_CARTLOCATION', 'Placering af indk&oslash;bskurv');
318
+ define('TXT_WPSC_SIDEBAR', 'Side spalte');
319
+ define('TXT_WPSC_PAGE', 'Side');
320
+ define('TXT_WPSC_WIDGET', 'Widget');
321
+ define('TXT_WPSC_NEEDTOENABLEWIDGET', 'Du er n&oslash;dt til at aktivere widget pluginet for at benytte dette');
322
+ define('TXT_WPSC_MANUAL', 'Manuelt');
323
+ define('TXT_WPSC_SHOWCATEGORIESBRANDS', 'Vis kategorier/brands');
324
+ define('TXT_WPSC_BOTH', 'Begge');
325
+ define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', 'Standard "produkt thumbnail" st&oslash;rrelse');
326
+ define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', 'Standard "kategori thumbnail" st&oslash;rrelse');
327
+ define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', 'Vis forsendelse og ekspedition');
328
+ define('TXT_WPSC_YES', 'Ja');
329
+ define('TXT_WPSC_NO', 'Nej');
330
+ define('TXT_WPSC_SHOWSPECIALS', 'Vis Specials i side spalten');
331
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Vis produkt bed&oslash;mmelser');
332
+ define('TXT_WPSC_CURRENCYSETTINGS', 'Valuta indstillinger');
333
+ define('TXT_WPSC_GSTTAXRATE', 'GST/Tax Rate');
334
+ define('TXT_WPSC_CURRENCYTYPE', 'valuta Type');
335
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Placering af valuta symbol');
336
+ define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', 'Standard forsendelse &amp; ekspedition');
337
+ define('TXT_WPSC_ADMINISTRATIONSETTINGS', 'Administrations indstillinger');
338
+ define('TXT_WPSC_MAXDOWNLOADSPERFILE', 'Max downloads per fil');
339
+ define('TXT_WPSC_PURCHASELOGEMAIL', 'K&oslash;bs Logs Email');
340
+ define('TXT_WPSC_REPLYEMAIL', 'Besvar email');
341
+ define('TXT_WPSC_BRANDNOCAP', 'brand');
342
+ define('TXT_WPSC_CATEGORYNOCAP', 'kategori');
343
+ define('TXT_WPSC_UDPATING', 'Opdaterer');
344
+ define('TXT_WPSC_UPDATING', 'Opdaterer');
345
+ define('TXT_WPSC_MOREDETAILS', 'Mere information');
346
+ define('TXT_WPSC_ADDTOCART', 'Tilf&oslash;j til indk&oslash;bskurv');
347
+ define('TXT_WPSC_AVGCUSTREVIEW', 'Gennemsnitlig kunde bed&oslash;mmelse');
348
+ define('TXT_WPSC_YOURRATING', 'Din bed&oslash;mmelse');
349
+ define('TXT_WPSC_RATING_SAVED', 'Gemt');
350
+ define('TXT_WPSC_RATETHISITEM', 'Bed&oslash;m dette element');
351
+ define('TXT_WPSC_PRODUCTSOLDOUT', 'Dette produkt er udsolgt.');
352
+ define('TXT_WPSC_NOITEMSINTHIS', 'Der er ingen produkter i denne');
353
+ define('TXT_WPSC_CATEGORYORBRAND', 'kategori eller brand');
354
+ define('TXT_WPSC_PLEASECHOOSEA', 'V&aelig;lg venligst');
355
+ define('TXT_WPSC_PRODUCT', 'Produkt');
356
+ define('TXT_WPSC_QUANTITY', 'Antal');
357
+ define('TXT_WPSC_QUANTITY_SHORT', 'Antal'); //translation needed
358
+ define('TXT_WPSC_APPLY', 'Anvend');
359
+ define('TXT_WPSC_MAKEPAYMENT', 'Foretag betaling');
360
+ define('TXT_WPSC_EMPTYSHOPPINGCART', 'T&oslash;m indk&oslash;bskurv');
361
+ define('TXT_WPSC_TOTALPRICE', 'Total pris');
362
+ define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', 'Indk&oslash;bskurven er tom.');
363
+ define('TXT_WPSC_EMAILMSG1', "Mange tak, din ordre er blevet modtaget. Produkter der skal sendes vil blive behandlet hurtigst mulig. Alle produkter der kan downloades kan downloades ved at benytte linksene p&aring; denne side.\n\r\n\rAlle priser er inklusiv moms og forsendelse.\n\r\n\rDu har bestilt f&oslash;lgende produkter:\n\r\n\r");
364
+ define('TXT_WPSC_EMAILMSG2', ".\n\rDisse produkter blev bestilt:\n\r\n\r");
365
+ define('TXT_WPSC_CLICKTODOWNLOAD', 'Klik her for at downloade');
366
+ define('TXT_WPSC_DOWNLOAD', 'Download');
367
+ define('TXT_WPSC_YOURTRANSACTIONID', 'Dit Transaktions ID');
368
+ define('TXT_WPSC_TRANSACTIONID', 'Transaktions ID');
369
+ define('TXT_WPSC_PURCHASERECEIPT', 'Kvittering');
370
+ define('TXT_WPSC_PURCHASEREPORT', 'Kunde rapport');
371
+ define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', 'Transaktionen var vellykket');
372
+ define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', 'Transaktionen mislykkedes');
373
+ define('TXT_WPSC_GOBACKTOCHECKOUT', 'Tilbage til checkout');
374
+ define('TXT_WPSC_SPECIALPRICE', 'Special pris');
375
+
376
+ define('TXT_WPSC_INSTRUCTIONS', '
377
+ Installations gennemgang
378
+ <ul class=\'installation\'>
379
+ <li>Plac&eacute;r indholdet af zip filen i wp-content/plugins mappen.</li>
380
+ <li>Aktiv&eacute;r plugin fra Wordpress\' plugin side</li>
381
+ <li>G&aring; til "Payment Gateway" siden under e-Commerce og indtast de n&oslash;dvendige oplysninger. (standard paypal gateway tilg&aring;et er paypal\'s sandbox)</li>
382
+ <li>Opret nogle kategorier og produkter under "Kategorier" og "Produkter"</li>
383
+ </ul>
384
+
385
+ <p>hvis dette er en upgrade af en tidligerversion, anbefaler vi at du deaktiverer og genaktiverer dette plugin.</p>
386
+
387
+ <h2>Opgraderinger og Moduler</h2>
388
+
389
+ <p>Du kan finde flere oplysninger om de f&oslash;lgende wp e-Commerce moduler ved at bes&oslash;ge <a href="http://www.instinct.co.nz/blogshop">Instinct BlogShop</a></p>
390
+
391
+ <ul class=\'installation\'>
392
+ <li>Gold</li>
393
+ <li>DropShop</li>
394
+ <li>Audio Player</li>
395
+ <li>GridView</li>
396
+ </ul>
397
+
398
+ <h2>&Oslash;nskeliste</h2>
399
+ <p>Hvis du &oslash;nsker nye features der endnu ikke er underst&oslash;ttet af WP e-Commerce, s&aring; kan du <a href="http://www.instinct.co.nz/contact-us/">bestille en udvikler</a> eller tilf&oslash;jer det til &oslash;nskelisten p&aring; <a href="http://instinct.co.nz/blogshop/support-forums/">forummet</a>.
400
+
401
+ <h2>Individualisering og Tips</h2>
402
+ <p><strong>Moms</strong><br />Hvis det er n&oslash;dvendigt kan su indtaste en moms sats under "Butiks Indstillinger".</p>
403
+ <p><strong>Email K&oslash;bs Log</strong><br />
404
+ hvis du indtaster en email adresse for "K&oslash;bs Logs Email" under "Butiks Indstillinger", s&aring; vil der blive sendt en k&oslash;bs notifikation til denne adresse hver gang en ordre er modtaget.</p>
405
+ <p><strong>Skjul Sider</strong><br />
406
+ For at forhindre Indk&oslash;bskurven, chekout og transaktions resulater i at blive vist i "side listen" er du n&oslash;dt til at idetificere deres ID numre f&oslash;rst. <br />
407
+ <br />Derefter skal du redigere den side i dit Theme som viser siderne. Denne er normalt fundet i file sidebar.php, find en linje der ligner denne:<br />
408
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;/h2&gt;\' ); ?&gt;"<br />
409
+ og erstat den med<br />
410
+ "&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;h2&gt;&amp;exclude=3,4,5\'); ?&gt;"<br />
411
+ <br />ordet exclude fort&aelig;ller systemet at det skal eksludere disse sider fra listen, erstat 3,4,5 med de ID numre som blev identificeret for de sider der ikke &oslash;nskes at blive vist.</p>
412
+ <p><strong>Villed funktioner</strong><br />
413
+ Hvis din server ikke har PHP billed funktioner installeret, vil du ikke v&aelig;re i stand til at foretage billede st&oslash;rrelses &aelig;ndringer p&aring; de billeder du uploader.</p>
414
+ <p><strong>Permalinks</strong><br />
415
+ Vi g&oslash;r det bedste vi kan.
416
+ Det har endnu ikke v&aelig;ret mulig at finde en god m&aring;de at "passe the required variables from page to page using permalinks that dont use mod_rewrite", hvis du ikke kan benytte mod_rewrite, vil dette plugin m&aring;ske ikke virke korrekt med permalinks sl&aring;et til.</p>
417
+ <p><strong>Javascript og Ajax </strong><br />
418
+ e-Commerce lite benytter Ajax, indk&oslash;bskurven som brugeren ser virker uden Javascript, men administrations siderne (specielt Produkt og Kategori sider) virker ikke uden Javascript sl&aring;et til. For at benytte Administrations afdelingen er det vigtig at du benytter en forholdsvis ny browser med Javascript sl&aring;et til. (Internet Explorer 6 eller nyere, eller Firefox 1.0 eller nyere. &AElig;ldre versioner er ikke testet og m&aring;ske vil du ikke v&aelig;re i stand til at benytte Administrations sektionen med disse)</p>
419
+ <p><strong>Mere p&aring; Flickr</strong><br />
420
+ Vi har flere <a href="http://www.google.com/search?q=flickr+wp+e-commerce&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a">visuelle guider</a> p&aring; Flickr.
421
+
422
+ ');
423
+
424
+
425
+ define('TXT_WPSC_SHIPPINGSETTINGS', 'Forsendelses informationer');
426
+ define('TXT_WPSC_BASE_LOCAL', 'Standard indlands forsendelse');
427
+ define('TXT_WPSC_BASE_INTERNATIONAL', 'Standard international forsndelse');
428
+ define('TXT_WPSC_BASE_COUNTRY', 'Standard land');
429
+
430
+ define('TXT_WPSC_SHIPPING_DETAILS', 'Yderligere forsendelses omkostninger'); // this needs updating
431
+ define('TXT_WPSC_LOCAL_PNP', 'Indlands forsendelses gebyr'); // this needs updating
432
+ define('TXT_WPSC_INTERNATIONAL_PNP', 'Internationalt forsendelses gebyr'); // this needs updating
433
+ define('TXT_WPSC_SHIPPING_NOTE', 'Note: P&aring;regnes kun en gang pr. produkt uafh&aelig;nging af antallet bestilt.');
434
+ define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Country Form Field');
435
+ define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(V&aelig;lg hvilket felt p&aring; checkout siden du &oslash;nsker at benytte for valg af land)');
436
+
437
+ define('TXT_WPSC_SHIPPING', 'Forsendelse');
438
+ define('TXT_WPSC_EMAIL_FORM_FIELD', 'Email felt');
439
+ define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(V&aelig;lg hvilket felt p&aring; checkout siden du &oslash;nsker at benytte for valg af email)');
440
+
441
+
442
+ define('TXT_WPSC_PRODUCTIMAGES', 'Produkt billeder');
443
+ define('TXT_WPSC_PRODUCTDOWNLOAD', 'Produkt download');
444
+ define('TXT_WPSC_SHOWTHUMBNAILS', 'Vis thumbnails');
445
+ define('TXT_WPSC_ADD_ADDITIONAL_IMAGE', 'Tilf&oslash;j billede');
446
+ define('TXT_WPSC_DELETE_IMAGE', 'Slet billede');
447
+ define('TXT_WPSC_GOLD_OPTIONS', 'Gold Cart Indstillinger');
448
+ define('TXT_WPSC_ACTIVATE_SETTINGS', 'Aktiverings indstillinger: Gold Cart');
449
+ define('TXT_WPSC_ACTIVATION_KEY', 'Aktiverings n&oslash;gle');
450
+ define('TXT_WPSC_THANKSACTIVATED', 'Tak, din gold shopping cart er nu aktiveret.');
451
+ define('TXT_WPSC_NOTACTIVATED', 'Desv&aelig;rre, API n&oslash;glen var forkert.');
452
+ define('TXT_WPSC_DEFAULT', 'Standard');
453
+ define('TXT_WPSC_LIST', 'List');
454
+ define('TXT_WPSC_VISIBLE', 'Synlig');
455
+ define('TXT_WPSC_DELETE_PRODUCT', 'Slet Produkt');
456
+ define('TXT_WPSC_ADDITIONAL_IMAGE', 'Tilf&oslash;j billede');
457
+ define('TXT_WPSC_GATEWAY_OPTIONS', 'Gateway muligheder');
458
+ define('TXT_WPSC_SHIPPING_COUNTRY', 'V&aelig;lg forsendelses land');
459
+ define('TXT_WPSC_CONFIRM_TOTALS', 'Bekrlf&aelig;ft det totale bel&oslash;b f&oslash;r du forts&aelig;tter med betalingen:');
460
+ define('TXT_WPSC_CHECKOUT_FORM_FIELDS_DESCRIPTION', 'Her kan du &aelig;ndre felterne p&aring; checkout siden. Checkout siden er hvor du indsamler oplysninger om kunden og ordren, der senere vil blive vist i k&oslash;bs loggen. Det kan v&aelig;re kundens adresse, email, navn osv.');
461
+ define('TXT_WPSC_PAYMENT_OPTIONS', 'Betalings Muligheder');
462
+ define('TXT_WPSC_PAYMENT_DESCRIPTION', 'V&aelig;lg venligst hvilke betalings muligheder du &oslash;nsker at give kunden. Standard er betaling med kredit kort, men du &oslash;nsker m&aring;ske at give kunden yderligere muligheder som for eksempel manuel betaling. I s&aring; fald skal du v&aelig;lge "kredit kort + manuel betaling".');
463
+
464
+ define('TXT_WPSC_DEFAULT_GATEWAY_ONLY', ' Kun');
465
+ define('TXT_WPSC_PLUS_MANUAL_PAYMENT', ' Plus manuel betaling');
466
+ define('TXT_WPSC_PAYMENT_METHOD', 'Betalings metode');
467
+ define('TXT_WPSC_PAY_USING', 'Betal ved');
468
+ define('TXT_WPSC_PAY_MANUALLY', 'Betal ved check/bankoverf&oslash;rsel');
469
+ define('TXT_WPSC_CREDIT_CARD', 'Kredit kort');
470
+ define('TXT_WPSC_ADJUSTABLE_QUANTITY', 'Vis antal i liste visning');
471
+ define('TXT_WPSC_RSS_FEED_HEADER', 'Abon&eacute;r p&aring; dine ordre');
472
+ define('TXT_WPSC_RSS_FEED_LINK', 'Abon&eacute;r p&aring; en RSS feed');
473
+ define('TXT_WPSC_RSS_FEED_TEXT', 'Af dine ordre');
474
+ define('TXT_WPSC_INITIAL_SETUP', 'Oprettet standard muligheder.');
475
+ define('TXT_WPSC_PLUGIN_NEWS_HEADER', 'Plugin news');
476
+
477
+
478
+ define('TXT_WPSC_PLUGIN_NEWS', '
479
+
480
+ The <a href="http://instinct.co.nz/blogshop/products-page/" target="_blank">WP DropShop Modul</a> er det senete og mest moderne indk&oslash;bsmodul tilg&aelig;ngeligt online. Sammen med GridView vil din side blive det folk taler om! <br/><br/>
481
+
482
+ <a href="http://instinct.co.nz/blogshop/products-page/" target="_blank">GridView Modulet</a> er et visuelt modul udviklet for at optimere udseendet af din produkt side.<br/><br/>
483
+
484
+ <a href="http://www.instinct.co.nz/wp-campaign-monitor/100">WP Campaign Monitor</a> er et email v&aelig;rkt&oslash;j udviklet kun for Wordpress brugere som &oslash;nsker at sende kampagner, m&aring;le resultater og styre deres abonnenter. Den sidste nye version integrere med e-Commerce lite. Det betyder at du vil v&aelig;re i stand til at sende k&oslash;bere nyhedsbreve med mere.
485
+
486
+ ');
487
+
488
+
489
+ define('TXT_WPSC_POWERED_BY', 'Denne butik benytter ');
490
+
491
+ define('TXT_WPSC_NO_PURCHASES', 'Der er endnu ikke blevet gennemf&oslash;rt nogle ordre.');
492
+
493
+
494
+ define('TXT_WPSC_DELIVERY_ADDRESS', 'Leverings adresse');
495
+ define('TXT_WPSC_DELIVERY_CITY', 'Leverings by');
496
+ define('TXT_WPSC_DELIVERY_COUNTRY', 'Leverings land');
497
+ define('TXT_WPSC_MP3_SETTINGS', 'MP3 indstillinger');
498
+ define('TXT_WPSC_MP3_SETTINGS_DESCRIPTION', 'To create the 30 second MP3 file clips, this plugin needs <a href=\'http://sox.sourceforge.net/\'>SoX</a> compiled with MP3 support, enter the path to SoX here.');
499
+ define('TXT_WPSC_SOX_PATH', 'SoX Path');
500
+ define('TXT_WPSC_PREVIEW', 'Preview');
501
+ define('TXT_WPSC_DOWNLOAD_CSV', 'Download CSV');
502
+ define('TXT_WPSC_PREVIEW_FILE', 'Preview Fil');
503
+ define('TXT_WPSC_NEW_PREVIEW_FILE', 'Ny Preview Fil');
504
+ define('TXT_WPSC_REPLACE_PRODUCT', 'Erstat Produkt');
505
+ define('TXT_WPSC_TOTALSHIPPING', 'Total levering');
506
+ define('TXT_WPSC_DISPLAY_FRONT_PAGE', 'Vis p&aring; forside');
507
+ define('TXT_WPSC_SEARCH_FOR', 'S&oslash;g efter');
508
+ define('TXT_WPSC_YOUR_SEARCH_FOR', 'Din s&oslash;gning efter');
509
+ define('TXT_WPSC_RETURNED_NO_RESULTS', 'Returnerede f&oslash;lgende resultat.');
510
+ define('TXT_WPSC_POSTAGE', 'Forsendelse');
511
+ define('TXT_WPSC_SUBTOTAL', 'Subtotal');
512
+
513
+
514
+ //everything under here needs translations, added after 19/1/2007
515
+
516
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Indtast venligst gyldig');
517
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Indtast venligst fornavn.');
518
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Indtast venligst efternavn.');
519
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Indtast venligst email adresse.');
520
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Indtast venligst adresse.');
521
+ define('TXT_WPSC_PLEASEENTERAVALIDCITY', 'Indtast venligst by.');
522
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Indtast venligst et gyldigt telefon nummer.');
523
+ define('TXT_WPSC_PLEASESELECTCOUNTRY', 'V&aelig;lg venligst dit land fra f&oslash;lgende listet.');
524
+ define('TXT_WPSC_PLEASEAGREETERMSANDCONDITIONS', 'Bekr&aelig;ft venligst betingelserne. Ellers kan vi ikke gennemf&oslash;re din ordre.');
525
+ define('TXT_WPSC_POSITION', 'Position');
526
+
527
+ define('TXT_WPSC_DELIVERY_REGION', 'Levering omr&aring;de');
528
+
529
+
530
+ define('TXT_WPSC_GENERAL_SETTINGS', 'Generelle indstillinger');
531
+ define('TXT_WPSC_TAX_SETTINGS', 'Moms information');
532
+ define('TXT_WPSC_POSTAGE_AND_TAX', 'Forsendelse &amp; Moms ');
533
+ define('TXT_WPSC_GRID', 'Grid');
534
+ define('TXT_WPSC_CANT_MOVE_CATEGORY', 'Du kan ikke flytte en kategori med under-kategorier.');
535
+ define('TXT_WPSC_SURETODELETECATEGORY', 'Er du sikekr p&aring; du vil slette denne kategori? Hvis denne kategori har nogen under-kategorier vil disse ogs&aring; blive slettet.');
536
+ define('TXT_WPSC_VARIATION', 'Variation');
537
+ define('TXT_WPSC_OVER_TWO_VARIATIONS', 'Variation, lager og pris kontrol fungere ikke hvis du har mere end to variationer.');
538
+ define('TXT_WPSC_PRICE_AND_STOCK_CONTROL', 'Pris og Lager Kontrol') ;
539
+
540
+ // pe.{
541
+ define('TXT_WPSC_CATSBRANDSLOCATION', 'Placering af kategorier &amp; brands');
542
+ define('TXT_WPSC_DESCITEMSEPARATOR', ' : ');
543
+ define('TXT_WPSC_SEARCHITEMSEPARATOR', ' : ');
544
+ define('TXT_WPSC_SINGLE_SHIPPING_COUNTRY', 'Leverings land:');
545
+ define('TXT_WPSC_ADD_ANOTHER_VARIATION', 'Tilf&oslash;j variation');
546
+ // }.pe
547
+ define('TXT_WPSC_PRODUCT_CATEGORIES', 'V&aelig;lg kategorier');
548
+ define('TXT_WPSC_THANKS_DELETED', 'Mange tak, k&oslash;bs loggen er blevet slettet.');
549
+ define('TXT_WPSC_PRODUCT_IMAGE_PREVIEW', 'Produkt billede');
550
+ define('TXT_WPSC_PRODUCT_THUMBNAIL_PREVIEW', 'Produkt thumbnail');
551
+ define('TXT_WPSC_REMOVE_LOG', 'Fjern denne artikel fra k&oslash;bs loggen');
552
+ define('TXT_WPSC_CATSANDBRAND', 'Kategorier &amp; Brands');
553
+ define('TXT_WPSC_GOLD_DROPSHOP', 'DropShop');
554
+ define('TXT_WPSC_NEEDTOENABLEDROPSHOP', 'Du skal installere Gold og DropShop udvidelserne for at benytte dette');
555
+ define('TXT_WPSC_DRAG_ITEM_HERE', 'Tr&aelig;k elementer her for at tilf&oslash;je dem til indk&oslash;bskurvenb.');
556
+ define('TXT_WPSC_SHOWCATEGORYTHUMBNAILS', 'Vis "kategori thumbnails"');
557
+ define('TXT_WPSC_SHOPPING_CART', 'Indk&oslash;bskurv');
558
+ define('TXT_WPSC_SHOW_SLIDING_CART', 'Vis glidende indk&oslash;bskurv');
559
+ define('TXT_WPSC_PREVIEW_FILE', 'Upload preview');
560
+ define('TXT_WPSC_PREVIEW_FILE_NOTE', 'Note: Hvis du ikke uploader en preview fil, og din server har sox compiled MP3 underst&oslash;ttelse, s&aring; vil en preview fil blive oprettet automatisk.');
561
+ define('TXT_WPSC_PURCHASE_NUMBER', 'Ordre nr.');
562
+ define('TXT_WPSC_FILTER_ORDER', 'Filtrer ordrer');
563
+ define('TXT_WPSC_SHOW_SEARCH', 'Vis S&oslash;g');
564
+ define('TXT_WPSC_LOG_CURRENT_MONTH', 'Vis resultater fra denne m&aring;ned');
565
+ define('TXT_WPSC_LOG_PAST_THREE_MONTHS', 'Vis resultater fra de seneste tre m&aring;neder');
566
+ define('TXT_WPSC_LOG_ALL', 'Vis alle resusltater');
567
+ define('TXT_SHOW_IMAGES_ONLY', 'Vis kun billeder');
568
+ define('TXT_WPSC_SHOW_GALLERY', 'Vis thumbnail galleri');
569
+ define('TXT_WPSC_PLEASE_SELECT', 'V&aelig;lg venligst');
570
+ define('TXT_WPSC_TXN_ID', 'Transaktions ID');
571
+ define('TXT_WPSC_SINGLE_PRODUCTTHUMBNAILSIZE', 'Enkelte produkt billedes st&oslash;rrelse');
572
+ define('TXT_WPSC_RESET', 'Reset');
573
+ define('TXT_WPSC_ORDER_PENDING', 'Mange tak, ordren bliver behandlet, du vil modtage en email s&aring; snart ordren g&aring;r igennem.');
574
+ define('TXT_WPSC_ORDER_FAILED', 'Desv&aelig;rre, din ordre er ikke blevet godkendt. Grunden kan v&aelig;re at du har tastet forkert eller at der ikke d&aelig;kning for bel&oslash;bet.');
575
+ // Adrian - added for the options I added
576
+ define('TXT_WPSC_SHOW_CATEGORY_COUNT', 'Vis antal produkter i hver kategori');
577
+ define('TXT_WPSC_CATSPRODS_DISPLAY_TYPE', 'Visning af Kategorier/Produkter');
578
+ define('TXT_WPSC_CATSPRODS_TYPE_CATONLY', 'Kun kategorier (alle produkter vil blive vist)');
579
+ define('TXT_WPSC_CATSPRODS_TYPE_SLIDEPRODS', 'Glidende kategorier (1 produkt pr. side)');
580
+ // Adrian - END new added options
581
+ define('TXT_WPSC_ORDER_DETAILS', 'Ordrer oversigt');
582
+ define('TXT_WPSC_SAVE_PROFILE', 'Gem profil');
583
+ define('TXT_WPSC_USERACCOUNTURL', 'bruger konto URL');
584
+ define('TXT_WPSC_MUST_BE_LOGGED_IN', 'Du skal v&aelig;re logget ind for at se denne side. Benyt venligst formen nedenfor til at logge ind.');
585
+ define('TXT_WPSC_YOUR_ACCOUNT', 'Din konto');
586
+
587
+ define('TXT_WPSC_YOU_JUST_ADDED', 'Du har lige tilf&oslash;jet "[product_name]" til din indk&oslash;bskurv.');
588
+ define('TXT_WPSC_SORRY_NONE_LEFT', 'Desv&aelig;rre "[product_name]" er imidlertidigt ikke p&aring; lager.');
589
+
590
+ define('TXT_WPSC_CONTINUE_SHOPPING', 'Forts&aelig;t indk&oslash;b');
591
+ define('TXT_WPSC_ITEM_GONE_OUT_OF_STOCK', 'Det ser ud til et af produkter ikke l&aelig;ngere er p&aring; lager, g&aring; venligst tilbage og rediger din ordre.');
592
+ define('TXT_WPSC_DISPLAY_FANCY_NOTIFICATIONS', 'Vis fancy k&oslash;bs notifikationer');
593
+ define('TXT_WPSC_IF_USER_CHECKOUT', 'Har du allerede en konto? ');
594
+ define('TXT_WPSC_LOG_IN', 'log in.');
595
+ define('TXT_WPSC_IS_DONATION', 'Er dette produkt en donation?');
596
+ define('TXT_WPSC_DONATION', 'Donation');
597
+ define('TXT_WPSC_DONATION_LC', 'donation');
598
+ define('TXT_WPSC_DONATION_SHIPPING', 'Ingin forsendelse for donationer');
599
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT_URL', 'Produkt filnavn');
600
+ define('TXT_WPSC_FILETOBEPRODUCTURL', 'Note: Upload din fil til wp-shopping-cart/files mappen og indtast filnavnet her.');
601
+ define('TXT_WPSC_DONATIONS', 'Donationer');
602
+ define('TXT_WPSC_WRONG_FILE_PERMS', 'F&oslash;lgende mapper er nu skrivbare: :directory: Du vil ikke v&aelig;re i stand til at uploade filer her, du skal &aelig;ndre tilldelserne p&aring; disse mapper og g&oslash;re dem skrivbare.');
603
+ define('TXT_WPSC_RESET_API', 'Reset API n&oslash;gle');
604
+ define('TXT_WPSC_PRODUCTS_PER_PAGE', 'Produkter pr. side');
605
+ define('TXT_WPSC_OPTION_PRODUCTS_PER_PAGE', 'Antal produktker der skal vises p&aring; hver side');
606
+ define('TXT_WPSC_PAGE_NUMBER_POSITION', 'Placering af sidenumre');
607
+
608
+
609
+ define('TXT_WPSC_YOUR_BILLING_CONTACT_DETAILS', '1. Din betalings/kontakt informationer');
610
+ define('TXT_WPSC_DELIVER_TO_A_FRIEND', '2. Leverings info');
611
+ define('TXT_WPSC_E_COMMERCE', 'e-Commerce');
612
+ define('TXT_WPSC_THANKS_SAVED', 'Mange tak, dine &aelig;ndringer er blevet gemt.');
613
+ define('TXT_WPSC_REGISTER', 'Registr&eacute;r');
614
+ define('TXT_WPSC_TAX', 'Moms');
615
+
616
+ define('TXT_WPSC_USE_SHIPPING', 'Benyt forsendelse');
617
+ define('TXT_WPSC_USE_SHIPPING_DESCRIPTION', 'Hvis du KUN s&aelig;lger digitale produkter skal du v&aelig;lge nej for at deaktivere forsendelse p&aring; din side.');
618
+
619
+ define('TXT_WPSC_PAGESETTINGS', 'Pagination indstillinger');
620
+ define('TXT_WPSC_USE_PAGINATION', 'Benyt pagination');
621
+ define('TXT_WPSC_ADD_PRODUCT', 'Tilf&oslash;j produkt');
622
+ define('TXT_WPSC_EDIT_PRODUCT', 'Rediger produkt');
623
+ define('TXT_WPSC_UPDATE_PAGE_URLS', 'Opdater side URLs');
624
+ define('TXT_WPSC_VARIATIONS_AND_SPECIALS_DONT_MIX', 'Note: Du kan ikke p&aring; nuv&aelig;rende tidspunkt s&aelig;tte en pris p&aring; produkter med variationer');
625
+ define('TXT_WPSC_PRODUCT_SPECIALS', 'Produkt specials');
626
+ define('TXT_WPSC_SHOW_SHARE_THIS', 'Vis Share This (Social Bookmarks)');
627
+ define('TXT_WPSC_SHOW_NO_PRODUCT', 'Intet produkt');
628
+ define('TXT_WPSC_CHOOSE_DOWNLOADABLE_PRODUCT', 'V&aelig;lg en fil der kan downlades for dette prdukt:');
629
+ define('TXT_WPSC_PLEASECHOOSE', 'V&aelig;lg venligst');
630
+
631
+ define('TXT_WPSC_VARIATION_CONTROL', 'Variations kontrol');
632
+ define('TXT_WPSC_VARIATION_GRID_CONTROL_SINGLE', ':variation1: Kontrol');
633
+ define('TXT_WPSC_VARIATION_GRID_CONTROL_PAIR', ':variation1: og :variation2: Kontrol');
634
+ define('TXT_WPSC_VIEW_PREVIEW_CLIP', 'Se preview klip');
635
+ define('TXT_WPSC_REQUIRE_REGISTRATION', 'Bruger skal registrere f&oslash;r checkout');
636
+ define('TXT_WPSC_PLEASE_LOGIN', 'V&aelig;r venlig at looge ind eller registrere dig for at gennemf&oslash;re handelen');
637
+ define('TXT_WPSC_IF_JUST_REGISTERED', 'Hvis du lige har registreret, tjek da venligst din email og login f&oslash;r du gennemf&oslash;re handelen');
638
+ define('TXT_WPSC_SELECT_THEME', 'V&aelig;lg tema');
639
+ define('TXT_WPSC_NEW_ORDER_PENDING_SUBJECT', 'Ny ventende ordrer');
640
+ define('TXT_WPSC_NEW_ORDER_PENDING_BODY', "Der er en ny ordrer der afventer behandling: \n\r ");
641
+ define('TXT_WPSC_NO_SHIPPING', "Benyt ikke forsendelse");
642
+ define('TXT_WPSC_DEFAULT_MEMBERS_ONLY', "Denne side er kun for medlemmer, du skal logge ind for at se denne side.");
643
+ define('TXT_WPSC_MEMBERSHIP_CONTROL', "Medlems kontrol");
644
+ define('TXT_WPSC_PRODUCT_MEMBER_STATUS', "er dette produkt et medlemskab?");
645
+ define('TXT_WPSC_PRODUCT_MEMBERSHIP_LENGTH', "Medlems periode");
646
+ define('TXT_WPSC_DAYS', "Dage");
647
+ define('TXT_WPSC_MONTHS', "M&aring;neder");
648
+ define('TXT_WPSC_YEARS', "&Aring;r");
649
+ define('TXT_WPSC_MEMBERS_SUBSCRIPTION_ENDED', "Dit abonnement er afsluttet.");
650
+ define('TXT_WPSC_ACTIVATE_SETTINGS_MEMBERS', 'Aktiverings indstillinger: Medlems Modul');
651
+ define('TXT_WPSC_GOLD_CART', 'Gold Cart');
652
+ define('TXT_WPSC_SHOW_CATEGORY_DESCRIPTION', 'Vis kategori beskrivelse');
653
+ define('TXT_WPSC_ALSO_BOUGHT', 'Personer der k&oslash;bte dette, var ogs&aring; interesseret i');
654
+ define('TXT_WPSC_MARKETING_SETTINGS', 'Marketing indstillinger');
655
+ define('TXT_WPSC_OPTION_ALSO_BOUGHT', 'Vis cross sales');
656
+ define('TXT_WPSC_MARKETING', 'Marketing');
657
+ define('TXT_WPSC_DISPLAYCOUPONS', 'V&aelig;rdi kupon');
658
+ define('TXT_WPSC_ADD_COUPON', 'Tilf&oslash;j v&aelig;rdi kupon');
659
+ define('TXT_WPSC_COUPON', 'V&aelig;rdi kupon');
660
+ define('TXT_WPSC_ADDCOUPONS', 'Tilf&oslash;j v&aelig;rdi kupon');
661
+ define('TXT_WPSC_COUPON_CODE', 'v&aelig;rdi kupon kode');
662
+ define('TXT_WPSC_DISCOUNT', 'Rabat');
663
+ define('TXT_WPSC_START', 'Start');
664
+ define('TXT_WPSC_EXPIRY', 'Udl&oslash;b');
665
+ define('TXT_WPSC_USE_ONCE', 'Benyt 1 gang');
666
+ define('TXT_WPSC_ACTIVE', 'Aktiv');
667
+ define('TXT_WPSC_COUPONHASBEENADDED', 'Mange Tak, v&aelig;rdi kuponen er blevt tilf&oslash;jet.');
668
+ define('TXT_WPSC_COUPON', 'V&aelig;rdi kupon');
669
+ define('TXT_WPSC_COUPON_DOESNT_EXIST', 'V&aelig;rdi kuponen er udl&oslash;bet eller eksistere ikke.');
670
+ define('TXT_WPSC_PRODUCT_TAGS', 'Produkt tags');
671
+
672
+ define('TXT_WPSC_DROPSHOPDISPLAY', 'DropShop visning');
673
+ define('TXT_WPSC_HIDEADDTOCARTBUTTON', 'Skjul "Tilf&oslash;j til indk&oslash;bskurv" knap');
674
+
675
+ define('TXT_WPSC_PRODUCT_TAGS', 'Produkt tags');
676
+
677
+ define('TXT_WPSC_SHOW_DROPSHOP_ALL', 'Vis Dropshop p&aring; alle sider');
678
+ define('TXT_WPSC_SHOW_DROPSHOP_PRODUCT', 'vis Dropshop kun p&aring; produkt side');
679
+ define('TXT_WPSC_PRICEAFTERDISCOUNT', 'Pris efter rabat');
680
+ define('TXT_WPSC_ECOM_NEWS', 'e-Commerce nyheder');
681
+ define('TXT_WPSC_SAVE_PRODUCT_ORDER', 'Gem produkt ordre');
682
+
683
+ define('TXT_WPSC_ECOMMERCE_SUBSCRIBERS', 'e-Commerce abonnenter');
684
+ define('TXT_WPSC_USERID', 'Bruger ID');
685
+ define('TXT_WPSC_REGISTEREDDATE', 'Registrerings dato');
686
+ define('TXT_WPSC_SUSPEND', 'Afbryd');
687
+ define('TXT_WPSC_ACTIVATE', 'Aktiver');
688
+
689
+
690
+ define('TXT_WPSC_DROPSHOP_LIGHT', 'Benyt light Dropshop stil');
691
+ define('TXT_WPSC_DROPSHOP_DARK', 'Benyt dark Dropshop stil');
692
+
693
+
694
+ define('TXT_WPSC_MANUAL_PAYMENT', 'Manuel betaling');
695
+ define('TXT_WPSC_CREDIT_CARD', 'Kredit kort');
696
+ define('TXT_WPSC_CREDIT_CARD_AND_MANUAL_PAYMENT', 'Manuel betaling og kredit kort');
697
+ define('TXT_WPSC_PAYMENT_INSTRUCTIONS', 'Indtast manuel betalings beskrivelse her. f.eks.: \'Efter at du har placeret din ordre, vil du modtage en email med betalings information\'');
698
+
699
+ define('TXT_WPSC_SHOWALL', "Vis alle");
700
+ define('TXT_WPSC_PRICE_RANGE', "Pris leje");
701
+ define('TXT_WPSC_GOOGLE_RISK_AVS', "Adresse verifikation mislykkedes");
702
+ define('TXT_WPSC_GOOGLE_RISK_CVN', "Kredit kort verifikation mislykkedes");
703
+ define('TXT_WPSC_GOOGLE_RISK_BOTH', "Kredit kort og adresse verifikation mislykkedes");
704
+ define('TXT_WPSC_GOOGLE_RISK', 'Google Risk');
705
+ define('TXT_WPSC_CANCEL_ORDER', 'Slet denne ordre');
706
+ define('TXT_WPSC_FIRST_NAME', 'Fornavn');
707
+ define('TXT_WPSC_LAST_NAME', 'Efternavn');
708
+ define('TXT_WPSC_DELIVERY_FIRST_NAME', 'Levering fornavn');
709
+ define('TXT_WPSC_DELIVERY_LAST_NAME', 'Levering efternavn');
710
+ define('TXT_WPSC_DELIVERY_STATE', 'Levering omr&aring;de');
711
+ define('TXT_WPSC_SHIPWIREEMAIL', 'ShipWire email');
712
+ define('TXT_WPSC_SHIPWIREPASSWORD', 'ShipWire password');
713
+ define('TXT_WPSC_SHIPWIRESETTINGS', 'ShipWire indstillinger');
714
+ define('TXT_WPSC_NO_DOWNLOADABLES', 'Du har endnu ikke k&oslash;bt nogen digitale download produketer.');
715
+ define('TXT_DISPLAY_VARIATIONS', 'Vis variationer');
716
+
717
+
718
+
719
+ ?>
wp-shopping-cart/languages/EL_el.php ADDED
@@ -0,0 +1,479 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ This is a language file for the WP Shopping Cart plugin version 2.6.5 beta
4
+ 16 Feb 2007 translation by Dimitrios Michelinakis
5
+ */
6
+
7
+ define('TXT_WPSC_IMAGESIZEINFO', 'S?µe??s?: ?? a?t? e??a? ?e??, ? f?t???af?a de? ?a a????e? µ??e???.');
8
+ define('TXT_WPSC_RECEIVED', '??a pa?a??e??a');
9
+ define('TXT_WPSC_ORDER_STATUS', '?at?stas? pa?a??e??a?');
10
+ define('TXT_WPSC_ORDER_SUMMARY', 'S????? pa?a??e????');
11
+ define('TXT_WPSC_LANGUAGE', 'G??ssa');
12
+ define('TXT_WPSC_ACCEPTED_PAYMENT', '?p?ßeßa??s? p????µ??');
13
+ define('TXT_WPSC_JOB_DISPATCHED', '?p?st??? pa?a??e??a?');
14
+ define('TXT_WPSC_PROCESSED', '????????µ??? pa?a??e??a');
15
+ define('TXT_WPSC_ECOMMERCE', 'e-?µp????');
16
+ define('TXT_WPSC_OPTIONS', '?p?????? ?atast?µat??');
17
+ define('TXT_WPSC_ADDPRODUCTS', '??a p?????ta');
18
+ define('TXT_WPSC_SENDSMS', '?p?st??? SMS');
19
+ define('TXT_WPSC_PRODUCTS', '??????ta');
20
+ define('TXT_WPSC_ADDCATEGORY', '??a ?at?????a');
21
+ define('TXT_WPSC_CATEGORIES', '?at?????e?');
22
+ define('TXT_WPSC_BRANDS', '????e?');
23
+ define('TXT_WPSC_VARIATIONS', '?a?a??a???');
24
+ define('TXT_WPSC_PURCHASELOG', '?atastat??? pa?a??e????');
25
+ define('TXT_WPSC_ORDER_LOG', '?a?a??e??e?');
26
+ define('TXT_WPSC_OLDER_ORDERS', '?a?a??te?e? pa?a??e??e?');
27
+ define('TXT_WPSC_ORDER', '?a?a??e??a');
28
+ define('TXT_WPSC_TOTAL_THIS_MONTH', '????a?a ap?d?s?');
29
+ define('TXT_WPSC_MONTHLY_REPORT', '???µ??? a?af???');
30
+ define('TXT_WPSC_TOTAL_INCOME', 'S??????? ap?d?s?');
31
+ define('TXT_WPSC_ACCEPTED_PAYMENTS', '(?p?ßeßa??µ??e? p????µ??)');
32
+ define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', '?p?????? p????');
33
+ define('TXT_WPSC_HELPINSTALLATION', '????e?a/??aß??µ?s?');
34
+ define('TXT_WPSC_EXAMPLECATEGORY', '?a??de??µa ?at?????a?');
35
+ define('TXT_WPSC_EXAMPLEDETAILS', '?a??de??µa st???e???');
36
+ define('TXT_WPSC_EXAMPLEBRAND', '?a??de??µa µ???a?');
37
+ define('TXT_WPSC_PRODUCTIMAGEWIDTH', '???t?? f?t???af?a? p?????t??');
38
+ define('TXT_WPSC_PRODUCTIMAGEHEIGHT', '???? f?t???af?a? p?????t??');
39
+ define('TXT_WPSC_CATEGORYIMAGEWIDTH', '???t?? f?t???af?a? ?at?????a?');
40
+ define('TXT_WPSC_CATEGORYIMAGEHEIGHT', '???? f?t???af?a? ?at?????a?');
41
+ define('TXT_WPSC_PRODUCTLISTURL', '? t?p??es?a t?? ?ata????? p?????t??');
42
+ define('TXT_WPSC_SHOPPINGCARTURL', '? t?p??es?a t?? ?a?a???? a?????');
43
+ define('TXT_WPSC_CHECKOUTURL', '? t?p??es?a t?? se??da? t?? taµe???');
44
+ define('TXT_WPSC_TRANSACTURL', '? t?p??es?a t?? se??da? s??a??a??? st???e???');
45
+ define('TXT_WPSC_PAYMENTGATEWAY', '???? p????µ??');
46
+ define('TXT_WPSC_CARTLOCATION', '??p??es?a ?a?a????');
47
+ define('TXT_WPSC_SHOWCATEGORYBRANDS', '?µf???s? ?at?????a? ? µ???a? ? ?a? t?? d??');
48
+ define('TXT_WPSC_CURRENCYTYPE', '??µ?sµa');
49
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', '??p??es?a s?µß????');
50
+ define('TXT_WPSC_GSTRATE', 'ep?t???? GST');
51
+ define('TXT_WPSC_MAXDOWNLOADS', '?? download ????');
52
+ define('TXT_WPSC_DISPLAYPNP', '?µf???s? ? ap?????? t?? t??p?? pa?eta??sµat?? ?a? ap?st????');
53
+ define('TXT_WPSC_DISPLAYSPECIALS', '?µf???s? ? ap?????? t?? p??sf???? st?? pa??p?e??? µp??a');
54
+ define('TXT_WPSC_POSTAGEAND_PACKAGING', '???ep????? t??p?? pa?eta??sµat?? ?a? ap?st????');
55
+ define('TXT_WPSC_PURCHLOGEMAIL', 'Email d?e????s? ap?st???? ?atastat???? pa?a??e????');
56
+ define('TXT_WPSC_RETURNEMAIL', 'Email d?e????s? ap?st???a a?af???? pa?a??e????');
57
+ define('TXT_WPSC_TERMSANDCONDITIONS', '???? ???s?? ?a? p????µ??');
58
+ define('TXT_WPSC_DEFAULTBRAND', '???ep??e?µ??? µ???a');
59
+ define('TXT_WPSC_DEFAULTCATEGORY', '???ep??e?µ??? ?at?????a');
60
+ define('TXT_WPSC_PAYPALBUSINESS', 'paypal business');
61
+ define('TXT_WPSC_PAYPALURL', 'paypal url');
62
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', '?µf???s? ßa?µ?????s?? p?????t??');
63
+ define('TXT_WPSC_PRODUCTSPAGE', 'Se??da p?????t??');
64
+ define('TXT_WPSC_CHECKOUT', '?aµe??');
65
+ define('TXT_WPSC_ENTERDETAILS', '??sa???? st???e???');
66
+ define('TXT_WPSC_TRANSACTIONRESULTS', '?p?te??sµata s??a??a???');
67
+ define('TXT_WPSC_SELECTACATEGORY', '?p????? ?at?????a?');
68
+ define('TXT_WPSC_SELECTABRAND', '?p????? µ???a?');
69
+ define('TXT_WPSC_PRODUCTNAME', '???µa p?????t??');
70
+ define('TXT_WPSC_PRODUCTDESCRIPTION', '?e????af? p?????t??');
71
+ define('TXT_WPSC_ADDITIONALDESCRIPTION', '?p?p??s?et? pe????af?');
72
+ define('TXT_WPSC_PRICE', '??µ?');
73
+ define('TXT_WPSC_TAXALREADYINCLUDED', '????? F?? (?? F?? ????ete st?? ep?????? ?atast?µat??)');
74
+ define('TXT_WPSC_SPECIAL', '??µ? p??sf????/??pt?s??');
75
+ define('TXT_WPSC_PRODUCT_DISPLAY', '?µf???s? p?????t??');
76
+
77
+ define('TXT_WPSC_PRODUCTSTOCK', '?p??eµa p?????t??');
78
+
79
+ define('TXT_WPSC_UNTICKBOX', '?p???e? pe?????sµ???? a???µ?? ap??eµ?t?? a?t?? t?? p?????t??. ?? e?a?t???e? t? ap??eµa, a?t? t? p????? de? ?a e??a? d?a??s?µ? e?t?? ?a? a? de? e??a? ep??e?µ??? a?t? ? ep????? ? p??ste?e? pe??ss?te?? ap??eµa.');
80
+ define('TXT_WPSC_LIMITED_STOCK', '?e?????sµ??? ap??eµa');
81
+
82
+ define('TXT_WPSC_CATEGORY', '?at?????a');
83
+ define('TXT_WPSC_BRAND', '????a');
84
+ define('TXT_WPSC_PRODUCT_VARS', '?a?a??a??? p?????t??');
85
+ define('TXT_WPSC_ADD_VAR', '??? s????? pa?a??a???');
86
+ define('TXT_WPSC_EDIT_VAR', '?pe?e??as?a s?????? pa?a??a???');
87
+ define('TXT_WPSC_SELECTAVARIATION', '?p????? pa?a??a???');
88
+ define('TXT_WPSC_NEW_VARIATION', '??µ??????a ??a? pa?a??a???');
89
+
90
+ define('TXT_WPSC_PRODUCTATT', '?p?s????e??');
91
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT', '?????? ??a download');
92
+ define('TXT_WPSC_FILETOBEPRODUCT', 'S?µe??s?: ?? a?t? s?µp?????e?, t? ?ata????µ??? a??e?? ?a e??a? t? p????? p??? p???s?.');
93
+ define('TXT_WPSC_RESIZEIMAGE', '???a?? µe?????? µ??????af?a?');
94
+ define('TXT_WPSC_DONOTRESIZEIMAGE', '?µet?ß??t? µ??e??? µ??????af?a?');
95
+ //define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', '???s? p??ep??e?µ???? ????? ?a? p??t???');
96
+ //define('TXT_WPSC_USE', '???s?');
97
+ //define('TXT_WPSC_PXHEIGHTBY', 'px ???? ep?');
98
+ //define('TXT_WPSC_PXWIDTH', 'px p??t??.');
99
+
100
+ // pe.{
101
+ //define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', '???s? p??ep??e?µ???? ????? ?a? p??t???');
102
+ // }.pe
103
+ define('TXT_WPSC_SEPARATETHUMBNAIL', '???s? ?e????st?? µ??????af?a?');
104
+ define('TXT_WPSC_USE', '???s?');
105
+ // pe.{
106
+ define('TXT_WPSC_USEDEFAULTSIZE', '???s? p??ep??e?µ???? µe??????');
107
+ define('TXT_WPSC_USESPECIFICSIZE', '???s? s???e???µ???? µe??????');
108
+ define('TXT_WPSC_PXHEIGHT', 'px ????');
109
+ define('TXT_WPSC_PXWIDTH', 'px p??t??');
110
+ // }.pe
111
+
112
+ define('TXT_WPSC_PREVIEW', '???ep?s??p?s?');
113
+ define('TXT_WPSC_UPLOADNEWIMAGE', '??t??at?stas? f?t???af?a?');
114
+ define('TXT_WPSC_DELETEIMAGE', '??a??af? f?t???af?a?');
115
+ define('TXT_WPSC_EDIT', '?pe?e??as?a');
116
+ define('TXT_WPSC_DELETE', '??a??af?');
117
+ define('TXT_WPSC_REMOVE', '?fa??es?');
118
+ define('TXT_WPSC_NAME', '???µa');
119
+ define('TXT_WPSC_TYPE', '??p??');
120
+ define('TXT_WPSC_MANDATORY', '?p???e?t???');
121
+ define('TXT_WPSC_DISPLAY_IN_LOG', '?µf???s?<br /> st? ?atastat???');
122
+ define('TXT_WPSC_DESCRIPTION', '?e????af?');
123
+ define('TXT_WPSC_CATEGORY_PARENT', 'G????? ?at?????a');
124
+ define('TXT_WPSC_IMAGE', 'F?t???af?a');
125
+ define('TXT_WPSC_HEIGHT', '????');
126
+ define('TXT_WPSC_WIDTH', '???t??');
127
+ define('TXT_WPSC_PLEASEENTERAVALID', '?a?a?a?? s?µp????ste');
128
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', '?a?a?a?? s?µp????ste t? ???µa sa?');
129
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', '?a?a?a?? s?µp????ste t? ep???µ? sa?');
130
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', '?a?a?a?? s?µp????ste t?? email d?e????s? sa?');
131
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', '?a?a?a?? s?µp????ste t?? ta??d??µ??? d?e????s? sa?');
132
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', '?a?a?a?? s?µp????ste t? t???f??? sa?');
133
+ define('TXT_WPSC_TERMSANDCONDITIONS', '?e? ??ete ap?de?te? t??? ????? ???s?? ?a? p????µ??');
134
+ define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', '?? ?a???? a????? sa? e??a? ?de??');
135
+ define('TXT_WPSC_SPECIALS', '???sf????');
136
+ define('TXT_WPSC_BUY', '?????');
137
+ define('TXT_WPSC_SHOPPINGCART', '?a???? a?????');
138
+ define('TXT_WPSC_NUMBEROFITEMS', '??t??e?µe?a');
139
+ define('TXT_WPSC_NOMOREAVAILABLE', '??t? t? p????? ??e? e?a?t???e?');
140
+ define('TXT_WPSC_EMPTYYOURCART', '?de?asµa t?? ?a?a????');
141
+ define('TXT_WPSC_GOTOCHECKOUT', '?????µ?');
142
+ define('TXT_WPSC_CONTINUESHOPPING', '?p?st??f? sta p?????ta');
143
+ define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', '?de?? ?a???? a?????');
144
+ define('TXT_WPSC_VISITTHESHOP', '?p?s?e?? st? ?at?st?µa');
145
+ define('TXT_WPSC_PAGES', 'Se??de?');
146
+ define('TXT_WPSC_OUTOF', 'ap?');
147
+ define('TXT_WPSC_VOTES', '??f???.');
148
+ define('TXT_WPSC_CLICKSTARSTORATE', '?p????te ast??? ??a ?a ??f?sete');
149
+ define('TXT_WPSC_AVERAGERATINGOF', '??s?? ???? ap?');
150
+ define('TXT_WPSC_YOURVOTE', '? ??f?? sa?');
151
+ define('TXT_WPSC_AVERAGEVOTE', '??s? ??f??');
152
+ define('TXT_WPSC_YOUHAVEVOTED', '??ete ??f?se?');
153
+ define('TXT_WPSC_NOVOTES', '????? ??f???');
154
+ define('TXT_WPSC_1VOTE', '1 ??f??');
155
+ define('TXT_WPSC_VOTES2', '??f???');
156
+ define('TXT_WPSC_PERSONGIVEN', '?t?µ? ??e? ßa?µ?????se? a?t? t? f?t???af?a');
157
+ define('TXT_WPSC_PERSONGIVEN2', 'ast???a.');
158
+ define('TXT_WPSC_PEOPLEGIVEN', '?t?µa ????? ßa?µ?????se? a?t? t? f?t???af?a');
159
+ define('TXT_WPSC_PEOPLEGIVEN2', 'ast???a.');
160
+ define('TXT_WPSC_ITEMHASBEENADDED', '?? p????? p??st????e st? ?a????');
161
+ define('TXT_WPSC_ITEMHASNOTBEENADDED', '?? p????? de? p??st????e st? ?a????');
162
+ define('TXT_WPSC_ADDNEWCATEGORY', '??a ?at?????a');
163
+ define('TXT_WPSC_SUBMIT', '?p?st???');
164
+ define('TXT_WPSC_SELECTAVALIDCATEGORY', '?a?a?a?? d?a???te µ?a ?????? ?at?????a');
165
+ define('TXT_WPSC_PRODUCTNAME', '???µa p?????t??');
166
+ define('TXT_WPSC_PRODUCTDESCRIPTION', '?e????af? p?????t??');
167
+ define('TXT_WPSC_ADDNEWPRODUCT', '??? p?????');
168
+ define('TXT_WPSC_PRODUCTQUANTITY', 'Productquantity');
169
+ define('TXT_WPSC_PRODUCTIMAGE', 'F?t???af?a p?????t??');
170
+ define('TXT_WPSC_PRODUCTPRICE', '??µ? p?????t??');
171
+ define('TXT_WPSC_NOTAX', '?f???????t?');
172
+ define('TXT_WPSC_ABOUT', '?e??');
173
+ define('TXT_WPSC_ABOUTCONTENT', 'Welcome to the e-commerce panel. <br /><br /><strong>Note:</strong> on some setups, the shopping cart may empty on every page load, if this happens, you will have to add this line:<br /><br />session_start();<br /><br />to the index.php file in the base wordpress directory.<br />');
174
+ define('TXT_WPSC_CONTACTDETAILS', '?a?a?a?? s?µp????ste ta st???e?a sa?:');
175
+ define('TXT_WPSC_CREDITCARDHANDY', 'Note, Once you press submit, you will need to have your Credit card handy.');
176
+ define('TXT_WPSC_ASTERISK', 'Fields marked with an asterisk must be filled in.');
177
+ define('TXT_WPSC_FIRSTNAME', '???µa');
178
+ define('TXT_WPSC_LASTNAME', 'Ep???µ?');
179
+ define('TXT_WPSC_EMAIL', 'Email');
180
+ define('TXT_WPSC_ADDRESS', '??e????s?');
181
+ define('TXT_WPSC_ADDRESS1', '??e????s? 1');
182
+ define('TXT_WPSC_ADDRESS2', '??e????s? 2');
183
+ define('TXT_WPSC_CITY', '????');
184
+ define('TXT_WPSC_COUNTRY', '???a');
185
+ define('TXT_WPSC_PHONE', '????f???');
186
+ define('TXT_WPSC_TERMS1', '?p?d???µa? t??? ');
187
+ define('TXT_WPSC_TERMS2', '????? ???s?? ?a? p????µ??');
188
+
189
+
190
+ define('TXT_WPSC_TEXT', '?e?µe??');
191
+ define('TXT_WPSC_TEXTAREA', 'Textarea');
192
+ define('TXT_WPSC_HEADING', 'Heading');
193
+
194
+ define('TXT_WPSC_MAKEPURCHASE', '?????');
195
+ define('TXT_WPSC_BUYPRODUCTS', 'Please buy some products before using this page');
196
+ define('TXT_WPSC_BRANDHASBEENEDITED', 'The brand has been edited.');
197
+ define('TXT_WPSC_SURETODELETEPRODUCT', 'Are you sure you want to delete this product?');
198
+ define('TXT_WPSC_ADDBRAND', '??a µ???a');
199
+ define('TXT_WPSC_DISPLAYBRANDS', '????e?');
200
+ define('TXT_WPSC_EDITBRAND', '?pe?e??as?a µ???a?');
201
+ define('TXT_WPSC_ADD', '???s?es?');
202
+ define('TXT_WPSC_ADD_NEW_FORM', '??? ped?? f??µa?');
203
+ define('TXT_WPSC_SAVE_CHANGES', '?ata????s? a??a???');
204
+
205
+ define('TXT_WPSC_CATEGORYHASBEENEDITED', 'The category has been edited.');
206
+ define('TXT_WPSC_DISPLAYCATEGORIES', '?at?????e?');
207
+ define('TXT_WPSC_ADDCATEGORY', '??a ?at?????a');
208
+ define('TXT_WPSC_EDITCATEGORY', '?pe?e??as?a ?at?????a?');
209
+ define('TXT_WPSC_ALLCATEGORIES', '??e? t?? ?at?????e?');
210
+
211
+ define('TXT_WPSC_DISPLAYVARIATIONS', '?a?a??a???');
212
+ define('TXT_WPSC_ADDVARIATION', 'Add Variation Set');
213
+ define('TXT_WPSC_EDITVARIATION', 'Edit Variation Set');
214
+ define('TXT_WPSC_VARIATIONHASBEENEDITED', 'The variation has been edited.');
215
+ define('TXT_WPSC_VARIATION_VALUES', 'Variation Values');
216
+ define('TXT_WPSC_REMOVE_SET', 'Remove This Set'); //this needs to be translated
217
+
218
+ define('TXT_WPSC_SELECT_PARENT', 'Select Parent');
219
+ define('TXT_WPSC_PRODUCTHASBEENEDITED', 'The product has been edited.');
220
+ define('TXT_WPSC_ADDPRODUCT', '??? p?????');
221
+ define('TXT_WPSC_DISPLAYPRODUCTS', '??????ta');
222
+ define('TXT_WPSC_PLEASESELECTACATEGORY', '?a?a?a?? d?a???te µ?a ?at?????a');
223
+ define('TXT_WPSC_STOCK', '?p??eµa');
224
+ define('TXT_WPSC_PNP', 'PnP');
225
+ define('TXT_WPSC_EDITITEM', 'Edit Item');
226
+ define('TXT_WPSC_PRODUCTDETAILS', 'Product Details');
227
+ define('TXT_WPSC_SELECT_PRODUCT', 'Select an Existing Product');
228
+ define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', '(enter in your product details here)');
229
+ define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', 'Additional Product Description');
230
+ define('TXT_WPSC_ADDITEM', 'Add Item');
231
+ define('TXT_WPSC_CHOOSEACATEGORY', '?p????? ?at?????a?');
232
+ define('TXT_WPSC_CHOOSEABRAND', '?p????? µ???a?');
233
+ define('TXT_WPSC_USETHEACTUALIMAGE', '???s? a?????? f?t???af?a?, ????? a??a?? µe??????.');
234
+ define('TXT_WPSC_DISPLAYPURCHASES', '?atastat??? pa?a??e????');
235
+ define('TXT_WPSC_ID', 'ID');
236
+ define('TXT_WPSC_TRANSACTIONSTATUS', '?at?stas? s??a??a???');
237
+ define('TXT_WPSC_DATE', '?µe??µ???a');
238
+ define('TXT_WPSC_VIEWDETAILS', '?ept?µ??e?e?');
239
+ define('TXT_WPSC_STATUS', '?at?stas?');
240
+ define('TXT_WPSC_SUCCESSFUL', '?p?t???a');
241
+ define('TXT_WPSC_FAILED', '?p?t???a');
242
+ define('TXT_WPSC_GST', 'GST');
243
+ define('TXT_WPSC_PP', 'P&amp;P');
244
+ define('TXT_WPSC_TOTAL', 'S?????');
245
+ define('TXT_WPSC_FINALTOTAL', '?e???? s?????');
246
+ define('TXT_WPSC_CUSTOMERDETAILS', '?ept?µ??e?e? pe??t?');
247
+ define('TXT_WPSC_USERSCARTWASEMPTY', 'This users cart was empty');
248
+ define('TXT_WPSC_GOBACK', '?p?st??f?');
249
+ define('TXT_WPSC_THANKSAPPLIED', 'Thanks, your changes have been applied.');
250
+ define('TXT_WPSC_FORM_FIELDS', '?p?????? taµe???');
251
+ define('TXT_WPSC_PAYMENTGATEWAY2', 'Payment Gateway');
252
+ define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', 'Please Select A Payment Gateway');
253
+ define('TXT_WPSC_PAYMENTGATEWAYNOTE', '<strong>Note:</strong> This lite version of the e-Commerce plugin only allows you to interface with PayPal.<br /><br />If you are looking for a more profesional "non paypal solution" then we have a <a href="http://www.instinct.co.nz/blogshop">gold version of e-Commerce</a> available that interfaces seamlessly with authorize.net, DPS (www.dps.co.nz), and paystation (www.paystation.co.nz).');
254
+ define('TXT_WPSC_URLSETTINGS', 'URL Settings');
255
+ define('TXT_WPSC_PRODUCTLISTURL', 'Product List URL');
256
+ define('TXT_WPSC_SHOPPINGCARTURL', 'Shopping Cart URL');
257
+ define('TXT_WPSC_CHECKOUTURL', 'Checkout URL');
258
+ define('TXT_WPSC_TRANSACTIONDETAILSURL', 'Transaction Details URL');
259
+ define('TXT_WPSC_PRESENTATIONSETTINGS', 'Presentation Settings');
260
+ define('TXT_WPSC_CARTLOCATION', 'Cart Location');
261
+ define('TXT_WPSC_SIDEBAR', 'Sidebar');
262
+ define('TXT_WPSC_PAGE', 'Page');
263
+ define('TXT_WPSC_WIDGET', 'Widget');
264
+ define('TXT_WPSC_NEEDTOENABLEWIDGET', 'You need to enable the widgets plugin to use this');
265
+ define('TXT_WPSC_MANUAL', 'Manual');
266
+ define('TXT_WPSC_SHOWCATEGORIESBRANDS', 'Show Categories/Brands');
267
+ define('TXT_WPSC_BOTH', '?a? ta d??');
268
+ define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', 'Default Product Thumbnail Size');
269
+ define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', 'Default Category Thumbnail Size');
270
+ define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', 'Show Postage and Packaging');
271
+ define('TXT_WPSC_YES', '?a?');
272
+ define('TXT_WPSC_NO', '???');
273
+ define('TXT_WPSC_SHOWSPECIALS', '?µf???s? p??sf????');
274
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', '?µf???s? ??f?? p?????t??');
275
+ define('TXT_WPSC_CURRENCYSETTINGS', '?p?????? ??µ?sµat??');
276
+ define('TXT_WPSC_GSTTAXRATE', 'GST/Tax Rate');
277
+ define('TXT_WPSC_CURRENCYTYPE', '??µ?sµa');
278
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', '??p??es?a s?µß????');
279
+ define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', 'Default Postage &amp; Packaging');
280
+ define('TXT_WPSC_ADMINISTRATIONSETTINGS', 'Administration Settings');
281
+ define('TXT_WPSC_MAXDOWNLOADSPERFILE', 'Max downloads per file');
282
+ define('TXT_WPSC_PURCHASELOGEMAIL', 'Purchase Log Email');
283
+ define('TXT_WPSC_REPLYEMAIL', 'Reply Email');
284
+ define('TXT_WPSC_BRANDNOCAP', 'µ???a');
285
+ define('TXT_WPSC_CATEGORYNOCAP', '?at?????a');
286
+ define('TXT_WPSC_UDPATING', 'Updating');
287
+ define('TXT_WPSC_MOREDETAILS', '?e??ss?te?e? p????f???e?');
288
+ define('TXT_WPSC_ADDTOCART', '???s?es? st? ?a????');
289
+ define('TXT_WPSC_AVGCUSTREVIEW', 'Avg. Customer Rating');
290
+ define('TXT_WPSC_YOURRATING', 'Your Rating');
291
+ define('TXT_WPSC_RATING_SAVED', 'Saved');
292
+ define('TXT_WPSC_RATETHISITEM', 'Rate This item');
293
+ define('TXT_WPSC_PRODUCTSOLDOUT', 'This product has sold out.');
294
+ define('TXT_WPSC_NOITEMSINTHIS', 'There are no items in this');
295
+ define('TXT_WPSC_CATEGORYORBRAND', 'Category or Brand');
296
+ define('TXT_WPSC_PLEASECHOOSEA', '?p????te');
297
+ define('TXT_WPSC_PRODUCT', '??????');
298
+ define('TXT_WPSC_QUANTITY', '??s?t?ta');
299
+ define('TXT_WPSC_QUANTITY_SHORT', '??s?t'); //translation needed
300
+ define('TXT_WPSC_APPLY', '?fa?µ???');
301
+ define('TXT_WPSC_MAKEPAYMENT', '?????µ?');
302
+ define('TXT_WPSC_EMPTYSHOPPINGCART', '?de?asµa t?? ?a?a???? a?????');
303
+ define('TXT_WPSC_TOTALPRICE', 'Total Price');
304
+ define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', 'There are no items in the shopping cart');
305
+ define('TXT_WPSC_EMAILMSG1', "Thank you, the order has been accepted, any items to be shipped will be processed as soon as possible, any items that can be downloaded can be downloaded using the links on this page.\n\r\n\rAll prices include tax and postage and packaging where applicable.\n\r\n\rYou ordered these items:\n\r\n\r");
306
+ define('TXT_WPSC_EMAILMSG2', ".\n\rThese items were ordered:\n\r\n\r");
307
+ define('TXT_WPSC_CLICKTODOWNLOAD', 'Click here to download');
308
+ define('TXT_WPSC_DOWNLOAD', 'Download');
309
+ define('TXT_WPSC_YOURTRANSACTIONID', 'Your Transaction ID');
310
+ define('TXT_WPSC_TRANSACTIONID', 'Transaction ID');
311
+ define('TXT_WPSC_PURCHASERECEIPT', 'Purchase Receipt');
312
+ define('TXT_WPSC_PURCHASEREPORT', 'Purchase Report');
313
+ define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', 'The Transaction was successful');
314
+ define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', 'The Transaction was not successful');
315
+ define('TXT_WPSC_GOBACKTOCHECKOUT', 'Go back to the checkout');
316
+ define('TXT_WPSC_SPECIALPRICE', 'Special Price');
317
+
318
+ define('TXT_WPSC_INSTRUCTIONS', '
319
+ To complete the installation you need to create the Product, Shopping Cart, Checkout and Transaction Result pages, and then hide the Shopping Cart, Checkout and Transaction Result pages so that they do not appear in the pages list.
320
+ <ul class=\'installation\'>
321
+ <li>Place contents of zip file in the wp-content/plugins directory.</li>
322
+ <li>Activate the plugin from the wordpress plugin page</li>
323
+ <li>Go to the "Payment Gateway Options" page in the "e-Commerce" tab, and enter in the appropriate details. (the default paypal gateway accessed is the paypal sandbox)</li>
324
+ <li>Create some Categories and Products using the Categories and Products pages</li>
325
+ </ul>
326
+ Expecting more? That\'s it.</p>
327
+ <h2>Wishlist Tip Jar</h2>
328
+ <p>Donations are in no way mandatory.<br /><br />
329
+ Yet, we have been spending considerable amounts of time writing, supporting and debugging WP e-commerce. Therefore, if you like what you see, and want to see more of it, feel free to help finance future releases by dropping a buck or two in the tip jar...</p>
330
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
331
+ <input type="hidden" name="cmd" value="_s-xclick">
332
+ <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">
333
+ <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAh/vca+S7Em1KNH3rhwBRD1h4c0DdQSgmknr8mKQU7KfG5jSYXu5DD9oriGfYSDg+99ZtljIwtqvefC0wKdEJ0yFMGinWp9zGw2Xvu1s4S+pcH5IGax9KQo1WosnzA99F04MHQnqkxcfpTXCG8VLSf/r/rx8+++vVsYWNYN717+DELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIHATWqFYRAjeAgaB2F/F90mbYo/5zGY/1AYtsQ35nRDtelewxW7iLHF41rzB3NidYEs2h+t/HS0MoGTBsAfVc94mxIzInI1pQt9n/hpF67XAr357KVwIoIOq52jDfDFlZV92BPMv00MHuj4LNtNq5I752I3SsNamhl1DfAqlWxnJsIibA1D3l8k67ccc04/JYjvsd89hYgf0lob7vQoZ8X5xNtlidM3qcAx4goIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDYwMzA5MjA0ODA4WjAjBgkqhkiG9w0BCQQxFgQUCBfIACnHn+V2COlj8DDv2MsFJRIwDQYJKoZIhvcNAQEBBQAEgYCMXnxnBNyUy7axfHh9EDVq7HFzTvTsGwtmAUVesOyRNGwESXpukrX4rDOMNdHbbVToxa98uIKJUJPiYGBcpcUywtpZG1ZiDvYxoWgDh4zXx4w1QcJ96OjUPkHQ3q0UWY+p9GRxl+buhyjK62BxU5I0UaKc0H3QuATQB5+lbZdlgw==-----END PKCS7-----">
334
+ </form>
335
+ <h2>Customisation and Tips</h2>
336
+ <p><strong>GST & Tax</strong><br />If required you can enter in a default GST/Tax rate on the Options page in the "e-Commerce" tab.</p>
337
+ <p><strong>Email purchase Logs</strong><br />If you add an email address for the purchase log on the Purchase Log page this will be the email address that is sent a purchase notification each time something is bought.</p>
338
+ <p><strong>Hiding pages</strong><br />
339
+ To prevent the Shopping Cart, Checkout and Transaction Results pages from being displayed in the page list you must first find out their ID numbers. <br />
340
+ <br />Then you have to edit the file in the theme you use that displays pages. <br />
341
+ <br />This is normally found in sidebar.php, find the line similar to:<br />
342
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;/h2&gt;\' ); ?&gt;"<br />
343
+ <br />Edit the line accordingly, for example:<br />
344
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;h2&gt;&amp;exclude=3,4,5\'); ?&gt;"<br />
345
+ <br />The word exclude tells it to exclude the pages from the list, and the numbers after the word exclude are the ID numbers of the pages to exclude.</p>
346
+ <p><strong>Upgrading from Previous Version</strong><br />
347
+ If you are upgrading from a previous version, you will need to deactivate and reactivate the plugin.</p>
348
+ <p><strong>Image Functions</strong><br />
349
+ If your server does not have the PHP image functions installed, you will not be able to resize images once they are uploaded</p>
350
+ <p><strong>Permalinks</strong><br />
351
+ We\'re doing the best we can.
352
+ I have not been able to find a really good way to pass the required variables from page to page using permalinks that dont use mod_rewrite, if you cant use mod_rewrite, the plugin may not work with permalinks turned on.</p>
353
+ <p><strong>Javascript and Ajax </strong><br />
354
+ e-commerce lite uses Ajax, the shopping cart that the user sees will work without Javascript, but the Administration pages (specifically the Products and Categories pages) will not. To use the Administration section you will need to use a reasonably modern browser and have Javascript turned on. (Internet Explorer 6 or better, or Firefox 1.0 or better, older versions have not been tested for and may or may not work)</p>
355
+ <p><strong>Contact Us</strong><br />
356
+ Website: <a href="http://www.instinct.co.nz">www.instinct.co.nz</a></p>
357
+ <p><strong>Credits:</strong><br />
358
+ This project uses a modified version of Lightbox: <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox can be obtained from here.</a>
359
+ </p>
360
+ ');
361
+
362
+
363
+ define('TXT_WPSC_SHIPPINGSETTINGS', 'Shipping Settings');
364
+ define('TXT_WPSC_BASE_LOCAL', 'Base Local Shipping');
365
+ define('TXT_WPSC_BASE_INTERNATIONAL', 'Base International Shipping');
366
+ define('TXT_WPSC_BASE_COUNTRY', 'Base Country/Region');
367
+
368
+ define('TXT_WPSC_SHIPPING_DETAILS', 'Additional Shipping Costs'); // this needs updating
369
+ define('TXT_WPSC_LOCAL_PNP', 'Local Shipping Fee'); // this needs updating
370
+ define('TXT_WPSC_INTERNATIONAL_PNP', 'International Shipping Fee'); // this needs updating
371
+ define('TXT_WPSC_SHIPPING_NOTE', 'Note: charged only once per product regardless of quantity ordered.');
372
+ define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Country Form Field');
373
+ define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the country)');
374
+
375
+ define('TXT_WPSC_SHIPPING', 'Shipping');
376
+ define('TXT_WPSC_EMAIL_FORM_FIELD', 'Email Form Field');
377
+ define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the email address)');
378
+
379
+
380
+ define('TXT_WPSC_PRODUCTIMAGES', 'Product Images');
381
+ define('TXT_WPSC_PRODUCTDOWNLOAD', 'Product Download');
382
+ define('TXT_WPSC_SHOWTHUMBNAILS', 'Show Thumbnails');
383
+ define('TXT_WPSC_ADD_ADDITIONAL_IMAGE', 'Add Additional Image');
384
+ define('TXT_WPSC_DELETE_IMAGE', 'Delete Image');
385
+ define('TXT_WPSC_GOLD_OPTIONS', '?p?????? Gold Cart');
386
+ define('TXT_WPSC_ACTIVATE_SETTINGS', 'Activation Settings');
387
+ define('TXT_WPSC_ACTIVATION_KEY', 'Activation Key');
388
+ define('TXT_WPSC_THANKSACTIVATED', 'Thanks, the gold shopping cart has been activated.');
389
+ define('TXT_WPSC_NOTACTIVATED', 'Sorry, the API key was incorrect.');
390
+ define('TXT_WPSC_DEFAULT', 'Default');
391
+ define('TXT_WPSC_LIST', 'List');
392
+ define('TXT_WPSC_VISIBLE', 'Visible');
393
+ define('TXT_WPSC_DELETE_PRODUCT', 'Delete Product');
394
+ define('TXT_WPSC_ADDITIONAL_IMAGE', 'Additional Image');
395
+ define('TXT_WPSC_GATEWAY_OPTIONS', 'Gateway Options');
396
+ define('TXT_WPSC_SHIPPING_COUNTRY', 'Choose your shipping country:');
397
+ define('TXT_WPSC_CONFIRM_TOTALS', 'Confirm your totals before making the payment:');
398
+ define('TXT_WPSC_CHECKOUT_FORM_FIELDS_DESCRIPTION', 'Here you can customise the forms to be displayed in your checkout page. The checkout page is where you collect important user information that will show up in your purchase logs i.e. the buyers address, and name...');
399
+ define('TXT_WPSC_PAYMENT_OPTIONS', 'Payment Options');
400
+ define('TXT_WPSC_PAYMENT_DESCRIPTION', 'Choose what payment options you want to make available in the checkout page. By default purchasers can only pay for items using a credit card however you may wish to also let them pay manually in which case you should select the credit card + manual payment option.');
401
+
402
+ define('TXT_WPSC_DEFAULT_GATEWAY_ONLY', ' only');
403
+ define('TXT_WPSC_PLUS_MANUAL_PAYMENT', ' plus manual payment option');
404
+ define('TXT_WPSC_PAYMENT_METHOD', 'Payment Method');
405
+ define('TXT_WPSC_PAY_USING', 'Pay using');
406
+ define('TXT_WPSC_PAY_MANUALLY', 'Pay by Cheque/Bank Deposit');
407
+ define('TXT_WPSC_CREDIT_CARD', 'Credit Card');
408
+ define('TXT_WPSC_ADJUSTABLE_QUANTITY', 'Show quantity form in list view');
409
+ define('TXT_WPSC_RSS_FEED_HEADER', 'Subscribe to your orders');
410
+ define('TXT_WPSC_RSS_FEED_LINK', 'Subscribe to an RSS feed');
411
+ define('TXT_WPSC_RSS_FEED_TEXT', 'of your orders');
412
+ define('TXT_WPSC_INITIAL_SETUP', 'Created default options.');
413
+ define('TXT_WPSC_PLUGIN_NEWS_HEADER', 'Plugin News');
414
+
415
+ define('TXT_WPSC_PLUGIN_NEWS', '
416
+
417
+ The <a href="http://instinct.co.nz/blogshop/products-page/" target="_blank">WP DropShop Module</a> is the latest and most cutting edge shopping cart available online. Coupled with Grid View then your site will be the talk of street! <br/><br/>
418
+
419
+ ');
420
+
421
+
422
+ define('TXT_WPSC_POWERED_BY', 'This shop is powered by ');
423
+ define('TXT_WPSC_NO_PURCHASES', 'There have not been any purchases yet.');
424
+
425
+
426
+ define('TXT_WPSC_DELIVERY_ADDRESS', 'Delivery Address');
427
+ define('TXT_WPSC_DELIVERY_CITY', 'Delivery City');
428
+ define('TXT_WPSC_DELIVERY_COUNTRY', 'Delivery Country');
429
+ define('TXT_WPSC_MP3_SETTINGS', 'MP3 Settings');
430
+ define('TXT_WPSC_MP3_SETTINGS_DESCRIPTION', 'To create the 30 second MP3 file clips, this plugin needs <a href=\'http://sox.sourceforge.net/\'>SoX</a> compiled with MP3 support, enter the path to SoX here.');
431
+ define('TXT_WPSC_SOX_PATH', 'SoX Path');
432
+ define('TXT_WPSC_PREVIEW', 'Preview');
433
+ define('TXT_WPSC_DOWNLOAD_CSV', 'Download CSV');
434
+ define('TXT_WPSC_PREVIEW_FILE', 'Preview File');
435
+ define('TXT_WPSC_REPLACE_PRODUCT', 'Replace Product');
436
+ define('TXT_WPSC_TOTALSHIPPING', 'Total Shipping');
437
+ define('TXT_WPSC_DISPLAY_FRONT_PAGE', 'Display on Front page');
438
+ define('TXT_WPSC_SEARCH_FOR', 'Search For');
439
+ define('TXT_WPSC_YOUR_SEARCH_FOR', 'Your search for');
440
+ define('TXT_WPSC_RETURNED_NO_RESULTS', 'returned no results.');
441
+ define('TXT_WPSC_POSTAGE', 'Postage');
442
+ define('TXT_WPSC_SUBTOTAL', 'Subtotal');
443
+
444
+
445
+ //everything under here needs translations, added after 19/1/2007
446
+
447
+ define('TXT_WPSC_PLEASEENTERAVALID', '?a?a?a?? s?µp????ste');
448
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', '?a?a?a?? s?µp????ste t? ???µa sa?.');
449
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', '?a?a?a?? s?µp????ste t? ep???µ? sa?.');
450
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', '?a?a?a?? s?µp????ste t?? email d?e????s? sa?.');
451
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', '?a?a?a?? s?µp????ste t?? ta??d??µ??? d?e????s? sa?.');
452
+ define('TXT_WPSC_PLEASEENTERAVALIDCITY', '?a?a?a?? s?µp????ste t?? p??? sa?.');
453
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', '?a?a?a?? s?µp????ste t? t???f??? sa?.');
454
+ define('TXT_WPSC_PLEASESELECTCOUNTRY', '?a?a?a?? d?a???te t?? ???a sa? ap? t?? ??sta.');
455
+ define('TXT_WPSC_PLEASEAGREETERMSANDCONDITIONS', 'Please select the terms and conditions option. Unfortunately we cannot process your order otherwise.');
456
+ define('TXT_WPSC_POSITION', 'T?s?');
457
+
458
+ define('TXT_WPSC_DELIVERY_REGION', 'Delivery Region');
459
+
460
+
461
+ define('TXT_WPSC_GENERAL_SETTINGS', 'Ge????? ep??????');
462
+ define('TXT_WPSC_TAX_SETTINGS', '?p?????? f???? p??st???µe??? a??a?');
463
+ define('TXT_WPSC_POSTAGE_AND_TAX', 'Postage &amp; Tax ');
464
+ define('TXT_WPSC_GRID', '????µa');
465
+ define('TXT_WPSC_CANT_MOVE_CATEGORY', 'You cannot move a category with subcategories.');
466
+ define('TXT_WPSC_SURETODELETECATEGORY', 'Are you sure you want to delete this category? If the category has any subcategories, they will be deleted too.');
467
+ define('TXT_WPSC_VARIATION', '?a?a??a??');
468
+ define('TXT_WPSC_OVER_TWO_VARIATIONS', 'Variation stock and price control does not work if you have more than two variations.');
469
+ define('TXT_WPSC_PRICE_AND_STOCK_CONTROL', 'Price, Stock and Variation Control') ;
470
+
471
+ // pe.{
472
+ define('TXT_WPSC_CATSBRANDSLOCATION', 'Categories &amp; Brands Location');
473
+ define('TXT_WPSC_DESCITEMSEPARATOR', ' : ');
474
+ define('TXT_WPSC_SEARCHITEMSEPARATOR', ' : ');
475
+ define('TXT_WPSC_SINGLE_SHIPPING_COUNTRY', 'Shipping country:');
476
+ define('TXT_WPSC_ADD_ANOTHER_VARIATION', 'Add a variation');
477
+ // }.pe
478
+ define('TXT_WPSC_PRODUCT_CATEGORIES', 'Product Categories');
479
+ ?>
wp-shopping-cart/languages/EN_en.php ADDED
@@ -0,0 +1,800 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ This is a language file for the WP Shopping Cart plugin version 3.5
4
+ */
5
+
6
+ define('TXT_WPSC_USPS_USERID', 'USPS ID');
7
+ define('TXT_WPSC_USPS_PASSWORD', 'USPS Password');
8
+ define('TXT_WPSC_OPTIONS_GENERAL_TAB', 'General');
9
+ define('TXT_WPSC_OPTIONS_PRESENTATION_TAB', 'Presentation');
10
+ define('TXT_WPSC_OPTIONS_SHIPPING_TAB', 'Shipping');
11
+ define('TXT_WPSC_OPTIONS_PAYMENT_TAB', 'Payment');
12
+ define('TXT_WPSC_OPTIONS_ADMIN_TAB', 'Admin');
13
+ define('TXT_WPSC_OPTIONS_MARKETING_TAB', 'Marketing');
14
+
15
+
16
+ define('TXT_WPSC_OPTIONS_GENERAL_HEADER', 'General Settings');
17
+ define('TXT_WPSC_OPTIONS_PRESENTATION_HEADER', 'Presentation Settings');
18
+ define('TXT_WPSC_OPTIONS_SHIPPING_HEADER', 'Shipping Settings');
19
+ define('TXT_WPSC_OPTIONS_PAYMENT_HEADER', 'Payment Settings');
20
+ define('TXT_WPSC_OPTIONS_ADMIN_HEADER', 'Admin Settings');
21
+ define('TXT_WPSC_OPTIONS_MARKETING_HEADER', 'Marketing Settings');
22
+
23
+ define('TXT_WPSC_THUMBNAILSETTINGS', 'Thumbnail Settings');
24
+
25
+ define('TXT_WPSC_CLEAR_IP_LOCKS', 'Free downloads to locked to an IP number.');
26
+ define('TXT_WPSC_THANKS_UNLOCKED', 'Thanks, the downloads that were locked to this users IP number have been freed.');
27
+
28
+
29
+ define('TXT_WPSC_SELECTGATEWAY', 'Select a payment gateway');
30
+ define('TXT_WPSC_VARIATION_LIST', 'Select a Variation');
31
+
32
+ define('TXT_WPSC_CATEGORISATION_GROUPS_DESCR', 'Groups help your visitors find your products. If you sell t-shirts, hats, and trousers you might want to setup a new group called clothing and then add the categories t-shirts, hats, and trousers to that group. Now you can associate individual products to their respecitve clothing group categories when you add or edit products.');
33
+ define('TXT_WPSC_CATEGORISATION_DESCR', 'Product Grouping Widget');
34
+ define('WPSC_DOWNLOAD_INVALID', 'This download is no longer valid.');
35
+ define('TXT_WPSC_LOCK_DOWNLOADS_TO_IP', 'Lock downloads to IP address');
36
+ define('TXT_WPSC_CLEAR_IP_LOCKS', 'Unlock any downloads locked to an IP address for this order');
37
+ define('TXT_WPSC_THANKS_UNLOCKED', 'Thanks, the downloads that were locked to this users IP number have been freed.');
38
+ define('TXT_WPSC_USER_UNLOCKED_EMAIL', 'The administrator has unlocked your file');
39
+ define('TXT_WPSC_USER_UNLOCKED_EMAIL_MESSAGE', 'Dear Customer
40
+
41
+ We are pleased to advise you that your order has been updated and your downloads are now active.
42
+ Please download your purchase using the links provided below.
43
+
44
+ [download_links]
45
+ Thank you for your custom.');
46
+
47
+
48
+ define('TXT_WPSC_ADMIN_EMPTY_CATEGORY', 'This group is set as your default product group, you should either add some items to it or switch your default product group to one that does contain items.');
49
+
50
+ define('TXT_WPSC_USING_EXAMPLE_CATEGORY', 'You are using the example product group as your default group and it has no products in it, you should set the default group to something else, you can do so from your Shop Settings page.');
51
+
52
+ define('TXT_WPSC_NO_DEFAULT_PRODUCTS', 'Your "products page" is not currently set to display any products. You need to select a product grouping to display by default. <br /> This is set in the Shop Settings page.');
53
+
54
+ define('TXT_WPSC_FIX_CATEGORY_PERMALINKS', 'Fix Product Group Permalinks');
55
+ define('TXT_WPSC_ADVANCED_OPTIONS', 'Advanced Options');
56
+ define('TXT_WPSC_INVALID_COUPON', 'Invalid Coupon');
57
+ define('TXT_WPSC_RSSNOTE', '<strong>Note:</strong> Not only can people use this RSS to keep update with your product list but you can also use this link to promote your products in your facebook profile. <br>Just add the <a href="http://apps.facebook.com/getshopped">getshopped! facebook application</a> to your facebook profile and follow the instructions.');
58
+ define('TXT_WPSC_GOOGLEFINANCESTATUS', 'Financial Status');
59
+ define('TXT_WPSC_GOOGLEFULFILLMENTSTATUS', 'Fulfillment Status');
60
+ define('TXT_WPSC_SURETODELETECATEGORISATION', 'Are you sure you want to delete this product group? All categories it contains will be deleted too.');
61
+
62
+ define('TXT_WPSC_CATEGORISATION', 'Product Groups');
63
+ define('TXT_WPSC_CATEGORISATIONHASBEENADDED', 'The group has been added.');
64
+ define('TXT_WPSC_CATEGORISATIONHASBEENEDITED', 'The group has been edited.');
65
+ define('TXT_WPSC_ADD_CATEGORISATION', 'Add New Group');
66
+ define('TXT_WPSC_EDIT_CATEGORISATION', 'Edit Group');
67
+ define('TXT_WPSC_ADDDETAILS', 'Add Details');
68
+ define('TXT_WPSC_EDITDETAILS', 'Edit Details');
69
+ define('TXT_WPSC_ADDNEWCATEGORY', 'Add New');
70
+ define('TXT_WPSC_VALUE', 'Value');
71
+ define('TXT_WPSC_ADD_CUSTOM_FIELD', 'Add Custom Field');
72
+ define('TXT_WPSC_EDIT_CUSTOM_FIELDS', 'Edit Custom Fields');
73
+ define('TXT_WPSC_SAVE', 'Save');
74
+
75
+
76
+
77
+ define('TXT_WPSC_DISPLAY_PRODUCT_CATEGORIES', 'Display [categorisation]'); // The shortcode [categorisation] is replaced with the name of the currently select categorisation
78
+
79
+ define('TXT_WPSC_PRODUCT_CATEGORIES', 'Select [categorisation]'); // The shortcode [categorisation] is replaced with the name of the currently select categorisation
80
+
81
+ define('TXT_WPSC_MANAGE_CATEGORISATION', 'Manage [categorisation]'); // The shortcode [categorisation] is replaced with the name of the currently select categorisation
82
+
83
+
84
+
85
+ define('TXT_WPSC_ANYONEREGISTER', 'If yes then you must also turn on the wordpress option "Any one can register"');
86
+ define('TXT_WPSC_CVN', 'Credit Verification');
87
+ define('TXT_WPSC_AVS', 'Address Verification');
88
+ define('TXT_WPSC_DISPLAYVARIATIONSDESCRIPTION', 'A variation can be anything "optional" about a product. ie: Size, Color, etc <br />For example: if you are selling t-shirts you might setup a variation set called size with the values small, medium, large...');
89
+
90
+ define('TXT_WPSC_PERTICKED', 'Apply On Every Product');
91
+ define('TXT_WPSC_EMAILALLOWED', 'Email Allowed');
92
+ define('TXT_WPSC_EMAILNOTALLOWED', 'Email NOT Allowed');
93
+
94
+
95
+ define('TXT_WPSC_GOOGLERISK', 'Eligible for Protection');
96
+ define('TXT_WPSC_PAYPALNOTE', '<strong>Note:</strong> Due to a current limitation of PayPal, if your user makes a purchase and uses a coupon, we can not send a list of items through to paypal for processing.<br>Rather, we must send the total amount of the purchase, so that within PayPal the user who purchases a product will see your shop name and the total amount of their purchase.');
97
+
98
+ define('TXT_WPSC_GOOGLEMARKETINGPREFERENCE', 'Google User Marketing Preference');
99
+
100
+
101
+ define('TXT_WPSC_LATEST_PRODUCTS', 'Latest Products');
102
+ define('TXT_WPSC_PICKUP', 'Pick up');
103
+ define('TXT_WPSC_DELIVERY', 'Delivery');
104
+ define('TXT_WPSC_MENU', 'e-Commerce Admin Menu');
105
+ define('TXT_WPSC_GOOGLESTORELOCATOR', 'Enable Google Store Locator');
106
+ define('TXT_WPSC_GOOGLESHIPPING', 'Google Shipping Country');
107
+ define('TXT_WPSC_POST_DEFAULT_MEMBERS_ONLY', 'This post is for members only, you must log in to view this post');
108
+ define('TXT_WPSC_BASESHIPPING', 'Base Shipping');
109
+ define('TXT_WPSC_RSS_ADDRESS', 'RSS Address');
110
+ define('TXT_WPSC_STORENAME', 'Store Name');
111
+ define('TXT_WPSC_CHECKBOX_VARIATIONS', 'Display Variations in Checkboxes');
112
+ define('TXT_WPSC_DISPLAY_PLUSTAX', 'Display "+tax"');
113
+ define('TXT_WPSC_DISPLAYHOWCUSTOMERFINDUS', 'Display How Customer Found Us Survey');
114
+ define('TXT_WPSC_HOWCUSTOMERFINDUS', 'How The Customer Found Us');
115
+ define('TXT_WPSC_ENGRAVE', 'Engrave text');
116
+ define('TXT_WPSC_FREETRIAL', 'One Month Free Trial');
117
+ define('TXT_WPSC_PROHIBITED', 'Prohibited');
118
+ define('TXT_WPSC_ADMINNOTES', 'Merchant Notes');
119
+ define('TXT_WPSC_HIDEADDNAMELINK', 'Hide Product Name Links');
120
+ define('TXT_WPSC_ADMINMENU', 'Admin Menu');
121
+ define('TXT_WPSC_USEONLYEXTERNALLINK', 'Note: Use only if you have external links');
122
+ define('TXT_WPSC_EXTERNALLINK', 'External Link');
123
+ define('TXT_WPSC_BUTTONTYPE', 'Button Type');
124
+ define('TXT_WPSC_BUYNOW', 'Buy Now');
125
+ define('TXT_WPSC_ASSOCIATEWITHFILE', 'Associate With File?(Tick one please)');
126
+ define('TXT_WPSC_SHOWLIVESEARCH', 'Use Live Search');
127
+ define('TXT_WPSC_USPS_USERID', 'USPS ID');
128
+ define('TXT_WPSC_USPS_PASSWORD', 'USPS Password');
129
+
130
+ define('TXT_WPSC_SHIPPING_DETAILS', 'Shipping Details');
131
+ define('TXT_WPSC_SHOWADVANCEDSEARCH', 'Show Advanced Search');
132
+ define('TXT_WPSC_GOOGLEMECHANTKEY', 'Google Merchant Key');
133
+ define('TXT_WPSC_GOOGLEMECHANTID', "Google Merchant ID");
134
+ define('TXT_WPSC_IMAGESIZEINFO', 'Note: if this is blank, the image will not be resized');
135
+ define('TXT_WPSC_ENDLESSSUBSCRIPTION', 'Permanent subscription?');
136
+ define('TXT_WPSC_RECEIVED', 'Order Received');
137
+ define('TXT_WPSC_ORDER_STATUS', 'Order Status');
138
+ define('TXT_WPSC_ORDER_SUMMARY', 'Order Summary');
139
+ define('TXT_WPSC_LANGUAGE', 'Language');
140
+ define('TXT_WPSC_ACCEPTED_PAYMENT', 'Accepted Payment');
141
+ define('TXT_WPSC_JOB_DISPATCHED', 'Job Dispatched');
142
+ define('TXT_WPSC_PROCESSED', 'Closed Order');
143
+ define('TXT_WPSC_ECOMMERCE', 'e-Commerce');
144
+ define('TXT_WPSC_OPTIONS', 'Shop Settings');
145
+ define('TXT_WPSC_ADDPRODUCTS', 'Add Products');
146
+ define('TXT_WPSC_SENDSMS', 'Send SMS');
147
+ define('TXT_WPSC_PRODUCTS', 'Products');
148
+ define('TXT_WPSC_ADDCATEGORY', 'Add Product Group');
149
+ define('TXT_WPSC_CATEGORIES', 'Categories');
150
+ define('TXT_WPSC_BRANDS', 'Brands');
151
+ define('TXT_WPSC_VARIATIONS', 'Variations');
152
+ define('TXT_WPSC_PURCHASELOG', 'Purchase Log');
153
+ define('TXT_WPSC_ORDER_LOG', 'Orders');
154
+ define('TXT_WPSC_OLDER_ORDERS', 'Older Orders');
155
+ define('TXT_WPSC_ORDER', 'Order');
156
+ define('TXT_WPSC_TOTAL_THIS_MONTH', 'Total Money Earnt this Month');
157
+ define('TXT_WPSC_MONTHLY_REPORT', 'Six Monthly Report');
158
+ define('TXT_WPSC_TOTAL_INCOME', 'Total Income');
159
+ define('TXT_WPSC_ACCEPTED_PAYMENTS', '(accepted payments)'); //text has changed slightly
160
+ define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', 'Payment Options');
161
+ define('TXT_WPSC_HELPINSTALLATION', 'Help/Upgrade');
162
+ define('TXT_WPSC_EXAMPLECATEGORY', 'Example category');
163
+ define('TXT_WPSC_EXAMPLEDETAILS', 'Example details');
164
+ define('TXT_WPSC_EXAMPLEBRAND', 'Example Brand');
165
+ define('TXT_WPSC_PRODUCTIMAGEWIDTH', 'product image width');
166
+ define('TXT_WPSC_PRODUCTIMAGEHEIGHT', 'product image height');
167
+ define('TXT_WPSC_CATEGORYIMAGEWIDTH', 'product group image width');
168
+ define('TXT_WPSC_CATEGORYIMAGEHEIGHT', 'product group image height');
169
+ define('TXT_WPSC_PRODUCTLISTURL', 'The location of the product list');
170
+ define('TXT_WPSC_SHOPPINGCARTURL', 'The location of the shopping cart');
171
+ define('TXT_WPSC_CHECKOUTURL', 'The location of the checkout page');
172
+ define('TXT_WPSC_TRANSACTURL', 'The location of the transaction detail page');
173
+ define('TXT_WPSC_PAYMENTGATEWAY', 'The payment gateway to use');
174
+ define('TXT_WPSC_CARTLOCATION', 'Cart Location');
175
+ define('TXT_WPSC_SHOWCATEGORYBRANDS', 'Display categories or brands or both');
176
+ define('TXT_WPSC_CURRENCYTYPE', 'Currency type');
177
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Currency sign location');
178
+ define('TXT_WPSC_GSTRATE', 'the GST rate');
179
+ define('TXT_WPSC_MAXDOWNLOADS', 'the download limit');
180
+ define('TXT_WPSC_DISPLAYPNP', 'Display or hide postage and packaging');
181
+ define('TXT_WPSC_DISPLAYSPECIALS', 'Display or hide specials on the sidebar');
182
+ define('TXT_WPSC_POSTAGEAND_PACKAGING', 'Default postage and packaging');
183
+ define('TXT_WPSC_PURCHLOGEMAIL', 'Email address that purchase log is sent to');
184
+ define('TXT_WPSC_RETURNEMAIL', 'Email address that purchase reports are sent from');
185
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'Checkout terms and conditions');
186
+ define('TXT_WPSC_DEFAULTBRAND', 'Default Brand');
187
+
188
+
189
+ //define('TXT_WPSC_DEFAULTCATEGORY', 'Default Category');
190
+
191
+ define('TXT_WPSC_DEFAULTCATEGORY', 'Select what product group you want to display on the products page by default.');
192
+
193
+ define('TXT_WPSC_PAYPALBUSINESS', 'paypal business');
194
+ define('TXT_WPSC_PAYPALURL', 'paypal url');
195
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Show Product Ratings');
196
+ define('TXT_WPSC_PRODUCTSPAGE', 'Products Page');
197
+ define('TXT_WPSC_CHECKOUT', 'Verify your Order');
198
+ define('TXT_WPSC_ENTERDETAILS', 'Enter Your Details');
199
+ define('TXT_WPSC_TRANSACTIONRESULTS', 'Transaction Results');
200
+ define('TXT_WPSC_SELECTACATEGORY', 'Select a Product Group');
201
+ define('TXT_WPSC_SELECTABRAND', 'Select a Brand');
202
+ define('TXT_WPSC_PRODUCTNAME', 'Product Name');
203
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Product Description');
204
+ define('TXT_WPSC_ADDITIONALDESCRIPTION', 'Additional Description');
205
+ define('TXT_WPSC_PRICE', 'Price');
206
+ define('TXT_WPSC_TAXALREADYINCLUDED', 'Do not include tax (tax is set in shop config)'); // this text has changed and needs updating
207
+ define('TXT_WPSC_SPECIAL', 'Special / Sale Price'); // this text has changed and needs updating
208
+ define('TXT_WPSC_PRODUCT_DISPLAY', 'Product Display');
209
+
210
+ define('TXT_WPSC_PRODUCTSTOCK', 'Product Stock');
211
+
212
+ define('TXT_WPSC_UNTICKBOX', 'I have a limited number of this item in stock. If the stock runs out, this product will not be available on the shop unless you untick this box or add more stock.');
213
+ define('TXT_WPSC_LIMITED_STOCK', 'Limited Stock');
214
+
215
+ define('TXT_WPSC_CATEGORY', 'Category');
216
+ define('TXT_WPSC_BRAND', 'Brand');
217
+ define('TXT_WPSC_PRODUCT_VARS', 'Product Variations');
218
+ define('TXT_WPSC_ADD_VAR', 'Add Variation Set');
219
+ define('TXT_WPSC_EDIT_VAR', 'Edit Variation Set');
220
+ define('TXT_WPSC_SELECTAVARIATION', 'Select a Variation');
221
+ define('TXT_WPSC_NEW_VARIATION', 'Create a new Variation');
222
+
223
+ define('TXT_WPSC_PRODUCTATT', 'Product Attachments');
224
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT', 'Upload File');
225
+ define('TXT_WPSC_FILETOBEPRODUCT', 'Note: if this is filled in, the file uploaded will be the product to be purchased.');
226
+ define('TXT_WPSC_RESIZEIMAGE', 'Resize Thumbnail');
227
+ define('TXT_WPSC_DONOTRESIZEIMAGE', 'do not resize thumbnail.');
228
+ // define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'use default height and width');
229
+ // define('TXT_WPSC_USE', 'use');
230
+ // define('TXT_WPSC_PXHEIGHTBY', 'px height by');
231
+ // define('TXT_WPSC_PXWIDTH', 'px width.');
232
+
233
+ // pe.{
234
+ //define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'use default height and width');
235
+ // }.pe
236
+ define('TXT_WPSC_SEPARATETHUMBNAIL', 'use separate thumbnail'); // Needs Translation
237
+ define('TXT_WPSC_USE', 'use'); // Needs Translation
238
+ // pe.{
239
+ define('TXT_WPSC_USEDEFAULTSIZE', 'use default size'); // Needs Translation
240
+ define('TXT_WPSC_USESPECIFICSIZE', 'use specific size'); // Needs Translation
241
+ define('TXT_WPSC_PXHEIGHT', 'px height'); // Needs Translation
242
+ define('TXT_WPSC_PXWIDTH', 'px width'); // Needs Translation
243
+ // }.pe
244
+
245
+
246
+ define('TXT_WPSC_UPLOADNEWIMAGE', 'Replace Image');
247
+ define('TXT_WPSC_DELETEIMAGE', 'Delete Image');
248
+ define('TXT_WPSC_EDIT', 'Edit');
249
+ define('TXT_WPSC_DELETE', 'Delete');
250
+ define('TXT_WPSC_REMOVE', 'Remove');
251
+ define('TXT_WPSC_NAME', 'Name');
252
+ define('TXT_WPSC_TYPE', 'Type');
253
+ define('TXT_WPSC_MANDATORY', 'Mandatory');
254
+ define('TXT_WPSC_DISPLAY_IN_LOG', 'Display<br /> in Log');
255
+ define('TXT_WPSC_DESCRIPTION', 'Description');
256
+ define('TXT_WPSC_CATEGORY_PARENT', 'Category Parent');
257
+ define('TXT_WPSC_IMAGE', 'Image');
258
+ define('TXT_WPSC_HEIGHT', 'Height');
259
+ define('TXT_WPSC_WIDTH', 'Width');
260
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Please enter a valid');
261
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Please enter a valid name');
262
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Please enter a valid surname');
263
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Please enter a valid email address');
264
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Please enter a valid address');
265
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Please enter a valid phone number');
266
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'You have not agreed to the terms and conditions');
267
+ define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', 'There is nothing in your shopping cart');
268
+ define('TXT_WPSC_SPECIALS', 'Specials');
269
+ define('TXT_WPSC_BUY', 'Buy');
270
+ define('TXT_WPSC_SHOPPINGCART', 'Shopping Cart');
271
+ define('TXT_WPSC_NUMBEROFITEMS', 'Number of items');
272
+ define('TXT_WPSC_NOMOREAVAILABLE', 'This Product is out of stock.');
273
+ define('TXT_WPSC_EMPTYYOURCART', 'Empty your cart');
274
+ define('TXT_WPSC_GOTOCHECKOUT', 'Go to Checkout');
275
+ define('TXT_WPSC_CONTINUESHOPPING', 'Continue shopping');
276
+ define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', 'Your shopping cart is empty');
277
+ define('TXT_WPSC_VISITTHESHOP', 'Visit the shop');
278
+ define('TXT_WPSC_PAGES', 'Pages');
279
+ define('TXT_WPSC_OUTOF', 'Out of');
280
+ define('TXT_WPSC_VOTES', 'votes.');
281
+ define('TXT_WPSC_CLICKSTARSTORATE', 'Click stars to rate');
282
+ define('TXT_WPSC_AVERAGERATINGOF', 'Average rating of');
283
+ define('TXT_WPSC_YOURVOTE', 'Your vote');
284
+ define('TXT_WPSC_AVERAGEVOTE', 'Average vote');
285
+ define('TXT_WPSC_YOUHAVEVOTED', 'You have voted');
286
+ define('TXT_WPSC_NOVOTES', 'No Votes');
287
+ define('TXT_WPSC_1VOTE', '1 Vote');
288
+ define('TXT_WPSC_VOTES2', 'Votes');
289
+ define('TXT_WPSC_PERSONGIVEN', 'person has given this image');
290
+ define('TXT_WPSC_PERSONGIVEN2', 'stars.');
291
+ define('TXT_WPSC_PEOPLEGIVEN', 'people have given this image');
292
+ define('TXT_WPSC_PEOPLEGIVEN2', 'stars.');
293
+ define('TXT_WPSC_ITEMHASBEENADDED', 'The item has been added');
294
+ define('TXT_WPSC_ITEMHASNOTBEENADDED', 'The item has not been added');
295
+ define('TXT_WPSC_ADDNEWCATEGORY', 'Add New Product Group');
296
+ define('TXT_WPSC_SUBMIT', 'Submit');
297
+ define('TXT_WPSC_SELECTAVALIDCATEGORY', 'Please select a valid Product Group');
298
+ define('TXT_WPSC_PRODUCTNAME', 'Product Name');
299
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Product Description');
300
+ define('TXT_WPSC_ADDNEWPRODUCT', 'Add Product');
301
+ define('TXT_WPSC_PRODUCTQUANTITY', 'Productquantity');
302
+ define('TXT_WPSC_PRODUCTIMAGE', 'Product Image');
303
+ define('TXT_WPSC_PRODUCTPRICE', 'Product Price');
304
+ define('TXT_WPSC_NOTAX', 'No tax');
305
+ define('TXT_WPSC_ABOUT', 'About');
306
+ define('TXT_WPSC_ABOUTCONTENT', 'Welcome to the e-commerce panel. <br /><br /><strong>Note:</strong> on some setups, the shopping cart may empty on every page load, if this happens, you will have to add this line:<br /><br />session_start();<br /><br />to the index.php file in the base wordpress directory.<br />');
307
+ define('TXT_WPSC_CONTACTDETAILS', 'Please enter your contact details:');
308
+ define('TXT_WPSC_CREDITCARDHANDY', 'Note, Once you press submit, you will need to have your Credit card handy.');
309
+ define('TXT_WPSC_ASTERISK', 'Fields marked with an asterisk must be filled in.');
310
+ define('TXT_WPSC_FIRSTNAME', 'First Name');
311
+ define('TXT_WPSC_LASTNAME', 'Last Name');
312
+ define('TXT_WPSC_EMAIL', 'Email');
313
+ define('TXT_WPSC_ADDRESS', 'Address');
314
+ define('TXT_WPSC_ADDRESS1', 'Address 1');
315
+ define('TXT_WPSC_ADDRESS2', 'Address 2');
316
+ define('TXT_WPSC_CITY', 'City');
317
+ define('TXT_WPSC_STATE', 'State');
318
+ define('TXT_WPSC_COUNTRY', 'Country');
319
+ define('TXT_WPSC_PHONE', 'Phone');
320
+ define('TXT_WPSC_POSTAL_CODE', 'Postal Code');
321
+ define('TXT_WPSC_TERMS1', 'I agree to The ');
322
+ define('TXT_WPSC_TERMS2', 'Terms and Conditions');
323
+
324
+
325
+ define('TXT_WPSC_TEXT', 'Text');
326
+ define('TXT_WPSC_TEXTAREA', 'Textarea');
327
+ define('TXT_WPSC_HEADING', 'Heading');
328
+
329
+ define('TXT_WPSC_MAKEPURCHASE', 'Make Purchase');
330
+ define('TXT_WPSC_BUYPRODUCTS', 'Please buy some products before using this page');
331
+ define('TXT_WPSC_BRANDHASBEENEDITED', 'The brand has been edited.');
332
+ define('TXT_WPSC_SURETODELETEPRODUCT', 'Are you sure you want to delete this product?');
333
+ define('TXT_WPSC_ADDBRAND', 'Add Brand');
334
+ define('TXT_WPSC_DISPLAYBRANDS', 'Display Brands');
335
+ define('TXT_WPSC_EDITBRAND', 'Edit Brand');
336
+ define('TXT_WPSC_ADD', 'Add');
337
+ define('TXT_WPSC_ADD_NEW_FORM', 'Add New Form Field');
338
+ define('TXT_WPSC_SAVE_CHANGES', 'Save Changes');
339
+
340
+ define('TXT_WPSC_CATEGORYHASBEENEDITED', 'The product group has been edited.');
341
+ define('TXT_WPSC_DISPLAYCATEGORIES', 'Display Product Groups');
342
+ define('TXT_WPSC_ADDCATEGORY', 'Add Product Group');
343
+ define('TXT_WPSC_EDITCATEGORY', 'Edit Product Group');
344
+ define('TXT_WPSC_ALLCATEGORIES', 'All Product Groups');
345
+
346
+ define('TXT_WPSC_DISPLAYVARIATIONS', 'Display Variations');
347
+ define('TXT_WPSC_ADDVARIATION', 'Add Variation Set');
348
+ define('TXT_WPSC_EDITVARIATION', 'Edit Variation Set');
349
+ define('TXT_WPSC_VARIATIONHASBEENEDITED', 'The variation has been edited.');
350
+ define('TXT_WPSC_VARIATION_VALUES', 'Variation Values');
351
+ define('TXT_WPSC_REMOVE_SET', 'Remove This Set'); //this needs to be translated
352
+
353
+ define('TXT_WPSC_SELECT_PARENT', 'Select Parent');
354
+ define('TXT_WPSC_PRODUCTHASBEENEDITED', 'The product has been edited.');
355
+ define('TXT_WPSC_ADDPRODUCT', 'Add Product');
356
+ define('TXT_WPSC_DISPLAYPRODUCTS', 'Display Products');
357
+ define('TXT_WPSC_PLEASESELECTACATEGORY', 'Please Select a Product Group');
358
+ define('TXT_WPSC_STOCK', 'Stock');
359
+ define('TXT_WPSC_PNP', 'PnP');
360
+ define('TXT_WPSC_EDITITEM', 'Edit Item');
361
+ define('TXT_WPSC_PRODUCTDETAILS', 'Product Details');
362
+ define('TXT_WPSC_SELECT_PRODUCT', 'Select an Existing Product');
363
+ define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', '(enter in your product details here)');
364
+ define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', 'Additional Product Description');
365
+ define('TXT_WPSC_ADDITEM', 'Add Item');
366
+ define('TXT_WPSC_CHOOSEACATEGORY', 'Choose a Product Group');
367
+ define('TXT_WPSC_CHOOSEABRAND', 'Choose a Brand');
368
+ define('TXT_WPSC_USETHEACTUALIMAGE', 'use the actual image. No resize.');
369
+ define('TXT_WPSC_DISPLAYPURCHASES', 'Purchase Log');
370
+ define('TXT_WPSC_ID', 'ID');
371
+ define('TXT_WPSC_TRANSACTIONSTATUS', 'Transaction Status');
372
+ define('TXT_WPSC_DATE', 'Date');
373
+ define('TXT_WPSC_VIEWDETAILS', 'Details'); //Text has changed - translation is needed
374
+ define('TXT_WPSC_STATUS', 'Status');
375
+ define('TXT_WPSC_SUCCESSFUL', 'Successful');
376
+ define('TXT_WPSC_FAILED', 'Failed');
377
+ define('TXT_WPSC_GST', 'GST');
378
+ define('TXT_WPSC_PP', 'P&amp;P');
379
+ define('TXT_WPSC_TOTAL', 'Total');
380
+ define('TXT_WPSC_FINALTOTAL', 'Final Total');
381
+ define('TXT_WPSC_CUSTOMERDETAILS', 'Customer Details');
382
+ define('TXT_WPSC_USERSCARTWASEMPTY', 'This users cart was empty');
383
+ define('TXT_WPSC_GOBACK', 'Go Back');
384
+ define('TXT_WPSC_THANKSAPPLIED', 'Thanks, your changes have been applied.');
385
+ define('TXT_WPSC_FORM_FIELDS', 'Checkout Options');
386
+ define('TXT_WPSC_PAYMENTGATEWAY2', 'Payment Gateway');
387
+ define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', 'Please Select A Payment Gateway');
388
+ define('TXT_WPSC_PAYMENTGATEWAYNOTE', '<strong>Note:</strong> This lite version of the e-Commerce plugin only allows you to interface with PayPal.<br /><br />If you are looking for a more profesional "non paypal solution" then we have a <a href="http://www.instinct.co.nz/blogshop">gold version of e-Commerce</a> available that interfaces seamlessly with authorize.net, DPS (www.dps.co.nz), and paystation (www.paystation.co.nz).');
389
+ define('TXT_WPSC_URLSETTINGS', 'URL Settings');
390
+ define('TXT_WPSC_PRODUCTLISTURL', 'Product List URL');
391
+ define('TXT_WPSC_SHOPPINGCARTURL', 'Shopping Cart URL');
392
+ define('TXT_WPSC_CHECKOUTURL', 'Checkout URL');
393
+ define('TXT_WPSC_TRANSACTIONDETAILSURL', 'Transaction Details URL');
394
+ define('TXT_WPSC_PRESENTATIONSETTINGS', 'Presentation Settings');
395
+ define('TXT_WPSC_CARTLOCATION', 'Cart Location');
396
+ define('TXT_WPSC_SIDEBAR', 'Sidebar');
397
+ define('TXT_WPSC_PAGE', 'Page');
398
+ define('TXT_WPSC_WIDGET', 'Widget');
399
+ define('TXT_WPSC_NEEDTOENABLEWIDGET', 'You need to enable the widgets plugin to use this');
400
+ define('TXT_WPSC_MANUAL', 'Manual');
401
+ define('TXT_WPSC_SHOWCATEGORIESBRANDS', 'Show Categories/Brands');
402
+ define('TXT_WPSC_BOTH', 'Both');
403
+ define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', 'Default Product Thumbnail Size');
404
+ define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', 'Default Product Group Thumbnail Size');
405
+ define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', 'Show Postage and Packaging');
406
+ define('TXT_WPSC_YES', 'Yes');
407
+ define('TXT_WPSC_NO', 'No');
408
+ define('TXT_WPSC_SHOWSPECIALS', 'Show Specials in the Sidebar');
409
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Show Product Ratings');
410
+ define('TXT_WPSC_CURRENCYSETTINGS', 'Currency Settings');
411
+ define('TXT_WPSC_GSTTAXRATE', 'GST/Tax Rate');
412
+ define('TXT_WPSC_CURRENCYTYPE', 'Currency Type');
413
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Currency Sign Location');
414
+ define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', 'Default Postage &amp; Packaging');
415
+ define('TXT_WPSC_ADMINISTRATIONSETTINGS', 'Administration Settings');
416
+ define('TXT_WPSC_MAXDOWNLOADSPERFILE', 'Max downloads per file');
417
+ define('TXT_WPSC_PURCHASELOGEMAIL', 'Purchase Log Email');
418
+ define('TXT_WPSC_REPLYEMAIL', 'Reply Email');
419
+ define('TXT_WPSC_BRANDNOCAP', 'brand');
420
+ define('TXT_WPSC_CATEGORYNOCAP', 'category');
421
+ define('TXT_WPSC_UDPATING', 'Updating');
422
+ define('TXT_WPSC_UPDATING', 'Updating');
423
+ define('TXT_WPSC_MOREDETAILS', 'More Details');
424
+ define('TXT_WPSC_ADDTOCART', 'Add To Cart');
425
+ define('TXT_WPSC_AVGCUSTREVIEW', 'Avg. Customer Rating');
426
+ define('TXT_WPSC_YOURRATING', 'Your Rating');
427
+ define('TXT_WPSC_RATING_SAVED', 'Saved');
428
+ define('TXT_WPSC_RATETHISITEM', 'Rate This item');
429
+ define('TXT_WPSC_PRODUCTSOLDOUT', 'This product has sold out.');
430
+ define('TXT_WPSC_NOITEMSINTHIS', 'There are no items in this');
431
+ define('TXT_WPSC_CATEGORYORBRAND', 'Category or Brand');
432
+ define('TXT_WPSC_PLEASECHOOSEA', 'Please choose a');
433
+ define('TXT_WPSC_PRODUCT', 'Product');
434
+ define('TXT_WPSC_QUANTITY', 'Quantity');
435
+ define('TXT_WPSC_QUANTITY_SHORT', 'Qty'); //translation needed
436
+ define('TXT_WPSC_APPLY', 'Apply');
437
+ define('TXT_WPSC_MAKEPAYMENT', 'Make Payment');
438
+ define('TXT_WPSC_EMPTYSHOPPINGCART', 'Empty shopping cart');
439
+ define('TXT_WPSC_TOTALPRICE', 'Total Price');
440
+ define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', 'There are no items in the shopping cart');
441
+ define('TXT_WPSC_EMAILMSG1', "Thank you, the order has been accepted, any items to be shipped will be processed as soon as possible, any items that can be downloaded can be downloaded using the links on this page.\n\r\n\rAll prices include tax and postage and packaging where applicable.\n\r\n\rYou ordered these items:\n\r\n\r");
442
+ define('TXT_WPSC_EMAILMSG2', ".\n\rThese items were ordered:\n\r\n\r");
443
+ define('TXT_WPSC_CLICKTODOWNLOAD', 'Click here to download');
444
+ define('TXT_WPSC_DOWNLOAD', 'Download');
445
+ define('TXT_WPSC_YOURTRANSACTIONID', 'Your Transaction ID');
446
+ define('TXT_WPSC_TRANSACTIONID', 'Transaction ID');
447
+ define('TXT_WPSC_PURCHASERECEIPT', 'Purchase Receipt');
448
+ define('TXT_WPSC_PURCHASEREPORT', 'Purchase Report');
449
+ define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', 'The Transaction was successful');
450
+ define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', 'The Transaction was not successful');
451
+ define('TXT_WPSC_GOBACKTOCHECKOUT', 'Go back to the checkout');
452
+ define('TXT_WPSC_SPECIALPRICE', 'Special Price');
453
+
454
+ define('TXT_WPSC_INSTRUCTIONS', '
455
+ Install Steps
456
+ <ul class=\'installation\'>
457
+ <li>Place contents of zip file in the wp-content/plugins directory.</li>
458
+ <li>Activate the plugin from the wordpress plugin page</li>
459
+ <li>Go to the "Payment Gateway Options" page in the "e-Commerce" tab, and enter in the appropriate details. (the default paypal gateway accessed is the paypal sandbox)</li>
460
+ <li>Create some Categories and Products using the Categories and Products pages</li>
461
+ </ul>
462
+
463
+ <p>If you are upgrading from Previous Version we suggest you deactivate and reactivate the plugin.</p>
464
+
465
+ <h2>Upgrades and Modules</h2>
466
+
467
+ <p>You will find more information about the following WP e-Commerce modules by visiting the <a href="http://www.instinct.co.nz/blogshop">Instinct BlogShop</a> website.</p>
468
+
469
+ <ul class=\'installation\'>
470
+ <li>Gold</li>
471
+ <li>DropShop</li>
472
+ <li>Audio Player</li>
473
+ <li>GridView</li>
474
+ </ul>
475
+
476
+ <h2>Wishlist</h2>
477
+ <p>If you want a new feature that is not currently supported by WP e-Commerce here then you can either <a href="http://www.instinct.co.nz/contact-us/">commission the development</a> or add it to the wish list in the <a href="http://instinct.co.nz/blogshop/support-forums/">community forums</a>.
478
+
479
+ <h2>Customisation and Tips</h2>
480
+ <p><strong>Tax</strong><br />If required you can enter in Tax rates on the Options page in the "e-Commerce" tab.</p>
481
+ <p><strong>Email purchase Logs</strong><br />If you add an email address for the purchase log on the Purchase Log page this will be the email address that is sent a purchase notification each time something is bought.</p>
482
+ <p><strong>Hiding pages</strong><br />
483
+ To prevent the Shopping Cart, Checkout and Transaction Results pages from being displayed in the page list you must first find out their ID numbers. <br />
484
+ <br />Then you have to edit the file in the theme you use that displays pages. This is normally found in sidebar.php, find the line similar to:<br />
485
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;/h2&gt;\' ); ?&gt;"<br />
486
+ and replace with<br />
487
+ "&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;h2&gt;&amp;exclude=3,4,5\'); ?&gt;"<br />
488
+ <br />The word exclude tells it to exclude the pages from the list, replace 3,4,5 with the ID numbers of the pages you wish to exclude.</p>
489
+ <p><strong>Image Functions</strong><br />
490
+ If your server does not have the PHP image functions installed, you will not be able to resize images once they are uploaded</p>
491
+ <p><strong>Permalinks</strong><br />
492
+ We\'re doing the best we can.
493
+ I have not been able to find a really good way to pass the required variables from page to page using permalinks that dont use mod_rewrite, if you cant use mod_rewrite, the plugin may not work with permalinks turned on.</p>
494
+ <p><strong>Javascript and Ajax </strong><br />
495
+ e-commerce lite uses Ajax, the shopping cart that the user sees will work without Javascript, but the Administration pages (specifically the Products and Categories pages) will not. To use the Administration section you will need to use a reasonably modern browser and have Javascript turned on. (Internet Explorer 6 or better, or Firefox 1.0 or better, older versions have not been tested for and may or may not work)</p>
496
+ <p><strong>More on Flickr</strong><br />
497
+ We have created a number of <a href="http://www.google.com/search?q=flickr+wp+e-commerce&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a">visual guides</a> on Flickr.
498
+
499
+ ');
500
+
501
+
502
+ define('TXT_WPSC_SHIPPINGSETTINGS', 'Shipping Settings');
503
+ define('TXT_WPSC_BASE_LOCAL', 'Base Local Shipping');
504
+ define('TXT_WPSC_BASE_INTERNATIONAL', 'Base International Shipping');
505
+ define('TXT_WPSC_BASE_COUNTRY', 'Base Country/Region');
506
+
507
+ define('TXT_WPSC_SHIPPING_DETAILS', 'Additional Shipping Costs'); // this needs updating
508
+ define('TXT_WPSC_LOCAL_PNP', 'Local Shipping Fee'); // this needs updating
509
+ define('TXT_WPSC_INTERNATIONAL_PNP', 'International Shipping Fee'); // this needs updating
510
+ define('TXT_WPSC_SHIPPING_NOTE', 'Note: charged only once per product regardless of quantity ordered.');
511
+ define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Country Form Field');
512
+ define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the country)');
513
+
514
+ define('TXT_WPSC_SHIPPING', 'Shipping');
515
+ define('TXT_WPSC_EMAIL_FORM_FIELD', 'Email Form Field');
516
+ define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the email address)');
517
+
518
+
519
+ define('TXT_WPSC_PRODUCTIMAGES', 'Product Images');
520
+ define('TXT_WPSC_PRODUCTDOWNLOAD', 'Product Download');
521
+ define('TXT_WPSC_SHOWTHUMBNAILS', 'Show Thumbnails');
522
+ define('TXT_WPSC_ADD_ADDITIONAL_IMAGE', 'Add Additional Image');
523
+ define('TXT_WPSC_DELETE_IMAGE', 'Delete Image');
524
+ define('TXT_WPSC_GOLD_OPTIONS', 'Gold Cart Options');
525
+ define('TXT_WPSC_ACTIVATE_SETTINGS', 'Activation Settings: Gold Cart');
526
+ define('TXT_WPSC_ACTIVATION_KEY', 'Activation Key');
527
+ define('TXT_WPSC_THANKSACTIVATED', 'Thanks, the gold shopping cart has been activated.');
528
+ define('TXT_WPSC_NOTACTIVATED', 'Sorry, the API key was incorrect.');
529
+ define('TXT_WPSC_DEFAULT', 'Default');
530
+ define('TXT_WPSC_LIST', 'List');
531
+ define('TXT_WPSC_VISIBLE', 'Visible');
532
+ define('TXT_WPSC_DELETE_PRODUCT', 'Delete Product');
533
+ define('TXT_WPSC_ADDITIONAL_IMAGE', 'Additional Image');
534
+ define('TXT_WPSC_GATEWAY_OPTIONS', 'Gateway Options');
535
+ define('TXT_WPSC_SHIPPING_COUNTRY', 'Choose your shipping country');
536
+ define('TXT_WPSC_CONFIRM_TOTALS', 'Confirm your totals before making the payment:');
537
+ define('TXT_WPSC_CHECKOUT_FORM_FIELDS_DESCRIPTION', 'Here you can customise the forms to be displayed in your checkout page. The checkout page is where you collect important user information that will show up in your purchase logs i.e. the buyers address, and name...');
538
+ define('TXT_WPSC_PAYMENT_OPTIONS', 'Payment Options');
539
+ define('TXT_WPSC_PAYMENT_DESCRIPTION', 'Choose what payment options you want to make available in the checkout page. By default purchasers can only pay for items using a credit card however you may wish to also let them pay manually in which case you should select the credit card + manual payment option.');
540
+
541
+ define('TXT_WPSC_DEFAULT_GATEWAY_ONLY', ' only');
542
+ define('TXT_WPSC_PLUS_MANUAL_PAYMENT', ' plus manual payment option');
543
+ define('TXT_WPSC_PAYMENT_METHOD', 'Payment Method');
544
+ define('TXT_WPSC_PAY_USING', 'Pay using');
545
+ define('TXT_WPSC_PAY_MANUALLY', 'Pay by Cheque/Bank Deposit');
546
+ define('TXT_WPSC_CREDIT_CARD', 'Credit Card');
547
+ define('TXT_WPSC_ADJUSTABLE_QUANTITY', 'Show quantity form in list view');
548
+ define('TXT_WPSC_RSS_FEED_HEADER', 'Subscribe to your orders');
549
+ define('TXT_WPSC_RSS_FEED_LINK', 'Subscribe to an RSS feed');
550
+ define('TXT_WPSC_RSS_FEED_TEXT', 'of your orders');
551
+ define('TXT_WPSC_INITIAL_SETUP', 'Created default options.');
552
+ define('TXT_WPSC_PLUGIN_NEWS_HEADER', 'Plugin News');
553
+
554
+
555
+ define('TXT_WPSC_PLUGIN_NEWS', '
556
+
557
+ The <a href="http://instinct.co.nz/blogshop/products-page/" target="_blank">WP DropShop Module</a> is the latest and most cutting edge shopping cart available online. Coupled with Grid View then your site will be the talk of street! <br/><br/>
558
+
559
+ The <a href="http://instinct.co.nz/blogshop/products-page/" target="_blank">GridView Module</a> is a visual module built to enhance the way your product page looks.<br/><br/>
560
+
561
+ <a href="http://www.instinct.co.nz/wp-campaign-monitor/100">WP Campaign Monitor</a> is an email newsletter tool built just for WP users who want to send campaigns, track the results and manage their subscribers. The latest version integrates with e-commerce lite meaning that you will be able to send buyers email newsletters and much more.
562
+
563
+ ');
564
+
565
+
566
+ define('TXT_WPSC_POWERED_BY', 'This shop is powered by ');
567
+
568
+ define('TXT_WPSC_NO_PURCHASES', 'There have not been any purchases yet.');
569
+
570
+
571
+ define('TXT_WPSC_DELIVERY_ADDRESS', 'Delivery Address');
572
+ define('TXT_WPSC_DELIVERY_CITY', 'Delivery City');
573
+ define('TXT_WPSC_DELIVERY_COUNTRY', 'Delivery Country');
574
+ define('TXT_WPSC_MP3_SETTINGS', 'MP3 Settings');
575
+ define('TXT_WPSC_MP3_SETTINGS_DESCRIPTION', 'To create the 30 second MP3 file clips, this plugin needs <a href=\'http://sox.sourceforge.net/\'>SoX</a> compiled with MP3 support, enter the path to SoX here.');
576
+ define('TXT_WPSC_SOX_PATH', 'SoX Path');
577
+ define('TXT_WPSC_PREVIEW', 'Preview');
578
+ define('TXT_WPSC_DOWNLOAD_CSV', 'Download CSV');
579
+ define('TXT_WPSC_PREVIEW_FILE', 'Preview File');
580
+ define('TXT_WPSC_NEW_PREVIEW_FILE', 'New Preview File');
581
+ define('TXT_WPSC_REPLACE_PRODUCT', 'Replace Product');
582
+ define('TXT_WPSC_TOTALSHIPPING', 'Total Shipping');
583
+ define('TXT_WPSC_DISPLAY_FRONT_PAGE', 'Display on Front page');
584
+ define('TXT_WPSC_SEARCH_FOR', 'Search For');
585
+ define('TXT_WPSC_YOUR_SEARCH_FOR', 'Your search for');
586
+ define('TXT_WPSC_RETURNED_NO_RESULTS', 'returned no results.');
587
+ define('TXT_WPSC_POSTAGE', 'Postage');
588
+ define('TXT_WPSC_SUBTOTAL', 'Subtotal');
589
+
590
+
591
+ //everything under here needs translations, added after 19/1/2007
592
+
593
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Please enter a valid');
594
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Please enter your first name.');
595
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Please enter your last name.');
596
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Please enter a valid email address.');
597
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Please complete your address.');
598
+ define('TXT_WPSC_PLEASEENTERAVALIDCITY', 'Please enter your town or city.');
599
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Please enter a valid phone number.');
600
+ define('TXT_WPSC_PLEASESELECTCOUNTRY', 'Please select your country from the list.');
601
+ define('TXT_WPSC_PLEASEAGREETERMSANDCONDITIONS', 'Please select the terms and conditions option. Unfortunately we cannot process your order otherwise.');
602
+ define('TXT_WPSC_POSITION', 'Position');
603
+
604
+ define('TXT_WPSC_DELIVERY_REGION', 'Delivery Region');
605
+
606
+
607
+ define('TXT_WPSC_GENERAL_SETTINGS', 'General Settings');
608
+ define('TXT_WPSC_TAX_SETTINGS', 'Tax Settings');
609
+ define('TXT_WPSC_POSTAGE_AND_TAX', 'Postage &amp; Tax ');
610
+ define('TXT_WPSC_GRID', 'Grid');
611
+ define('TXT_WPSC_CANT_MOVE_CATEGORY', 'You cannot move a product group with subcategories.');
612
+ define('TXT_WPSC_SURETODELETECATEGORY', 'Are you sure you want to delete this category? If the category has any subcategories, they will be deleted too.');
613
+ define('TXT_WPSC_VARIATION', 'Variation');
614
+ define('TXT_WPSC_OVER_TWO_VARIATIONS', 'Variation stock and price control does not work if you have more than two variations.');
615
+ define('TXT_WPSC_PRICE_AND_STOCK_CONTROL', 'Price and Stock Control') ;
616
+
617
+ // pe.{
618
+ define('TXT_WPSC_CATSBRANDSLOCATION', 'Categories &amp; Brands Location');
619
+ define('TXT_WPSC_DESCITEMSEPARATOR', ' : ');
620
+ define('TXT_WPSC_SEARCHITEMSEPARATOR', ' : ');
621
+ define('TXT_WPSC_SINGLE_SHIPPING_COUNTRY', 'Shipping country:');
622
+ define('TXT_WPSC_ADD_ANOTHER_VARIATION', 'Add a variation');
623
+ // }.pe
624
+ define('TXT_WPSC_PRODUCT_CATEGORIES', 'Select Categories');
625
+ define('TXT_WPSC_THANKS_DELETED', 'Thanks, the purchase log record has been deleted');
626
+ define('TXT_WPSC_PRODUCT_IMAGE_PREVIEW', 'Product image');
627
+ define('TXT_WPSC_PRODUCT_THUMBNAIL_PREVIEW', 'Product thumbnail');
628
+ define('TXT_WPSC_REMOVE_LOG', 'Remove this record from the purchase log');
629
+ define('TXT_WPSC_CATSANDBRAND', 'Categories &amp; Brands');
630
+ define('TXT_WPSC_GOLD_DROPSHOP', 'DropShop');
631
+ define('TXT_WPSC_NEEDTOENABLEDROPSHOP', 'You need to install the Gold and DropShop extentions to use this');
632
+ define('TXT_WPSC_DRAG_ITEM_HERE', 'Drag any item here to add it to your cart.');
633
+ define('TXT_WPSC_SHOWCATEGORYTHUMBNAILS', 'Show Product Group Thumbnails');
634
+ define('TXT_WPSC_SHOPPING_CART', 'Shopping Cart');
635
+ define('TXT_WPSC_SHOW_SLIDING_CART', 'Use Sliding Cart');
636
+ define('TXT_WPSC_PREVIEW_FILE', 'Upload Preview');
637
+ define('TXT_WPSC_PREVIEW_FILE_NOTE', 'Note: If you do not upload a preview file and your server has sox compiled with MP3 support then a preview file will be created for you.');
638
+ define('TXT_WPSC_PURCHASE_NUMBER', 'Purchase No.');
639
+ define('TXT_WPSC_FILTER_ORDER', 'Filter Orders');
640
+ define('TXT_WPSC_SHOW_SEARCH', 'Show Search');
641
+ define('TXT_WPSC_LOG_CURRENT_MONTH', 'Display results from current month');
642
+ define('TXT_WPSC_LOG_PAST_THREE_MONTHS', 'Display results from past three months');
643
+ define('TXT_WPSC_LOG_ALL', 'Display all results');
644
+ define('TXT_SHOW_IMAGES_ONLY', 'Show images only');
645
+ define('TXT_WPSC_SHOW_GALLERY', 'Show Thumbnail Gallery');
646
+ define('TXT_WPSC_PLEASE_SELECT', 'Please select');
647
+ define('TXT_WPSC_TXN_ID', 'Transaction Id');
648
+ define('TXT_WPSC_SINGLE_PRODUCTTHUMBNAILSIZE', 'Single Product Image Size');
649
+ define('TXT_WPSC_RESET', 'Reset');
650
+ define('TXT_WPSC_ORDER_PENDING', 'Thank you, the order is pending, you will be sent an email once the order clears.');
651
+ define('TXT_WPSC_ORDER_FAILED', 'We\'re Sorry, your order has not been accepted, the most likely reason is that you have insufficient funds.');
652
+ // Adrian - added for the options I added
653
+ define('TXT_WPSC_SHOW_CATEGORY_COUNT', 'Show Product Count per Product Group');
654
+ define('TXT_WPSC_CATSPRODS_DISPLAY_TYPE', 'Product Groups/Products Display');
655
+ define('TXT_WPSC_CATSPRODS_TYPE_CATONLY', 'Product Groups Only (All products displayed)');
656
+ define('TXT_WPSC_CATSPRODS_TYPE_SLIDEPRODS', 'Sliding Product Groups (1 product per page)');
657
+ // Adrian - END new added options
658
+ define('TXT_WPSC_ORDER_DETAILS', 'Order Details');
659
+ define('TXT_WPSC_SAVE_PROFILE', 'Save Profile');
660
+ define('TXT_WPSC_USERACCOUNTURL', 'User Account URL');
661
+ define('TXT_WPSC_MUST_BE_LOGGED_IN', 'You must be logged in to use this page. Please use the form below to login to your account.');
662
+ define('TXT_WPSC_YOUR_ACCOUNT', 'Your Account');
663
+
664
+ define('TXT_WPSC_YOU_JUST_ADDED', 'You just added "[product_name]" to your cart.');
665
+ define('TXT_WPSC_SORRY_NONE_LEFT', 'Sorry, but the item "[product_name]" is out of stock.');
666
+
667
+ define('TXT_WPSC_CONTINUE_SHOPPING', 'Continue Shopping');
668
+ define('TXT_WPSC_ITEM_GONE_OUT_OF_STOCK', 'It appears that an item has gone out of stock, please go back and edit your order.');
669
+ define('TXT_WPSC_DISPLAY_FANCY_NOTIFICATIONS', 'Display Fancy Purchase Notifications');
670
+ define('TXT_WPSC_IF_USER_CHECKOUT', 'If you have a user account, Please ');
671
+ define('TXT_WPSC_LOG_IN', 'log in.');
672
+ define('TXT_WPSC_IS_DONATION', 'Is the product a donation?');
673
+ define('TXT_WPSC_DONATION', 'Donation');
674
+ define('TXT_WPSC_DONATION_LC', 'donation');
675
+ define('TXT_WPSC_DONATION_SHIPPING', 'No shipping for donations');
676
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT_URL', 'Product Filename');
677
+ define('TXT_WPSC_FILETOBEPRODUCTURL', 'Note: Upload your file to the e-commerce files directory and enter the filename here.');
678
+ define('TXT_WPSC_DONATIONS', 'Donations');
679
+ define('TXT_WPSC_WRONG_FILE_PERMS', 'The following directories are not writable: :directory: You won\'t be able to upload any images or files here. You will need to change the permissions on these directories to make them writable.');
680
+ define('TXT_WPSC_RESET_API', 'Reset API key');
681
+ define('TXT_WPSC_PRODUCTS_PER_PAGE', 'Products per Page');
682
+ define('TXT_WPSC_OPTION_PRODUCTS_PER_PAGE', 'number of products to show per page');
683
+ define('TXT_WPSC_PAGE_NUMBER_POSITION', 'Page Number position');
684
+
685
+
686
+ define('TXT_WPSC_YOUR_BILLING_CONTACT_DETAILS', '1. Your billing/contact details');
687
+ define('TXT_WPSC_DELIVER_TO_A_FRIEND', '2. Shipping details');
688
+ define('TXT_WPSC_E_COMMERCE', 'e-Commerce');
689
+ define('TXT_WPSC_THANKS_SAVED', 'Thanks, your changes have been saved.');
690
+ define('TXT_WPSC_REGISTER', 'Register');
691
+ define('TXT_WPSC_TAX', 'Tax');
692
+
693
+ define('TXT_WPSC_USE_SHIPPING', 'Use Shipping');
694
+ define('TXT_WPSC_USE_SHIPPING_DESCRIPTION', 'If you are only selling digital downloads, you should select no to disable the shipping on your site.');
695
+
696
+ define('TXT_WPSC_PAGESETTINGS', 'Pagination settings');
697
+ define('TXT_WPSC_USE_PAGINATION', 'Use Pagination');
698
+ define('TXT_WPSC_ADD_PRODUCT', 'Add Product');
699
+ define('TXT_WPSC_EDIT_PRODUCT', 'Edit Product');
700
+ define('TXT_WPSC_UPDATE_PAGE_URLS', 'Update Page URLs');
701
+ define('TXT_WPSC_VARIATIONS_AND_SPECIALS_DONT_MIX', 'Note: You cannot currently set a special price on a product with variations');
702
+ define('TXT_WPSC_PRODUCT_SPECIALS', 'Product Specials');
703
+ define('TXT_WPSC_SHOW_SHARE_THIS', 'Show Share This (Social Bookmarks)');
704
+ define('TXT_WPSC_SHOW_NO_PRODUCT', 'No Product');
705
+ define('TXT_WPSC_CHOOSE_DOWNLOADABLE_PRODUCT', 'Choose a downloadable file for this product:');
706
+ define('TXT_WPSC_PLEASECHOOSE', 'Please Choose');
707
+
708
+ define('TXT_WPSC_VARIATION_CONTROL', 'Variation Control');
709
+ define('TXT_WPSC_VARIATION_GRID_CONTROL_SINGLE', ':variation1: Control');
710
+ define('TXT_WPSC_VARIATION_GRID_CONTROL_PAIR', ':variation1: and :variation2: Control');
711
+ define('TXT_WPSC_VIEW_PREVIEW_CLIP', 'View Preview Clip');
712
+ define('TXT_WPSC_REQUIRE_REGISTRATION', 'Users must register before checking out');
713
+ define('TXT_WPSC_PLEASE_LOGIN', 'Please login or signup above to make your purchase');
714
+ define('TXT_WPSC_IF_JUST_REGISTERED', 'If you have just registered, please check your email and login before you make your purchase');
715
+ define('TXT_WPSC_SELECT_THEME', 'Select Theme');
716
+ define('TXT_WPSC_NEW_ORDER_PENDING_SUBJECT', 'New pending order');
717
+ define('TXT_WPSC_NEW_ORDER_PENDING_BODY', "There is a new order awaiting processing: \n\r ");
718
+ define('TXT_WPSC_NO_SHIPPING', "Does not use Shipping");
719
+ define('TXT_WPSC_DEFAULT_MEMBERS_ONLY', "This page is for members only, you must log in to access this page");
720
+ define('TXT_WPSC_MEMBERSHIP_CONTROL', "Membership Control");
721
+ define('TXT_WPSC_PRODUCT_MEMBER_STATUS', "Is this product a membership?");
722
+ define('TXT_WPSC_PRODUCT_MEMBERSHIP_LENGTH', "Membership Length");
723
+ define('TXT_WPSC_DAYS', "Days");
724
+ define('TXT_WPSC_MONTHS', "Months");
725
+ define('TXT_WPSC_YEARS', "Years");
726
+ define('TXT_WPSC_MEMBERS_SUBSCRIPTION_ENDED', "Your subscription has ended.");
727
+ define('TXT_WPSC_ACTIVATE_SETTINGS_MEMBERS', 'Activation Settings: Members Module');
728
+ define('TXT_WPSC_GOLD_CART', 'Gold Cart');
729
+ define('TXT_WPSC_SHOW_CATEGORY_DESCRIPTION', 'Show Product Group Description');
730
+ define('TXT_WPSC_ALSO_BOUGHT', 'People who bought this item also bought');
731
+ define('TXT_WPSC_MARKETING_SETTINGS', 'Marketing Settings');
732
+ define('TXT_WPSC_OPTION_ALSO_BOUGHT', 'Display Cross Sales');
733
+ define('TXT_WPSC_MARKETING', 'Marketing');
734
+ define('TXT_WPSC_DISPLAYCOUPONS', 'Coupons');
735
+ define('TXT_WPSC_ADD_COUPON', 'Add Coupon');
736
+ define('TXT_WPSC_COUPON', 'Coupon');
737
+ define('TXT_WPSC_ADDCOUPONS', 'Add Coupon');
738
+ define('TXT_WPSC_COUPON_CODE', 'Coupon Code');
739
+ define('TXT_WPSC_DISCOUNT', 'Discount');
740
+ define('TXT_WPSC_START', 'Start');
741
+ define('TXT_WPSC_EXPIRY', 'Expiry');
742
+ define('TXT_WPSC_USE_ONCE', 'Use Once');
743
+ define('TXT_WPSC_ACTIVE', 'Active');
744
+ define('TXT_WPSC_COUPONHASBEENADDED', 'Thanks, the coupon has been added.');
745
+ define('TXT_WPSC_COUPON', 'Coupon');
746
+ define('TXT_WPSC_COUPON_DOESNT_EXIST', 'That coupon has expired or does not exist.');
747
+ define('TXT_WPSC_PRODUCT_TAGS', 'Product Tags');
748
+
749
+ define('TXT_WPSC_DROPSHOPDISPLAY', 'DropShop Display');
750
+ define('TXT_WPSC_HIDEADDTOCARTBUTTON', 'Hide "Add to cart" button');
751
+
752
+ define('TXT_WPSC_PRODUCT_TAGS', 'Product Tags');
753
+
754
+ define('TXT_WPSC_SHOW_DROPSHOP_ALL', 'Show Dropshop on every page');
755
+ define('TXT_WPSC_SHOW_DROPSHOP_PRODUCT', 'Show Dropshop only on product page');
756
+ define('TXT_WPSC_PRICEAFTERDISCOUNT', 'Price after discount');
757
+ define('TXT_WPSC_ECOM_NEWS', 'e-Commerce News');
758
+ define('TXT_WPSC_SAVE_PRODUCT_ORDER', 'Save Product Order');
759
+
760
+ define('TXT_WPSC_ECOMMERCE_SUBSCRIBERS', 'e-Commerce Subscribers');
761
+ define('TXT_WPSC_USERID', 'User ID');
762
+ define('TXT_WPSC_REGISTEREDDATE', 'Registered Date');
763
+ define('TXT_WPSC_SUSPEND', 'Suspend');
764
+ define('TXT_WPSC_ACTIVATE', 'Activate');
765
+
766
+
767
+ define('TXT_WPSC_DROPSHOP_LIGHT', 'Use light Dropshop style');
768
+ define('TXT_WPSC_DROPSHOP_DARK', 'Use dark Dropshop style');
769
+
770
+
771
+ define('TXT_WPSC_MANUAL_PAYMENT', 'Manual Payment');
772
+ define('TXT_WPSC_CREDIT_CARD', 'Credit Card');
773
+ define('TXT_WPSC_CREDIT_CARD_AND_MANUAL_PAYMENT', 'Manual Payment and Credit Card');
774
+ define('TXT_WPSC_PAYMENT_INSTRUCTIONS', 'Enter the manual payment instructions that you wish to display');
775
+
776
+ define('TXT_WPSC_SHOWALL', "Show All");
777
+ define('TXT_WPSC_PRICE_RANGE', "Price Range");
778
+ define('TXT_WPSC_GOOGLE_RISK_AVS', "Address verification failed");
779
+ define('TXT_WPSC_GOOGLE_RISK_CVN', "Credit card verification failed");
780
+ define('TXT_WPSC_GOOGLE_RISK_BOTH', "Credit card and Address verification failed");
781
+ define('TXT_WPSC_GOOGLE_RISK', 'Google Risk');
782
+ define('TXT_WPSC_CANCEL_ORDER', 'Cancel this order');
783
+ define('TXT_WPSC_FIRST_NAME', 'First Name');
784
+ define('TXT_WPSC_LAST_NAME', 'Last Name');
785
+ define('TXT_WPSC_DELIVERY_FIRST_NAME', 'Delivery First Name');
786
+ define('TXT_WPSC_DELIVERY_LAST_NAME', 'Delivery Last Name');
787
+ define('TXT_WPSC_DELIVERY_STATE', 'Delivery State');
788
+ define('TXT_WPSC_SHIPWIREEMAIL', 'ShipWire Email');
789
+ define('TXT_WPSC_SHIPWIREPASSWORD', 'ShipWire Password');
790
+ define('TXT_WPSC_SHIPWIRESETTINGS', 'ShipWire Settings');
791
+ define('TXT_WPSC_NO_DOWNLOADABLES', 'You have not purchased any downloadable products yet.');
792
+ define('TXT_DISPLAY_VARIATIONS', 'Display Variations');
793
+
794
+
795
+ define('TXT_WPSC_NONAME', 'No Name');
796
+ define('TXT_WPSC_WEIGHT', 'Weight');
797
+ define('TXT_WPSC_LOG_TRANSACTIONACCEPTEDLOGS', 'Display only accepted transactions');
798
+ define('TXT_WPSC_SEARCHEMAIL', 'Search By Email');
799
+
800
+ ?>
wp-shopping-cart/languages/FR_fr.php ADDED
@@ -0,0 +1,606 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ This is a language file for the WP Shopping Cart plugin version 2.6.5 beta
4
+ Translation to French: semiosys@semiophore.net
5
+ */
6
+ define('TXT_WPSC_IMAGESIZEINFO', 'Note: Si cela reste non rempli, l\'image ne sera pas redimensionn&eacute;e');
7
+ define('TXT_WPSC_RECEIVED', 'Commande re&ccedil;ue');
8
+ define('TXT_WPSC_ORDER_STATUS', 'Statut de la Commande');
9
+ define('TXT_WPSC_ORDER_SUMMARY', 'R&eacute;sum&eacute; de la Commande');
10
+ define('TXT_WPSC_LANGUAGE', 'Langage');
11
+ define('TXT_WPSC_ACCEPTED_PAYMENT', 'Paiement Accept&eacute;');
12
+ define('TXT_WPSC_JOB_DISPATCHED', 'T�che Envoy&eacute;');
13
+ define('TXT_WPSC_PROCESSED', 'Commande ferm&eacute;e');
14
+ define('TXT_WPSC_ECOMMERCE', 'e-Commerce');
15
+ define('TXT_WPSC_OPTIONS', 'Options Magasin');
16
+ define('TXT_WPSC_ADDPRODUCTS', 'Ajouter Produits');
17
+ define('TXT_WPSC_SENDSMS', 'Envoyer SMS');
18
+ define('TXT_WPSC_PRODUCTS', 'Produits');
19
+ define('TXT_WPSC_ADDCATEGORY', 'Ajouter Cat&eacute;gorie');
20
+ define('TXT_WPSC_CATEGORIES', 'Cat&eacute;gories');
21
+ define('TXT_WPSC_BRANDS', 'Marques');
22
+ define('TXT_WPSC_VARIATIONS', 'Variations');
23
+ define('TXT_WPSC_PURCHASELOG', 'Journal des Achats');
24
+ define('TXT_WPSC_ORDER_LOG', 'Commandes');
25
+ define('TXT_WPSC_OLDER_ORDERS', 'Anciennes Commandes');
26
+ define('TXT_WPSC_ORDER', 'Commande');
27
+ define('TXT_WPSC_TOTAL_THIS_MONTH', 'Revenus cumul&eacute;s pour ce mois');
28
+ define('TXT_WPSC_MONTHLY_REPORT', 'Bilan des six derniers mois');
29
+ define('TXT_WPSC_TOTAL_INCOME', 'Revenu Total');
30
+ define('TXT_WPSC_ACCEPTED_PAYMENTS', '(paiements accept&eacute;s)'); //texr has changed slightly
31
+ define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', 'Options Passerelle');
32
+ define('TXT_WPSC_HELPINSTALLATION', 'Aide/Mise &agrave; Jour');
33
+ define('TXT_WPSC_EXAMPLECATEGORY', 'Cat&eacute;gorie Exemple');
34
+ define('TXT_WPSC_EXAMPLEDETAILS', 'D&eacute;tails de l\'exemple');
35
+ define('TXT_WPSC_EXAMPLEBRAND', 'Marque Exemple');
36
+ define('TXT_WPSC_PRODUCTIMAGEWIDTH', 'largeur de l\'image du produit');
37
+ define('TXT_WPSC_PRODUCTIMAGEHEIGHT', 'hauteur de l\'image du produit');
38
+ define('TXT_WPSC_CATEGORYIMAGEWIDTH', 'largeur de l\'image de la cat&eacute;gorie');
39
+ define('TXT_WPSC_CATEGORYIMAGEHEIGHT', 'hauteur de l\'image de la cat&eacute;gorie');
40
+ define('TXT_WPSC_PRODUCTLISTURL', 'Emplacement de la liste des produits');
41
+ define('TXT_WPSC_SHOPPINGCARTURL', 'Emplacement du caddie');
42
+ define('TXT_WPSC_CHECKOUTURL', 'Emplacement de la caisse');
43
+ define('TXT_WPSC_TRANSACTURL', 'Emplacement des d&eacute;tails de la transaction');
44
+ define('TXT_WPSC_PAYMENTGATEWAY', 'La passerelle de paiment &agrave; utiliser');
45
+ define('TXT_WPSC_CARTLOCATION', 'Emplacement du Caddie');
46
+ define('TXT_WPSC_SHOWCATEGORYBRANDS', 'Montrer les Cat&eacute;gories ou les Marques ou les deux');
47
+ define('TXT_WPSC_CURRENCYTYPE', 'Devise');
48
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Position du signe de la devise');
49
+ define('TXT_WPSC_GSTRATE', 'Le taux GST'); // What's this : GST ???
50
+ define('TXT_WPSC_MAXDOWNLOADS', 'La limite de t&eacute;l&eacute;chargement');
51
+ define('TXT_WPSC_DISPLAYPNP', 'Montrer ou cacher les frais de port et d\'emballage');
52
+ define('TXT_WPSC_DISPLAYSPECIALS', 'Montrer ou cacher les affaires sur la sidebar');
53
+ define('TXT_WPSC_POSTAGEAND_PACKAGING', 'Frais de port et d\'emballage par defaut');
54
+ define('TXT_WPSC_PURCHLOGEMAIL', 'Adresse email &agrave; laquelle envoyer le journal d\'achat');
55
+ define('TXT_WPSC_RETURNEMAIL', 'Adresse email &agrave; laquelle envoyer le rapport d\'achat');
56
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'Conditions de paiment');
57
+ define('TXT_WPSC_DEFAULTBRAND', 'Marque par d&eacute;faut');
58
+ define('TXT_WPSC_DEFAULTCATEGORY', 'Cat&eacute;gorie par d&eacute;faut');
59
+ define('TXT_WPSC_PAYPALBUSINESS', 'paypal business');
60
+ define('TXT_WPSC_PAYPALURL', 'url paypal');
61
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Montrer les &eacute;valuations des produits');
62
+ define('TXT_WPSC_PRODUCTSPAGE', 'Page des Produits');
63
+ define('TXT_WPSC_CHECKOUT', 'Passer &agrave; la Caisse');
64
+ define('TXT_WPSC_ENTERDETAILS', 'Entrer vos coordonn&eacute;es');
65
+ define('TXT_WPSC_TRANSACTIONRESULTS', 'R&eacute;sultats de la Transaction');
66
+ define('TXT_WPSC_SELECTACATEGORY', 'S&eacute;lectionner une Cat&eacute;gorie');
67
+ define('TXT_WPSC_SELECTABRAND', 'S&eacute;lectioner une Marque');
68
+ define('TXT_WPSC_PRODUCTNAME', 'Nom du Produit');
69
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Description du Produit');
70
+ define('TXT_WPSC_ADDITIONALDESCRIPTION', 'Description Suppl&eacute;mentaire');
71
+ define('TXT_WPSC_PRICE', 'Prix');
72
+ define('TXT_WPSC_TAXALREADYINCLUDED', 'Ne pas inclure la TVA (La taxe est d&eacute;finie dans la configuration du magasin)'); // this text has changed and needs updating
73
+ define('TXT_WPSC_SPECIAL', 'Affaire / Prix sold&eacute;'); // this text has changed and needs updating
74
+ define('TXT_WPSC_PRODUCT_DISPLAY', 'Affichage du Produit');
75
+
76
+ define('TXT_WPSC_PRODUCTSTOCK', 'Stock Produits');
77
+
78
+ define('TXT_WPSC_UNTICKBOX', 'J\'ai un nombre limit&eacute; de cet article en stock. Encas de rupture de stock, ce produit ne sera plus disponible dans le magasin, &agrave; moins que vous ne d&eacute;cochiez cette case, ou que vous rajoutiez du stock.');
79
+ define('TXT_WPSC_LIMITED_STOCK', 'Stock Limit&eacute;');
80
+
81
+ define('TXT_WPSC_CATEGORY', 'Cat&eacute;gorie');
82
+ define('TXT_WPSC_BRAND', 'Marque');
83
+ define('TXT_WPSC_PRODUCT_VARS', 'Variations du Produit');
84
+ define('TXT_WPSC_ADD_VAR', 'Ajouter un Ensemble de Variations');
85
+ define('TXT_WPSC_EDIT_VAR', 'Modifier Ensemble de Variations');
86
+ define('TXT_WPSC_SELECTAVARIATION', 'Choisir une Variation');
87
+ define('TXT_WPSC_NEW_VARIATION', 'Cr&eacute;er une Nouvelle Variation');
88
+
89
+ define('TXT_WPSC_PRODUCTATT', 'Pi&egrave;ces jointes au Produit');
90
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT', 'Produits T&eacute;l&eacute;chargeables');
91
+ define('TXT_WPSC_FILETOBEPRODUCT', 'Note: si ceci n\'est pas renseign&eacute;, le fichier charg&eacute; correspondra au produit &agrave; acheter.');
92
+ define('TXT_WPSC_RESIZEIMAGE', 'Redimensioner Miniature');
93
+ define('TXT_WPSC_DONOTRESIZEIMAGE', 'ne pas redimensionner la miniature.');
94
+
95
+
96
+ define('TXT_WPSC_SEPARATETHUMBNAIL', 'utiliser des miniatures s&eacute;par&eacute;es'); // CaroStory
97
+
98
+ define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'utiliser largeur et hauteur par d&eacute;faut');
99
+
100
+ define('TXT_WPSC_USEDEFAULTSIZE', 'taille par d&eacute;faut'); // CaroStory
101
+ define('TXT_WPSC_USESPECIFICSIZE', 'taille sp&eacute;cifique'); // CaroStory
102
+
103
+ define('TXT_WPSC_USE', 'utiliser');
104
+ define('TXT_WPSC_PXHEIGHTBY', 'px hauteur par');
105
+ define('TXT_WPSC_PXWIDTH', 'px largeur.');
106
+
107
+ define('TXT_WPSC_PXHEIGHT', 'px hauteur'); // CaroStory
108
+
109
+
110
+ define('TXT_WPSC_PREVIEW', 'Pr&eacute;visualisation');
111
+
112
+
113
+
114
+ define('TXT_WPSC_UPLOADNEWIMAGE', 'Remplacer Image');
115
+ define('TXT_WPSC_DELETEIMAGE', 'Effacer Image');
116
+ define('TXT_WPSC_EDIT', 'Modifier');
117
+ define('TXT_WPSC_DELETE', 'Effacer');
118
+ define('TXT_WPSC_REMOVE', 'Supprimer');
119
+ define('TXT_WPSC_NAME', 'Nom');
120
+ define('TXT_WPSC_TYPE', 'Type');
121
+ define('TXT_WPSC_MANDATORY', 'Obligatoire');
122
+ define('TXT_WPSC_DISPLAY_IN_LOG', 'Display<br /> in Log');
123
+ define('TXT_WPSC_DESCRIPTION', 'Description');
124
+ define('TXT_WPSC_CATEGORY_PARENT', 'Cat&eacute;gorie Parente');
125
+ define('TXT_WPSC_IMAGE', 'Image');
126
+ define('TXT_WPSC_HEIGHT', 'Hauteur');
127
+ define('TXT_WPSC_WIDTH', 'Largeur');
128
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Merci de saisir un');
129
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Merci de saisir un nom ');
130
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Merci de saisir un pr&eacute;nom ');
131
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Merci de saisir une adresse email');
132
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Merci de saisir une adresse valide');
133
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Merci de saisir un num&eacute;ro de t&eacute;l&eacute;phone valide');
134
+
135
+
136
+
137
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'Vous n\'avez pas accept&eacute; les conditions de vente');
138
+ define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', 'Il n\'y a rien dans votre caddie');
139
+ define('TXT_WPSC_SPECIALS', 'Affaires');
140
+ define('TXT_WPSC_BUY', 'Acheter');
141
+ define('TXT_WPSC_SHOPPINGCART', 'Caddie');
142
+ define('TXT_WPSC_NUMBEROFITEMS', 'Nombre d\'articles');
143
+ define('TXT_WPSC_NOMOREAVAILABLE', 'Ce produit n\'est pas en stock.');
144
+ define('TXT_WPSC_EMPTYYOURCART', 'Vider votre Caddie');
145
+ define('TXT_WPSC_GOTOCHECKOUT', 'Passer &agrave; la caisse');
146
+ define('TXT_WPSC_CONTINUESHOPPING', 'Poursuivre vos Achats');
147
+ define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', 'Votre caddie est vide');
148
+ define('TXT_WPSC_VISITTHESHOP', 'Visiter le Magasin');
149
+ define('TXT_WPSC_PAGES', 'Pages');
150
+ define('TXT_WPSC_OUTOF', 'De');
151
+ define('TXT_WPSC_VOTES', 'votes.');
152
+ define('TXT_WPSC_CLICKSTARSTORATE', 'Cliquer les &eacute;toiles pour &eacute;valuer');
153
+ define('TXT_WPSC_AVERAGERATINGOF', 'Evaluation moyenne de');
154
+ define('TXT_WPSC_YOURVOTE', 'Votre vote');
155
+ define('TXT_WPSC_AVERAGEVOTE', 'Vote moyen');
156
+ define('TXT_WPSC_YOUHAVEVOTED', 'Vous avez vot&eacute;');
157
+ define('TXT_WPSC_NOVOTES', 'Pas de Vote');
158
+ define('TXT_WPSC_1VOTE', '1 Vote');
159
+ define('TXT_WPSC_VOTES2', 'Votes');
160
+ define('TXT_WPSC_PERSONGIVEN', 'personne a donn&eacute; &agrave; cette image');
161
+ define('TXT_WPSC_PERSONGIVEN2', '&eacute;toiles.');
162
+ define('TXT_WPSC_PEOPLEGIVEN', 'personnes ont donn&eacute; &agrave; cette image');
163
+ define('TXT_WPSC_PEOPLEGIVEN2', '&eacute;toiles.');
164
+
165
+ define('TXT_WPSC_ITEMHASBEENADDED', 'Cet item a &eacute;t&eacute; ajout&eacute;');
166
+ define('TXT_WPSC_ITEMHASNOTBEENADDED', 'Cet item n\'a pas &eacute;t&eacute; ajotu&eacute;');
167
+ define('TXT_WPSC_ADDNEWCATEGORY', 'Ajouter Nouvelle Categorie');
168
+ define('TXT_WPSC_SUBMIT', 'Soumettre');
169
+ define('TXT_WPSC_SELECTAVALIDCATEGORY', 'Merci de Choisir une Cat&eacute;gorie valide');
170
+ define('TXT_WPSC_PRODUCTNAME', 'Nom du Produit');
171
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Description du Produit');
172
+ define('TXT_WPSC_ADDNEWPRODUCT', 'Ajouter Produit');
173
+ define('TXT_WPSC_PRODUCTQUANTITY', 'Quantit&eacute; du Produit');
174
+ define('TXT_WPSC_PRODUCTIMAGE', 'Image du Produit');
175
+ define('TXT_WPSC_PRODUCTPRICE', 'Prix du Produit');
176
+ define('TXT_WPSC_NOTAX', 'Pas de taxe');
177
+ define('TXT_WPSC_ABOUT', 'A Propos');
178
+ define('TXT_WPSC_ABOUTCONTENT', 'Bienvenue sur l\'onglet e-commerce. <br /><br /><strong>Note:</strong> sur certains configurations, il se peut que le caddie se vide &agrave; chaque chargement de page; si cela se produit, vous devrez ajouter cette ligne:<br /><br />session_start();<br /><br />dans le fichier index.php file dans le r&eacute;pertoire de base de wordpress.<br />');
179
+ define('TXT_WPSC_CONTACTDETAILS', 'Merci d\'entrer vos coordonn&eacute;es:');
180
+ define('TXT_WPSC_CREDITCARDHANDY', 'Note, Une fois que vous appuyer sur soumettre, vous devrez avoir votre carte de cr&eacute;dit sous la main.');
181
+ define('TXT_WPSC_ASTERISK', 'Les champs marqu&eacute; avec (*) sont obligatoires.');
182
+ define('TXT_WPSC_FIRSTNAME', 'Pr&eacute;nom');
183
+ define('TXT_WPSC_LASTNAME', 'Nom');
184
+ define('TXT_WPSC_EMAIL', 'Email');
185
+ define('TXT_WPSC_ADDRESS', 'Adresse'); // CaroStory
186
+ define('TXT_WPSC_ADDRESS1', 'Adresse 1'); // CaroStory
187
+ define('TXT_WPSC_ADDRESS2', 'Adresse 2'); // CaroStory
188
+ define('TXT_WPSC_CITY', 'Ville');
189
+ define('TXT_WPSC_COUNTRY', 'Pays');
190
+ define('TXT_WPSC_PHONE', 'T&eacute;l&eacute;phone');
191
+ define('TXT_WPSC_TERMS1', 'Je suis d\'accord que le ');
192
+ define('TXT_WPSC_TERMS2', 'Conditions de Vente');
193
+
194
+
195
+ define('TXT_WPSC_TEXT', 'Text');
196
+ define('TXT_WPSC_TEXTAREA', 'Textarea');
197
+ define('TXT_WPSC_HEADING', 'Heading');
198
+
199
+
200
+
201
+ define('TXT_WPSC_MAKEPURCHASE', 'Acheter');
202
+ define('TXT_WPSC_BUYPRODUCTS', 'Merci d\'acheter des produits avant d\'utiliser cette page');
203
+ define('TXT_WPSC_BRANDHASBEENEDITED', 'La marque a &eacute;t&eacute; &eacute;dit&eacute;e.');
204
+ define('TXT_WPSC_SURETODELETEPRODUCT', 'Etes-vous s�r(e) de vouloir effacer ce produit ?');
205
+ define('TXT_WPSC_ADDBRAND', 'Ajouter une Marque');
206
+ define('TXT_WPSC_DISPLAYBRANDS', 'Montrer les Marques');
207
+ define('TXT_WPSC_EDITBRAND', 'Editer une Marque');
208
+ define('TXT_WPSC_ADD', 'Ajouter');
209
+ define('TXT_WPSC_ADD_NEW_FORM', 'Ajouter un nouveau Champ');
210
+ define('TXT_WPSC_SAVE_CHANGES', 'Sauver Modfications');
211
+
212
+ define('TXT_WPSC_CATEGORYHASBEENEDITED', 'Cette cat&eacute;gorie a &eacute;t&eacute; modifi&eacute;e.');
213
+ define('TXT_WPSC_DISPLAYCATEGORIES', 'Montrer Cat&eacute;gories');
214
+ define('TXT_WPSC_ADDCATEGORY', 'Ajouter Cat&eacute;gorie');
215
+ define('TXT_WPSC_EDITCATEGORY', 'Editer Cat&eacute;gories');
216
+ define('TXT_WPSC_ALLCATEGORIES', 'Toutes les Cat&eacute;gories');
217
+
218
+ define('TXT_WPSC_DISPLAYVARIATIONS', 'Montrer les Variations');
219
+ define('TXT_WPSC_ADDVARIATION', 'Ajouter un Jeu de Variations');
220
+ define('TXT_WPSC_EDITVARIATION', 'Editer Jeu de Variations');
221
+ define('TXT_WPSC_VARIATIONHASBEENEDITED', 'La variation a &eacute;t&eacute; &eacute;dit&eacute;e.');
222
+ define('TXT_WPSC_VARIATION_VALUES', 'Valeurs de la Variation');
223
+ define('TXT_WPSC_REMOVE_SET', 'Supprimer ce Jeu'); //this needs to be translated
224
+
225
+ define('TXT_WPSC_SELECT_PARENT', 'Choisir Parent');
226
+ define('TXT_WPSC_PRODUCTHASBEENEDITED', 'Le produit a &eacute;t&eacute; modifi&eacute;.');
227
+ define('TXT_WPSC_ADDPRODUCT', 'Ajouter Produit');
228
+ define('TXT_WPSC_DISPLAYPRODUCTS', 'Montrer les Produits');
229
+ define('TXT_WPSC_PLEASESELECTACATEGORY', 'Merci de S&eacute;lectionner une Categorie');
230
+ define('TXT_WPSC_STOCK', 'Stock');
231
+ define('TXT_WPSC_PNP', 'PnP');
232
+ define('TXT_WPSC_EDITITEM', 'Editer cet Item');
233
+ define('TXT_WPSC_PRODUCTDETAILS', 'D&eacute;tails du Produit');
234
+ define('TXT_WPSC_SELECT_PRODUCT', 'Selection un Produti Existant');
235
+ define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', '(entrer la description du produit ici)');
236
+ define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', 'Description Suppl&eacute;mentaire du Produit');
237
+ define('TXT_WPSC_ADDITEM', 'Ajouter un Item');
238
+ define('TXT_WPSC_CHOOSEACATEGORY', 'Choisir une Cat&eacute;gorie');
239
+ define('TXT_WPSC_CHOOSEABRAND', 'Choisir une Marque');
240
+ define('TXT_WPSC_USETHEACTUALIMAGE', 'utiliser l\'image telle quelle. Pas de redimensionnement.');
241
+ define('TXT_WPSC_DISPLAYPURCHASES', 'Journal des Achats');
242
+ define('TXT_WPSC_ID', 'ID');
243
+ define('TXT_WPSC_TRANSACTIONSTATUS', 'Statut de la Transaction');
244
+ define('TXT_WPSC_DATE', 'Date');
245
+ define('TXT_WPSC_VIEWDETAILS', 'D&eacute;tails'); //Text has changed - translation is needed
246
+ define('TXT_WPSC_STATUS', 'Statut');
247
+ define('TXT_WPSC_SUCCESSFUL', 'Succ&egrave;s');
248
+ define('TXT_WPSC_FAILED', 'Echec');
249
+ define('TXT_WPSC_GST', 'GST');
250
+ define('TXT_WPSC_PP', 'P&amp;P');
251
+ define('TXT_WPSC_TOTAL', 'Total');
252
+ define('TXT_WPSC_FINALTOTAL', 'Total Final');
253
+ define('TXT_WPSC_CUSTOMERDETAILS', 'D&eacute;tails sur le Client');
254
+ define('TXT_WPSC_USERSCARTWASEMPTY', 'Ce Caddie &eacute;tait vide');
255
+ define('TXT_WPSC_GOBACK', 'Retour');
256
+ define('TXT_WPSC_THANKSAPPLIED', 'Merci, vos modifications ont &eacute;t&eacute; appliqu&eacute;es');
257
+ define('TXT_WPSC_FORM_FIELDS', 'Options Caisse');
258
+ define('TXT_WPSC_PAYMENTGATEWAY2', 'Passerelle de Paiement');
259
+ define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', 'Merci de Choisir une passerelle de paiement');
260
+ define('TXT_WPSC_PAYMENTGATEWAYNOTE', '<strong>Note:</strong> Cette version du plugin e-commerce vous permet de payer uniquement en utilisant la passerelle de paiement Paypal.<br /><br />Sachez qu\'une version compl&egrave;te du plugin utilisant des passerelles de paiement comme authorize.net, DPS (www.dps.co.nz), et paystation (www.paystation.co.nz) est disponible <a href="http://www.instinct.co.nz/blogshop">ici</a>'); // CaroStory
261
+ define('TXT_WPSC_URLSETTINGS', 'R&eacute;glage des URL');
262
+ define('TXT_WPSC_PRODUCTLISTURL', 'URL de la Liste des Produits');
263
+ define('TXT_WPSC_SHOPPINGCARTURL', 'URL du Caddie');
264
+ define('TXT_WPSC_CHECKOUTURL', 'URL de la Caisse');
265
+ define('TXT_WPSC_TRANSACTIONDETAILSURL', 'URL des D&eacute;tails de la Transaction');
266
+ define('TXT_WPSC_PRESENTATIONSETTINGS', 'R&eacute;glage de Presentation');
267
+ define('TXT_WPSC_CARTLOCATION', 'Emplacement du Caddie');
268
+ define('TXT_WPSC_SIDEBAR', 'Sidebar');
269
+ define('TXT_WPSC_PAGE', 'Page');
270
+ define('TXT_WPSC_WIDGET', 'Widget');
271
+ define('TXT_WPSC_NEEDTOENABLEWIDGET', 'Vous avez besoin d\'activer le plugin des widgets pour utiliser ceci');
272
+ define('TXT_WPSC_MANUAL', 'Manuel');
273
+ define('TXT_WPSC_SHOWCATEGORIESBRANDS', 'Montrer Cat&eacute;gories/Marques');
274
+ define('TXT_WPSC_BOTH', 'les Deux');
275
+ define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', 'Taille Miniature du Produit par Defaut');
276
+ define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', 'Taille Miniature de la Cat&eacute;gorie par Defaut');
277
+ define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', 'Montrer Affranchissement et Packaging');
278
+ define('TXT_WPSC_YES', 'Oui');
279
+ define('TXT_WPSC_NO', 'Non');
280
+ define('TXT_WPSC_SHOWSPECIALS', 'Montrer les Affaires');
281
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Montrer l\'Evaluation Produit');
282
+ define('TXT_WPSC_CURRENCYSETTINGS', 'R&eacute;glage Devise');
283
+ define('TXT_WPSC_GSTTAXRATE', 'GST/Taux de la taxe');
284
+ define('TXT_WPSC_CURRENCYTYPE', 'Devise');
285
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Placement du Signe de la Devise');
286
+ define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', 'Frais de port et d\'emballage par defaut');
287
+ define('TXT_WPSC_ADMINISTRATIONSETTINGS', 'R&eacute;glage de l\'Administration');
288
+ define('TXT_WPSC_MAXDOWNLOADSPERFILE', 'T&eacute;l&eacute;chargements Maxi par Fichier');
289
+ define('TXT_WPSC_PURCHASELOGEMAIL', 'Email du jarnal des achats');
290
+ define('TXT_WPSC_REPLYEMAIL', 'Email de R&eacute;ponse');
291
+ define('TXT_WPSC_BRANDNOCAP', 'marque');
292
+ define('TXT_WPSC_CATEGORYNOCAP', 'cat&eacute;gorie');
293
+ define('TXT_WPSC_UDPATING', 'Mise &agrave; jour');
294
+ define('TXT_WPSC_MOREDETAILS', 'Plus de D&eacute;tails');
295
+ define('TXT_WPSC_ADDTOCART', 'Ajouter au Caddie');
296
+ define('TXT_WPSC_AVGCUSTREVIEW', 'Evaluation Moyenne des Clients');
297
+ define('TXT_WPSC_YOURRATING', 'Votre Evaluation');
298
+ define('TXT_WPSC_RATING_SAVED', 'Sauv&eacute;');
299
+ define('TXT_WPSC_RATETHISITEM', 'Evaluer cet Article');
300
+ define('TXT_WPSC_PRODUCTSOLDOUT', 'Il ne reste plus de ce produit (tout vendu).');
301
+ define('TXT_WPSC_NOITEMSINTHIS', 'Il n\'a pas d\'article dans cet');
302
+ define('TXT_WPSC_CATEGORYORBRAND', 'Categorie ou Marque');
303
+ define('TXT_WPSC_PLEASECHOOSEA', 'Merci de Choisir un(e)');
304
+ define('TXT_WPSC_PRODUCT', 'Produit');
305
+ define('TXT_WPSC_QUANTITY', 'Quantit&eacute;');
306
+ define('TXT_WPSC_QUANTITY_SHORT', 'Qt&eacute;'); //translation needed
307
+ define('TXT_WPSC_APPLY', 'Appliquer');
308
+ define('TXT_WPSC_MAKEPAYMENT', 'Payer');
309
+ define('TXT_WPSC_EMPTYSHOPPINGCART', 'Vider le Caddie');
310
+ define('TXT_WPSC_TOTALPRICE', 'Prix Total');
311
+ define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', 'Il n\'y a pas d\'Article dans le Caddie');
312
+ define('TXT_WPSC_EMAILMSG1', "Merci, votre commande a &eacute;t&eacute; accept&eacute;es, tous les articles &agrave; envoyer le seront d&egrave;s que possible, tous les articles t&eacute;l&eacute;chargeables peuvent l\'&ecirc;tre en utilisant les liens sur cette page.\n\r\n\rTous les prix inclus les taxes, les frais de port et d\'emballage lorsqu\'ils sont applicables.\n\r\n\rVous avez command&eacute; ces articles:\n\r\n\r");
313
+ define('TXT_WPSC_EMAILMSG2', ".\n\rCes articles ont &eacute;t&eacute; command&eacute;s:\n\r\n\r");
314
+ define('TXT_WPSC_CLICKTODOWNLOAD', 'Cliquer pour t&eacute;l&eacute;charger');
315
+ define('TXT_WPSC_DOWNLOAD', 'T&eacute;l&eacute;charger');
316
+ define('TXT_WPSC_YOURTRANSACTIONID', 'Votre Identifiant de Transaction');
317
+ define('TXT_WPSC_TRANSACTIONID', 'Transaction ID');
318
+ define('TXT_WPSC_PURCHASERECEIPT', 'Re&ccedil;u d\'Achat');
319
+ define('TXT_WPSC_PURCHASEREPORT', 'Rapport d\'Achat');
320
+ define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', 'La Transaction a &eacute;t&eacute; effectu&eacute;e');
321
+ define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', 'La Transaction a &eacute;chou&eacute;e');
322
+ define('TXT_WPSC_GOBACKTOCHECKOUT', 'Revenir &agrave; la caisse');
323
+ define('TXT_WPSC_SPECIALPRICE', 'Prix Sp&eacute;cial');
324
+
325
+ // instructions traduites par CaroStory
326
+ define('TXT_WPSC_INSTRUCTIONS', '
327
+ Etapes de l\'installation
328
+ <ul class=\'installation\'>
329
+ <li>Placez le contenu du fichier archive zip dans le r&eacute;pertoire "wp-content/plugins".</li>
330
+ <li>Activez le plugin via la page "extensions" ou "plugins" de wordpress</li>
331
+ <li>Allez &agrave; la page "Options de paiement" dans l\'onglet "e-Commerce", et renseignez les champs. (par d&eacute;faut c\'est le bac &agrave; sable de Paypal qui est activ&eacute;.)</li>
332
+ <li>Cr&eacute;ez des cat&eacute;gories et produits en utilisant les pages "cat&eacute;gories" et "produits".</li>
333
+ </ul>
334
+
335
+ <p>Si vous venez de faire une mise &agrave; jour du plugin nous vous conseillons de d&eacute;sactiver et r&eacute;activer le plugin.</p>
336
+
337
+ <h2>Mises &agrave; jours et Modules</h2>
338
+ <p>Vous trouverez plus d\'informations sur les modules de WP e-Commerce en visitant <a href="http://www.instinct.co.nz/blogshop">le site "Instinct BlogShop"</a>.</p>
339
+
340
+ <ul class=\'installation\'>
341
+ <li>Version Gold</li>
342
+ <li>Livraison</li>
343
+ <li>Lecteur Audio</li>
344
+ <li>Visualisation en tableau</li>
345
+ </ul>
346
+
347
+ <h2>Liste de souhaits</h2>
348
+ <p>Si vous souhaitez ajouter une caract&eacute;ristique qui n\'est pas support&eacute;e par WP e-commerce actuellement, vous pouvez soit <a href="http://www.instinct.co.nz/contact-us/">contacter l\'&eacute;quipe de d&eacute;veloppement</a> ou ajouter votre caract&eacute;ristique &agrave; la liste des souhaits <a href="http://instinct.co.nz/blogshop/support-forums/">sur les forums communautaires</a>.
349
+
350
+
351
+ <h2>Personnalisation et Conseils</h2>
352
+ <p><strong>Taxes</strong><br />Si n&eacute;c&eacute;ssaire vous pouvez rajouter des taux de taxes dans l\'onglet "e-Commerce", page "Options".</p>
353
+
354
+ <p><strong>Adresse email de commande</strong><br />Si vous ajoutez une adresse email pour vos commandes, cette adresse sera utilis&eacute; pour vous envoyer les notifications de suivi de commandes &agrave; chaque achat &eacute;ffectu&eacute;.</p>
355
+ <p><strong>Cacher les pages</strong><br />
356
+ Pour &eacute;viter que les pages li&eacute;es au plugin s\'affichent dans la liste des pages, vous devez premi&eacute;rement trouver leur identifiant (nombre).<br />
357
+ <br />Ensuite vous devez &eacute;diter le fichier dans le th&egrave;me que vous utilisez. Normalement le code se situe dans "sidebar.php", trouvez la ligne qui ressemble &agrave;:<br />
358
+
359
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;/h2&gt;\' ); ?&gt;"<br />
360
+
361
+ et remplacez l&agrave; par :<br />
362
+
363
+ "&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;h2&gt;&amp;exclude=3,4,5\'); ?&gt;"<br />
364
+
365
+ <br />Le mot "exclude" sert &agrave; exclure les pages de la liste, il faut juste que vous remplassiez les chiffres 3,4,5 par les identifiants des pages que vous voulez exclure.</p>
366
+
367
+ <p><strong>Les Fonctions des Images</strong><br />
368
+ Si votre serveur ne supporte pas le redimensionnement des images automatique, vous images ne seront peut &ecirc;tre pas redimensionn&eacute;es apr&egrave;s la mise en ligne.</p>
369
+
370
+
371
+ <p><strong>Permaliens</strong><br />
372
+ Nous faisons du mieux que nous pouvons.
373
+ Je n\'ai pas vraiment trouv&eacute; de moyen r&eacute;ellement efficace de passer &agrave; travers les variables de pages en pages qui utilisent les permaliens sans le mod_rewrite; si vous ne pouvez pas utiliser le mod_rewrite, il est possible que le plugin ne fonctionne pas en ayant activ&eacute; les permaliens.
374
+ </p>
375
+ <p><strong>Javascript et Ajax </strong><br />
376
+ La version light d\'e-commerce utilise Ajax, le caddie que l\'utilisateur voit marchera sans Javascript, mais les pages d\'Administration (sp&eacute;cialement les pages Produits et Cat&eacute;gories) ne fonctionneront pas si le Javascript est d&eacute;sactiv&eacute;. Les versions des navigateurs ant&eacute;rieurs &agrave; Internet Explorer 6 et Firefox 1.0 n\'ont pas &eacute;t&eacute; test&eacute;s et ne fonctionneront peut &ecirc;tre pas corretement.)</p>
377
+
378
+ <p><strong>Concernant Flickr</strong><br />
379
+ Nous avons cr&eacute;es <a href="http://www.google.com/search?q=flickr+wp+e-commerce&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a">plusieurs guides et tutoriels</a> concernant Flickr.
380
+ '); // CaroStory
381
+ define('TXT_WPSC_SHIPPINGSETTINGS', 'R&eacute;glage de l\'exp&eacute;dition');
382
+ define('TXT_WPSC_BASE_LOCAL', 'Base pour les frais d\'exp&eacute;dition en Local');
383
+ define('TXT_WPSC_BASE_INTERNATIONAL', 'Base pour les frais d\exp&eacute;dition &agrave; l\'Lnternational');
384
+ define('TXT_WPSC_BASE_COUNTRY', 'Pays');
385
+
386
+ define('TXT_WPSC_SHIPPING_DETAILS', 'Frais de Port Suppl&eacute;mentaires'); // this needs updating
387
+ define('TXT_WPSC_LOCAL_PNP', 'Frais de Port vers la France'); // this needs updating
388
+ define('TXT_WPSC_INTERNATIONAL_PNP', 'Frais de Port Internationaux'); // this needs updating
389
+ define('TXT_WPSC_SHIPPING_NOTE', 'Note: factur&eacute; seulement une fois par produit ind&eacute;pendament de la quantit&eacute; command&eacute;e.');
390
+ define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Champ du Pays');
391
+ define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(s&eacute;lectionner quel champ de la page du pasage en caisse vous voulez utiliser pour sp&eacute;cifier le pays)');
392
+
393
+ define('TXT_WPSC_SHIPPING', 'Exp&eacute;dition');
394
+ define('TXT_WPSC_EMAIL_FORM_FIELD', 'Champ de l\'email');
395
+ define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(s&eacute;lectionner quel champ de la page du pasage en caisse vous voulez utiliser pour sp&eacute;cifier l\'adresse email)');
396
+
397
+
398
+ define('TXT_WPSC_PRODUCTIMAGES', 'Images du Produit');
399
+ define('TXT_WPSC_PRODUCTDOWNLOAD', 'T&eacute;l&eacute;chargement du Produit');
400
+ define('TXT_WPSC_SHOWTHUMBNAILS', 'Montrer les Miniatures');
401
+ define('TXT_WPSC_ADD_ADDITIONAL_IMAGE', 'Ajouter une image Suppl&eacute;mentaire');
402
+ define('TXT_WPSC_DELETE_IMAGE', 'Effacer Image');
403
+ define('TXT_WPSC_GOLD_OPTIONS', 'Options du Caddie Gold');
404
+ define('TXT_WPSC_ACTIVATE_SETTINGS', 'R&eacute;glage d\'Activation');
405
+ define('TXT_WPSC_ACTIVATION_KEY', 'Clef d\'Activation');
406
+ define('TXT_WPSC_THANKSACTIVATED', 'Merci, la version gold du caddie a &eacute;t&eacute; activ&eacute;e.');
407
+ define('TXT_WPSC_NOTACTIVATED', 'D&eacute;sol&eacute;, la clef de l\'API &eacute;tait incorrecte');
408
+ define('TXT_WPSC_DEFAULT', 'D&eacute;faut');
409
+ define('TXT_WPSC_LIST', 'Liste');
410
+ define('TXT_WPSC_VISIBLE', 'Visible');
411
+ define('TXT_WPSC_DELETE_PRODUCT', 'Effacer Produit');
412
+ define('TXT_WPSC_ADDITIONAL_IMAGE', 'Image Suppl&eacute;mentaire');
413
+ define('TXT_WPSC_GATEWAY_OPTIONS', 'Options Passerelle');
414
+ define('TXT_WPSC_SHIPPING_COUNTRY', 'Choisir le pays d\'envoi:');
415
+ define('TXT_WPSC_CONFIRM_TOTALS', 'Confirmer le montant total avant le paiement:');
416
+ define('TXT_WPSC_CHECKOUT_FORM_FIELDS_DESCRIPTION', 'Ici vous pouvez personnaloiser le formulaire qui sera affiche sur la page du passage &agrave; la caisse. La page du passage &agrave; la caisse est celle o&ugrave; vous collecter les informations importantes sur le client, informations qui seront report&eacute;es dans vos journaux d\'achat, c\'est-&agrave;-dire, le nom e l\'adresse de l\'acheteur, etc.');
417
+ define('TXT_WPSC_PAYMENT_OPTIONS', 'Options de Paiement');
418
+ define('TXT_WPSC_PAYMENT_DESCRIPTION', 'Choisissez quelles options de paiement vous souhaitez rendre disponible lors du passage &agrave; la caisse. Par d&eacute;faut, les acheteurs peuvent seulement payer les articles avec une carte de cr&eacute;dit, cependant, il se peut que vous les autorisiez aussi &agrave; payer manuellement, et dans ce cas, veuillez s&eacute;lectionner l\'option carte de cr&eacute;dit+paiement manuel.');
419
+
420
+ define('TXT_WPSC_DEFAULT_GATEWAY_ONLY', ' seulement');
421
+ define('TXT_WPSC_PLUS_MANUAL_PAYMENT', ' avec option de paiement manuel');
422
+ define('TXT_WPSC_PAYMENT_METHOD', 'M&eacute;thode de Paiement');
423
+ define('TXT_WPSC_PAY_USING', 'Payer avec ');
424
+ define('TXT_WPSC_PAY_MANUALLY', 'Payer par Ch&egrave;que/Virement');
425
+ define('TXT_WPSC_CREDIT_CARD', 'Carte de Cr&eacute;dit');
426
+ define('TXT_WPSC_ADJUSTABLE_QUANTITY', 'Show quantity form in list view');
427
+ define('TXT_WPSC_RSS_FEED_HEADER', 'S\'abonner &agrave; vos commandes');
428
+ define('TXT_WPSC_RSS_FEED_LINK', 'S\'abonner au fil RSS');
429
+ define('TXT_WPSC_RSS_FEED_TEXT', 'de vos commandes');
430
+ define('TXT_WPSC_INITIAL_SETUP', 'Options par defaut cr&eacute;&eacute;es.');
431
+ define('TXT_WPSC_PLUGIN_NEWS_HEADER', 'Nouveaut&eacute;s Plugin');
432
+
433
+ define('TXT_WPSC_PLUGIN_NEWS', '
434
+
435
+ Le module <a href="http://instinct.co.nz/blogshop/products-page/" target="_blank">WP DropShop</a> (glisser/d&eacute;poser) est le dernier et le plus sophistiqu&eacute; des paniers &agrave; achats en ligne. Coupl&eacute; avec le Grid View (visualisation en tableaux), votre site sera celui dont on parle.<br/><br/>
436
+
437
+ Le module <a href="http://instinct.co.nz/blogshop/products-page/" target="_blank">GridView</a> (visualisation en tableaux) est visual et mets en valeur la disposition de votre page de produits.<br/><br/>
438
+
439
+ <a href="http://www.instinct.co.nz/wp-campaign-monitor/100">WP Campaign Monitor</a> est un outil de newsletter destin&eacute; aux utilisateurs de WP qui veulent envoyer des publicit&eacute;s, controler les sondages et g&eacute;rer les inscrits. La derni&eagrave;re version int&eacute;gr&eacute;e avec e-commerce light vous permettra d\'envoyer des newsletters &agrave; vos acheteurs et plus encore.');
440
+
441
+ define('TXT_WPSC_POWERED_BY', 'Ce magasin est propuls&eacute; par ');
442
+ define('TXT_WPSC_NO_PURCHASES', 'Il n\'y a pas encore eu d\'achat.');
443
+
444
+
445
+ define('TXT_WPSC_DELIVERY_ADDRESS', 'Adresse de Livraison');
446
+ define('TXT_WPSC_DELIVERY_CITY', 'Ville de Livraison');
447
+ define('TXT_WPSC_DELIVERY_COUNTRY', 'Pays de Livraison');
448
+ define('TXT_WPSC_MP3_SETTINGS', 'R&eacute;glages MP3');
449
+ define('TXT_WPSC_MP3_SETTINGS_DESCRIPTION', 'Pour cr&eacute;er un clip MP3 de 30 seconds, ce plugin requiert <a href=\'http://sox.sourceforge.net/\'>SoX</a> compil&eacute; avec le support MP3, entrer le chemin vers SoX ici.');
450
+ define('TXT_WPSC_SOX_PATH', 'Chemin SoX');
451
+ define('TXT_WPSC_PREVIEW', 'Preview');
452
+ define('TXT_WPSC_DOWNLOAD_CSV', 'T&eacute;l&eacute;charger CSV');
453
+ define('TXT_WPSC_PREVIEW_FILE', 'Preview File');
454
+ define('TXT_WPSC_REPLACE_PRODUCT', 'Remplacer Produit');
455
+ define('TXT_WPSC_TOTALSHIPPING', 'Port total');
456
+ define('TXT_WPSC_DISPLAY_FRONT_PAGE', 'Afficher sur la page de garde');
457
+ define('TXT_WPSC_SEARCH_FOR', 'Chercher ');
458
+ define('TXT_WPSC_YOUR_SEARCH_FOR', 'Votre recherche pour');
459
+ define('TXT_WPSC_RETURNED_NO_RESULTS', 'a retourn&eacute; aucun r&eacute;sultat.');
460
+ define('TXT_WPSC_POSTAGE', 'Affranchissement');
461
+ define('TXT_WPSC_SUBTOTAL', 'Sous-total');
462
+
463
+
464
+ //everything under here needs translations 19/1/2007
465
+
466
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Merci de saisir');
467
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Merci de saisir votre pr&eacute;nom.');
468
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Merci de saisir votre nom de famille.');
469
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'merci de saisir une adresse email qui fonctionne.');
470
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Veuillez compl&eacute;ter votre adresse.');
471
+ define('TXT_WPSC_PLEASEENTERAVALIDCITY', 'Merci de saisir votre ville.');
472
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Merci de saisir votre num&eacute;ro de t&eacute;l&eacute;phone.');
473
+ define('TXT_WPSC_PLEASESELECTCOUNTRY', 'Veuillez s&eacute;lectionner votre pays parmi cette liste.');
474
+ define('TXT_WPSC_PLEASEAGREETERMSANDCONDITIONS', 'Veuillez cocher/accepter les conditions de ventes. Sinon, nous ne pouvons malheureusement valider votre commande.');
475
+ define('TXT_WPSC_POSITION', 'Position');
476
+
477
+ define('TXT_WPSC_DELIVERY_REGION', 'R&eacute;gion de Livraison');
478
+
479
+
480
+ define('TXT_WPSC_GENERAL_SETTINGS', 'R&eacute;glages G&eacute;n&eacute;raux');
481
+ define('TXT_WPSC_TAX_SETTINGS', 'R&eacute;glage de la Taxe (tva)');
482
+ define('TXT_WPSC_POSTAGE_AND_TAX', 'Affranchissement et Taxe ');
483
+ define('TXT_WPSC_GRID', 'Grille');
484
+
485
+
486
+ // new translations (par CaroStory)
487
+
488
+ define('TXT_WPSC_CANT_MOVE_CATEGORY', 'Vous ne pouvez pas d&eacute;placer une cat&eacute;gorie qui contient des sous-cat&eacute;gories.');
489
+ define('TXT_WPSC_SURETODELETECATEGORY', '&Ecirc;tes-vous sur de vouloir supprimer cette cat&eacute;gorie? Si elle contient des sous-cat&eacute;gories, elles seront &eacute;galement &eacute;ffac&eacute;es.');
490
+ define('TXT_WPSC_VARIATION', 'Variations');
491
+ define('TXT_WPSC_OVER_TWO_VARIATIONS', 'Les variations de stock et de prix ne fonctionnent pas si vous avez plus de deux variations.');
492
+ define('TXT_WPSC_PRICE_AND_STOCK_CONTROL', 'Contr&ocirc;le des prix et des stocks') ;
493
+
494
+ // pe.{
495
+ define('TXT_WPSC_CATSBRANDSLOCATION', 'Cat&eacute;gories &amp; Location de marques');
496
+ define('TXT_WPSC_DESCITEMSEPARATOR', ' : ');
497
+ define('TXT_WPSC_SEARCHITEMSEPARATOR', ' : ');
498
+ define('TXT_WPSC_SINGLE_SHIPPING_COUNTRY', 'Pays exp&eacute;diant les commandes par bateau:');
499
+ define('TXT_WPSC_ADD_ANOTHER_VARIATION', 'Ajouter une variation');
500
+ // }.pe
501
+ define('TXT_WPSC_PRODUCT_CATEGORIES', 'Cat&eacute;gories de produits');
502
+ define('TXT_WPSC_THANKS_DELETED', 'Merci, l\'enregistrement de la commande a &eacute;t&eacute; &eacute;ffac&eacute;.');
503
+ define('TXT_WPSC_PRODUCT_IMAGE_PREVIEW', 'Image du produit');
504
+ define('TXT_WPSC_PRODUCT_THUMBNAIL_PREVIEW', 'Miniature du produit');
505
+ define('TXT_WPSC_REMOVE_LOG', 'Enlever cet article de la commande');
506
+ define('TXT_WPSC_CATSANDBRAND', 'Cat&eacute;gories &amp; Marques');
507
+ define('TXT_WPSC_GOLD_DROPSHOP', 'Livraison');
508
+ define('TXT_WPSC_NEEDTOENABLEDROPSHOP', 'Il faudra que vous installiez les extensions de livraison et de la version gold pour pouvoir utiliser cette option');
509
+ define('TXT_WPSC_DRAG_ITEM_HERE', 'Faites-glisser n\'importe quel article ici pour l\'ajouter au panier.');
510
+ define('TXT_WPSC_SHOWCATEGORYTHUMBNAILS', 'Montrer les miniatures des cat&eacute;gories');
511
+ define('TXT_WPSC_SHOPPING_CART', 'Caddie');
512
+ define('TXT_WPSC_SHOW_SLIDING_CART', 'Montrer le panier coulissant');
513
+ define('TXT_WPSC_PREVIEW_FILE', 'Pr&eacute;visualiser la mise en ligne');
514
+ define('TXT_WPSC_PREVIEW_FILE_NOTE', 'Note: Si vous ne mettez pas en ligne un fichier de pr&eacute;visualisation et que votre serveur has sox compiled with MP3 support alors;');
515
+ define('TXT_WPSC_PURCHASE_NUMBER', 'Commande n�');
516
+ define('TXT_WPSC_FILTER_ORDER', 'Ordre des filtres');
517
+ define('TXT_WPSC_SHOW_SEARCH', 'Montrer la recherche');
518
+ define('TXT_WPSC_LOG_CURRENT_MONTH', 'Montrer les r&eacute;sultats du mois en cours');
519
+ define('TXT_WPSC_LOG_PAST_THREE_MONTHS', 'Montrer les r&eacute;sultats des trois derniers mois');
520
+ define('TXT_WPSC_LOG_ALL', 'Montrer tous les r&eacute;sultats');
521
+ define('TXT_SHOW_IMAGES_ONLY', 'Montrer uniquement les images');
522
+ define('TXT_WPSC_SHOW_GALLERY', 'Voir la galerie de miniatures');
523
+ define('TXT_WPSC_PLEASE_SELECT', 'S&eacute;lectionnez s\'il vous plait');
524
+ define('TXT_WPSC_TXN_ID', 'Identifiant de la transaction');
525
+ define('TXT_WPSC_SINGLE_PRODUCTTHUMBNAILSIZE', 'Taille de l\'image d\'un article unique');
526
+ define('TXT_WPSC_RESET', 'R&eacute;initialiser');
527
+ define('TXT_WPSC_ORDER_PENDING', 'Merci, votre commande est en attente, vous recevrez un email d&eagrave;s qu\'elle sera valid&eacute;e.');
528
+ define('TXT_WPSC_ORDER_FAILED', 'Nous sommes d&eacute;sol&eacute;s, votre commande n\'a pas &eacute;t&Eacute; accept&eacute;e, il est probable que votre compte ne soit pas assez fourni.');
529
+
530
+ define('TXT_WPSC_SHOW_CATEGORY_COUNT', 'Montrer les produits par cat&eacute;gories');
531
+ define('TXT_WPSC_CATSPRODS_DISPLAY_TYPE', 'Voir les cat&eacute;gories/Produits');
532
+ define('TXT_WPSC_CATSPRODS_TYPE_CATONLY', 'Seulement les cat&eacute;gories (Tous les produits)');
533
+ define('TXT_WPSC_CATSPRODS_TYPE_SLIDEPRODS', 'Cat&eacute;gories coulissantes(1 produit par page)');
534
+
535
+ define('TXT_WPSC_ORDER_DETAILS', 'D&eacute; de la commande');
536
+ define('TXT_WPSC_SAVE_PROFILE', 'Sauvegarder le profil');
537
+ define('TXT_WPSC_USERACCOUNTURL', 'URL du compte de l\'utilisateur');
538
+ define('TXT_WPSC_MUST_BE_LOGGED_IN', 'Vous devez &ecirc;tre connect&eacute; pour voir cette page. Veuillez vous connecter en utilisant le formulaire ci-dessous.');
539
+ define('TXT_WPSC_YOUR_ACCOUNT', 'Votre compte');
540
+
541
+ define('TXT_WPSC_YOU_JUST_ADDED', 'Vous venez d\'ajouter "[product_name]" dans votre caddie.');
542
+ define('TXT_WPSC_SORRY_NONE_LEFT', 'D&eacute;sol&eacute;, l\'article "[product_name]" n\'est pas disponible.');
543
+
544
+ define('TXT_WPSC_CONTINUE_SHOPPING', 'Continuer les achats');
545
+ define('TXT_WPSC_ITEM_GONE_OUT_OF_STOCK', 'Un des articles n\'est plus disponible, veuillez changer votre commande.');
546
+ define('TXT_WPSC_DISPLAY_FANCY_NOTIFICATIONS', 'Afficher des notifications fantaisistes sur le produit');
547
+ define('TXT_WPSC_IF_USER_CHECKOUT', 'Si vous avez un compte, ');
548
+ define('TXT_WPSC_LOG_IN', 'connectez-vous.');
549
+ define('TXT_WPSC_IS_DONATION', 'L\'article est-il un don?');
550
+ define('TXT_WPSC_DONATION', 'Don');
551
+ define('TXT_WPSC_DONATION_LC', 'don');
552
+ define('TXT_WPSC_DONATION_SHIPPING', 'Pas d\'envoi par bateaux pour les dons');
553
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT_URL', 'Nom du fichier du produit');
554
+ define('TXT_WPSC_FILETOBEPRODUCTURL', 'Note: mettre en ligne votre fichier dans le r&eacute;pertoire "wp-shopping-cart/files" et entrez le nom du fichier ici.');
555
+ define('TXT_WPSC_DONATIONS', 'Dons');
556
+ define('TXT_WPSC_WRONG_FILE_PERMS', 'Les r&eacute;pertoires suivants ne sont pas libres en &eacute;criture: :directory: Vous ne pourrez pas y mettre des fichiers ou des images. Vous devrez en changer les permissions pour pouvoir envoyer des fichiers.');
557
+ define('TXT_WPSC_RESET_API', 'R&eacute;initialiser la cl&eacute; API');
558
+ define('TXT_WPSC_PRODUCTS_PER_PAGE', 'Produits par page');
559
+ define('TXT_WPSC_OPTION_PRODUCTS_PER_PAGE', 'nombre de produits &agrave; afficher par page');
560
+ define('TXT_WPSC_PAGE_NUMBER_POSITION', 'Position du nombre de la page');
561
+
562
+
563
+ define('TXT_WPSC_YOUR_BILLING_CONTACT_DETAILS', '1. Vos informations personnelles pour la facture');
564
+ define('TXT_WPSC_DELIVER_TO_A_FRIEND', '2. D&eacute;tails concernant l\'envoi par bateau');
565
+ define('TXT_WPSC_E_COMMERCE', 'e-Commerce');
566
+ define('TXT_WPSC_THANKS_SAVED', 'Merci, vos changements ont &eacute;t&eacute; sauvegard&eacute;s.');
567
+ define('TXT_WPSC_REGISTER', 'S\'enregistrer');
568
+ define('TXT_WPSC_TAX', 'Taxes');
569
+
570
+ define('TXT_WPSC_USE_SHIPPING', 'Choisir l\envoi par bateau');
571
+ define('TXT_WPSC_USE_SHIPPING_DESCRIPTION', 'Si vous ne vendez que des articles &eacute;lectroniques, vous devriez mettre "non" pour d&eacute;sactiver l\'envoi par bateau.');
572
+
573
+ define('TXT_WPSC_PAGESETTINGS', 'Options de pagination');
574
+ define('TXT_WPSC_USE_PAGINATION', 'Utiliser la pagination');
575
+ define('TXT_WPSC_ADD_PRODUCT', 'Ajouter un produit');
576
+ define('TXT_WPSC_EDIT_PRODUCT', 'Editer le produit');
577
+ define('TXT_WPSC_UPDATE_PAGE_URLS', 'Mettre &agrave; jour les URLs des pages');
578
+ define('TXT_WPSC_VARIATIONS_AND_SPECIALS_DONT_MIX', 'Note: Vous ne pouvez pas mettre un prix sp&eacute;cial sur un article qui subit des variations');
579
+ define('TXT_WPSC_PRODUCT_SPECIALS', 'Produits sp&eacute;ciaux');
580
+ define('TXT_WPSC_SHOW_SHARE_THIS', 'Montrez et partagez (marques pages sociaux)');
581
+ define('TXT_WPSC_SHOW_NO_PRODUCT', 'Pas de produits');
582
+ define('TXT_WPSC_CHOOSE_DOWNLOADABLE_PRODUCT', 'Choisir un fichier t&eacute;l&eacute;chargeable pour ce produit:');
583
+ define('TXT_WPSC_PLEASECHOOSE', 'Choisissez s\'il vous plait');
584
+
585
+ define('TXT_WPSC_VARIATION_CONTROL', 'Controle des variations');
586
+ define('TXT_WPSC_VARIATION_GRID_CONTROL_SINGLE', ':variation1: Controle');
587
+ define('TXT_WPSC_VARIATION_GRID_CONTROL_PAIR', ':variation1: and :variation2: Controle');
588
+ define('TXT_WPSC_VIEW_PREVIEW_CLIP', 'Voir le clip de pr&eacute;visualisation');
589
+ define('TXT_WPSC_REQUIRE_REGISTRATION', 'N&eacute;c&eacute;ssite d\'&ecirc;tre enregistr&eacute;');
590
+ define('TXT_WPSC_PLEASE_LOGIN', 'Connectez-vous pour passer votre commande');
591
+ define('TXT_WPSC_IF_JUST_REGISTERED', 'Si vous venez de vous enregistrer, v&eacute;rifiez vos emails et connectez-vous avant de commencer votre commande.');
592
+ define('TXT_WPSC_SELECT_THEME', 'Selectionnez le th&eagrave;me');
593
+ define('TXT_WPSC_NEW_ORDER_PENDING_SUBJECT', 'Nouvelle commande en attente');
594
+ define('TXT_WPSC_NEW_ORDER_PENDING_BODY', "Il y a une nouvelle commande en cours : \n\r ");
595
+ define('TXT_WPSC_NO_SHIPPING', "N\'utilise pas l\'envoi par bateau");
596
+ define('TXT_WPSC_DEFAULT_MEMBERS_ONLY', "Cette page est pour les membres uniquement, vous devez vous connecter pour y acc&eacute;der.");
597
+ define('TXT_WPSC_MEMBERSHIP_CONTROL', "Controle des membres");
598
+ define('TXT_WPSC_PRODUCT_MEMBER_STATUS', "Ce produit est-il une adh&eacute;sion?");
599
+ define('TXT_WPSC_PRODUCT_MEMBERSHIP_LENGTH', "Dur�e de l'adhesion.");
600
+ define('TXT_WPSC_DAYS', "Jours");
601
+ define('TXT_WPSC_MONTHS', "Mois");
602
+ define('TXT_WPSC_YEARS', "Ann&eacute;es");
603
+ define('TXT_WPSC_MEMBERS_SUBSCRIPTION_ENDED', "Votre souscription s\'est termin&eacute;e.");
604
+ define('TXT_WPSC_ACTIVATE_SETTINGS_MEMBERS', 'Options d\'activation: Module des membres');
605
+ define('TXT_WPSC_GOLD_CART', 'caddie Gold');
606
+ ?>
wp-shopping-cart/languages/HU_hu.php ADDED
@@ -0,0 +1,494 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ This is a language file for the WP Shopping Cart plugin version 2.6.5 beta
4
+  supplied by Norbert - pronex@pronex.hu
5
+ */
6
+
7
+ define('TXT_WPSC_IMAGESIZEINFO', 'Figyelem: Ha ide nem ír számokat, a kép nem lesz átméretezve');
8
+ define('TXT_WPSC_RECEIVED', 'A megrendelést megkaptuk');
9
+ define('TXT_WPSC_ORDER_STATUS', 'A megrendelés állapota');
10
+ define('TXT_WPSC_ORDER_SUMMARY', 'Megrendelés összesítő');
11
+ define('TXT_WPSC_LANGUAGE', 'Nyelv');
12
+ define('TXT_WPSC_ACCEPTED_PAYMENT', 'Fizetőeszköz');
13
+ define('TXT_WPSC_JOB_DISPATCHED', 'Job Dispatched');
14
+ define('TXT_WPSC_PROCESSED', 'Lezárt megrendelés');
15
+ define('TXT_WPSC_ECOMMERCE', 'Webáruház');
16
+ define('TXT_WPSC_OPTIONS', 'Webáruház beállítások');
17
+ define('TXT_WPSC_ADDPRODUCTS', 'Termék hozzáadása');
18
+ define('TXT_WPSC_SENDSMS', 'SMS küldés');
19
+ define('TXT_WPSC_PRODUCTS', 'Termékek');
20
+ define('TXT_WPSC_ADDCATEGORY', 'Kategória hozzáadás');
21
+ define('TXT_WPSC_CATEGORIES', 'Kategóriák');
22
+ define('TXT_WPSC_BRANDS', 'Márkák');
23
+ define('TXT_WPSC_VARIATIONS', 'Variációk');
24
+ define('TXT_WPSC_PURCHASELOG', 'Megrendelés összesítő');
25
+ define('TXT_WPSC_ORDER_LOG', 'Rendelések');
26
+ define('TXT_WPSC_OLDER_ORDERS', 'Régebbi rendelések');
27
+ define('TXT_WPSC_ORDER', 'Megrendelés');
28
+ define('TXT_WPSC_TOTAL_THIS_MONTH', 'Ehavi teljes bevétel');
29
+ define('TXT_WPSC_MONTHLY_REPORT', 'Féléves jelentés');
30
+ define('TXT_WPSC_TOTAL_INCOME', 'Teljes bevétel');
31
+ define('TXT_WPSC_ACCEPTED_PAYMENTS', '(elfogadott fizetőeszközök)'); //texr has changed slightly
32
+ define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', 'Bankkártyás fizetés');
33
+ define('TXT_WPSC_HELPINSTALLATION', 'Súgó');
34
+ define('TXT_WPSC_EXAMPLECATEGORY', 'Példa kategória');
35
+ define('TXT_WPSC_EXAMPLEDETAILS', 'Példa adatok');
36
+ define('TXT_WPSC_EXAMPLEBRAND', 'Példa márka');
37
+ define('TXT_WPSC_PRODUCTIMAGEWIDTH', 'Termékkép szélessége');
38
+ define('TXT_WPSC_PRODUCTIMAGEHEIGHT', 'Termékkép magassága');
39
+ define('TXT_WPSC_CATEGORYIMAGEWIDTH', 'Kategóriakép szélessége');
40
+ define('TXT_WPSC_CATEGORYIMAGEHEIGHT', 'Kategóriakép magassága');
41
+ define('TXT_WPSC_PRODUCTLISTURL', 'Terméklista helye');
42
+ define('TXT_WPSC_SHOPPINGCARTURL', 'Kosár helye');
43
+ define('TXT_WPSC_CHECKOUTURL', 'Kosár-ellenőrző oldal helye');
44
+ define('TXT_WPSC_TRANSACTURL', 'A megrendelési adatok helye');
45
+ define('TXT_WPSC_PAYMENTGATEWAY', 'Bannkártyás fizetés');
46
+ define('TXT_WPSC_CARTLOCATION', 'Itt jelezze ki a kosarat');
47
+ define('TXT_WPSC_SHOWCATEGORYBRANDS', 'Kategóriák/termékek vagy mindkettő mutatása');
48
+ define('TXT_WPSC_CURRENCYTYPE', 'Pénznem');
49
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Currency sign location');
50
+ define('TXT_WPSC_GSTRATE', 'the GST rate');
51
+ define('TXT_WPSC_MAXDOWNLOADS', 'the download limit');
52
+ define('TXT_WPSC_DISPLAYPNP', 'Szállításai és postaköltsége elrejt/mutat');
53
+ define('TXT_WPSC_DISPLAYSPECIALS', 'Akciós ajánlatok az oldalsávban elrejt/mutat');
54
+ define('TXT_WPSC_POSTAGEAND_PACKAGING', 'Szállítási és postakölstég');
55
+ define('TXT_WPSC_PURCHLOGEMAIL', 'E-mail cím, amelyre az értesítő kimegy');
56
+ define('TXT_WPSC_RETURNEMAIL', 'E-mail cím, amely az értesítő feladója');
57
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'Vásárlási feltételek megtekintése');
58
+ define('TXT_WPSC_DEFAULTBRAND', 'Alapbeállítás márka');
59
+ define('TXT_WPSC_DEFAULTCATEGORY', 'Alapbeállítás kategória');
60
+ define('TXT_WPSC_PAYPALBUSINESS', 'paypal business');
61
+ define('TXT_WPSC_PAYPALURL', 'paypal url');
62
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Termék ');
63
+ define('TXT_WPSC_PRODUCTSPAGE', 'Termékek-besorolás mutatása');
64
+ define('TXT_WPSC_CHECKOUT', 'Ellenzőrzés');
65
+ define('TXT_WPSC_ENTERDETAILS', 'Adja meg az alábbi adatokat');
66
+ define('TXT_WPSC_TRANSACTIONRESULTS', 'A megrendelés eredménye');
67
+ define('TXT_WPSC_SELECTACATEGORY', 'Válasszon kategóriát');
68
+ define('TXT_WPSC_SELECTABRAND', 'Válasszon márkát');
69
+ define('TXT_WPSC_PRODUCTNAME', 'A termék neve');
70
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Leírás');
71
+ define('TXT_WPSC_ADDITIONALDESCRIPTION', 'Bővebben');
72
+ define('TXT_WPSC_PRICE', 'Ára');
73
+ define('TXT_WPSC_TAXALREADYINCLUDED', 'Do not include tax (tax is set in shop config)'); // this text has changed and needs updating
74
+ define('TXT_WPSC_SPECIAL', 'Special / Sale Price'); // this text has changed and needs updating
75
+ define('TXT_WPSC_PRODUCT_DISPLAY', 'Product Display');
76
+
77
+ define('TXT_WPSC_PRODUCTSTOCK', 'Product Stock');
78
+
79
+ define('TXT_WPSC_UNTICKBOX', 'I have a limited number of this item in stock. If the stock runs out, this product will not be available on the shop unless you untick this box or add more stock.');
80
+ define('TXT_WPSC_LIMITED_STOCK', 'Limited Stock');
81
+
82
+ define('TXT_WPSC_CATEGORY', 'Kategória');
83
+ define('TXT_WPSC_BRAND', 'Márka');
84
+ define('TXT_WPSC_PRODUCT_VARS', 'Termék variációk - méret, szín stb');
85
+ define('TXT_WPSC_ADD_VAR', 'Add Variation Set');
86
+ define('TXT_WPSC_EDIT_VAR', 'Edit Variation Set');
87
+ define('TXT_WPSC_SELECTAVARIATION', 'Select a Variation');
88
+ define('TXT_WPSC_NEW_VARIATION', 'Create a new Variation');
89
+
90
+ define('TXT_WPSC_PRODUCTATT', 'Product Attachments');
91
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT', 'Letölthető termék');
92
+ define('TXT_WPSC_FILETOBEPRODUCT', 'Note: if this is filled in, the file uploaded will be the product to be purchased.');
93
+ define('TXT_WPSC_RESIZEIMAGE', 'Resize Thumbnail');
94
+ define('TXT_WPSC_DONOTRESIZEIMAGE', 'do not resize thumbnail.');
95
+ // define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'use default height and width');
96
+ // define('TXT_WPSC_USE', 'use');
97
+ // define('TXT_WPSC_PXHEIGHTBY', 'px height by');
98
+ // define('TXT_WPSC_PXWIDTH', 'px width.');
99
+
100
+ // pe.{
101
+ //define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'use default height and width');
102
+ // }.pe
103
+ define('TXT_WPSC_SEPARATETHUMBNAIL', 'use separate thumbnail'); // Needs Translation
104
+ define('TXT_WPSC_USE', 'use'); // Needs Translation
105
+ // pe.{
106
+ define('TXT_WPSC_USEDEFAULTSIZE', 'use default size'); // Needs Translation
107
+ define('TXT_WPSC_USESPECIFICSIZE', 'use specific size'); // Needs Translation
108
+ define('TXT_WPSC_PXHEIGHT', 'px height'); // Needs Translation
109
+ define('TXT_WPSC_PXWIDTH', 'px width'); // Needs Translation
110
+ // }.pe
111
+
112
+ define('TXT_WPSC_PREVIEW', 'Preview');
113
+ define('TXT_WPSC_UPLOADNEWIMAGE', 'Replace Image');
114
+ define('TXT_WPSC_DELETEIMAGE', 'Delete Image');
115
+ define('TXT_WPSC_EDIT', 'Edit');
116
+ define('TXT_WPSC_DELETE', 'Delete');
117
+ define('TXT_WPSC_REMOVE', 'Remove');
118
+ define('TXT_WPSC_NAME', 'Name');
119
+ define('TXT_WPSC_TYPE', 'Type');
120
+ define('TXT_WPSC_MANDATORY', 'Mandatory');
121
+ define('TXT_WPSC_DISPLAY_IN_LOG', 'Display<br /> in Log');
122
+ define('TXT_WPSC_DESCRIPTION', 'Description');
123
+ define('TXT_WPSC_CATEGORY_PARENT', 'Category Parent');
124
+ define('TXT_WPSC_IMAGE', 'Image');
125
+ define('TXT_WPSC_HEIGHT', 'Height');
126
+ define('TXT_WPSC_WIDTH', 'Width');
127
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Please enter a valid');
128
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Please enter a valid name');
129
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Please enter a valid surname');
130
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Please enter a valid email address');
131
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Please enter a valid address');
132
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Please enter a valid phone number');
133
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'You have not agreed to the terms and conditions');
134
+ define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', 'There is nothing in your shopping cart');
135
+ define('TXT_WPSC_SPECIALS', 'Specials');
136
+ define('TXT_WPSC_BUY', 'Buy');
137
+ define('TXT_WPSC_SHOPPINGCART', 'Shopping Cart');
138
+ define('TXT_WPSC_NUMBEROFITEMS', 'Number of items');
139
+ define('TXT_WPSC_NOMOREAVAILABLE', 'This Product is out of stock.');
140
+ define('TXT_WPSC_EMPTYYOURCART', 'Empty your cart');
141
+ define('TXT_WPSC_GOTOCHECKOUT', 'Go to Checkout');
142
+ define('TXT_WPSC_CONTINUESHOPPING', 'Continue shopping');
143
+ define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', 'Your shopping cart is empty');
144
+ define('TXT_WPSC_VISITTHESHOP', 'Visit the shop');
145
+ define('TXT_WPSC_PAGES', 'Pages');
146
+ define('TXT_WPSC_OUTOF', 'Out of');
147
+ define('TXT_WPSC_VOTES', 'votes.');
148
+ define('TXT_WPSC_CLICKSTARSTORATE', 'Click stars to rate');
149
+ define('TXT_WPSC_AVERAGERATINGOF', 'Average rating of');
150
+ define('TXT_WPSC_YOURVOTE', 'Your vote');
151
+ define('TXT_WPSC_AVERAGEVOTE', 'Average vote');
152
+ define('TXT_WPSC_YOUHAVEVOTED', 'You have voted');
153
+ define('TXT_WPSC_NOVOTES', 'No Votes');
154
+ define('TXT_WPSC_1VOTE', '1 Vote');
155
+ define('TXT_WPSC_VOTES2', 'Votes');
156
+ define('TXT_WPSC_PERSONGIVEN', 'person has given this image');
157
+ define('TXT_WPSC_PERSONGIVEN2', 'stars.');
158
+ define('TXT_WPSC_PEOPLEGIVEN', 'people have given this image');
159
+ define('TXT_WPSC_PEOPLEGIVEN2', 'stars.');
160
+ define('TXT_WPSC_ITEMHASBEENADDED', 'The item has been added');
161
+ define('TXT_WPSC_ITEMHASNOTBEENADDED', 'The item has not been added');
162
+ define('TXT_WPSC_ADDNEWCATEGORY', 'Add New Category');
163
+ define('TXT_WPSC_SUBMIT', 'Submit');
164
+ define('TXT_WPSC_SELECTAVALIDCATEGORY', 'Please select a valid Category');
165
+ define('TXT_WPSC_PRODUCTNAME', 'Product Name');
166
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Product Description');
167
+ define('TXT_WPSC_ADDNEWPRODUCT', 'Add Product');
168
+ define('TXT_WPSC_PRODUCTQUANTITY', 'Productquantity');
169
+ define('TXT_WPSC_PRODUCTIMAGE', 'Product Image');
170
+ define('TXT_WPSC_PRODUCTPRICE', 'Product Price');
171
+ define('TXT_WPSC_NOTAX', 'No tax');
172
+ define('TXT_WPSC_ABOUT', 'About');
173
+ define('TXT_WPSC_ABOUTCONTENT', 'Welcome to the e-commerce panel. <br /><br /><strong>Note:</strong> on some setups, the shopping cart may empty on every page load, if this happens, you will have to add this line:<br /><br />session_start();<br /><br />to the index.php file in the base wordpress directory.<br />');
174
+ define('TXT_WPSC_CONTACTDETAILS', 'Please enter your contact details:');
175
+ define('TXT_WPSC_CREDITCARDHANDY', 'Note, Once you press submit, you will need to have your Credit card handy.');
176
+ define('TXT_WPSC_ASTERISK', 'Fields marked with an asterisk must be filled in.');
177
+ define('TXT_WPSC_FIRSTNAME', 'First Name');
178
+ define('TXT_WPSC_LASTNAME', 'Last Name');
179
+ define('TXT_WPSC_EMAIL', 'Email');
180
+ define('TXT_WPSC_ADDRESS', 'Address');
181
+ define('TXT_WPSC_ADDRESS1', 'Address 1');
182
+ define('TXT_WPSC_ADDRESS2', 'Address 2');
183
+ define('TXT_WPSC_CITY', 'City');
184
+ define('TXT_WPSC_COUNTRY', 'Country');
185
+ define('TXT_WPSC_PHONE', 'Phone');
186
+ define('TXT_WPSC_TERMS1', 'I agree to The ');
187
+ define('TXT_WPSC_TERMS2', 'Terms and Conditions');
188
+
189
+
190
+ define('TXT_WPSC_TEXT', 'Text');
191
+ define('TXT_WPSC_TEXTAREA', 'Textarea');
192
+ define('TXT_WPSC_HEADING', 'Heading');
193
+
194
+ define('TXT_WPSC_MAKEPURCHASE', 'Make Purchase');
195
+ define('TXT_WPSC_BUYPRODUCTS', 'Please buy some products before using this page');
196
+ define('TXT_WPSC_BRANDHASBEENEDITED', 'The brand has been edited.');
197
+ define('TXT_WPSC_SURETODELETEPRODUCT', 'Are you sure you want to delete this product?');
198
+ define('TXT_WPSC_ADDBRAND', 'Add Brand');
199
+ define('TXT_WPSC_DISPLAYBRANDS', 'Display Brands');
200
+ define('TXT_WPSC_EDITBRAND', 'Edit Brand');
201
+ define('TXT_WPSC_ADD', 'Add');
202
+ define('TXT_WPSC_ADD_NEW_FORM', 'Add New Form Field');
203
+ define('TXT_WPSC_SAVE_CHANGES', 'Save Changes');
204
+
205
+ define('TXT_WPSC_CATEGORYHASBEENEDITED', 'The category has been edited.');
206
+ define('TXT_WPSC_DISPLAYCATEGORIES', 'Display Categories');
207
+ define('TXT_WPSC_ADDCATEGORY', 'Add Category');
208
+ define('TXT_WPSC_EDITCATEGORY', 'Edit Category');
209
+ define('TXT_WPSC_ALLCATEGORIES', 'All Categories');
210
+
211
+ define('TXT_WPSC_DISPLAYVARIATIONS', 'Display Variations');
212
+ define('TXT_WPSC_ADDVARIATION', 'Add Variation Set');
213
+ define('TXT_WPSC_EDITVARIATION', 'Edit Variation Set');
214
+ define('TXT_WPSC_VARIATIONHASBEENEDITED', 'The variation has been edited.');
215
+ define('TXT_WPSC_VARIATION_VALUES', 'Variation Values');
216
+ define('TXT_WPSC_REMOVE_SET', 'Remove This Set'); //this needs to be translated
217
+
218
+ define('TXT_WPSC_SELECT_PARENT', 'Select Parent');
219
+ define('TXT_WPSC_PRODUCTHASBEENEDITED', 'The product has been edited.');
220
+ define('TXT_WPSC_ADDPRODUCT', 'Add Product');
221
+ define('TXT_WPSC_DISPLAYPRODUCTS', 'Display Products');
222
+ define('TXT_WPSC_PLEASESELECTACATEGORY', 'Please Select a Category');
223
+ define('TXT_WPSC_STOCK', 'Stock');
224
+ define('TXT_WPSC_PNP', 'PnP');
225
+ define('TXT_WPSC_EDITITEM', 'Edit Item');
226
+ define('TXT_WPSC_PRODUCTDETAILS', 'Product Details');
227
+ define('TXT_WPSC_SELECT_PRODUCT', 'Select an Existing Product');
228
+ define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', '(enter in your product details here)');
229
+ define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', 'Additional Product Description');
230
+ define('TXT_WPSC_ADDITEM', 'Add Item');
231
+ define('TXT_WPSC_CHOOSEACATEGORY', 'Choose a Category');
232
+ define('TXT_WPSC_CHOOSEABRAND', 'Choose a Brand');
233
+ define('TXT_WPSC_USETHEACTUALIMAGE', 'use the actual image. No resize.');
234
+ define('TXT_WPSC_DISPLAYPURCHASES', 'Purchase Log');
235
+ define('TXT_WPSC_ID', 'ID');
236
+ define('TXT_WPSC_TRANSACTIONSTATUS', 'Transaction Status');
237
+ define('TXT_WPSC_DATE', 'Date');
238
+ define('TXT_WPSC_VIEWDETAILS', 'Details'); //Text has changed - translation is needed
239
+ define('TXT_WPSC_STATUS', 'Status');
240
+ define('TXT_WPSC_SUCCESSFUL', 'Successful');
241
+ define('TXT_WPSC_FAILED', 'Failed');
242
+ define('TXT_WPSC_GST', 'GST');
243
+ define('TXT_WPSC_PP', 'P&amp;P');
244
+ define('TXT_WPSC_TOTAL', 'Total');
245
+ define('TXT_WPSC_FINALTOTAL', 'Final Total');
246
+ define('TXT_WPSC_CUSTOMERDETAILS', 'Customer Details');
247
+ define('TXT_WPSC_USERSCARTWASEMPTY', 'This users cart was empty');
248
+ define('TXT_WPSC_GOBACK', 'Go Back');
249
+ define('TXT_WPSC_THANKSAPPLIED', 'Thanks, your changes have been applied.');
250
+ define('TXT_WPSC_FORM_FIELDS', 'Checkout Options');
251
+ define('TXT_WPSC_PAYMENTGATEWAY2', 'Payment Gateway');
252
+ define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', 'Please Select A Payment Gateway');
253
+ define('TXT_WPSC_PAYMENTGATEWAYNOTE', '<strong>Note:</strong> This lite version of the e-Commerce plugin only allows you to interface with PayPal.<br /><br />If you are looking for a more profesional "non paypal solution" then we have a <a href="http://www.instinct.co.nz/blogshop">gold version of e-Commerce</a> available that interfaces seamlessly with authorize.net, DPS (www.dps.co.nz), and paystation (www.paystation.co.nz).');
254
+ define('TXT_WPSC_URLSETTINGS', 'URL Settings');
255
+ define('TXT_WPSC_PRODUCTLISTURL', 'Product List URL');
256
+ define('TXT_WPSC_SHOPPINGCARTURL', 'Shopping Cart URL');
257
+ define('TXT_WPSC_CHECKOUTURL', 'Checkout URL');
258
+ define('TXT_WPSC_TRANSACTIONDETAILSURL', 'Transaction Details URL');
259
+ define('TXT_WPSC_PRESENTATIONSETTINGS', 'Presentation Settings');
260
+ define('TXT_WPSC_CARTLOCATION', 'Cart Location');
261
+ define('TXT_WPSC_SIDEBAR', 'Sidebar');
262
+ define('TXT_WPSC_PAGE', 'Page');
263
+ define('TXT_WPSC_WIDGET', 'Widget');
264
+ define('TXT_WPSC_NEEDTOENABLEWIDGET', 'You need to enable the widgets plugin to use this');
265
+ define('TXT_WPSC_MANUAL', 'Manual');
266
+ define('TXT_WPSC_SHOWCATEGORIESBRANDS', 'Show Categories/Brands');
267
+ define('TXT_WPSC_BOTH', 'Both');
268
+ define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', 'Default Product Thumbnail Size');
269
+ define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', 'Default Category Thumbnail Size');
270
+ define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', 'Show Postage and Packaging');
271
+ define('TXT_WPSC_YES', 'Yes');
272
+ define('TXT_WPSC_NO', 'No');
273
+ define('TXT_WPSC_SHOWSPECIALS', 'Show Specials');
274
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Show Product Ratings');
275
+ define('TXT_WPSC_CURRENCYSETTINGS', 'Currency Settings');
276
+ define('TXT_WPSC_GSTTAXRATE', 'GST/Tax Rate');
277
+ define('TXT_WPSC_CURRENCYTYPE', 'Currency Type');
278
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Currency Sign Location');
279
+ define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', 'Default Postage &amp; Packaging');
280
+ define('TXT_WPSC_ADMINISTRATIONSETTINGS', 'Administration Settings');
281
+ define('TXT_WPSC_MAXDOWNLOADSPERFILE', 'Max downloads per file');
282
+ define('TXT_WPSC_PURCHASELOGEMAIL', 'Purchase Log Email');
283
+ define('TXT_WPSC_REPLYEMAIL', 'Reply Email');
284
+ define('TXT_WPSC_BRANDNOCAP', 'brand');
285
+ define('TXT_WPSC_CATEGORYNOCAP', 'category');
286
+ define('TXT_WPSC_UDPATING', 'Updating');
287
+ define('TXT_WPSC_MOREDETAILS', 'More Details');
288
+ define('TXT_WPSC_ADDTOCART', 'Add To Cart');
289
+ define('TXT_WPSC_AVGCUSTREVIEW', 'Avg. Customer Rating');
290
+ define('TXT_WPSC_YOURRATING', 'Your Rating');
291
+ define('TXT_WPSC_RATING_SAVED', 'Saved');
292
+ define('TXT_WPSC_RATETHISITEM', 'Rate This item');
293
+ define('TXT_WPSC_PRODUCTSOLDOUT', 'This product has sold out.');
294
+ define('TXT_WPSC_NOITEMSINTHIS', 'There are no items in this');
295
+ define('TXT_WPSC_CATEGORYORBRAND', 'Category or Brand');
296
+ define('TXT_WPSC_PLEASECHOOSEA', 'Please choose a');
297
+ define('TXT_WPSC_PRODUCT', 'Product');
298
+ define('TXT_WPSC_QUANTITY', 'Quantity');
299
+ define('TXT_WPSC_QUANTITY_SHORT', 'Qty'); //translation needed
300
+ define('TXT_WPSC_APPLY', 'Apply');
301
+ define('TXT_WPSC_MAKEPAYMENT', 'Make Payment');
302
+ define('TXT_WPSC_EMPTYSHOPPINGCART', 'Empty shopping cart');
303
+ define('TXT_WPSC_TOTALPRICE', 'Total Price');
304
+ define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', 'There are no items in the shopping cart');
305
+ define('TXT_WPSC_EMAILMSG1', "Thank you, the order has been accepted, any items to be shipped will be processed as soon as possible, any items that can be downloaded can be downloaded using the links on this page.\n\r\n\rAll prices include tax and postage and packaging where applicable.\n\r\n\rYou ordered these items:\n\r\n\r");
306
+ define('TXT_WPSC_EMAILMSG2', ".\n\rThese items were ordered:\n\r\n\r");
307
+ define('TXT_WPSC_CLICKTODOWNLOAD', 'Click here to download');
308
+ define('TXT_WPSC_DOWNLOAD', 'Download');
309
+ define('TXT_WPSC_YOURTRANSACTIONID', 'Your Transaction ID');
310
+ define('TXT_WPSC_TRANSACTIONID', 'Transaction ID');
311
+ define('TXT_WPSC_PURCHASERECEIPT', 'Purchase Receipt');
312
+ define('TXT_WPSC_PURCHASEREPORT', 'Purchase Report');
313
+ define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', 'The Transaction was successful');
314
+ define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', 'The Transaction was not successful');
315
+ define('TXT_WPSC_GOBACKTOCHECKOUT', 'Go back to the checkout');
316
+ define('TXT_WPSC_SPECIALPRICE', 'Special Price');
317
+
318
+ define('TXT_WPSC_INSTRUCTIONS', '
319
+ To complete the installation you need to create the Product, Shopping Cart, Checkout and Transaction Result pages, and then hide the Shopping Cart, Checkout and Transaction Result pages so that they do not appear in the pages list.
320
+ <ul class=\'installation\'>
321
+ <li>Place contents of zip file in the wp-content/plugins directory.</li>
322
+ <li>Activate the plugin from the wordpress plugin page</li>
323
+ <li>Go to the "Payment Gateway Options" page in the "e-Commerce" tab, and enter in the appropriate details. (the default paypal gateway accessed is the paypal sandbox)</li>
324
+ <li>Create some Categories and Products using the Categories and Products pages</li>
325
+ </ul>
326
+ Expecting more? That\'s it.</p>
327
+ <h2>Wishlist Tip Jar</h2>
328
+ <p>Donations are in no way mandatory.<br /><br />
329
+ Yet, we have been spending considerable amounts of time writing, supporting and debugging WP e-commerce. Therefore, if you like what you see, and want to see more of it, feel free to help finance future releases by dropping a buck or two in the tip jar...</p>
330
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
331
+ <input type="hidden" name="cmd" value="_s-xclick">
332
+ <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">
333
+ <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAh/vca+S7Em1KNH3rhwBRD1h4c0DdQSgmknr8mKQU7KfG5jSYXu5DD9oriGfYSDg+99ZtljIwtqvefC0wKdEJ0yFMGinWp9zGw2Xvu1s4S+pcH5IGax9KQo1WosnzA99F04MHQnqkxcfpTXCG8VLSf/r/rx8+++vVsYWNYN717+DELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIHATWqFYRAjeAgaB2F/F90mbYo/5zGY/1AYtsQ35nRDtelewxW7iLHF41rzB3NidYEs2h+t/HS0MoGTBsAfVc94mxIzInI1pQt9n/hpF67XAr357KVwIoIOq52jDfDFlZV92BPMv00MHuj4LNtNq5I752I3SsNamhl1DfAqlWxnJsIibA1D3l8k67ccc04/JYjvsd89hYgf0lob7vQoZ8X5xNtlidM3qcAx4goIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDYwMzA5MjA0ODA4WjAjBgkqhkiG9w0BCQQxFgQUCBfIACnHn+V2COlj8DDv2MsFJRIwDQYJKoZIhvcNAQEBBQAEgYCMXnxnBNyUy7axfHh9EDVq7HFzTvTsGwtmAUVesOyRNGwESXpukrX4rDOMNdHbbVToxa98uIKJUJPiYGBcpcUywtpZG1ZiDvYxoWgDh4zXx4w1QcJ96OjUPkHQ3q0UWY+p9GRxl+buhyjK62BxU5I0UaKc0H3QuATQB5+lbZdlgw==-----END PKCS7-----">
334
+ </form>
335
+ <h2>Customisation and Tips</h2>
336
+ <p><strong>GST & Tax</strong><br />If required you can enter in a default GST/Tax rate on the Options page in the "e-Commerce" tab.</p>
337
+ <p><strong>Email purchase Logs</strong><br />If you add an email address for the purchase log on the Purchase Log page this will be the email address that is sent a purchase notification each time something is bought.</p>
338
+ <p><strong>Hiding pages</strong><br />
339
+ To prevent the Shopping Cart, Checkout and Transaction Results pages from being displayed in the page list you must first find out their ID numbers. <br />
340
+ <br />Then you have to edit the file in the theme you use that displays pages. <br />
341
+ <br />This is normally found in sidebar.php, find the line similar to:<br />
342
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;/h2&gt;\' ); ?&gt;"<br />
343
+ <br />Edit the line accordingly, for example:<br />
344
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;h2&gt;&amp;exclude=3,4,5\'); ?&gt;"<br />
345
+ <br />The word exclude tells it to exclude the pages from the list, and the numbers after the word exclude are the ID numbers of the pages to exclude.</p>
346
+ <p><strong>Upgrading from Previous Version</strong><br />
347
+ If you are upgrading from a previous version, you will need to deactivate and reactivate the plugin.</p>
348
+ <p><strong>Image Functions</strong><br />
349
+ If your server does not have the PHP image functions installed, you will not be able to resize images once they are uploaded</p>
350
+ <p><strong>Permalinks</strong><br />
351
+ We\'re doing the best we can.
352
+ I have not been able to find a really good way to pass the required variables from page to page using permalinks that dont use mod_rewrite, if you cant use mod_rewrite, the plugin may not work with permalinks turned on.</p>
353
+ <p><strong>Javascript and Ajax </strong><br />
354
+ e-commerce lite uses Ajax, the shopping cart that the user sees will work without Javascript, but the Administration pages (specifically the Products and Categories pages) will not. To use the Administration section you will need to use a reasonably modern browser and have Javascript turned on. (Internet Explorer 6 or better, or Firefox 1.0 or better, older versions have not been tested for and may or may not work)</p>
355
+ <p><strong>Contact Us</strong><br />
356
+ Website: <a href="http://www.instinct.co.nz">www.instinct.co.nz</a></p>
357
+ <p><strong>Credits:</strong><br />
358
+ This project uses a modified version of Lightbox: <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox can be obtained from here.</a>
359
+ </p>
360
+ ');
361
+
362
+
363
+ define('TXT_WPSC_SHIPPINGSETTINGS', 'Shipping Settings');
364
+ define('TXT_WPSC_BASE_LOCAL', 'Base Local Shipping');
365
+ define('TXT_WPSC_BASE_INTERNATIONAL', 'Base International Shipping');
366
+ define('TXT_WPSC_BASE_COUNTRY', 'Base Country/Region');
367
+
368
+ define('TXT_WPSC_SHIPPING_DETAILS', 'Additional Shipping Costs'); // this needs updating
369
+ define('TXT_WPSC_LOCAL_PNP', 'Local Shipping Fee'); // this needs updating
370
+ define('TXT_WPSC_INTERNATIONAL_PNP', 'International Shipping Fee'); // this needs updating
371
+ define('TXT_WPSC_SHIPPING_NOTE', 'Note: charged only once per product regardless of quantity ordered.');
372
+ define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Country Form Field');
373
+ define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the country)');
374
+
375
+ define('TXT_WPSC_SHIPPING', 'Shipping');
376
+ define('TXT_WPSC_EMAIL_FORM_FIELD', 'Email Form Field');
377
+ define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the email address)');
378
+
379
+
380
+ define('TXT_WPSC_PRODUCTIMAGES', 'Product Images');
381
+ define('TXT_WPSC_PRODUCTDOWNLOAD', 'Product Download');
382
+ define('TXT_WPSC_SHOWTHUMBNAILS', 'Show Thumbnails');
383
+ define('TXT_WPSC_ADD_ADDITIONAL_IMAGE', 'Add Additional Image');
384
+ define('TXT_WPSC_DELETE_IMAGE', 'Delete Image');
385
+ define('TXT_WPSC_GOLD_OPTIONS', 'Gold Cart Options');
386
+ define('TXT_WPSC_ACTIVATE_SETTINGS', 'Activation Settings');
387
+ define('TXT_WPSC_ACTIVATION_KEY', 'Activation Key');
388
+ define('TXT_WPSC_THANKSACTIVATED', 'Thanks, the gold shopping cart has been activated.');
389
+ define('TXT_WPSC_NOTACTIVATED', 'Sorry, the API key was incorrect.');
390
+ define('TXT_WPSC_DEFAULT', 'Default');
391
+ define('TXT_WPSC_LIST', 'List');
392
+ define('TXT_WPSC_VISIBLE', 'Visible');
393
+ define('TXT_WPSC_DELETE_PRODUCT', 'Delete Product');
394
+ define('TXT_WPSC_ADDITIONAL_IMAGE', 'Additional Image');
395
+ define('TXT_WPSC_GATEWAY_OPTIONS', 'Gateway Options');
396
+ define('TXT_WPSC_SHIPPING_COUNTRY', 'Choose your shipping country:');
397
+ define('TXT_WPSC_CONFIRM_TOTALS', 'Confirm your totals before making the payment:');
398
+ define('TXT_WPSC_CHECKOUT_FORM_FIELDS_DESCRIPTION', 'Here you can customise the forms to be displayed in your checkout page. The checkout page is where you collect important user information that will show up in your purchase logs i.e. the buyers address, and name...');
399
+ define('TXT_WPSC_PAYMENT_OPTIONS', 'Payment Options');
400
+ define('TXT_WPSC_PAYMENT_DESCRIPTION', 'Choose what payment options you want to make available in the checkout page. By default purchasers can only pay for items using a credit card however you may wish to also let them pay manually in which case you should select the credit card + manual payment option.');
401
+
402
+ define('TXT_WPSC_DEFAULT_GATEWAY_ONLY', ' only');
403
+ define('TXT_WPSC_PLUS_MANUAL_PAYMENT', ' plus manual payment option');
404
+ define('TXT_WPSC_PAYMENT_METHOD', 'Payment Method');
405
+ define('TXT_WPSC_PAY_USING', 'Pay using');
406
+ define('TXT_WPSC_PAY_MANUALLY', 'Pay by Cheque/Bank Deposit');
407
+ define('TXT_WPSC_CREDIT_CARD', 'Credit Card');
408
+ define('TXT_WPSC_ADJUSTABLE_QUANTITY', 'Show quantity form in list view');
409
+ define('TXT_WPSC_RSS_FEED_HEADER', 'Subscribe to your orders');
410
+ define('TXT_WPSC_RSS_FEED_LINK', 'Subscribe to an RSS feed');
411
+ define('TXT_WPSC_RSS_FEED_TEXT', 'of your orders');
412
+ define('TXT_WPSC_INITIAL_SETUP', 'Created default options.');
413
+ define('TXT_WPSC_PLUGIN_NEWS_HEADER', 'Plugin News');
414
+
415
+ define('TXT_WPSC_PLUGIN_NEWS', '<a href="http://www.instinct.co.nz/wp-campaign-monitor/100" target="_blank">WP Campaign Monitor</a> is an email newsletter tool built just
416
+ for WP users who want to send campaigns, track the
417
+ results and manage their subscribers.
418
+
419
+ The latest version integrates with e-commerce lite meaning
420
+ that you will be able to send buyers email newsletters
421
+ and much more.');
422
+ define('TXT_WPSC_POWERED_BY', 'This shop is powered by ');
423
+ define('TXT_WPSC_NO_PURCHASES', 'There have not been any purchases yet.');
424
+
425
+
426
+ define('TXT_WPSC_DELIVERY_ADDRESS', 'Delivery Address');
427
+ define('TXT_WPSC_DELIVERY_CITY', 'Delivery City');
428
+ define('TXT_WPSC_DELIVERY_COUNTRY', 'Delivery Country');
429
+ define('TXT_WPSC_MP3_SETTINGS', 'MP3 Settings');
430
+ define('TXT_WPSC_MP3_SETTINGS_DESCRIPTION', 'To create the 30 second MP3 file clips, this plugin needs <a href=\'http://sox.sourceforge.net/\'>SoX</a> compiled with MP3 support, enter the path to SoX here.');
431
+ define('TXT_WPSC_SOX_PATH', 'SoX Path');
432
+ define('TXT_WPSC_PREVIEW', 'Preview');
433
+ define('TXT_WPSC_DOWNLOAD_CSV', 'Download CSV');
434
+ define('TXT_WPSC_PREVIEW_FILE', 'Preview File');
435
+ define('TXT_WPSC_REPLACE_PRODUCT', 'Replace Product');
436
+ define('TXT_WPSC_TOTALSHIPPING', 'Total Shipping');
437
+ define('TXT_WPSC_DISPLAY_FRONT_PAGE', 'Display on Front page');
438
+ define('TXT_WPSC_SEARCH_FOR', 'Search For');
439
+ define('TXT_WPSC_YOUR_SEARCH_FOR', 'Your search for');
440
+ define('TXT_WPSC_RETURNED_NO_RESULTS', 'returned no results.');
441
+ define('TXT_WPSC_POSTAGE', 'Postage');
442
+ define('TXT_WPSC_SUBTOTAL', 'Subtotal');
443
+
444
+
445
+ //everything under here needs translations, added after 19/1/2007
446
+
447
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Please enter a valid');
448
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Please enter your first name.');
449
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Please enter your last name.');
450
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Please enter a valid email address.');
451
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Please complete your address.');
452
+ define('TXT_WPSC_PLEASEENTERAVALIDCITY', 'Please enter your town or city.');
453
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Please enter a valid phone number.');
454
+ define('TXT_WPSC_PLEASESELECTCOUNTRY', 'Please select your country from the list.');
455
+ define('TXT_WPSC_PLEASEAGREETERMSANDCONDITIONS', 'Please select the terms and conditions option. Unfortunately we cannot process your order otherwise.');
456
+ define('TXT_WPSC_POSITION', 'Position');
457
+
458
+ define('TXT_WPSC_DELIVERY_REGION', 'Delivery Region');
459
+
460
+
461
+ define('TXT_WPSC_GENERAL_SETTINGS', 'General Settings');
462
+ define('TXT_WPSC_TAX_SETTINGS', 'Tax Settings');
463
+ define('TXT_WPSC_POSTAGE_AND_TAX', 'Postage &amp; Tax ');
464
+ define('TXT_WPSC_GRID', 'Grid');
465
+ define('TXT_WPSC_CANT_MOVE_CATEGORY', 'You cannot move a category with subcategories.');
466
+ define('TXT_WPSC_SURETODELETECATEGORY', 'Are you sure you want to delete this category? If the category has any subcategories, they will be deleted too.');
467
+ define('TXT_WPSC_VARIATION', 'Variation');
468
+ define('TXT_WPSC_OVER_TWO_VARIATIONS', 'Variation stock and price control does not work if you have more than two variations.');
469
+ define('TXT_WPSC_PRICE_AND_STOCK_CONTROL', 'Price, Stock and Variation Control') ;
470
+
471
+ // pe.{
472
+ define('TXT_WPSC_CATSBRANDSLOCATION', 'Categories &amp; Brands Location');
473
+ define('TXT_WPSC_DESCITEMSEPARATOR', ' : ');
474
+ define('TXT_WPSC_SEARCHITEMSEPARATOR', ' : ');
475
+ define('TXT_WPSC_SINGLE_SHIPPING_COUNTRY', 'Shipping country:');
476
+ define('TXT_WPSC_ADD_ANOTHER_VARIATION', 'Add a variation');
477
+ // }.pe
478
+ define('TXT_WPSC_PRODUCT_CATEGORIES', 'Product Categories');
479
+ define('TXT_WPSC_THANKS_DELETED', 'Thanks, the purchase log record has been deleted');
480
+ define('TXT_WPSC_PRODUCT_IMAGE_PREVIEW', 'Product image');
481
+ define('TXT_WPSC_PRODUCT_THUMBNAIL_PREVIEW', 'Product thumbnail');
482
+ define('TXT_WPSC_REMOVE_LOG', 'Remove this record from the purchase log');
483
+ define('TXT_WPSC_CATSANDBRAND', 'Categories &amp; Brands');
484
+ define('TXT_WPSC_GOLD_DROPSHOP', 'DropShop');
485
+ define('TXT_WPSC_NEEDTOENABLEDROPSHOP', 'You need to install the Gold and DropShop extentions to use this');
486
+ define('TXT_WPSC_DRAG_ITEM_HERE', 'Drag any item here to add it to your cart.');
487
+ define('TXT_WPSC_SHOWCATEGORYTHUMBNAILS', 'Show Category Thumbnails');
488
+ define('TXT_WPSC_SHOPPING_CART', 'Shopping Cart');
489
+ define('TXT_WPSC_SHOW_SLIDING_CART', 'Show Sliding Cart');
490
+ define('TXT_WPSC_PREVIEW_FILE', 'Upload Preview');
491
+ define('TXT_WPSC_PREVIEW_FILE_NOTE', 'Note: If you do not upload a preview file and your server has sox compiled with MP3 support then a preview file will be created for you.');
492
+ define('TXT_WPSC_PURCHASE_NUMBER', 'Purchase No.');
493
+ define('TXT_WPSC_FILTER_ORDER', 'Filter Orders');
494
+ ?>
wp-shopping-cart/languages/IT_it.php ADDED
@@ -0,0 +1,586 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ This is a language file for the WP Shopping Cart plugin version 2.6.5 beta
4
+ 04 Gennaio 2007 traduzione Marco Codato marco [at] soulbrew.net
5
+ */
6
+
7
+ define('TXT_WPSC_IMAGESIZEINFO', 'Nota: se vuoto l\'immagine non verra\' ridimensionata');
8
+ define('TXT_WPSC_RECEIVED', 'Ordine Ricevuto');
9
+ define('TXT_WPSC_ORDER_STATUS', 'Status dell\'Ordine');
10
+ define('TXT_WPSC_ORDER_SUMMARY', 'Sommario Ordini');
11
+ define('TXT_WPSC_LANGUAGE', 'Linguaggio');
12
+ define('TXT_WPSC_ACCEPTED_PAYMENT', 'Pagamento Accettato');
13
+ define('TXT_WPSC_JOB_DISPATCHED', 'Lavoro Spedito');
14
+ define('TXT_WPSC_PROCESSED', 'Ordine Chiuso');
15
+ define('TXT_WPSC_ECOMMERCE', 'e-Commerce');
16
+ define('TXT_WPSC_OPTIONS', 'Opzioni Negozio');
17
+ define('TXT_WPSC_ADDPRODUCTS', 'Aggiungi Prodotti');
18
+ define('TXT_WPSC_SENDSMS', 'Invia SMS');
19
+ define('TXT_WPSC_PRODUCTS', 'Prodotti');
20
+ define('TXT_WPSC_ADDCATEGORY', 'Aggiungi Categoria');
21
+ define('TXT_WPSC_CATEGORIES', 'Categorie');
22
+ define('TXT_WPSC_BRANDS', 'Marchi');
23
+ define('TXT_WPSC_VARIATIONS', 'Variazioni');
24
+ define('TXT_WPSC_PURCHASELOG', 'Log Acquisti');
25
+ define('TXT_WPSC_ORDER_LOG', 'Ordini');
26
+ define('TXT_WPSC_OLDER_ORDERS', 'Ordini Vecchi');
27
+ define('TXT_WPSC_ORDER', 'Ordine');
28
+ define('TXT_WPSC_TOTAL_THIS_MONTH', 'Totale Entrate Mese Corrente');
29
+ define('TXT_WPSC_MONTHLY_REPORT', 'Report Semestrale');
30
+ define('TXT_WPSC_TOTAL_INCOME', 'Entrate Totali');
31
+ define('TXT_WPSC_ACCEPTED_PAYMENTS', '(Pagamenti Accettati)'); //texr has changed slightly
32
+ define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', 'Opzioni Gateway Pagamento');
33
+ define('TXT_WPSC_HELPINSTALLATION', 'Aiuto/Upgrade');
34
+ define('TXT_WPSC_EXAMPLECATEGORY', 'Esempio categoria');
35
+ define('TXT_WPSC_EXAMPLEDETAILS', 'Esempio dettagli');
36
+ define('TXT_WPSC_EXAMPLEBRAND', 'Esempio Marchio');
37
+ define('TXT_WPSC_PRODUCTIMAGEWIDTH', ' larghezza immagine prodotto');
38
+ define('TXT_WPSC_PRODUCTIMAGEHEIGHT', 'altezza immagine prodotto');
39
+ define('TXT_WPSC_CATEGORYIMAGEWIDTH', 'larghezza immagine categoria');
40
+ define('TXT_WPSC_CATEGORYIMAGEHEIGHT', 'altezza immagine categoria');
41
+ define('TXT_WPSC_PRODUCTLISTURL', 'La posizione della lista prodotti');
42
+ define('TXT_WPSC_SHOPPINGCARTURL', 'La posizione del carrello della spesa');
43
+ define('TXT_WPSC_CHECKOUTURL', 'La posizione della pagina di conclusione ordine (checkout)');
44
+ define('TXT_WPSC_TRANSACTURL', 'La posizione della pagina dei dettagli della transazione');
45
+ define('TXT_WPSC_PAYMENTGATEWAY', 'Il gateway per il pagamento utilizzato');
46
+ define('TXT_WPSC_CARTLOCATION', 'Posizione del carello');
47
+ define('TXT_WPSC_SHOWCATEGORYBRANDS', 'Mostra categorie o marchi o entrambi');
48
+ define('TXT_WPSC_CURRENCYTYPE', 'Tipo valuta');
49
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Posizione del segno di valuta');
50
+ define('TXT_WPSC_GSTRATE', 'Percentuale IVA');
51
+ define('TXT_WPSC_MAXDOWNLOADS', 'Il limite di download');
52
+ define('TXT_WPSC_DISPLAYPNP', 'Mostra o nascondi le spese di spedizione');
53
+ define('TXT_WPSC_DISPLAYSPECIALS', 'Mostra o Nascondi le offerte speciali nella sidebar');
54
+ define('TXT_WPSC_POSTAGEAND_PACKAGING', 'Spese di spedizione standard');
55
+ define('TXT_WPSC_PURCHLOGEMAIL', 'Indirizzo email per ricevere il log degli acquisti');
56
+ define('TXT_WPSC_RETURNEMAIL', 'Email address that purchase reports are sent from');
57
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'Checkout condizioni di vendita');
58
+ define('TXT_WPSC_DEFAULTBRAND', 'Marchio standard');
59
+ define('TXT_WPSC_DEFAULTCATEGORY', 'Categoria Standard');
60
+ define('TXT_WPSC_PAYPALBUSINESS', 'paypal business');
61
+ define('TXT_WPSC_PAYPALURL', 'paypal url');
62
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Mostra Voto Prodotto');
63
+ define('TXT_WPSC_PRODUCTSPAGE', 'Pagina Prodotti');
64
+ define('TXT_WPSC_CHECKOUT', 'Checkout (conclusione ordine)');
65
+ define('TXT_WPSC_ENTERDETAILS', 'Digita i tuoi dettagli');
66
+ define('TXT_WPSC_TRANSACTIONRESULTS', 'Risultato della transazione');
67
+ define('TXT_WPSC_SELECTACATEGORY', 'Seleziona una Categoria');
68
+ define('TXT_WPSC_SELECTABRAND', 'Seleziona un Marchio');
69
+ define('TXT_WPSC_PRODUCTNAME', 'Nome Prodotto');
70
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Descrizione Prodotto');
71
+ define('TXT_WPSC_ADDITIONALDESCRIPTION', 'Aggiungi Descrizione Addizionale');
72
+ define('TXT_WPSC_PRICE', 'Prezzo');
73
+ define('TXT_WPSC_TAXALREADYINCLUDED', 'Non includere la tassa (Gia\' settata nella configurazione dello Shop)'); // this text has changed and needs updating
74
+ define('TXT_WPSC_SPECIAL', 'Special / Prezzo speciale'); // this text has changed and needs updating
75
+ define('TXT_WPSC_PRODUCT_DISPLAY', 'Mostra Prodotto');
76
+
77
+ define('TXT_WPSC_PRODUCTSTOCK', 'Qta\' Prodotto');
78
+
79
+ define('TXT_WPSC_UNTICKBOX', 'Ho una quantita\' limitata di questo prodotto. Se il prodotto dovesse finire, questo prodotto non sara\' disponibile in negozio a meno che tu non spunti questo box o aggiunga piu\' stock.');
80
+ define('TXT_WPSC_LIMITED_STOCK', 'Quantita\' Limitata');
81
+
82
+ define('TXT_WPSC_CATEGORY', 'Categoria');
83
+ define('TXT_WPSC_BRAND', 'Marchio');
84
+ define('TXT_WPSC_PRODUCT_VARS', 'Variazioni Prodotto');
85
+ define('TXT_WPSC_ADD_VAR', 'Aggiungi Insieme di Variazioni');
86
+ define('TXT_WPSC_EDIT_VAR', 'Edita Insieme di Variazioni');
87
+ define('TXT_WPSC_SELECTAVARIATION', 'Seleziona una Variazione');
88
+ define('TXT_WPSC_NEW_VARIATION', 'Crea una nuova Variazione');
89
+
90
+ define('TXT_WPSC_PRODUCTATT', 'Allegati Prodotto');
91
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT', 'Prodotto Scaricabile');
92
+ define('TXT_WPSC_FILETOBEPRODUCT', 'Nota: se spuntato, il file caricato sara\' il prodotto in vendita.');
93
+ define('TXT_WPSC_RESIZEIMAGE', 'Ridimensiona Thumbnail');
94
+ define('TXT_WPSC_DONOTRESIZEIMAGE', 'Non ridimensionare thumbnail.');
95
+ //define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'usa altezza e larghezza standard');
96
+ //define('TXT_WPSC_USE', 'usa');
97
+ //define('TXT_WPSC_PXHEIGHTBY', 'px altezza per');
98
+ //define('TXT_WPSC_PXWIDTH', 'px larghezza.');
99
+
100
+ // pe.{
101
+ //define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'use default height and width');
102
+ // }.pe
103
+ define('TXT_WPSC_SEPARATETHUMBNAIL', 'use separate thumbnail'); // Needs Translation
104
+ define('TXT_WPSC_USE', 'use'); // Needs Translation
105
+ // pe.{
106
+ define('TXT_WPSC_USEDEFAULTSIZE', 'use default size'); // Needs Translation
107
+ define('TXT_WPSC_USESPECIFICSIZE', 'use specific size'); // Needs Translation
108
+ define('TXT_WPSC_PXHEIGHT', 'px height'); // Needs Translation
109
+ define('TXT_WPSC_PXWIDTH', 'px width'); // Needs Translation
110
+ // }.pe
111
+
112
+
113
+ define('TXT_WPSC_PREVIEW', 'Anteprima');
114
+ define('TXT_WPSC_UPLOADNEWIMAGE', 'Cambia Immagine');
115
+ define('TXT_WPSC_DELETEIMAGE', 'Delete Immagine');
116
+ define('TXT_WPSC_EDIT', 'Edita');
117
+ define('TXT_WPSC_DELETE', 'Cancella');
118
+ define('TXT_WPSC_REMOVE', 'Rimuovi');
119
+ define('TXT_WPSC_NAME', 'Nome');
120
+ define('TXT_WPSC_TYPE', 'Tipo');
121
+ define('TXT_WPSC_MANDATORY', 'Obbligatorio');
122
+ define('TXT_WPSC_DISPLAY_IN_LOG', 'Mostra<br /> in Log');
123
+ define('TXT_WPSC_DESCRIPTION', 'Descrizione');
124
+ define('TXT_WPSC_CATEGORY_PARENT', 'Categoria Madre');
125
+ define('TXT_WPSC_IMAGE', 'Immagine');
126
+ define('TXT_WPSC_HEIGHT', 'Altezza');
127
+ define('TXT_WPSC_WIDTH', 'Larghezza');
128
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Inserire uno valido');
129
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Inserire un nome valido');
130
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Inserire un cognome valido');
131
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Inserire un indirizzo email valido');
132
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Inserire un indirizzo valido');
133
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Inserire un numero di telefono valido');
134
+ define('TXT_WPSC_TERMSANDCONDITIONS', 'Non hai accettato le Condizioni di Vendita');
135
+ define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', 'Il tuo carrello e\'vuoto');
136
+ define('TXT_WPSC_SPECIALS', 'Offerte Speciali');
137
+ define('TXT_WPSC_BUY', 'Compra');
138
+ define('TXT_WPSC_SHOPPINGCART', 'Carrello');
139
+ define('TXT_WPSC_NUMBEROFITEMS', 'Numero di prodotti');
140
+ define('TXT_WPSC_NOMOREAVAILABLE', 'Questo prodotto non e\' momentaneamente disponibile.');
141
+ define('TXT_WPSC_EMPTYYOURCART', 'Svuota il carrello');
142
+ define('TXT_WPSC_GOTOCHECKOUT', '<b>Concludi l\'ordine (checkout)</b>');
143
+ define('TXT_WPSC_CONTINUESHOPPING', 'Continua con gli acquisti');
144
+ define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', 'Il vostro carrello e\' vuoto');
145
+ define('TXT_WPSC_VISITTHESHOP', 'Visita il negozio');
146
+ define('TXT_WPSC_PAGES', 'Pagine');
147
+ define('TXT_WPSC_OUTOF', 'di');
148
+ define('TXT_WPSC_VOTES', 'voti.');
149
+ define('TXT_WPSC_CLICKSTARSTORATE', 'Clicca sulle stelle per votare');
150
+ define('TXT_WPSC_AVERAGERATINGOF', 'Voto medio');
151
+ define('TXT_WPSC_YOURVOTE', 'Il tuo voto');
152
+ define('TXT_WPSC_AVERAGEVOTE', 'Voto medio');
153
+ define('TXT_WPSC_YOUHAVEVOTED', 'Hai votato');
154
+ define('TXT_WPSC_NOVOTES', 'Nessun voto');
155
+ define('TXT_WPSC_1VOTE', '1 Voto');
156
+ define('TXT_WPSC_VOTES2', 'Voti');
157
+ define('TXT_WPSC_PERSONGIVEN', 'persona ha dato questa immagine');
158
+ define('TXT_WPSC_PERSONGIVEN2', 'stelle.');
159
+ define('TXT_WPSC_PEOPLEGIVEN', 'persone hanno dato questa immagine');
160
+ define('TXT_WPSC_PEOPLEGIVEN2', 'stelle.');
161
+ define('TXT_WPSC_ITEMHASBEENADDED', 'L\'oggetto e\'stato aggiunto');
162
+ define('TXT_WPSC_ITEMHASNOTBEENADDED', 'L\'oggetto non e\'stato aggiunto');
163
+ define('TXT_WPSC_ADDNEWCATEGORY', 'Aggiungi Nuova Categoria');
164
+ define('TXT_WPSC_SUBMIT', 'Invia');
165
+ define('TXT_WPSC_SELECTAVALIDCATEGORY', 'Seleziona una Categoria valida');
166
+ define('TXT_WPSC_PRODUCTNAME', 'Nome Prodotto');
167
+ define('TXT_WPSC_PRODUCTDESCRIPTION', 'Descrizione Prodotto');
168
+ define('TXT_WPSC_ADDNEWPRODUCT', 'Aggiungi Prodotto');
169
+ define('TXT_WPSC_PRODUCTQUANTITY', 'Quantita\' Prodotto');
170
+ define('TXT_WPSC_PRODUCTIMAGE', 'Immagine Prodotto');
171
+ define('TXT_WPSC_PRODUCTPRICE', ' Prezzo Prodotto');
172
+ define('TXT_WPSC_NOTAX', 'Nessuna tassa');
173
+ define('TXT_WPSC_ABOUT', 'A riguardo');
174
+ define('TXT_WPSC_ABOUTCONTENT', 'Benvenuto nel pannello di controllo e-commerce. <br /><br /><strong>Nota:</strong> in certi casi, il carrello si puo\' svuotare ogniqualvolta si carica la pagina, se dovesse succedere, dovrai aggiungere questa linea:<br /><br />session_start();<br /><br /> al file index.php nella directory di base wordpress.<br />');
175
+ define('TXT_WPSC_CONTACTDETAILS', 'Inserisci i tuoi dettagli:');
176
+ define('TXT_WPSC_CREDITCARDHANDY', 'Nota che una volta premuto Invio, dovrai avere la tua carta di credito a portata di mano.');
177
+ define('TXT_WPSC_ASTERISK', 'I campi marcati con un asterisco devono essere compilati.');
178
+ define('TXT_WPSC_FIRSTNAME', 'Nome');
179
+ define('TXT_WPSC_LASTNAME', 'Cognome');
180
+ define('TXT_WPSC_EMAIL', 'Email');
181
+ define('TXT_WPSC_ADDRESS', 'Aggiungi Indirizzo');
182
+ define('TXT_WPSC_ADDRESS1', 'Aggiungi Indirizzo 1');
183
+ define('TXT_WPSC_ADDRESS2', 'Aggiungi Indirizzo 2');
184
+ define('TXT_WPSC_CITY', 'Citta\'');
185
+ define('TXT_WPSC_STATE', 'Provincia');
186
+ define('TXT_WPSC_COUNTRY', 'Paese');
187
+ define('TXT_WPSC_PHONE', 'Telefono');
188
+ define('TXT_WPSC_POSTAL_CODE', 'Codice Postale');
189
+ define('TXT_WPSC_TERMS1', 'Accetto le ');
190
+ define('TXT_WPSC_TERMS2', 'Condizioni di Vendita');
191
+
192
+
193
+ define('TXT_WPSC_TEXT', 'Testo');
194
+ define('TXT_WPSC_TEXTAREA', 'Area di testo');
195
+ define('TXT_WPSC_HEADING', 'Heading');
196
+
197
+ define('TXT_WPSC_MAKEPURCHASE', 'Procedi all\'acquisto');
198
+ define('TXT_WPSC_BUYPRODUCTS', 'Procedi all\'acquisto di alcuni prodotti prima di utilizzare questa pagina');
199
+ define('TXT_WPSC_BRANDHASBEENEDITED', 'Il marchio e\' stato aggiornato.');
200
+ define('TXT_WPSC_SURETODELETEPRODUCT', 'Sei sicuro di voler eliminare questo prodotto?');
201
+ define('TXT_WPSC_ADDBRAND', 'Aggiungi Marchio');
202
+ define('TXT_WPSC_DISPLAYBRANDS', 'Mostra Marchi');
203
+ define('TXT_WPSC_EDITBRAND', 'Aggiorna Marchio');
204
+ define('TXT_WPSC_ADD', 'Aggiungi');
205
+ define('TXT_WPSC_ADD_NEW_FORM', 'Aggiungi un nuovo campo nella form');
206
+ define('TXT_WPSC_SAVE_CHANGES', 'Salva');
207
+
208
+ define('TXT_WPSC_CATEGORYHASBEENEDITED', 'La categoria e\' stata aggiornata.');
209
+ define('TXT_WPSC_DISPLAYCATEGORIES', 'Mostra Categorie');
210
+ define('TXT_WPSC_ADDCATEGORY', 'Aggiungi Categoria');
211
+ define('TXT_WPSC_EDITCATEGORY', 'Modifica Categoria');
212
+ define('TXT_WPSC_ALLCATEGORIES', 'Tutte le Categorie');
213
+
214
+ define('TXT_WPSC_DISPLAYVARIATIONS', 'Mostra Variazioni');
215
+ define('TXT_WPSC_ADDVARIATION', 'Aggiungi insieme di Variazioni');
216
+ define('TXT_WPSC_EDITVARIATION', 'Modifica insieme di Variazioni');
217
+ define('TXT_WPSC_VARIATIONHASBEENEDITED', 'La variazione e\' stata modificata.');
218
+ define('TXT_WPSC_VARIATION_VALUES', 'Valori Variazioni');
219
+ define('TXT_WPSC_REMOVE_SET', 'Rimuovi questo insieme'); //this needs to be translated
220
+
221
+ define('TXT_WPSC_SELECT_PARENT', 'Seleziona madre');
222
+ define('TXT_WPSC_PRODUCTHASBEENEDITED', 'Il prodotto e\' stato modificato.');
223
+ define('TXT_WPSC_ADDPRODUCT', 'Aggiungi Prodotto');
224
+ define('TXT_WPSC_DISPLAYPRODUCTS', 'Mostra Prodotti');
225
+ define('TXT_WPSC_PLEASESELECTACATEGORY', 'Seleziona una Categoria');
226
+ define('TXT_WPSC_STOCK', 'Stock');
227
+ define('TXT_WPSC_PNP', 'Spese di Spedizione');
228
+ define('TXT_WPSC_EDITITEM', 'Modifica prodotto');
229
+ define('TXT_WPSC_PRODUCTDETAILS', 'Dettagli Prodotto');
230
+ define('TXT_WPSC_SELECT_PRODUCT', 'Seleziona un Prodotto esistente');
231
+ define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', '(Digita i dettagli del tuo prodotto qui)');
232
+ define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', 'Aggiungi Descrizione addizionale prodotto');
233
+ define('TXT_WPSC_ADDITEM', 'Aggiungi Prodotto');
234
+ define('TXT_WPSC_CHOOSEACATEGORY', 'Scegli una Categoria');
235
+ define('TXT_WPSC_CHOOSEABRAND', 'Scegli un Marchio');
236
+ define('TXT_WPSC_USETHEACTUALIMAGE', 'Usa l\' immagine attuale senza ridimensionare.');
237
+ define('TXT_WPSC_DISPLAYPURCHASES', 'Log Acquisti');
238
+ define('TXT_WPSC_ID', 'ID');
239
+ define('TXT_WPSC_TRANSACTIONSTATUS', 'Status Transazione');
240
+ define('TXT_WPSC_DATE', 'Data');
241
+ define('TXT_WPSC_VIEWDETAILS', 'Dettagli'); //Text has changed - translation is needed
242
+ define('TXT_WPSC_STATUS', 'Status');
243
+ define('TXT_WPSC_SUCCESSFUL', 'Riuscito');
244
+ define('TXT_WPSC_FAILED', 'Fallito');
245
+ define('TXT_WPSC_GST', 'IVA');
246
+ define('TXT_WPSC_PP', 'Spese Sped.');
247
+ define('TXT_WPSC_TOTAL', 'Totale');
248
+ define('TXT_WPSC_FINALTOTAL', 'Totale Finale');
249
+ define('TXT_WPSC_CUSTOMERDETAILS', 'Dettagli Cliente');
250
+ define('TXT_WPSC_USERSCARTWASEMPTY', 'Il carrello di questo utente era vuoto');
251
+ define('TXT_WPSC_GOBACK', 'Indietro');
252
+ define('TXT_WPSC_THANKSAPPLIED', 'Grazie, le vostre modifiche sono state registrate.');
253
+ define('TXT_WPSC_FORM_FIELDS', 'Opzioni di Checkout');
254
+ define('TXT_WPSC_PAYMENTGATEWAY2', 'Metodo di Pagamento');
255
+ define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', 'Seleziona un Metodo di Pagamento');
256
+ define('TXT_WPSC_PAYMENTGATEWAYNOTE', '<strong>Nota:</strong> Questa versione Leggera del plugin e-Commerce ti da la possibilita\' di interfacciarti solamente con Paypal.<br /><br />Se stai cercando una soluzione "non-paypal" piu\' professionale allora abbiamo una <a href="http://www.instinct.co.nz/blogshop">versione Gold e-Commerce</a> disponibile che si interfaccia perfettamente con authorize.net, DPS (www.dps.co.nz), and paystation (www.paystation.co.nz).');
257
+ define('TXT_WPSC_URLSETTINGS', 'Settaggio URL');
258
+ define('TXT_WPSC_PRODUCTLISTURL', 'URL Lista Prodotto ');
259
+ define('TXT_WPSC_SHOPPINGCARTURL', 'URL Carrello');
260
+ define('TXT_WPSC_CHECKOUTURL', 'URL Checkout');
261
+ define('TXT_WPSC_TRANSACTIONDETAILSURL', 'URL Dettagli Transazione');
262
+ define('TXT_WPSC_PRESENTATIONSETTINGS', 'Settaggio Presentazione');
263
+ define('TXT_WPSC_CARTLOCATION', 'Posizione Carrello');
264
+ define('TXT_WPSC_SIDEBAR', 'Sidebar');
265
+ define('TXT_WPSC_PAGE', 'Pagina');
266
+ define('TXT_WPSC_WIDGET', 'Widget');
267
+ define('TXT_WPSC_NEEDTOENABLEWIDGET', 'Devi abilitare il plugin per widgets per utilizzarlo.');
268
+ define('TXT_WPSC_MANUAL', 'Manuale');
269
+ define('TXT_WPSC_SHOWCATEGORIESBRANDS', 'Mostra Categorie/Marchi');
270
+ define('TXT_WPSC_BOTH', 'Entrambe');
271
+ define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', 'Grandezza Standard Thumbnail Prodotto');
272
+ define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', 'Grandezza Standard Thumbnail Categoria');
273
+ define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', 'Mostra Spese di Spedizione');
274
+ define('TXT_WPSC_YES', 'Si');
275
+ define('TXT_WPSC_NO', 'No');
276
+ define('TXT_WPSC_SHOWSPECIALS', 'Mostra Offerte Speciali');
277
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Mostra Voto Prodotto');
278
+ define('TXT_WPSC_CURRENCYSETTINGS', 'Settaggio Valuta');
279
+ define('TXT_WPSC_GSTTAXRATE', 'IVA');
280
+ define('TXT_WPSC_CURRENCYTYPE', 'Tipo Valuta');
281
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Posizione Segno Valuta');
282
+ define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', 'Spese di Spedizione standard');
283
+ define('TXT_WPSC_ADMINISTRATIONSETTINGS', 'Settaggio Amministrazione');
284
+ define('TXT_WPSC_MAXDOWNLOADSPERFILE', 'Max download per file');
285
+ define('TXT_WPSC_PURCHASELOGEMAIL', 'Email Log Acquisto');
286
+ define('TXT_WPSC_REPLYEMAIL', 'Email di risposta');
287
+ define('TXT_WPSC_BRANDNOCAP', 'marchio');
288
+ define('TXT_WPSC_CATEGORYNOCAP', 'categoria');
289
+ define('TXT_WPSC_UDPATING', 'Aggiornamento');
290
+ define('TXT_WPSC_MOREDETAILS', 'Piu\' Dettagli');
291
+ define('TXT_WPSC_ADDTOCART', 'Aggiungi al carrello');
292
+ define('TXT_WPSC_AVGCUSTREVIEW', 'Voto medio Cliente');
293
+ define('TXT_WPSC_YOURRATING', 'Il tuo voto');
294
+ define('TXT_WPSC_RATING_SAVED', 'Salva');
295
+ define('TXT_WPSC_RATETHISITEM', 'Vota questo prodotto');
296
+ define('TXT_WPSC_PRODUCTSOLDOUT', 'Questo prodotto e\' terminato.');
297
+ define('TXT_WPSC_NOITEMSINTHIS', 'Non ci sono prodotti in questa');
298
+ define('TXT_WPSC_CATEGORYORBRAND', 'Categoria o Marchio');
299
+ define('TXT_WPSC_PLEASECHOOSEA', 'Scelgli un ');
300
+ define('TXT_WPSC_PRODUCT', 'Prodotto');
301
+ define('TXT_WPSC_QUANTITY', 'Quantita\'');
302
+ define('TXT_WPSC_QUANTITY_SHORT', 'Qta\''); //translation needed
303
+ define('TXT_WPSC_APPLY', 'Applica');
304
+ define('TXT_WPSC_MAKEPAYMENT', 'Procedi al pagamento');
305
+ define('TXT_WPSC_EMPTYSHOPPINGCART', 'Svuota il carrello');
306
+ define('TXT_WPSC_TOTALPRICE', 'Prezzo totale');
307
+ define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', 'Non ci sono prodotti nel carrello');
308
+ define('TXT_WPSC_EMAILMSG1', "Grazie. Il tuo ordine e' stato accettato ed i prodotti saranno spediti quanto prima. Se hai ordinato dei prodotti digitali, questi possono essere scaricatin usando il link in questa pagina.\n\r\n\rTutti i prezzi includono IVA e Spese di spedizione.\n\r\n\rHai ordinato questi prodotti:\n\r\n\r");
309
+ define('TXT_WPSC_EMAILMSG2', ".\n\rQuesti sono i prodotti ordinati:\n\r\n\r");
310
+ define('TXT_WPSC_CLICKTODOWNLOAD', 'Clicca qui per scaricare');
311
+ define('TXT_WPSC_DOWNLOAD', 'Scarica');
312
+ define('TXT_WPSC_YOURTRANSACTIONID', 'ID della tua transazione');
313
+ define('TXT_WPSC_TRANSACTIONID', 'ID della transazione');
314
+ define('TXT_WPSC_PURCHASERECEIPT', 'Ricevuta d\' acquisto');
315
+ define('TXT_WPSC_PURCHASEREPORT', 'Report Acquisto');
316
+ define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', 'La transazione e\' stata eseguita con successo');
317
+ define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', 'La transazione non e\' stata eseguita');
318
+ define('TXT_WPSC_GOBACKTOCHECKOUT', 'Torna alla conclusione ordine (checkout)');
319
+ define('TXT_WPSC_SPECIALPRICE', 'Prezzo Speciale');
320
+
321
+ define('TXT_WPSC_INSTRUCTIONS', '
322
+ Per completare l\'installazione devi creare le pagine Prodotto, Carrello, Checkout e Risultato Transazione, e poi nascondere le pagine Carrello, Checkout e Risultato Transazione in modo che non appaiano nella lista delle pagine disponibili.
323
+ <ul class=\'installation\'>
324
+ <li>Metti il contenuto del file zippato nella directory wp-content/plugins directory.</li>
325
+ <li>Attiva il plugin dalla pagina Plugin di Wordpress </li>
326
+ <li>Vai alla pagina Opzioni Gateway di Pagamento nella sezione "e-Commerce" e compila i campi con le informazioni necessarie. (ATTENZIONE: il Gateway di Pagamento standard e\' la SANDBOX di Paypal)</li>
327
+ <li>Crea alcune Categorie e Prodotti usando le pagine Categorie e Prodotti</li>
328
+ </ul>
329
+ Ti aspettavi di piu\'? E\' tutto qui!</p>
330
+ <h2>Cassettina per le mance</h2>
331
+ <p>Le donazioni non sono in alcun caso obbligatorio.<br /><br />
332
+ Tieni a mente che abbiamo impiegato un sacco di tempo nello scrivere, supportare e testare WP e-commerce. Quindi, se ti piace cio\' che vedi, e vuoi vedere un questo progetto sviluppato, mettiti una mano sulla coscienza ed aiuta il finanziamento di releases future lasciando un paio d\'euro nella cassettina per le mancie...</p>
333
+ <BR><MailScannerForm8311 form action="https://www.paypal.com/cgi-bin/webscr" method="post">
334
+ <input type="reset" name="cmd" value="_s-xclick">
335
+ <input type="reset" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">
336
+ <input type="reset" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAh/vca+S7Em1KNH3rhwBRD1h4c0DdQSgmknr8mKQU7KfG5jSYXu5DD9oriGfYSDg+99ZtljIwtqvefC0wKdEJ0yFMGinWp9zGw2Xvu1s4S+pcH5IGax9KQo1WosnzA99F04MHQnqkxcfpTXCG8VLSf/r/rx8+++vVsYWNYN717+DELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIHATWqFYRAjeAgaB2F/F90mbYo/5zGY/1AYtsQ35nRDtelewxW7iLHF41rzB3NidYEs2h+t/HS0MoGTBsAfVc94mxIzInI1pQt9n/hpF67XAr357KVwIoIOq52jDfDFlZV92BPMv00MHuj4LNtNq5I752I3SsNamhl1DfAqlWxnJsIibA1D3l8k67ccc04/JYjvsd89hYgf0lob7vQoZ8X5xNtlidM3qcAx4goIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDYwMzA5MjA0ODA4WjAjBgkqhkiG9w0BCQQxFgQUCBfIACnHn+V2COlj8DDv2MsFJRIwDQYJKoZIhvcNAQEBBQAEgYCMXnxnBNyUy7axfHh9EDVq7HFzTvTsGwtmAUVesOyRNGwESXpukrX4rDOMNdHbbVToxa98uIKJUJPiYGBcpcUywtpZG1ZiDvYxoWgDh4zXx4w1QcJ96OjUPkHQ3q0UWY+p9GRxl+buhyjK62BxU5I0UaKc0H3QuATQB5+lbZdlgw==-----END PKCS7-----">
337
+ </MailScannerForm8311>
338
+ <h2>Personalizzasione e suggerimenti</h2>
339
+ <p><strong>IVA</strong><br />In caso di necessita\' potete inserire una percentuale standard per l\'IVA nella pagina Opzioni del tab "e-Commerce".</p>
340
+ <p><strong>Log Acquisti Email</strong><br />Se inserisci un indirizzo email per l\'invio del Log Acquisti tramite email nella pagina Log Acquisto, questa sara\' la stessa che ricevera\' la notifica d\'acquisto ogniqualvota qualcosa verra\' venduto.</p>
341
+ <p><strong>Nascondere le pagine</strong><br />
342
+ Per prevenire che le pagine del Carrello, Checkout e Risultato delle Transazioni vengano visualizzate nella sidebar devi scoprire il loro ID. <br />
343
+ <br />Poi devi modificare il file relativo al tema che usi per visualizzare le pagine. <br />
344
+ <br />Questo normalmente si trova in sidebar.php, cercate una riga simile:<br />
345
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;/h2&gt;\' ); ?&gt;"<br />
346
+ <br />Modificate la riga a seconda degli ID pagina trovati, per esempio:<br />
347
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;h2&gt;&amp;exclude=3,4,5\'); ?&gt;"<br />
348
+ <br />La parola exclude fa in modo che le pagine vengano escluse dalla lista ed i numeri che seguno la parola exclude sono gli ID delle pagine da escludere.</p>
349
+ <p><strong>Aggiornamento da versione precedente</strong><br />
350
+ Nel caso di aggiornamento da versione precedente, dovrai disattivare e riattivare il plugin.</p>
351
+ <p><strong>Funzioni Immagini</strong><br />
352
+ Se il vostro server non ha la funzione PHP imagine installata, non sarete in grado di ridimensionare le immagini una volta caricate</p>
353
+ <p><strong>Permalinks</strong><br />
354
+ Stiamo cercando di fare il nostro meglio.
355
+ Non sono stato in grado di trovare un modo soddisfacente per passare le variabili richieste da pagina a pagina usando permalinks che non usino mod_rewrite, se sapete usare mod_rewrite, il plugin puo\' non funzionare con permalinks attivato.</p>
356
+ <p><strong>Javascript e Ajax </strong><br />
357
+ e-commerce lite utilizza Ajax, il carrello che l\'utilizzatore vede funziona anche senza Javascript, ma le pagine di Amministrazione (specificatamente le pagine Prodotti e Categorie) no. Per usare la sezione Amministrazione dovrete utilizzare un browser abbastanza aggiornato ed avere l\'opzione Javascript attivata. (Internet Explorer 6 o superiore, or Firefox 1.0 o superiore: versioni piu\' vecchie non sono state testate e potrebbero non funzionare)</p>
358
+ <p><strong>Contattaci</strong><br />
359
+ Website: <a href="http://www.instinct.co.nz">www.instinct.co.nz</a></p>
360
+ <p><strong>Credits:</strong><br />
361
+ Questo progetto utilizza una versione modificata di Lightbox: <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox can be obtained from here.</a>
362
+ </p>
363
+ ');
364
+
365
+
366
+ define('TXT_WPSC_SHIPPINGSETTINGS', 'Settaggio Spedizione');
367
+ define('TXT_WPSC_BASE_LOCAL', 'Spedizione base Locale');
368
+ define('TXT_WPSC_BASE_INTERNATIONAL', 'Spedizione base Internazionale');
369
+ define('TXT_WPSC_BASE_COUNTRY', 'Nazione Base');
370
+
371
+ define('TXT_WPSC_SHIPPING_DETAILS', 'Aggiungi Costi di Spedizione Addizionali'); // this needs updating
372
+ define('TXT_WPSC_LOCAL_PNP', 'Spese di Spedizione Locali'); // this needs updating
373
+ define('TXT_WPSC_INTERNATIONAL_PNP', 'Spese di Spedizione Internazionali'); // this needs updating
374
+ define('TXT_WPSC_SHIPPING_NOTE', 'Nota: Le spese di spedizione vengono applicate una volta per prodotto senza contare la quantita\' ordinata.');
375
+ define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Campo Nazione');
376
+ define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(Seleziona quale campo del form nella pagina di checkout vuoi utilizzare per specificare la nazione)');
377
+
378
+ define('TXT_WPSC_SHIPPING', 'Spedizione');
379
+ define('TXT_WPSC_EMAIL_FORM_FIELD', 'Campo Email');
380
+ define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(Seleziona quale campo del form nella pagina di checkout vuoi utilizzare per specificare l\'indirizzo email)');
381
+
382
+
383
+ define('TXT_WPSC_PRODUCTIMAGES', 'Immagini Prodotto');
384
+ define('TXT_WPSC_PRODUCTDOWNLOAD', 'Download Prodotto');
385
+ define('TXT_WPSC_SHOWTHUMBNAILS', 'Mostra Thumbnails');
386
+ define('TXT_WPSC_ADD_ADDITIONAL_IMAGE', 'Aggiungi Immagine Addizionale');
387
+ define('TXT_WPSC_DELETE_IMAGE', 'Cancella Immagine');
388
+ define('TXT_WPSC_GOLD_OPTIONS', 'Opzioni Carrello Gold');
389
+ define('TXT_WPSC_ACTIVATE_SETTINGS', 'Settaggio d\'attivazione');
390
+ define('TXT_WPSC_ACTIVATION_KEY', 'Chiave d\'attivazione');
391
+ define('TXT_WPSC_THANKSACTIVATED', 'Grazie, il Carrello GOld e\' stato attivato.');
392
+ define('TXT_WPSC_NOTACTIVATED', 'Spiacente la chiave API non e\' corretta.');
393
+ define('TXT_WPSC_DEFAULT', 'Standard');
394
+ define('TXT_WPSC_LIST', 'Lista');
395
+ define('TXT_WPSC_VISIBLE', 'Visibile');
396
+ define('TXT_WPSC_DELETE_PRODUCT', 'Cancella Prodotto');
397
+ define('TXT_WPSC_ADDITIONAL_IMAGE', 'Aggiungi Immagine Addizionale');
398
+ define('TXT_WPSC_GATEWAY_OPTIONS', 'Opzioni Gateway');
399
+ define('TXT_WPSC_SHIPPING_COUNTRY', 'Scegli la nazione di spedizione:');
400
+ define('TXT_WPSC_CONFIRM_TOTALS', 'Conferma il totale prima di procedere al pagamento:');
401
+ define('TXT_WPSC_CHECKOUT_FORM_FIELDS_DESCRIPTION', 'Qui puoi personalizzare i form da visualizzare nella pagina di checkout. La pagina di checkout e\' quella dove raccogli le informazioni importanti e necessarie riguardo la corretta evasione dell\'ordine che verrano visualizzate nel Log d\'acquisto, per esempio il nome e l\' indirizzo dell\'acquirente...');
402
+ define('TXT_WPSC_PAYMENT_OPTIONS', 'Opzioni Pagamento');
403
+ define('TXT_WPSC_PAYMENT_DESCRIPTION', 'Scegli quale opzione di pagamento rendere disponibile nella pagina di checkout. L\'opzione standard e\' la carta di credito ma esiste l\'opzione di pagamento manuale, nel qual caso devi selezionare l\'opzione carta di credito + pagamento manuale.');
404
+
405
+ define('TXT_WPSC_DEFAULT_GATEWAY_ONLY', ' solo');
406
+ define('TXT_WPSC_PLUS_MANUAL_PAYMENT', ' piu\' opzione di pagamento manuale');
407
+ define('TXT_WPSC_PAYMENT_METHOD', 'Metodo di pagamento');
408
+ define('TXT_WPSC_PAY_USING', 'Paga tramite');
409
+ define('TXT_WPSC_PAY_MANUALLY', 'Paga tramite Bonifico Bancario o Postepay');
410
+ define('TXT_WPSC_CREDIT_CARD', 'Carta di Credito');
411
+ define('TXT_WPSC_ADJUSTABLE_QUANTITY', 'Mostra la quantita\' in modo lista');
412
+ define('TXT_WPSC_RSS_FEED_HEADER', 'Ricevi i tuoi Ordini');
413
+ define('TXT_WPSC_RSS_FEED_LINK', 'Ricevi i feed RSS');
414
+ define('TXT_WPSC_RSS_FEED_TEXT', 'dei tuoi ordini');
415
+ define('TXT_WPSC_INITIAL_SETUP', 'Create le opzioni di default.');
416
+ define('TXT_WPSC_PLUGIN_NEWS_HEADER', 'News sui Plugin');
417
+
418
+ define('TXT_WPSC_PLUGIN_NEWS', '
419
+
420
+ The <a href="http://instinct.co.nz/blogshop/products-page/" target="_blank">WP DropShop Module</a> is the latest and most cutting edge shopping cart available online. Coupled with Grid View then your site will be the talk of street! <br/><br/> //needs translating
421
+
422
+ ');
423
+
424
+ define('TXT_WPSC_POWERED_BY', 'This shop is powered by ');
425
+ define('TXT_WPSC_NO_PURCHASES', 'Non c\'e\' stato ancora nessun acquisto.');
426
+
427
+
428
+ define('TXT_WPSC_DELIVERY_ADDRESS', 'Indirizzo di Spedizione');
429
+ define('TXT_WPSC_DELIVERY_CITY', 'Citta\' di Spedizione');
430
+ define('TXT_WPSC_DELIVERY_COUNTRY', 'Nazione di Spedizione');
431
+ define('TXT_WPSC_MP3_SETTINGS', 'Settaggio MP3');
432
+ define('TXT_WPSC_MP3_SETTINGS_DESCRIPTION', 'Per creare dei clip MP3 da 30 secondi, e\' necessario installare questo plugin <a href=\'http://sox.sourceforge.net/\'>SoX</a> compilato con supporto MP3, inserire qui il path per SoX.');
433
+ define('TXT_WPSC_SOX_PATH', 'SoX Path');
434
+ define('TXT_WPSC_PREVIEW', 'Anteprima');
435
+ define('TXT_WPSC_DOWNLOAD_CSV', 'Scarica CSV');
436
+ define('TXT_WPSC_PREVIEW_FILE', 'Anteprima File');
437
+ define('TXT_WPSC_REPLACE_PRODUCT', 'Cambia Prodotto');
438
+ define('TXT_WPSC_TOTALSHIPPING', 'Totale Spese di Spedizione');
439
+ define('TXT_WPSC_DISPLAY_FRONT_PAGE', 'Mostra in Front page');
440
+ define('TXT_WPSC_SEARCH_FOR', 'Ricerca');
441
+ define('TXT_WPSC_YOUR_SEARCH_FOR', 'Hai cercato');
442
+ define('TXT_WPSC_RETURNED_NO_RESULTS', 'Nessun risultato.');
443
+ define('TXT_WPSC_POSTAGE', 'Spese di spedizione');
444
+ define('TXT_WPSC_SUBTOTAL', 'Totale parziale');
445
+
446
+ //everything under here has been translated on 11 Jan 08 by Luca www.tripluca.com, info@tripluca.com
447
+
448
+ define('TXT_WPSC_PLEASEENTERAVALID', 'Inserisci un valore valido.');
449
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Inserisci il nome.');
450
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Inserisci il cognome.');
451
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Inserisci un indirizzo email valido.');
452
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Completa l\'indirizzo.');
453
+ define('TXT_WPSC_PLEASEENTERAVALIDCITY', 'Inserisci la citt�.');
454
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Inserisci un numero di telefono valido.');
455
+ define('TXT_WPSC_PLEASESELECTCOUNTRY', 'Scegli il tuo paese dalla lista.');
456
+ define('TXT_WPSC_PLEASEAGREETERMSANDCONDITIONS', 'Accetta le condizioni, altrimenti non possiamo processare l\'ordine.');
457
+ define('TXT_WPSC_POSITION', 'Posizione');
458
+
459
+ define('TXT_WPSC_DELIVERY_REGION', 'Regione di consegna');
460
+
461
+
462
+ define('TXT_WPSC_GENERAL_SETTINGS', 'Impostazioni generali.');
463
+ define('TXT_WPSC_TAX_SETTINGS', 'Impostazioni fiscali.');
464
+ define('TXT_WPSC_POSTAGE_AND_TAX', 'Tassa e spedizione.');
465
+ define('TXT_WPSC_GRID', 'Griglia');
466
+ define('TXT_WPSC_CANT_MOVE_CATEGORY', 'Non puoi spostare una Categoria con SottoCategorie.');
467
+ define('TXT_WPSC_SURETODELETECATEGORY', 'Sei sicuro di voler cancellare questa Categoria? Eventuali sottocategorie verranno anche cancellate.');
468
+ define('TXT_WPSC_VARIATION', 'Variazione');
469
+ define('TXT_WPSC_OVER_TWO_VARIATIONS', 'Variazione Stock e Prezzo non funziona se hai pi� di due variazioni.');
470
+ define('TXT_WPSC_PRICE_AND_STOCK_CONTROL', 'Controllo Stock e Prezzo') ;
471
+
472
+ // pe.{
473
+ define('TXT_WPSC_CATSBRANDSLOCATION', 'Categoria &amp; Posizione Marchi');
474
+ define('TXT_WPSC_DESCITEMSEPARATOR', ' : ');
475
+ define('TXT_WPSC_SEARCHITEMSEPARATOR', ' : ');
476
+ define('TXT_WPSC_SINGLE_SHIPPING_COUNTRY', 'Paese di Consegna:');
477
+ define('TXT_WPSC_ADD_ANOTHER_VARIATION', 'Aggiungi una variazione');
478
+ // }.pe
479
+ define('TXT_WPSC_PRODUCT_CATEGORIES', 'Categorie di prodotti');
480
+ define('TXT_WPSC_THANKS_DELETED', 'Grazie, il log acquisti � stato cancellato');
481
+ define('TXT_WPSC_PRODUCT_IMAGE_PREVIEW', 'Immagine del prodotto');
482
+ define('TXT_WPSC_PRODUCT_THUMBNAIL_PREVIEW', 'Anteprima del prodotto');
483
+ define('TXT_WPSC_REMOVE_LOG', 'Cancella questo record dal log acquisti');
484
+ define('TXT_WPSC_CATSANDBRAND', 'Categorie &amp; Marchi');
485
+ define('TXT_WPSC_GOLD_DROPSHOP', 'DropShop');
486
+ define('TXT_WPSC_NEEDTOENABLEDROPSHOP', 'YDevi installare le estensioni Gold e DropShop per poterlo utilizzare');
487
+ define('TXT_WPSC_DRAG_ITEM_HERE', 'Trascina gli articoli qui per aggiungerli al carrello.');
488
+ define('TXT_WPSC_SHOWCATEGORYTHUMBNAILS', 'Mostra anteprima categoria');
489
+ define('TXT_WPSC_SHOPPING_CART', 'Carrello acquisti');
490
+ define('TXT_WPSC_SHOW_SLIDING_CART', 'Mostro il Carrello Sliding');
491
+ define('TXT_WPSC_PREVIEW_FILE', 'Carica Anteprima');
492
+ define('TXT_WPSC_PREVIEW_FILE_NOTE', 'Nota: se no carichi un file di anteprima e il tuo server ha il sox compilato con il supporto MP3, un file di anteprima verr� creato automaticamente.');
493
+ define('TXT_WPSC_PURCHASE_NUMBER', 'Acquisto N.');
494
+ define('TXT_WPSC_FILTER_ORDER', 'Filtra gli ordini');
495
+ define('TXT_WPSC_SHOW_SEARCH', 'Mostra la ricerca');
496
+ define('TXT_WPSC_LOG_CURRENT_MONTH', 'Mostra i risultati del mese in corso');
497
+ define('TXT_WPSC_LOG_PAST_THREE_MONTHS', 'Mostra i risultati degli ultimi 3 mesi');
498
+ define('TXT_WPSC_LOG_ALL', 'Mostra tutti i risultati');
499
+ define('TXT_SHOW_IMAGES_ONLY', 'Mostra solo le immagini');
500
+ define('TXT_WPSC_SHOW_GALLERY', 'Mostra la galleria di anteprime');
501
+ define('TXT_WPSC_PLEASE_SELECT', 'Seleziona');
502
+ define('TXT_WPSC_TXN_ID', 'Numero Transazione');
503
+ define('TXT_WPSC_SINGLE_PRODUCTTHUMBNAILSIZE', 'Dimensioni immagine singolo prodotto');
504
+ define('TXT_WPSC_RESET', 'Reset');
505
+ define('TXT_WPSC_ORDER_PENDING', 'Grazie, il tuo ordine � in coda, ti manderemo un\'email alla realizzazione all\'evasionne dello stesso.');
506
+ define('TXT_WPSC_ORDER_FAILED', 'Ci dispiace, il tuo ordine non � stato accettato. La ragione pi� probabile � la mancanza di fondi necessari');
507
+ // Adrian - added for the options I added
508
+ define('TXT_WPSC_SHOW_CATEGORY_COUNT', 'Mostra il numero di prodotti per categoria');
509
+ define('TXT_WPSC_CATSPRODS_DISPLAY_TYPE', 'Mostra Categorie/Prodotti');
510
+ define('TXT_WPSC_CATSPRODS_TYPE_CATONLY', 'Solo Categoria (mostra tutti i prodotti)');
511
+ define('TXT_WPSC_CATSPRODS_TYPE_SLIDEPRODS', 'Categories Sliding (1 prodotto per pagina)');
512
+ // Adrian - END new added options
513
+ define('TXT_WPSC_ORDER_DETAILS', 'Dettagli dell\'ordine');
514
+ define('TXT_WPSC_SAVE_PROFILE', 'Salva il Profillo');
515
+ define('TXT_WPSC_USERACCOUNTURL', 'Indirizzo URL dell\'utente');
516
+ define('TXT_WPSC_MUST_BE_LOGGED_IN', 'Devi essere loggato per usare questa pagina. Us il formulario qui sotto per loggarti.');
517
+ define('TXT_WPSC_YOUR_ACCOUNT', 'Il Tuo Account');
518
+
519
+ define('TXT_WPSC_YOU_JUST_ADDED', 'Hai aggiunto "[product_name]" al tuo carrello.');
520
+ define('TXT_WPSC_SORRY_NONE_LEFT', 'Il prodotto "[product_name]" non � disponibile in magazzino.');
521
+
522
+ define('TXT_WPSC_CONTINUE_SHOPPING', 'Continua gli acquisti');
523
+ define('TXT_WPSC_ITEM_GONE_OUT_OF_STOCK', 'Sembra che il prodotto non sia disponibile a magazzino. Tora indietro e modifica l\' ordine');
524
+ define('TXT_WPSC_DISPLAY_FANCY_NOTIFICATIONS', 'Mostra Fancy Purchase Notifications (Notifica speciale di acquisto)');
525
+ define('TXT_WPSC_IF_USER_CHECKOUT', 'Se hai un account');
526
+ define('TXT_WPSC_LOG_IN', 'loggati.');
527
+ define('TXT_WPSC_IS_DONATION', 'si tratta di una donazione?');
528
+ define('TXT_WPSC_DONATION', 'Donazione');
529
+ define('TXT_WPSC_DONATION_LC', 'donazione');
530
+ define('TXT_WPSC_DONATION_SHIPPING', 'Niente spedizione per donazioni');
531
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT_URL', 'Nome del file del prodotto');
532
+ define('TXT_WPSC_FILETOBEPRODUCTURL', 'Nota: carica il file su wp-shopping-cart/files ed inserisci il nome del file qui.');
533
+ define('TXT_WPSC_DONATIONS', 'Donazioni');
534
+ define('TXT_WPSC_WRONG_FILE_PERMS', 'Queste cartelle non sono scrivibili: :directory: non potrai caricare nessuna immagine o file. Devi cambiare i permessi di queste cartelle e renderle scrivibili.');
535
+ define('TXT_WPSC_RESET_API', 'Reset API key');
536
+ define('TXT_WPSC_PRODUCTS_PER_PAGE', 'Prodotti per pagina');
537
+ define('TXT_WPSC_OPTION_PRODUCTS_PER_PAGE', 'numero di prodotti da mostrare in una pagina');
538
+ define('TXT_WPSC_PAGE_NUMBER_POSITION', 'Posizione del Numero della Pagina');
539
+
540
+
541
+ define('TXT_WPSC_YOUR_BILLING_CONTACT_DETAILS', '1. Dati di Contatto e Fatturazione');
542
+ define('TXT_WPSC_DELIVER_TO_A_FRIEND', '2. Dati di Spedizione');
543
+ define('TXT_WPSC_E_COMMERCE', 'e-Commerce');
544
+ define('TXT_WPSC_THANKS_SAVED', 'Grazie, le tue modifiche sono state cambiate.');
545
+ define('TXT_WPSC_REGISTER', 'Registrati');
546
+ define('TXT_WPSC_TAX', 'Tassa');
547
+
548
+ define('TXT_WPSC_USE_SHIPPING', 'Usa Spedizione');
549
+ define('TXT_WPSC_USE_SHIPPING_DESCRIPTION', 'Se vendi solo prodotti digitali, disabilita la spedizione.');
550
+
551
+ define('TXT_WPSC_PAGESETTINGS', 'Impostazioni Pagination (navigazione tra pagine)');
552
+ define('TXT_WPSC_USE_PAGINATION', 'Usa Pagination (navigazione tra pagine)');
553
+ define('TXT_WPSC_ADD_PRODUCT', 'Aggiungi prodotto');
554
+ define('TXT_WPSC_EDIT_PRODUCT', 'Modifica prodotto');
555
+ define('TXT_WPSC_UPDATE_PAGE_URLS', 'Aggiorna gli indirizzi URL delle pagine');
556
+ define('TXT_WPSC_VARIATIONS_AND_SPECIALS_DONT_MIX', 'Nota: attualmente non puoi mettere un prezzo speciale a un prodotto con variazioni');
557
+ define('TXT_WPSC_PRODUCT_SPECIALS', 'Offerte Prodotto');
558
+ define('TXT_WPSC_SHOW_SHARE_THIS', 'Mostra e condividit (Social Bookmarks)');
559
+ define('TXT_WPSC_SHOW_NO_PRODUCT', 'Nessun prodotto');
560
+ define('TXT_WPSC_CHOOSE_DOWNLOADABLE_PRODUCT', 'Scegli un file scaricabile per questo prodotto:');
561
+ define('TXT_WPSC_PLEASECHOOSE', 'Scegli');
562
+
563
+ define('TXT_WPSC_VARIATION_CONTROL', 'Controllo Variazioni');
564
+ define('TXT_WPSC_VARIATION_GRID_CONTROL_SINGLE', ':variation1: Controllo');
565
+ define('TXT_WPSC_VARIATION_GRID_CONTROL_PAIR', ':variation1: and :variation2: Controllo');
566
+ define('TXT_WPSC_VIEW_PREVIEW_CLIP', 'Vedi un Clip di anteprima');
567
+ define('TXT_WPSC_REQUIRE_REGISTRATION', 'Richiedi Registrazione');
568
+ define('TXT_WPSC_PLEASE_LOGIN', 'Fai login o registrati per acquistare');
569
+ define('TXT_WPSC_IF_JUST_REGISTERED', 'Se ti sei registrato/a, verifica la tua mail per procedere con l\'acquisto');
570
+ define('TXT_WPSC_SELECT_THEME', 'Seleziona il Tema');
571
+ define('TXT_WPSC_NEW_ORDER_PENDING_SUBJECT', 'Nuovo ordine in attesa');
572
+ define('TXT_WPSC_NEW_ORDER_PENDING_BODY', "C'� un nuovo ordine in attesa: \n\r ");
573
+ define('TXT_WPSC_NO_SHIPPING', "Non usare spedizione");
574
+ define('TXT_WPSC_DEFAULT_MEMBERS_ONLY', "Deve essere loggato/a per usare questa pagina");
575
+ define('TXT_WPSC_MEMBERSHIP_CONTROL', "Controllo Membri");
576
+ define('TXT_WPSC_PRODUCT_MEMBER_STATUS', "Questo prodotto � una sottoscrizione?");
577
+ define('TXT_WPSC_PRODUCT_MEMBERSHIP_LENGTH', "Durata della Sottoscrizione");
578
+ define('TXT_WPSC_DAYS', "Giorni");
579
+ define('TXT_WPSC_MONTHS', "Mesi");
580
+ define('TXT_WPSC_YEARS', "Anni");
581
+ define('TXT_WPSC_MEMBERS_SUBSCRIPTION_ENDED', "La tua sottoscrizione � terminata.");
582
+ define('TXT_WPSC_ACTIVATE_SETTINGS_MEMBERS', 'Settaggi di attivazione: Modulo Membri');
583
+ define('TXT_WPSC_GOLD_CART', 'Gold Cart');
584
+
585
+
586
+ ?>
wp-shopping-cart/languages/JP_jp.php ADDED
@@ -0,0 +1,415 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ This is a language file for the WP Shopping Cart plugin version 2.6.5 beta
4
+ */
5
+
6
+ define('TXT_WPSC_IMAGESIZEINFO', /*'Note: if this is blank, the image will not be resized'*/'?:?????????????????????');
7
+ define('TXT_WPSC_RECEIVED', /*'Received'*/'??????');
8
+ define('TXT_WPSC_PROCESSING', /*'Processing'*/'???');
9
+ define('TXT_WPSC_PROCESSED', /*'Processed'*/'??????');
10
+ define('TXT_WPSC_ECOMMERCE', /*'e-Commerce'*/'e-Commerce');
11
+ define('TXT_WPSC_OPTIONS', /*'Options'*/'?????');
12
+ define('TXT_WPSC_ADDPRODUCTS', /*'Add Products'*/'???????');
13
+ define('TXT_WPSC_SENDSMS', /*'Send SMS'*/'SMS???');
14
+ define('TXT_WPSC_PRODUCTS', /*'Products'*/'??');
15
+ define('TXT_WPSC_ADDCATEGORY', /*'Add Category'*/'????????');
16
+ define('TXT_WPSC_CATEGORIES', /*'Categories'*/'?????');
17
+ define('TXT_WPSC_BRANDS', /*'Shapes'*/'??');
18
+ define('TXT_WPSC_VARIATIONS', /*'Variations'*/'??');
19
+ define('TXT_WPSC_PURCHASELOG', /*'Purchase Log'*/'????');
20
+ define('TXT_WPSC_TODAYS_ORDERS', /*'Todays Orders'*/'?????');
21
+ define('TXT_WPSC_OLDER_ORDERS', /*'Older Orders'*/'???????');
22
+ define('TXT_WPSC_TOTAL_THIS_MONTH', /*'Total Money Earnt this Month'*/'?????');
23
+ define('TXT_WPSC_MONTHLY_REPORT', /*'Six Monthly Report'*/'??????');
24
+ define('TXT_WPSC_TOTAL_INCOME', /*'Total Income'*/'?????');
25
+ define('TXT_WPSC_ACCEPTED_PAYMENTS', /*'(accepted payments only)'*/'(?????????)');
26
+ define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', /*'Payment Gateway Options'*/'???????');
27
+ define('TXT_WPSC_HELPINSTALLATION', /*'Help/Installation'*/'???/??');
28
+ define('TXT_WPSC_EXAMPLECATEGORY', /*'Example category'*/'(?)?????');
29
+ define('TXT_WPSC_EXAMPLEDETAILS', /*'Example details'*/'(?)??');
30
+ define('TXT_WPSC_EXAMPLEBRAND', /*'Example Shape'*/'(?)??');
31
+ define('TXT_WPSC_PRODUCTIMAGEWIDTH', /*'product image width'*/'????-??');
32
+ define('TXT_WPSC_PRODUCTIMAGEHEIGHT', /*'product image height'*/'????-??');
33
+ define('TXT_WPSC_CATEGORYIMAGEWIDTH', /*'category image width'*/'???????-??');
34
+ define('TXT_WPSC_CATEGORYIMAGEHEIGHT', /*'category image height'*/'???????-??');
35
+ define('TXT_WPSC_PRODUCTLISTURL', /*'the location of the product list'*/'?????????');
36
+ define('TXT_WPSC_SHOPPINGCARTURL', /*'the location of the shopping cart'*/'?????????');
37
+ define('TXT_WPSC_CHECKOUTURL', /*'the location of the shopping cart'*/'???????');
38
+ define('TXT_WPSC_TRANSACTURL', /*'the location of the transaction detail page'*/'????????');
39
+ define('TXT_WPSC_PAYMENTGATEWAY', /*'the payment gateway to use'*/'????');
40
+ define('TXT_WPSC_CARTLOCATION', /*'cart location'*/'??????');
41
+ define('TXT_WPSC_SHOWCATEGORYBRANDS', /*'display categories or shapes or both'*/'????????????????????');
42
+ define('TXT_WPSC_CURRENCYTYPE', /*'the currency type'*/'??????');
43
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', /*'the currency sign location'*/'????????');
44
+ define('TXT_WPSC_GSTRATE', /*'the GST rate'*/'??');
45
+ define('TXT_WPSC_MAXDOWNLOADS', /*'the download limit'*/'?????????');
46
+ define('TXT_WPSC_DISPLAYPNP', /*'display or hide postage and packaging'*/'???????????/???');
47
+ define('TXT_WPSC_DISPLAYSPECIALS', /*'display or hide specials on the sidebar'*/'????????/???');
48
+ define('TXT_WPSC_POSTAGEAND_PACKAGING', /*'default postage and packaging'*/'????????');
49
+ define('TXT_WPSC_PURCHLOGEMAIL', /*'email address that purchase log is sent to'*/'?????????e-mail????');
50
+ define('TXT_WPSC_RETURNEMAIL', /*'email address that purchase reports are sent from'*/'??????????e-mail????');
51
+ define('TXT_WPSC_TERMSANDCONDITIONS', /*'the checkout terms and conditions'*/'????');
52
+ define('TXT_WPSC_DEFAULTBRAND', /*'Default Shape'*/'????????');
53
+ define('TXT_WPSC_DEFAULTCATEGORY', /*'Default Category'*/'???????????');
54
+ define('TXT_WPSC_PAYPALBUSINESS', /*'paypal business'*/'PAYPAL');
55
+ define('TXT_WPSC_PAYPALURL', /*'paypal url'*/'PAYPAL????');
56
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', /*'Show Product Ratings'*/'????????');
57
+ define('TXT_WPSC_PRODUCTSPAGE', /*'Products Page'*/'??????');
58
+ define('TXT_WPSC_CHECKOUT', /*'Checkout'*/'???');
59
+ define('TXT_WPSC_ENTERDETAILS', /*'Enter Your Details'*/'??????????');
60
+ define('TXT_WPSC_TRANSACTIONRESULTS', /*'Transaction Results'*/'????');
61
+ define('TXT_WPSC_SELECTACATEGORY', /*'Select a Category'*/'????????');
62
+ define('TXT_WPSC_SELECTABRAND', /*'Select a Shape'*/'?????');
63
+ define('TXT_WPSC_PRODUCTNAME', /*'Product Name'*/'???');
64
+ define('TXT_WPSC_PRODUCTDESCRIPTION', /*'Product Description'*/'?????');
65
+ define('TXT_WPSC_ADDITIONALDESCRIPTION', /*'Additional Description'*/'????');
66
+ define('TXT_WPSC_PRICE', /*'Price'*/'??');
67
+ define('TXT_WPSC_TAXALREADYINCLUDED', /*'Tax already included'*/'???');
68
+ define('TXT_WPSC_SPECIAL', /*'Special'*/'??');
69
+ define('TXT_WPSC_POSTAGEPACKAGING', /*'Postage &amp; Packaging'*/'?????');
70
+ define('TXT_WPSC_PRODUCTSTOCK', /*'Product Stock'*/'??');
71
+ define('TXT_WPSC_UNTICKBOX', /*'Note: Untick box to clear value'*/'?:Untick??????');
72
+ define('TXT_WPSC_CATEGORY', /*'Category'*/'?????');
73
+ define('TXT_WPSC_BRAND', /*'Shape'*/'??');
74
+ define('TXT_WPSC_PRODUCT_VARS', /*'Product Variations'*/'?????');
75
+ define('TXT_WPSC_ADD_VAR', /*'Add Variation Set'*/'?????');
76
+ define('TXT_WPSC_ADD_VAR', /*'Add Variation Set'*/'?????');
77
+ define('TXT_WPSC_EDIT_VAR', /*'Edit Variation Set'*/'?????');
78
+ define('TXT_WPSC_SELECTAVARIATION', /*'Select a Variation'*/'?????');
79
+ define('TXT_WPSC_NEW_VARIATION', /*'Create a new Variation'*/'????????');
80
+
81
+ define('TXT_WPSC_PRODUCTATT', /*'Product Attachments'*/'???');
82
+ define('TXT_WPSC_DOWNLOADABLEPRODUCT', /*'Downloadable Product'*/'???????????');
83
+ define('TXT_WPSC_FILETOBEPRODUCT',/* 'Note: if this is filled in, the file uploaded will be the product to be purchased.'*/'?:????????????????????????');
84
+ define('TXT_WPSC_RESIZEIMAGE', /*'Resize Image'*/'????????');
85
+ define('TXT_WPSC_DONOTRESIZEIMAGE', /*'do not resize image.'*/'?????????????');
86
+ define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', /*'use default height and width'*/'????????????');
87
+ define('TXT_WPSC_USE', /*'use'*/'??');
88
+ define('TXT_WPSC_PXHEIGHTBY', /*'px height by'*/'??:????');
89
+ define('TXT_WPSC_PXWIDTH', /*'px width.'*/'??:????');
90
+ define('TXT_WPSC_PREVIEW', /*'Preview'*/'?????');
91
+ define('TXT_WPSC_UPLOADNEWIMAGE', /*'Upload New Image'*/'????????????');
92
+ define('TXT_WPSC_DELETEIMAGE', /*'Delete Image'*/'?????');
93
+ define('TXT_WPSC_EDIT', /*'Edit'*/'??');
94
+ define('TXT_WPSC_DELETE', /*'Delete'*/'??');
95
+ define('TXT_WPSC_REMOVE', /*'Remove'*/'??');
96
+ define('TXT_WPSC_NAME', /*'Name'*/'??');
97
+ define('TXT_WPSC_DESCRIPTION', /*'Description'*/'??');
98
+ define('TXT_WPSC_CATEGORY_PARENT', /*'Category Parent'*/'???????');
99
+ define('TXT_WPSC_IMAGE', /*'Image'*/'??');
100
+ define('TXT_WPSC_HEIGHT', /*'Height'*/'??');
101
+ define('TXT_WPSC_WIDTH', /*'Width'*/'??');
102
+ define('TXT_WPSC_PLEASEENTERAVALIDNAME', /*'Please enter a valid name'*/'???????????');
103
+ define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', /*'Please enter a valid surname'*/'???????????');
104
+ define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', /*'Please enter a valid email address'*/'e-mail?????????????');
105
+ define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', /*'Please enter a valid address'*/'???????????');
106
+ define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', /*'Please enter a valid phone number'*/'?????????????');
107
+ define('TXT_WPSC_TERMSANDCONDITIONS', /*'You have not agreed to the terms and conditions'*/'???????????????');
108
+ define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', /*'There is nothing in your shopping cart'*/'?????????');
109
+ define('TXT_WPSC_SPECIALS', /*'Specials'*/'??');
110
+ define('TXT_WPSC_BUY', /*'Buy'*/'??');
111
+ define('TXT_WPSC_SHOPPINGCART', /*'Shopping Cart'*/'?????');
112
+ define('TXT_WPSC_NUMBEROFITEMS', /*'???'*/'');
113
+ define('TXT_WPSC_NOMOREAVAILABLE', /*'There are no more of that item available.'*/'??????????????');
114
+ define('TXT_WPSC_EMPTYYOURCART', /*'Empty your cart'*/'??????????');
115
+ define('TXT_WPSC_GOTOCHECKOUT', /*'Go to Checkout'*/'????');
116
+ define('TXT_WPSC_CONTINUESHOPPING', /*'Continue shopping'*/'???????');
117
+ define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', /*'Your shopping cart is empty'*/'?????????');
118
+ define('TXT_WPSC_VISITTHESHOP', /*'Visit the shop'*/'?????');
119
+ define('TXT_WPSC_PAGES', /*'Pages'*/'???');
120
+ define('TXT_WPSC_OUTOF', /*'Out of'*/'??');
121
+ define('TXT_WPSC_VOTES', /*'votes.'*/'??');
122
+ define('TXT_WPSC_CLICKSTARSTORATE', /*'Click stars to rate'*/'????????????????');
123
+ define('TXT_WPSC_AVERAGERATINGOF', /*'Average rating of'*/'?????');
124
+ define('TXT_WPSC_YOURVOTE', /*'Your vote'*/'??????');
125
+ define('TXT_WPSC_AVERAGEVOTE', /*'Average vote'*/'?????');
126
+ define('TXT_WPSC_YOUHAVEVOTED', /*'You have voted'*/'??????????');
127
+ define('TXT_WPSC_NOVOTES', /*'No Votes'*/'????????');
128
+ define('TXT_WPSC_1VOTE', /*'1 Vote'*/'1?');
129
+ define('TXT_WPSC_VOTES2', /*'Votes'*/'?');
130
+ define('TXT_WPSC_PERSONGIVEN', /*'person has given this image'*/'????????????');
131
+ define('TXT_WPSC_PERSONGIVEN2', /*'stars.'*/'??');
132
+ define('TXT_WPSC_PEOPLEGIVEN', /*'people have given this image'*/'????????????');
133
+ define('TXT_WPSC_PEOPLEGIVEN2', /*'stars.'*/'??');
134
+ define('TXT_WPSC_ITEMHASBEENADDED', /*'The item has been added'*/'??????????');
135
+ define('TXT_WPSC_ITEMHASNOTBEENADDED', /*'The item has not been added'*/'?????????????');
136
+ define('TXT_WPSC_ADDNEWCATEGORY', /*'Add New Category'*/'???????????');
137
+ define('TXT_WPSC_SUBMIT', /*'Submit'*/'??');
138
+ define('TXT_WPSC_SELECTAVALIDCATEGORY', /*'Please select a valid Category'*/'??????????????');
139
+ define('TXT_WPSC_PRODUCTNAME', /*'Product Name'*/'???');
140
+ define('TXT_WPSC_PRODUCTDESCRIPTION', /*'Product Description'*/'????');
141
+ define('TXT_WPSC_ADDNEWPRODUCT', /*'Add Product'*/'?????');
142
+ define('TXT_WPSC_PRODUCTQUANTITY', /*'Productquantity'*/'???');
143
+ define('TXT_WPSC_PRODUCTIMAGE', /*'Product Image'*/'????');
144
+ define('TXT_WPSC_PRODUCTPRICE', /*'Product Price'*/'????');
145
+ define('TXT_WPSC_NOTAX', /*'No tax'*/'???');
146
+ define('TXT_WPSC_ABOUT', /*'About'*/'??');
147
+ define('TXT_WPSC_ABOUTCONTENT', /*'Welcome to the e-commerce panel. <br /><br /><strong>Note:</strong> on some setups, the shopping cart may empty on every page load, if this happens, you will have to add this line:<br /><br />session_start();<br /><br />to the index.php file in the base wordpress directory.<br />'*/'e-commerce?????????? <br /><br /><strong>?:</strong> ???????????????? ?????????????????????????????????????????????:<br /><br />session_start();<br /><br />to the index.php file in the base wordpress directory.<br />');
148
+ define('TXT_WPSC_CONTACTDETAILS', /*'Please enter your contact details:'*/'???????????????');
149
+ define('TXT_WPSC_CREDITCARDHANDY', /*'Note, Once you press submit, you will need to have your Credit card handy.'*/'?:??????????????????????');
150
+ define('TXT_WPSC_ASTERISK', /*'Fields marked with an asterisk must be filled in.'*/'*???????????????????');
151
+ define('TXT_WPSC_FIRSTNAME', /*'First Name'*/'??');
152
+ define('TXT_WPSC_LASTNAME', /*'Last Name'*/'??');
153
+ define('TXT_WPSC_EMAIL', /*'Email'*/'e-mail????');
154
+ define('TXT_WPSC_ADDRESS', /*'Address'*/'??');
155
+ define('TXT_WPSC_PHONE', /*'Phone'*/'????');
156
+ define('TXT_WPSC_TERMS1', /*'I agree to The '*/'?????');
157
+ define('TXT_WPSC_TERMS2', /*'Terms and Conditions'*/'??');
158
+ define('TXT_WPSC_MAKEPURCHASE', /*'Make Purchase'*/'?????????');
159
+ define('TXT_WPSC_BUYPRODUCTS', /*'Please buy some products before using this page'*/'?????????????????????');
160
+ define('TXT_WPSC_BRANDHASBEENEDITED', /*'The shape has been edited.'*/'????????????');
161
+ define('TXT_WPSC_SURETODELETEPRODUCT', /*'Are you sure you want to delete this product?'*/'????????????????');
162
+ define('TXT_WPSC_ADDBRAND', /*'Add Shape'*/'?????');
163
+ define('TXT_WPSC_DISPLAYBRANDS', /*'Display Shapes'*/'?????');
164
+ define('TXT_WPSC_EDITBRAND', /*'Edit Shape'*/'?????');
165
+ define('TXT_WPSC_ADD', /*'Add'*/'??');
166
+ define('TXT_WPSC_CATEGORYHASBEENEDITED', /*'The category has been edited.'*/'????????????????');
167
+ define('TXT_WPSC_DISPLAYCATEGORIES', /*'Display Categories'*/'????????');
168
+ define('TXT_WPSC_ADDCATEGORY', /*'Add Category'*/'????????');
169
+ define('TXT_WPSC_EDITCATEGORY', /*'Edit Category'*/'????????');
170
+ define('TXT_WPSC_ALLCATEGORIES', /*'All Categories'*/'????????');
171
+
172
+ define('TXT_WPSC_DISPLAYVARIATIONS', /*'Display Variations'*/'?????');
173
+ define('TXT_WPSC_ADDVARIATION', /*'Add Variation Set'*/'?????');
174
+ define('TXT_WPSC_EDITVARIATION', /*'Edit Variation Set'*/'?????');
175
+ define('TXT_WPSC_VARIATIONHASBEENEDITED', /*'The variation has been edited.'*/'?????????????');
176
+ define('TXT_WPSC_VARIATION_VALUES', /*'Variation Values'*/'????');
177
+ define('TXT_WPSC_REMOVE_SET', /*'Remove Set'*/'??');
178
+
179
+ define('TXT_WPSC_SELECT_PARENT', /*'Select Parent'*/'?????');
180
+ define('TXT_WPSC_PRODUCTHASBEENEDITED', /*'The product has been edited.'*/'?????????????');
181
+ define('TXT_WPSC_ADDPRODUCT', /*'Add Product'*/'?????');
182
+ define('TXT_WPSC_DISPLAYPRODUCTS', /*'Display Products'*/'?????');
183
+ define('TXT_WPSC_PLEASESELECTACATEGORY', /*'Please Select a Category'*/'??????????????');
184
+ define('TXT_WPSC_STOCK', /*'Stock'*/'??');
185
+ define('TXT_WPSC_PNP', /*'PnP'*/'PnP');
186
+ define('TXT_WPSC_EDITITEM', /*'Edit Item'*/'?????');
187
+ define('TXT_WPSC_PRODUCTDETAILS', /*'Product Details'*/'????');
188
+ define('TXT_WPSC_SELECT_PRODUCT', /*'Select an Existing Product'*/'???????');
189
+ define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', /*'(enter in your product details here)'*/'(????????????????????)');
190
+ define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', /*'Additional Product Description'*/'???????');
191
+ define('TXT_WPSC_ADDITEM', /*'Add Item'*/'?????');
192
+ define('TXT_WPSC_CHOOSEACATEGORY', /*'Choose a Category'*/'????????');
193
+ define('TXT_WPSC_CHOOSEABRAND', /*'Choose a Shape'*/'?????');
194
+ define('TXT_WPSC_USETHEACTUALIMAGE', /*'use the actual image. No resize.'*/'??????????????????????????');
195
+ define('TXT_WPSC_DISPLAYPURCHASES', /*'Display Purchases'*/'??????');
196
+ define('TXT_WPSC_ID', /*'ID'*/'ID');
197
+ define('TXT_WPSC_TRANSACTIONSTATUS', /*'Transaction Status'*/'????');
198
+ define('TXT_WPSC_DATE', /*'Date'*/'??');
199
+ define('TXT_WPSC_VIEWDETAILS', /*'View Details'*/'??????');
200
+ define('TXT_WPSC_STATUS', /*'Status'*/'??');
201
+ define('TXT_WPSC_SUCCESSFUL', /*'Successful'*/'??');
202
+ define('TXT_WPSC_FAILED', /*'Failed'*/'??');
203
+ define('TXT_WPSC_GST', /*'GST'*/'GST');
204
+ define('TXT_WPSC_PP', /*'P&amp;P'*/'P&amp;P');
205
+ define('TXT_WPSC_TOTAL', /*'Total'*/'??');
206
+ define('TXT_WPSC_FINALTOTAL', /*'Final Total'*/'????');
207
+ define('TXT_WPSC_CUSTOMERDETAILS', /*'Customer Details'*/'?????');
208
+ define('TXT_WPSC_USERSCARTWASEMPTY', /*'This users cart was empty'*/'????????????????');
209
+ define('TXT_WPSC_GOBACK', /*'Go Back'*/'??');
210
+ define('TXT_WPSC_THANKSAPPLIED', /*'Thanks, your changes have been applied.'*/'??????????????????????????');
211
+ define('TXT_WPSC_OPTIONS', /*'Shop Options'*/'????????');
212
+ define('TXT_WPSC_PAYMENTGATEWAY2', /*'Payment Gateway'*/'?????');
213
+ define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', /*'Please Select A Payment Gateway'*/'?????????????');
214
+ define('TXT_WPSC_PAYMENTGATEWAYNOTE', /*'<strong>Note:</strong> This lite version of the e-Commerce plugin only allows you to interface with PayPal.<br /><br />If you are looking for a more profesional "non paypal solution" then we have a gold version of e-Commerce available that interfaces seamlessly with DPS (www.dps.co.nz), and paystation (www.paystation.co.nz). <br /><br />Contact info@instinct.co.nz for more information or check out www.instinct.co.nz/plugins/ <br /><br />Ciao!'*/'<strong>?:</strong> ??lite version?e-Commerce plugin?PayPal????????<br /><br />??PayPal??????????DPS (www.dps.co.nz)?paystation (www.paystation.co.nz)????????? <br /><br />????? info@instinct.co.nz ???? www.instinct.co.nz/plugins/ <br /><br />Ciao!');
215
+ define('TXT_WPSC_URLSETTINGS', /*'URL Settings'*/'URL???');
216
+ define('TXT_WPSC_PRODUCTLISTURL', /*'Product List URL'*/'??????URL');
217
+ define('TXT_WPSC_SHOPPINGCARTURL', /*'Shopping Cart URL'*/'??????URL');
218
+ define('TXT_WPSC_CHECKOUTURL', /*'Checkout URL'*/'????URL');
219
+ define('TXT_WPSC_TRANSACTIONDETAILSURL', /*'Transaction Details URL'*/'?????URL');
220
+ define('TXT_WPSC_PRESENTATIONSETTINGS', /*'Presentation Settings'*/'????');
221
+ define('TXT_WPSC_CARTLOCATION', /*'Cart Location'*/'????????');
222
+ define('TXT_WPSC_SIDEBAR', /*'Sidebar'*/'?????');
223
+ define('TXT_WPSC_PAGE', /*'Page'*/'???');
224
+ define('TXT_WPSC_WIDGET', /*'Widget'*/'????');
225
+ define('TXT_WPSC_NEEDTOENABLEWIDGET', /*'You need to enable the widgets plugin to use this'*/'???????????????????');
226
+ define('TXT_WPSC_MANUAL', /*'Manual'*/'???');
227
+ define('TXT_WPSC_SHOWCATEGORIESBRANDS', /*'Show Categories/Shapes'*/'?????/?????');
228
+ define('TXT_WPSC_BOTH', /*'Both'*/'??');
229
+ define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', /*'Default Product Thumbnail Size'*/'??????????????');
230
+ define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', /*'Default Category Thumbnail Size'*/'?????????????????');
231
+ define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', /*'Show Postage and Packaging'*/'?????????');
232
+ define('TXT_WPSC_YES', /*'Yes'*/'??');
233
+ define('TXT_WPSC_NO', /*'No'*/'???');
234
+ define('TXT_WPSC_SHOWSPECIALS', /*'Show Specials'*/'?????');
235
+ define('TXT_WPSC_SHOWPRODUCTRATINGS', /*'Show Product Ratings'*/'?????????');
236
+ define('TXT_WPSC_CURRENCYSETTINGS', /*'Currency Settings'*/'?????');
237
+ define('TXT_WPSC_GSTTAXRATE', /*'GST/Tax Rate'*/'GST/???');
238
+ define('TXT_WPSC_CURRENCYTYPE', /*'Currency Type'*/'?????');
239
+ define('TXT_WPSC_CURRENCYSIGNLOCATION', /*'Currency Sign Location'*/'???????');
240
+ define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', /*'Default Postage &amp; Packaging'*/'????????????');
241
+ define('TXT_WPSC_ADMINISTRATIONSETTINGS', /*'Administration Settings'*/'????');
242
+ define('TXT_WPSC_MAXDOWNLOADSPERFILE', /*'Max downloads per file'*/'??????????????????');
243
+ define('TXT_WPSC_PURCHASELOGEMAIL', /*'Purchase Log Email'*/'?????????');
244
+ define('TXT_WPSC_ORDER_LOG', 'Orders'); /* needs translation */
245
+ define('TXT_WPSC_ORDER', 'Order'); /* needs translation */
246
+ define('TXT_WPSC_REPLYEMAIL', /*'Reply Email'*/'?????');
247
+ define('TXT_WPSC_BRANDNOCAP', /*'shape'*/'??');
248
+ define('TXT_WPSC_CATEGORYNOCAP', /*'category'*/'?????');
249
+ define('TXT_WPSC_UDPATING', /*'Updating'*/'??');
250
+ define('TXT_WPSC_MOREDETAILS', /*'More Details'*/'?????');
251
+ define('TXT_WPSC_ADDTOCART', /*'Add To Cart'*/'?????????');
252
+ define('TXT_WPSC_AVGCUSTREVIEW', /*'Avg. Customer Rating'*/'???????');
253
+ define('TXT_WPSC_YOURRATING', /*'Your Rating'*/'??????');
254
+ define('TXT_WPSC_RATING_SAVED', /*'Saved'*/'??');
255
+ define('TXT_WPSC_RATETHISITEM', /*'Rate This item'*/'???????');
256
+ define('TXT_WPSC_PRODUCTSOLDOUT', /*'This product has sold out.'*/'??????????');
257
+ define('TXT_WPSC_NOITEMSINTHIS', /*'There are no items in this'*/'????????');
258
+ define('TXT_WPSC_CATEGORYORBRAND', /*'Category or Shape'*/'?????/??');
259
+ define('TXT_WPSC_PLEASECHOOSEA', /*'Please choose a'*/'????????');
260
+ define('TXT_WPSC_PRODUCT', /*'Product'*/'??');
261
+ define('TXT_WPSC_QUANTITY', /*'Quantity'*/'??');
262
+ define('TXT_WPSC_APPLY', /*'Apply'*/'????');
263
+ define('TXT_WPSC_MAKEPAYMENT', /*'Make Payment'*/'?????????');
264
+ define('TXT_WPSC_EMPTYSHOPPINGCART', /*'Empty shopping cart'*/'???????');
265
+ define('TXT_WPSC_TOTALPRICE', /*'Total Price'*/'??');
266
+ define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', /*'There are no items in the shopping cart'*/'????????????????');
267
+ define('TXT_WPSC_EMAILMSG1', /*"Thank you, the order has been accepted, any items to be shipped will be processed as soon as possible, any items that can be downloaded can be downloaded using the links on this page.\n\r\n\rAll prices include tax and postage and packaging where applicable.\n\r\n\rYou ordered these items:\n\r\n\r"*/"??????????? ??????????? ???????????????????? ?????????????????????????????????????????????????????\n\r\n\r???????????????????????????\n\r\n\r?????????????????:\n\r\n\r");
268
+ define('TXT_WPSC_EMAILMSG2', /*".\n\rThese items were ordered:\n\r\n\r"*/".\n\r?????????????:\n\r\n\r");
269
+ define('TXT_WPSC_CLICKTODOWNLOAD', /*'Click here to download'*/'?????????????????????');
270
+ define('TXT_WPSC_DOWNLOAD', /*'Download'*/'??????');
271
+ define('TXT_WPSC_YOURTRANSACTIONID', /*'Your Transaction ID'*/'??????ID');
272
+ define('TXT_WPSC_TRANSACTIONID', /*'Transaction ID'*/'??ID');
273
+ define('TXT_WPSC_PURCHASERECEIPT', /*'Purchase Receipt'*/'???????');
274
+ define('TXT_WPSC_PURCHASEREPORT', /*'Purchase Report'*/'??????');
275
+ define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', /*'The Transaction was successful'*/'?????????');
276
+ define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', /*'The Transaction was not successful'*/'?????????');
277
+ define('TXT_WPSC_GOBACKTOCHECKOUT', /*'Go back to the checkout'*/'???????????');
278
+ define('TXT_WPSC_SPECIALPRICE', /*'Special Price'*/'????');
279
+
280
+ define('TXT_WPSC_INSTRUCTIONS', /*'
281
+ To complete the installation you need to create the Product, Shopping Cart, Checkout and Transaction Result pages, and then hide the Shopping Cart, Checkout and Transaction Result pages so that they do not appear in the pages list.
282
+ <ul class=\'installation\'>
283
+ <li>Place contents of zip file in the wp-content/plugins directory.</li>
284
+ <li>Activate the plugin from the wordpress plugin page</li>
285
+ <li>Go to the "Payment Gateway Options" page in the "e-Commerce" tab, and enter in the appropriate details. (the default paypal gateway accessed is the paypal sandbox)</li>
286
+ <li>Create some Categories and Products using the Categories and Products pages</li>
287
+ </ul>
288
+ Expecting more? That\'s it.</p>
289
+ <h2>Wishlist Tip Jar</h2>
290
+ <p>Donations are in no way mandatory.<br /><br />
291
+ Yet, we have been spending considerable amounts of time writing, supporting and debugging WP e-commerce. Therefore, if you like what you see, and want to see more of it, feel free to help finance future releases by dropping a buck or two in the tip jar...</p>
292
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
293
+ <input type="hidden" name="cmd" value="_s-xclick">
294
+ <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">
295
+ <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAh/vca+S7Em1KNH3rhwBRD1h4c0DdQSgmknr8mKQU7KfG5jSYXu5DD9oriGfYSDg+99ZtljIwtqvefC0wKdEJ0yFMGinWp9zGw2Xvu1s4S+pcH5IGax9KQo1WosnzA99F04MHQnqkxcfpTXCG8VLSf/r/rx8+++vVsYWNYN717+DELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIHATWqFYRAjeAgaB2F/F90mbYo/5zGY/1AYtsQ35nRDtelewxW7iLHF41rzB3NidYEs2h+t/HS0MoGTBsAfVc94mxIzInI1pQt9n/hpF67XAr357KVwIoIOq52jDfDFlZV92BPMv00MHuj4LNtNq5I752I3SsNamhl1DfAqlWxnJsIibA1D3l8k67ccc04/JYjvsd89hYgf0lob7vQoZ8X5xNtlidM3qcAx4goIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDYwMzA5MjA0ODA4WjAjBgkqhkiG9w0BCQQxFgQUCBfIACnHn+V2COlj8DDv2MsFJRIwDQYJKoZIhvcNAQEBBQAEgYCMXnxnBNyUy7axfHh9EDVq7HFzTvTsGwtmAUVesOyRNGwESXpukrX4rDOMNdHbbVToxa98uIKJUJPiYGBcpcUywtpZG1ZiDvYxoWgDh4zXx4w1QcJ96OjUPkHQ3q0UWY+p9GRxl+buhyjK62BxU5I0UaKc0H3QuATQB5+lbZdlgw==-----END PKCS7-----">
296
+ </form>
297
+ <h2>Customisation and Tips</h2>
298
+ <p><strong>GST & Tax</strong><br />If required you can enter in a default GST/Tax rate on the Options page in the "e-Commerce" tab.</p>
299
+ <p><strong>Email purchase Logs</strong><br />If you add an email address for the purchase log on the Purchase Log page this will be the email address that is sent a purchase notification each time something is bought.</p>
300
+ <p><strong>Hiding pages</strong><br />
301
+ To prevent the Shopping Cart, Checkout and Transaction Results pages from being displayed in the page list you must first find out their ID numbers. <br />
302
+ <br />Then you have to edit the file in the theme you use that displays pages. <br />
303
+ <br />This is normally found in sidebar.php, find the line similar to:<br />
304
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;/h2&gt;\' ); ?&gt;"<br />
305
+ <br />Edit the line accordingly, for example:<br />
306
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;h2&gt;&amp;exclude=3,4,5\'); ?&gt;"<br />
307
+ <br />The word exclude tells it to exclude the pages from the list, and the numbers after the word exclude are the ID numbers of the pages to exclude.</p>
308
+ <p><strong>Upgrading from Previous Version</strong><br />
309
+ If you are upgrading from a previous version, you will need to deactivate and reactivate the plugin.</p>
310
+ <p><strong>Image Functions</strong><br />
311
+ If your server does not have the PHP image functions installed, you will not be able to resize images once they are uploaded</p>
312
+ <p><strong>Permalinks</strong><br />
313
+ We\'re doing the best we can.
314
+ I have not been able to find a really good way to pass the required variables from page to page using permalinks that dont use mod_rewrite, if you cant use mod_rewrite, the plugin may not work with permalinks turned on.</p>
315
+ <p><strong>Javascript and Ajax </strong><br />
316
+ e-commerce lite uses Ajax, the shopping cart that the user sees will work without Javascript, but the Administration pages (specifically the Products and Categories pages) will not. To use the Administration section you will need to use a reasonably modern browser and have Javascript turned on. (Internet Explorer 6 or better, or Firefox 1.0 or better, older versions have not been tested for and may or may not work)</p>
317
+ <p><strong>Contact Us</strong><br />
318
+ email us: tom@instinct.co.nz <br />
319
+ website: www.instinct.co.nz
320
+ '*/'
321
+ ?????????????????????????????????????????????????????
322
+ <ul class=\'installation\'>
323
+ <li>wp-content/plugins????????zip??????????????</li>
324
+ <li>wordpress????????????????????????</li>
325
+ <li>?e-Commerce?????Payment Gateway Options??????????????????????????????? (paypal???????????????????paypal sandbox??)</li>
326
+ <li>????????????????????????????????????</li>
327
+ </ul>
328
+ Expecting more? That\'s it.</p>
329
+ <h2>Wishlist Tip Jar</h2>
330
+ <p>????????????????<br /><br />
331
+ ?????????????????WP e-commerce???????????????????????????? ?????????????????????????????????Tip jar?1???2???????????????????????????…</p>
332
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
333
+ <input type="hidden" name="cmd" value="_s-xclick">
334
+ <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">
335
+ <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAh/vca+S7Em1KNH3rhwBRD1h4c0DdQSgmknr8mKQU7KfG5jSYXu5DD9oriGfYSDg+99ZtljIwtqvefC0wKdEJ0yFMGinWp9zGw2Xvu1s4S+pcH5IGax9KQo1WosnzA99F04MHQnqkxcfpTXCG8VLSf/r/rx8+++vVsYWNYN717+DELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIHATWqFYRAjeAgaB2F/F90mbYo/5zGY/1AYtsQ35nRDtelewxW7iLHF41rzB3NidYEs2h+t/HS0MoGTBsAfVc94mxIzInI1pQt9n/hpF67XAr357KVwIoIOq52jDfDFlZV92BPMv00MHuj4LNtNq5I752I3SsNamhl1DfAqlWxnJsIibA1D3l8k67ccc04/JYjvsd89hYgf0lob7vQoZ8X5xNtlidM3qcAx4goIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDYwMzA5MjA0ODA4WjAjBgkqhkiG9w0BCQQxFgQUCBfIACnHn+V2COlj8DDv2MsFJRIwDQYJKoZIhvcNAQEBBQAEgYCMXnxnBNyUy7axfHh9EDVq7HFzTvTsGwtmAUVesOyRNGwESXpukrX4rDOMNdHbbVToxa98uIKJUJPiYGBcpcUywtpZG1ZiDvYxoWgDh4zXx4w1QcJ96OjUPkHQ3q0UWY+p9GRxl+buhyjK62BxU5I0UaKc0H3QuATQB5+lbZdlgw==-----END PKCS7-----">
336
+ </form>
337
+ <h2>??????</h2>
338
+ <p><strong>GST & Tax</strong><br />?????????e-Commerce?????????GST/?????????????????</p>
339
+ <p><strong>Email purchase Logs</strong><br />????????????????????E?????????????????????????????????E?????????????</p>
340
+ <p><strong>??????</strong><br />???????????????????????????????????????????????????ID????????????????? <br />
341
+ <br />??????????????????????????????????????????<br />
342
+ <br />??????sidebar.php?????????????????????????????????:<br />
343
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;/h2&gt;\' ); ?&gt;"<br />
344
+ <br />??????????????????????:<br />
345
+ <br />"&lt;?php wp_list_pages(\'title_li=&lt;h2&gt;Pages&lt;h2&gt;&amp;exclude=3,4,5\'); ?&gt;"<br />
346
+ <br />exclude??????????????????????????????????????exclude????????????????ID?????</p>
347
+ <p><strong>????????????????</strong><br />
348
+ ??????????????????????????????????????????</p>
349
+ <p><strong>Image function</strong><br />
350
+ ????????PHP?image function???????????????????????????????????????????</p>
351
+ <p><strong>Permalinks</strong><br />
352
+ ?????????????????????????
353
+ ??mod_rewrite???????permalinks??????????????????????????????????????????????????mod_rewrite???????????permalinks?????????????????????</p>
354
+ <p>