Version Description
Download this release
Release Info
Developer | Macropiper |
Plugin | WP eCommerce |
Version | 3.6.6 |
Comparing to | |
See all releases |
Version 3.6.6
- wp-shopping-cart/.project +12 -0
- wp-shopping-cart/admin-form-functions.php +1049 -0
- wp-shopping-cart/admin-ie.css +13 -0
- wp-shopping-cart/admin.css +856 -0
- wp-shopping-cart/admin.js +692 -0
- wp-shopping-cart/admin_menu_widget.php +36 -0
- wp-shopping-cart/ajax.js +48 -0
- wp-shopping-cart/category_widget.php +27 -0
- wp-shopping-cart/checkout.php +316 -0
- wp-shopping-cart/classes/cart.class.php +39 -0
- wp-shopping-cart/classes/extra.class.php +83 -0
- wp-shopping-cart/classes/mimetype.php +241 -0
- wp-shopping-cart/classes/variations.class.php +541 -0
- wp-shopping-cart/classes/xmlparser.php +48 -0
- wp-shopping-cart/containeress_page.php +28 -0
- wp-shopping-cart/currency_converter.inc.php +104 -0
- wp-shopping-cart/currency_list.php +243 -0
- wp-shopping-cart/display-brands.php +256 -0
- wp-shopping-cart/display-category.php +483 -0
- wp-shopping-cart/display-coupons.php +422 -0
- wp-shopping-cart/display-ecommerce-subs.php +43 -0
- wp-shopping-cart/display-items.php +1345 -0
- wp-shopping-cart/display-log.php +741 -0
- wp-shopping-cart/display_variations.php +304 -0
- wp-shopping-cart/donations_widget.php +71 -0
- wp-shopping-cart/edit-profile.php +218 -0
- wp-shopping-cart/editor.php +165 -0
- wp-shopping-cart/editor_plugin.js +162 -0
- wp-shopping-cart/extra_image_processing.php +69 -0
- wp-shopping-cart/form_display_functions.php +234 -0
- wp-shopping-cart/form_fields.php +214 -0
- wp-shopping-cart/gatewayoptions.php +173 -0
- wp-shopping-cart/getimagesize.php +6 -0
- wp-shopping-cart/gold_cart_readme.txt +7 -0
- wp-shopping-cart/google_shipping_country.php +51 -0
- wp-shopping-cart/homepage_products_functions.php +198 -0
- wp-shopping-cart/image_preview.php +73 -0
- wp-shopping-cart/image_processing.php +112 -0
- wp-shopping-cart/image_resize.php +104 -0
- wp-shopping-cart/images/24bit-star.png +0 -0
- wp-shopping-cart/images/arrowdown.gif +0 -0
- wp-shopping-cart/images/blank.gif +0 -0
- wp-shopping-cart/images/blue-star.gif +0 -0
- wp-shopping-cart/images/buy_button.jpg +0 -0
- wp-shopping-cart/images/cart-icon.gif +0 -0
- wp-shopping-cart/images/cart.png +0 -0
- wp-shopping-cart/images/cart_leftarrow.png +0 -0
- wp-shopping-cart/images/cart_rightarrow.png +0 -0
- wp-shopping-cart/images/close.gif +0 -0
- wp-shopping-cart/images/closelabel.gif +0 -0
- wp-shopping-cart/images/cross.png +0 -0
- wp-shopping-cart/images/default-off.gif +0 -0
- wp-shopping-cart/images/default-on.gif +0 -0
- wp-shopping-cart/images/download.gif +0 -0
- wp-shopping-cart/images/facebook_status_off.gif +0 -0
- wp-shopping-cart/images/gold-cart.png +0 -0
- wp-shopping-cart/images/gold-star.gif +0 -0
- wp-shopping-cart/images/google_bmarks.gif +0 -0
- wp-shopping-cart/images/grey-star.gif +0 -0
- wp-shopping-cart/images/grid-off.gif +0 -0
- wp-shopping-cart/images/grid-on.gif +0 -0
- wp-shopping-cart/images/grid_bg.png +0 -0
- wp-shopping-cart/images/icon_window_collapse.gif +0 -0
- wp-shopping-cart/images/icon_window_expand.gif +0 -0
- wp-shopping-cart/images/indenter.gif +0 -0
- wp-shopping-cart/images/indicator.gif +0 -0
- wp-shopping-cart/images/list-off.gif +0 -0
- wp-shopping-cart/images/list-on.gif +0 -0
- wp-shopping-cart/images/loading.gif +0 -0
- wp-shopping-cart/images/loadingAnimation.gif +0 -0
- wp-shopping-cart/images/mini-arrow.jpg +0 -0
- wp-shopping-cart/images/minus.png +0 -0
- wp-shopping-cart/images/next.gif +0 -0
- wp-shopping-cart/images/nextlabel.gif +0 -0
- wp-shopping-cart/images/no-star.gif +0 -0
- wp-shopping-cart/images/no_stock.gif +0 -0
- wp-shopping-cart/images/order_bottom.png +0 -0
- wp-shopping-cart/images/order_down.png +0 -0
- wp-shopping-cart/images/order_top.png +0 -0
- wp-shopping-cart/images/order_up.png +0 -0
- wp-shopping-cart/images/package_add.png +0 -0
- wp-shopping-cart/images/plus.png +0 -0
- wp-shopping-cart/images/prev.gif +0 -0
- wp-shopping-cart/images/prevlabel.gif +0 -0
- wp-shopping-cart/images/remove_item.png +0 -0
- wp-shopping-cart/images/rss-icon.jpg +0 -0
- wp-shopping-cart/images/social_networking/blinklist.gif +0 -0
- wp-shopping-cart/images/social_networking/blogmarks.gif +0 -0
- wp-shopping-cart/images/social_networking/delicious.gif +0 -0
- wp-shopping-cart/images/social_networking/digg.gif +0 -0
- wp-shopping-cart/images/social_networking/favoriting.gif +0 -0
- wp-shopping-cart/images/social_networking/furl.gif +0 -0
- wp-shopping-cart/images/social_networking/google_bmarks.gif +0 -0
- wp-shopping-cart/images/social_networking/magnolia.gif +0 -0
- wp-shopping-cart/images/social_networking/netscape.gif +0 -0
- wp-shopping-cart/images/social_networking/newsvine.gif +0 -0
- wp-shopping-cart/images/social_networking/reddit.gif +0 -0
- wp-shopping-cart/images/social_networking/share-icon-16x16.gif +0 -0
- wp-shopping-cart/images/social_networking/share-this-product.gif +0 -0
- wp-shopping-cart/images/social_networking/stumbleupon.gif +0 -0
- wp-shopping-cart/images/social_networking/tailrank.gif +0 -0
- wp-shopping-cart/images/social_networking/technorati.gif +0 -0
- wp-shopping-cart/images/social_networking/windows_live.gif +0 -0
- wp-shopping-cart/images/social_networking/yahoo_myweb.gif +0 -0
- wp-shopping-cart/images/star.gif +0 -0
- wp-shopping-cart/images/sub-category-divide.jpg +0 -0
- wp-shopping-cart/images/tick.png +0 -0
- wp-shopping-cart/images/toggle-arrow.gif +0 -0
- wp-shopping-cart/images/transparent.gif +0 -0
- wp-shopping-cart/images/trash.gif +0 -0
- wp-shopping-cart/images/yes_stock.gif +0 -0
- wp-shopping-cart/insertcate.php +95 -0
- wp-shopping-cart/install_and_update.php +1338 -0
- wp-shopping-cart/instructions.php +28 -0
- wp-shopping-cart/ipn_test_code.php +45 -0
- wp-shopping-cart/js/dimensions.js +325 -0
- wp-shopping-cart/js/editor_plugin.js +134 -0
- wp-shopping-cart/js/iautocompleter.js +536 -0
- wp-shopping-cart/js/interface.js +8 -0
- wp-shopping-cart/js/jquery.accessible-news-slider.js +67 -0
- wp-shopping-cart/js/jquery.js +11 -0
- wp-shopping-cart/js/jquery.tooltip.js +342 -0
- wp-shopping-cart/js/slideMenu.js +16 -0
- wp-shopping-cart/js/thickbox.js +407 -0
- wp-shopping-cart/js/tinymce3/cart.png +0 -0
- wp-shopping-cart/js/tinymce3/editor_plugin.js +78 -0
- wp-shopping-cart/js/tinymce3/langs/de_de.js +6 -0
- wp-shopping-cart/js/tinymce3/langs/en.js +6 -0
- wp-shopping-cart/js/tinymce3/langs/en_US.js +6 -0
- wp-shopping-cart/js/tinymce3/tinymce.js +89 -0
- wp-shopping-cart/js/tinymce3/tinymce.php +50 -0
- wp-shopping-cart/js/tinymce3/window.php +107 -0
- wp-shopping-cart/langs/en.js +13 -0
- wp-shopping-cart/languages/BG_bg.php +585 -0
- wp-shopping-cart/languages/DE_de.php +655 -0
- wp-shopping-cart/languages/EL_el.php +479 -0
- wp-shopping-cart/languages/EN_en.php +749 -0
- wp-shopping-cart/languages/FR_fr.php +642 -0
- wp-shopping-cart/languages/HU_hu.php +494 -0
- wp-shopping-cart/languages/IT_it.php +586 -0
- wp-shopping-cart/languages/JP_jp.php +415 -0
- wp-shopping-cart/languages/KO_ko.php +513 -0
- wp-shopping-cart/languages/RU_ru.php +476 -0
- wp-shopping-cart/languages/SP_sp.php +320 -0
wp-shopping-cart/.project
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<projectDescription>
|
3 |
+
<name>wp-ecommerce</name>
|
4 |
+
<comment></comment>
|
5 |
+
<projects>
|
6 |
+
</projects>
|
7 |
+
<buildSpec>
|
8 |
+
</build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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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='".stripslashes($product['name'])."' />";
|
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> </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 /> <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' /> <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' /> <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 |
+
|
318 |
+
$output .= " <tr>\n\r";
|
319 |
+
$output .= " <td>";
|
320 |
+
$output .= TXT_WPSC_LOCAL_PNP;
|
321 |
+
$output .= " </td>\n\r";
|
322 |
+
$output .= " <td>\n\r";
|
323 |
+
$output .= " <input type='text' size='10' name='pnp' value='".$product['pnp']."' />\n\r";
|
324 |
+
$output .= " </td>\n\r";
|
325 |
+
$output .= " </tr>\n\r";
|
326 |
+
|
327 |
+
$output .= " <tr>\n\r";
|
328 |
+
$output .= " <td>";
|
329 |
+
$output .= TXT_WPSC_INTERNATIONAL_PNP;
|
330 |
+
if($product['international_pnp'] == 0)
|
331 |
+
{
|
332 |
+
$product['international_pnp'] = "0.00";
|
333 |
+
}
|
334 |
+
$output .= " </td>\n\r";
|
335 |
+
$output .= " <td>\n\r";
|
336 |
+
$output .= " <input type='text' size='10' name='international_pnp' value='".$product['international_pnp']."' />\n\r";
|
337 |
+
$output .= " </td>\n\r";
|
338 |
+
$output .= " </tr>\n\r";
|
339 |
+
$output .="</table></div></div></td></tr>";
|
340 |
+
|
341 |
+
$output .= "<tr><td colspan='2'>";
|
342 |
+
$output .="<div id='edit_advanced' class='postbox closed'>
|
343 |
+
<h3>
|
344 |
+
<a class='togbox'>+</a>";
|
345 |
+
$output .=TXT_WPSC_ADVANCED_OPTIONS;
|
346 |
+
$output .="</h3><div class='inside'>";
|
347 |
+
|
348 |
+
$output .='<table>';
|
349 |
+
$output .= " <tr>\n\r";
|
350 |
+
$output .= " <td>\n\r";
|
351 |
+
$output .= TXT_WPSC_ADMINNOTES.": ";
|
352 |
+
$output .= " </td>\n\r";
|
353 |
+
$output .= " <td>\n\r";
|
354 |
+
$output .= "<textarea name='merchant_notes' cols='40' rows='3' >".stripslashes($product['merchant_notes'])."</textarea>";
|
355 |
+
$output .= " </td>\n\r";
|
356 |
+
$output .= " </tr>\n\r";
|
357 |
+
$output .= " <tr>\n\r";
|
358 |
+
$output .= " <td>\n\r";
|
359 |
+
$output .= " </td>\n\r";
|
360 |
+
$output .= " <td>\n\r";
|
361 |
+
if($product['display_frontpage'] == 1)
|
362 |
+
{
|
363 |
+
$output .= "<input type='checkbox' checked='true' value='yes' name='display_frontpage' id='form_display_frontpage'/>\n\r";
|
364 |
+
}
|
365 |
+
else
|
366 |
+
{
|
367 |
+
$output .= "<input type='checkbox' value='yes' name='display_frontpage' id='form_display_frontpage'/>\n\r";
|
368 |
+
}
|
369 |
+
|
370 |
+
$output .= "<label for='form_display_frontpage'>".TXT_WPSC_DISPLAY_FRONT_PAGE."</form>";
|
371 |
+
$output .= " </td>\n\r";
|
372 |
+
$output .= " </tr>\n\r";
|
373 |
+
$output .= " <tr>\n\r";
|
374 |
+
$output .= " <td>\n\r";
|
375 |
+
if ($engrave[0]=='on'){
|
376 |
+
$engra="checked='checked'";
|
377 |
+
}
|
378 |
+
|
379 |
+
$output .= " </td>\n\r";
|
380 |
+
$output .= " <td>\n\r";
|
381 |
+
$output .= "<input type='hidden' name='productmeta_values[engraved]' value='0'>";
|
382 |
+
$output .= "<input $engra type='checkbox' name='productmeta_values[engraved]'>". TXT_WPSC_ENGRAVE."<br />";
|
383 |
+
$output .= " </td>\n\r";
|
384 |
+
$output .= " </tr>\n\r";
|
385 |
+
|
386 |
+
if(get_option('payment_gateway') == 'google') {
|
387 |
+
$output .= " <tr>\n\r";
|
388 |
+
$output .= " <td>\n\r";
|
389 |
+
$output .= TXT_WPSC_PROHIBITED.": ";
|
390 |
+
$output .= " </td>\n\r";
|
391 |
+
$output .= " <td>\n\r";
|
392 |
+
$output .= "<input type='checkbox' name='productmeta_values[\"google_prohibited\"]'/> ";
|
393 |
+
$output .= "Prohibited <a href='http://checkout.google.com/support/sell/bin/answer.py?answer=75724'>by Google?</a>";
|
394 |
+
$output .= " </td>\n\r";
|
395 |
+
$output .= " </tr>\n\r";
|
396 |
+
}
|
397 |
+
|
398 |
+
$output .= " <tr>\n\r";
|
399 |
+
$output .= " <td>\n\r";
|
400 |
+
$output .= TXT_WPSC_EXTERNALLINK.": ";
|
401 |
+
$output .= " </td>\n\r";
|
402 |
+
$output .= " <td>\n\r";
|
403 |
+
$output .= "<input type='text' class='text' value='".$product['external_link']."' name='external_link' id='external_link' size='40'> ";
|
404 |
+
$output .= " </td>\n\r";
|
405 |
+
$output .= " </tr>\n\r";
|
406 |
+
|
407 |
+
$output .= " <tr>\n\r";
|
408 |
+
$output .= " <td>\n\r";
|
409 |
+
$output .= " </td>\n\r";
|
410 |
+
$output .= " <td>\n\r";
|
411 |
+
$output .= TXT_WPSC_USEONLYEXTERNALLINK;
|
412 |
+
$output .= " </td>\n\r";
|
413 |
+
$output .= " </tr>\n\r";
|
414 |
+
|
415 |
+
$output .= " <tr>\n\r";
|
416 |
+
$output .= " <td>\n\r";
|
417 |
+
$output .= TXT_WPSC_ADD_CUSTOM_FIELD;
|
418 |
+
$output .= " </td>\n\r";
|
419 |
+
$output .= " <td>\n\r";
|
420 |
+
//foreach
|
421 |
+
$output .= "<label></label>
|
422 |
+
<div class='product_custom_meta'>
|
423 |
+
<label >
|
424 |
+
".TXT_WPSC_NAME."
|
425 |
+
<input type='text' class='text' value='' name='new_custom_meta[name][]' >
|
426 |
+
</label>
|
427 |
+
|
428 |
+
<label >
|
429 |
+
".TXT_WPSC_VALUE."
|
430 |
+
<input type='text' class='text' value='' name='new_custom_meta[value][]' >
|
431 |
+
</label>
|
432 |
+
<a href='#' class='add_more_meta' onclick='return add_more_meta(this)'>+</a>
|
433 |
+
<br />
|
434 |
+
</div>
|
435 |
+
";
|
436 |
+
$output .= " </td>\n\r";
|
437 |
+
$output .= " </tr>\n\r";
|
438 |
+
|
439 |
+
|
440 |
+
$custom_fields = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}wpsc_productmeta` WHERE `product_id` IN('{$product['id']}') AND `custom` IN('1') ",ARRAY_A);
|
441 |
+
if(count($custom_fields) > 0) {
|
442 |
+
$output .= " <tr>\n\r";
|
443 |
+
$output .= " <td>\n\r";
|
444 |
+
$output .= TXT_WPSC_EDIT_CUSTOM_FIELDS;
|
445 |
+
$output .= " </td>\n\r";
|
446 |
+
$output .= " <td>\n\r";
|
447 |
+
|
448 |
+
//$i = 1;
|
449 |
+
foreach((array)$custom_fields as $custom_field) {
|
450 |
+
$i = $custom_field['id'];
|
451 |
+
// 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
|
452 |
+
$output .= "
|
453 |
+
<div class='product_custom_meta' id='custom_meta_$i'>
|
454 |
+
<label for='custom_meta_name_$i'>
|
455 |
+
".TXT_WPSC_NAME."
|
456 |
+
<input type='text' class='text' value='{$custom_field['meta_key']}' name='custom_meta[$i][name]' id='custom_meta_name_$i'>
|
457 |
+
</label>
|
458 |
+
|
459 |
+
<label for='custom_meta_value_$i'>
|
460 |
+
".TXT_WPSC_VALUE."
|
461 |
+
<input type='text' class='text' value='{$custom_field['meta_value']}' name='custom_meta[$i][value]' id='custom_meta_value_$i'>
|
462 |
+
</label>
|
463 |
+
<a href='#' class='remove_meta' onclick='return remove_meta(this, $i)'>–</a>
|
464 |
+
<br />
|
465 |
+
</div>
|
466 |
+
";
|
467 |
+
}
|
468 |
+
$output .= " </td>\n\r";
|
469 |
+
$output .= " </tr>\n\r";
|
470 |
+
}
|
471 |
+
|
472 |
+
|
473 |
+
|
474 |
+
|
475 |
+
$output .="</table></div></div></td></tr>";
|
476 |
+
|
477 |
+
$output .= " <tr>\n\r";
|
478 |
+
$output .= " <td colspan='2'>\n\r";
|
479 |
+
$output .= "<div id='edit_product_image' class='postbox'>
|
480 |
+
<h3>
|
481 |
+
<a class='togbox'>+</a>".TXT_WPSC_PRODUCTIMAGE."";
|
482 |
+
$output .= "</h3>
|
483 |
+
<div class='inside'>
|
484 |
+
<table>";
|
485 |
+
|
486 |
+
if(function_exists("getimagesize"))
|
487 |
+
{
|
488 |
+
if($product['image'] != '')
|
489 |
+
{
|
490 |
+
$imagedir = WPSC_THUMBNAIL_DIR;
|
491 |
+
$image_size = @getimagesize(WPSC_THUMBNAIL_DIR.$product['image']);
|
492 |
+
$output .= " <tr>\n\r";
|
493 |
+
$output .= " <td>\n\r";
|
494 |
+
$output .= TXT_WPSC_RESIZEIMAGE.": <br />";
|
495 |
+
$output .= "<span class='image_size_text'>".$image_size[0]."x".$image_size[1]."</span>";
|
496 |
+
$output .= " </td>\n\r";
|
497 |
+
|
498 |
+
$output .= " <td>\n\r";
|
499 |
+
$output .= "<table>";// style='border: 1px solid black'
|
500 |
+
$output .= " <tr>";
|
501 |
+
$output .= " <td style='height: 1em;'>";
|
502 |
+
$output .= "<input type='hidden' id='current_thumbnail_image' name='current_thumbnail_image' value='" . $product['thumbnail_image'] . "' />";
|
503 |
+
$output .= "<input type='radio' ";
|
504 |
+
// if ($product['thumbnail_state'] == 0) {
|
505 |
+
$output .= "checked='true'";
|
506 |
+
// }
|
507 |
+
$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 />";
|
508 |
+
$output .= " </td>";
|
509 |
+
// Put lightbox here so doesn't move around with DHTML bits
|
510 |
+
$output .= " <td rowspan=4>";
|
511 |
+
|
512 |
+
$image_link = WPSC_IMAGE_URL.$product['image'];
|
513 |
+
|
514 |
+
$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>";
|
515 |
+
$output .= "<br /><span style=\"font-size: 7pt;\">" . TXT_WPSC_PRODUCT_IMAGE_PREVIEW . "</span><br /><br />";
|
516 |
+
|
517 |
+
if(($product['thumbnail_image'] != null)) {
|
518 |
+
$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>";
|
519 |
+
$output .= "<br /><span style=\"font-size: 7pt;\">" . TXT_WPSC_PRODUCT_THUMBNAIL_PREVIEW . "</span><br />";
|
520 |
+
}
|
521 |
+
|
522 |
+
|
523 |
+
//<div id='preview_button'><a id='preview_button' href='#'>".TXT_WPSC_PREVIEW."</a></div>
|
524 |
+
// onclick='return display_preview_image(".$product['id'].")'
|
525 |
+
$output .= " </td>";
|
526 |
+
$output .= " </tr>";
|
527 |
+
|
528 |
+
$output .= " <tr>";
|
529 |
+
$output .= " <td>";
|
530 |
+
$output .= "<input type='radio' ";
|
531 |
+
if ($product['thumbnail_state'] == 1) {
|
532 |
+
//$output .= "checked='true'";
|
533 |
+
}
|
534 |
+
$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').")";
|
535 |
+
$output .= " </td>";
|
536 |
+
$output .= " </tr>";
|
537 |
+
|
538 |
+
$output .= " <tr>";
|
539 |
+
$output .= " <td>";
|
540 |
+
$output .= "<input type='radio' ";
|
541 |
+
if ($product['thumbnail_state'] == 2)
|
542 |
+
{
|
543 |
+
// $output .= "checked='true'";
|
544 |
+
}
|
545 |
+
$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>
|
546 |
+
<div id=\"heightWidth\" style=\"display: ";
|
547 |
+
|
548 |
+
if ($product['thumbnail_state'] == 2) {
|
549 |
+
$output .= "block;";
|
550 |
+
} else {
|
551 |
+
$output .= "none;";
|
552 |
+
}
|
553 |
+
|
554 |
+
$output .= "\">
|
555 |
+
<input id='image_width' type='text' size='4' name='width' value='' /><label for='image_resize2'>".TXT_WPSC_PXWIDTH."</label>
|
556 |
+
<input id='image_height' type='text' size='4' name='height' value='' /><label for='image_resize2'>".TXT_WPSC_PXHEIGHT." </label></div>";
|
557 |
+
$output .= " </td>";
|
558 |
+
$output .= " </tr>";
|
559 |
+
$output .= " <tr>";
|
560 |
+
$output .= " <td>";
|
561 |
+
$output .= "<input type='radio' ";
|
562 |
+
if ($product['thumbnail_state'] == 3) {
|
563 |
+
// $output .= "checked='true'";
|
564 |
+
}
|
565 |
+
$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 />";
|
566 |
+
$output .= "<div id='browseThumb' style='display: ";
|
567 |
+
|
568 |
+
if($product['thumbnail_state'] == 3) {
|
569 |
+
$output .= "block";
|
570 |
+
} else {
|
571 |
+
$output .= "none";
|
572 |
+
}
|
573 |
+
|
574 |
+
$output .= ";'>\n\r<input type='file' name='thumbnailImage' size='15' value='' />";
|
575 |
+
$output .= "</div>\n\r";
|
576 |
+
$output .= " </td>";
|
577 |
+
$output .= " </tr>";
|
578 |
+
// }.pe
|
579 |
+
|
580 |
+
$output .= "</table>";
|
581 |
+
$output .= " </td>\n\r";
|
582 |
+
$output .= " </tr>\n\r";
|
583 |
+
}
|
584 |
+
}
|
585 |
+
|
586 |
+
$output .= " <tr>\n\r";
|
587 |
+
$output .= " <td>\n\r";
|
588 |
+
$output .= " </td>\n\r";
|
589 |
+
$output .= " <td>\n\r";
|
590 |
+
$output .= TXT_WPSC_UPLOADNEWIMAGE.": <br />";
|
591 |
+
$output .= "<input type='file' name='image' value='' />";
|
592 |
+
$output .= " </td>\n\r";
|
593 |
+
$output .= " </tr>\n\r";
|
594 |
+
|
595 |
+
if(function_exists("getimagesize"))
|
596 |
+
{
|
597 |
+
if($product['image'] == '')
|
598 |
+
{
|
599 |
+
$output .= " <tr>\n\r";
|
600 |
+
$output .= " <td></td>\n\r";
|
601 |
+
$output .= " <td>\n\r";
|
602 |
+
$output .= "<table>\n\r";
|
603 |
+
if(is_numeric(get_option('product_image_height')) && is_numeric(get_option('product_image_width')))
|
604 |
+
{
|
605 |
+
$output .= " <tr>\n\r";
|
606 |
+
$output .= " <td>\n\r";
|
607 |
+
$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";
|
608 |
+
$output .= " </td>\n\r";
|
609 |
+
$output .= " </tr>\n\r";
|
610 |
+
$output .= " <tr>\n\r";
|
611 |
+
$output .= " <td>\n\r";
|
612 |
+
$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";
|
613 |
+
$output .= " </td>\n\r";
|
614 |
+
$output .= " </tr>\n\r";
|
615 |
+
}
|
616 |
+
$output .= " <tr>\n\r";
|
617 |
+
$output .= " <td>\n\r";
|
618 |
+
$output .= " <input type='radio' name='image_resize' value='2' id='image_resize2' class='image_resize' onclick='hideOptionElement(\"heightWidth\", \"image_resize2\");' />\n\r";
|
619 |
+
$output .= " <label for='image_resize2'>".TXT_WPSC_USESPECIFICSIZE."</label>\n\r";
|
620 |
+
$output .= " <div id='heightWidth' style='display: none;'>\n\r";
|
621 |
+
$output .= " <input type='text' size='4' name='width' value='' /><label for='image_resize2'>".TXT_WPSC_PXWIDTH."</label>\n\r";
|
622 |
+
$output .= " <input type='text' size='4' name='height' value='' /><label for='image_resize2'>".TXT_WPSC_PXHEIGHT."</label>\n\r";
|
623 |
+
$output .= " </div>\n\r";
|
624 |
+
$output .= " </td>\n\r";
|
625 |
+
$output .= " </tr>\n\r";
|
626 |
+
$output .= " <tr>\n\r";
|
627 |
+
$output .= " <td>\n\r";
|
628 |
+
$output .= " <input type='radio' name='image_resize' value='3' id='image_resize3' class='image_resize' onclick='hideOptionElement(\"browseThumb\", \"image_resize3\");' />\n\r";
|
629 |
+
$output .= " <label for='image_resize3'>".TXT_WPSC_SEPARATETHUMBNAIL."</label><br />";
|
630 |
+
$output .= " <div id='browseThumb' style='display: none;'>\n\r";
|
631 |
+
$output .= " <input type='file' name='thumbnailImage' value='' />\n\r";
|
632 |
+
$output .= " </div>\n\r";
|
633 |
+
$output .= " </td>\n\r";
|
634 |
+
$output .= " </tr>\n\r";
|
635 |
+
$output .= " </table>\n\r";
|
636 |
+
$output .= " </td>\n\r";
|
637 |
+
$output .= " </tr>\n\r";
|
638 |
+
}
|
639 |
+
}
|
640 |
+
$output .= " <tr>\n\r";
|
641 |
+
$output .= " <td>\n\r";
|
642 |
+
$output .= " </td>\n\r";
|
643 |
+
$output .= " <td>\n\r";
|
644 |
+
$output .= "<input id='delete_image' type='checkbox' name='deleteimage' value='1' /> ";
|
645 |
+
$output .= "<label for='delete_image'>".TXT_WPSC_DELETEIMAGE."</label>";
|
646 |
+
$output .= " </td>\n\r";
|
647 |
+
$output .= " </tr>\n\r";
|
648 |
+
if(function_exists('edit_multiple_image_form')) {
|
649 |
+
$output .= edit_multiple_image_form($product['id']);
|
650 |
+
}
|
651 |
+
$output .="</table></div></div></td></tr>";
|
652 |
+
|
653 |
+
|
654 |
+
|
655 |
+
if($product['file'] > 0)
|
656 |
+
{
|
657 |
+
$output .= " <tr>\n\r";
|
658 |
+
$output .= " <td colspan='2'>\n\r";
|
659 |
+
$output .= "<div id='edit_product_download' class='postbox closed'>
|
660 |
+
<h3>
|
661 |
+
<a class='togbox'>+</a>".TXT_WPSC_PRODUCTDOWNLOAD."";
|
662 |
+
$output .= " </h3>
|
663 |
+
<div class='inside'>
|
664 |
+
<table>";
|
665 |
+
|
666 |
+
$output .= " <tr>\n\r";
|
667 |
+
$output .= " <td>\n\r";
|
668 |
+
$output .= TXT_WPSC_PREVIEW_FILE.": ";
|
669 |
+
$output .= " </td>\n\r";
|
670 |
+
$output .= " <td>\n\r";
|
671 |
+
|
672 |
+
$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>";
|
673 |
+
|
674 |
+
$file_data = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."product_files` WHERE `id`='".$product['file']."' LIMIT 1",ARRAY_A);
|
675 |
+
if(($file_data != null) && (function_exists('listen_button')))
|
676 |
+
{
|
677 |
+
$output .= "".listen_button($file_data['idhash'], $file_data['id']);
|
678 |
+
}
|
679 |
+
|
680 |
+
$output .= " </td>\n\r";
|
681 |
+
$output .= " </tr>\n\r";
|
682 |
+
|
683 |
+
|
684 |
+
$output .= " <tr>\n\r";
|
685 |
+
$output .= " <td>\n\r";
|
686 |
+
$output .= TXT_WPSC_DOWNLOADABLEPRODUCT.": ";
|
687 |
+
$output .= " </td>\n\r";
|
688 |
+
$output .= " <td>\n\r";
|
689 |
+
$output .= "<input type='file' name='file' value='' /><br />";
|
690 |
+
$output .= wpsc_select_product_file($product['id']);
|
691 |
+
$output .= " </td>\n\r";
|
692 |
+
$output .= " </tr>\n\r";
|
693 |
+
|
694 |
+
if((function_exists("make_mp3_preview") && ($file_data['mimetype'] == 'audio/mpeg')) || function_exists("wpsc_media_player")){
|
695 |
+
$output .= " <tr>\n\r";
|
696 |
+
$output .= " <td>\n\r";
|
697 |
+
$output .= TXT_WPSC_NEW_PREVIEW_FILE.": ";
|
698 |
+
$output .= " </td>\n\r";
|
699 |
+
$output .= " <td>\n\r";
|
700 |
+
$output .= "<input type='file' name='preview_file' value='' /><br />";
|
701 |
+
//$output .= "<span class='admin_product_notes'>".TXT_WPSC_PREVIEW_FILE_NOTE."</span>";
|
702 |
+
$output .= "<br /><br />";
|
703 |
+
$output .= " </td>\n\r";
|
704 |
+
$output .= " </tr>\n\r";
|
705 |
+
}
|
706 |
+
}
|
707 |
+
else
|
708 |
+
{
|
709 |
+
$output .="<tr><td colspan='2'>";
|
710 |
+
$output .= "<div id='edit_product_download' class='postbox closed'>
|
711 |
+
<h3>
|
712 |
+
<a class='togbox'>+</a>".TXT_WPSC_PRODUCTDOWNLOAD."";
|
713 |
+
$output .= " </h3>
|
714 |
+
<div class='inside'>
|
715 |
+
<table>";
|
716 |
+
|
717 |
+
$output .= " <tr>";
|
718 |
+
$output .= " <td>";
|
719 |
+
// $output .= "".TXT_WPSC_DOWNLOADABLEPRODUCT.":";
|
720 |
+
$output .= " </td>";
|
721 |
+
$output .= " <td>";
|
722 |
+
$output .= " <input type='file' name='file' value='' />";
|
723 |
+
$output .= wpsc_select_product_file($product['id']);
|
724 |
+
$output .= " </td>";
|
725 |
+
$output .= " </tr>";
|
726 |
+
}
|
727 |
+
$output.=" </table></div></div></td></tr>";
|
728 |
+
$output .= " <tr>\n\r";
|
729 |
+
$output .= " <td>\n\r";
|
730 |
+
$output .= " </td>\n\r";
|
731 |
+
$output .= " <td>\n\r";
|
732 |
+
$output .= "<input type='hidden' name='prodid' id='prodid' value='".$product['id']."' />";
|
733 |
+
$output .= "<input type='hidden' name='submit_action' value='edit' />";
|
734 |
+
$output .= "<input class='button' style='float:left;' type='submit' name='submit' value='".TXT_WPSC_EDIT_PRODUCT."' />";
|
735 |
+
$output .= "<a class='button delete_button' ' href='admin.php?page=".WPSC_DIR_NAME."/display-items.php&deleteid=".$product['id']."' onclick=\"return conf();\" >".TXT_WPSC_DELETE_PRODUCT."</a>";
|
736 |
+
$output .= " <td>\n\r";
|
737 |
+
$output .= " </tr>\n\r";
|
738 |
+
|
739 |
+
$output .= " </table>\n\r";
|
740 |
+
return $output;
|
741 |
+
}
|
742 |
+
|
743 |
+
function nzshpcrt_getcategoryform($catid)
|
744 |
+
{
|
745 |
+
global $wpdb,$nzshpcrt_imagesize_info;
|
746 |
+
$sql = "SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `id`=$catid LIMIT 1";
|
747 |
+
$product_data = $wpdb->get_results($sql,ARRAY_A) ;
|
748 |
+
$product = $product_data[0];
|
749 |
+
$output .= " <table class='category_forms'>\n\r";
|
750 |
+
$output .= " <tr>\n\r";
|
751 |
+
$output .= " <td>\n\r";
|
752 |
+
$output .= TXT_WPSC_NAME.": ";
|
753 |
+
$output .= " </td>\n\r";
|
754 |
+
$output .= " <td>\n\r";
|
755 |
+
$output .= "<input type='text' name='title' value='".stripslashes($product['name'])."' />";
|
756 |
+
$output .= " </td>\n\r";
|
757 |
+
$output .= " </tr>\n\r";
|
758 |
+
|
759 |
+
$output .= " <tr>\n\r";
|
760 |
+
$output .= " <td>\n\r";
|
761 |
+
$output .= TXT_WPSC_DESCRIPTION.": ";
|
762 |
+
$output .= " </td>\n\r";
|
763 |
+
$output .= " <td>\n\r";
|
764 |
+
$output .= "<textarea name='description' cols='40' rows='8' >".stripslashes($product['description'])."</textarea>";
|
765 |
+
$output .= " </td>\n\r";
|
766 |
+
$output .= " </tr>\n\r";
|
767 |
+
$output .= " </tr>\n\r";
|
768 |
+
|
769 |
+
$output .= " <tr>\n\r";
|
770 |
+
$output .= " <td>\n\r";
|
771 |
+
$output .= TXT_WPSC_CATEGORY_PARENT.": ";
|
772 |
+
$output .= " </td>\n\r";
|
773 |
+
$output .= " <td>\n\r";
|
774 |
+
$output .= wpsc_parent_category_list($product['group_id'], $product['id'], $product['category_parent']);
|
775 |
+
$output .= " </td>\n\r";
|
776 |
+
$output .= " </tr>\n\r";
|
777 |
+
$output .= " </tr>\n\r";
|
778 |
+
|
779 |
+
$output .= " <tr>\n\r";
|
780 |
+
$output .= " <td>\n\r";
|
781 |
+
$output .= TXT_WPSC_IMAGE.": ";
|
782 |
+
$output .= " </td>\n\r";
|
783 |
+
$output .= " <td>\n\r";
|
784 |
+
$output .= "<input type='file' name='image' value='' />";
|
785 |
+
$output .= " </td>\n\r";
|
786 |
+
$output .= " </tr>\n\r";
|
787 |
+
$output .= " </tr>\n\r";
|
788 |
+
|
789 |
+
if(function_exists("getimagesize"))
|
790 |
+
{
|
791 |
+
if($product['image'] != '')
|
792 |
+
{
|
793 |
+
$imagepath = WPSC_CATEGORY_DIR . $product['image'];
|
794 |
+
$imagetype = @getimagesize($imagepath); //previously exif_imagetype()
|
795 |
+
$output .= " <tr>\n\r";
|
796 |
+
$output .= " <td>\n\r";
|
797 |
+
$output .= " </td>\n\r";
|
798 |
+
$output .= " <td>\n\r";
|
799 |
+
$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>";
|
800 |
+
$output .= " </td>\n\r";
|
801 |
+
$output .= " </tr>\n\r";
|
802 |
+
}
|
803 |
+
else
|
804 |
+
{
|
805 |
+
$output .= " <tr>\n\r";
|
806 |
+
$output .= " <td>\n\r";
|
807 |
+
$output .= " </td>\n\r";
|
808 |
+
$output .= " <td>\n\r";
|
809 |
+
$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>";
|
810 |
+
$output .= " </td>\n\r";
|
811 |
+
$output .= " </tr>\n\r";
|
812 |
+
}
|
813 |
+
}
|
814 |
+
|
815 |
+
$output .= " <tr>\n\r";
|
816 |
+
$output .= " <td>\n\r";
|
817 |
+
$output .= TXT_WPSC_DELETEIMAGE.": ";
|
818 |
+
$output .= " </td>\n\r";
|
819 |
+
$output .= " <td>\n\r";
|
820 |
+
$output .= "<input type='checkbox' name='deleteimage' value='1' />";
|
821 |
+
$output .= " </td>\n\r";
|
822 |
+
$output .= " </tr>\n\r";
|
823 |
+
$output .= " </tr>\n\r";
|
824 |
+
|
825 |
+
$output .= " <tr>\n\r";
|
826 |
+
$output .= " <td>\n\r";
|
827 |
+
$output .= " </td>\n\r";
|
828 |
+
$output .= " <td>\n\r";
|
829 |
+
$output .= "<input type='hidden' name='prodid' value='".$product['id']."' />";
|
830 |
+
$output .= "<input type='hidden' name='submit_action' value='edit' />";
|
831 |
+
$output .= "<input class='button' style='float:left;' type='submit' name='submit' value='".TXT_WPSC_EDIT."' />";
|
832 |
+
$output .= "<a class='button delete_button' href='admin.php?page=".WPSC_DIR_NAME."/display-category.php&deleteid=".$product['id']."' onclick=\"return conf();\" >".TXT_WPSC_DELETE."</a>";
|
833 |
+
$output .= " </td>\n\r";
|
834 |
+
$output .= " </tr>\n\r";
|
835 |
+
$output .= " </table>\n\r";
|
836 |
+
return $output;
|
837 |
+
}
|
838 |
+
|
839 |
+
function nzshpcrt_getbrandsform($catid)
|
840 |
+
{
|
841 |
+
global $wpdb,$nzshpcrt_imagesize_info;
|
842 |
+
|
843 |
+
$sql = "SELECT * FROM `".$wpdb->prefix."product_brands` WHERE `id`='$catid' LIMIT 1";
|
844 |
+
$product_data = $wpdb->get_results($sql,ARRAY_A) ;
|
845 |
+
$product = $product_data[0];
|
846 |
+
$output .= " <table>\n\r";
|
847 |
+
$output .= " <tr>\n\r";
|
848 |
+
$output .= " <td>\n\r";
|
849 |
+
$output .= TXT_WPSC_NAME.": ";
|
850 |
+
$output .= " </td>\n\r";
|
851 |
+
$output .= " <td>\n\r";
|
852 |
+
$output .= "<input type='text' name='title' value='".stripslashes($product['name'])."' />";
|
853 |
+
$output .= " </td>\n\r";
|
854 |
+
$output .= " </tr>\n\r";
|
855 |
+
|
856 |
+
$output .= " <tr>\n\r";
|
857 |
+
$output .= " <td>\n\r";
|
858 |
+
$output .= TXT_WPSC_DESCRIPTION.": ";
|
859 |
+
$output .= " </td>\n\r";
|
860 |
+
$output .= " <td>\n\r";
|
861 |
+
$output .= "<textarea name='description' cols='40' rows='8' >".stripslashes($product['description'])."</textarea>";
|
862 |
+
$output .= " </td>\n\r";
|
863 |
+
$output .= " </tr>\n\r";
|
864 |
+
$output .= " </tr>\n\r";
|
865 |
+
|
866 |
+
$output .= " <tr>\n\r";
|
867 |
+
$output .= " <td>\n\r";
|
868 |
+
$output .= " </td>\n\r";
|
869 |
+
$output .= " <td>\n\r";
|
870 |
+
$output .= "<input type='hidden' name='prodid' value='".$product['id']."' />";
|
871 |
+
$output .= "<input type='hidden' name='submit_action' value='edit' />";
|
872 |
+
$output .= "<input class='button' style='float:left;' type='submit' name='submit' value='".TXT_WPSC_EDIT."' />";
|
873 |
+
$output .= "<a class='button delete_button' href='admin.php?page=".WPSC_DIR_NAME."/display-brands.php&deleteid=".$product['id']."' onclick=\"return conf();\" >".TXT_WPSC_DELETE."</a>";
|
874 |
+
$output .= " </td>\n\r";
|
875 |
+
$output .= " </tr>\n\r";
|
876 |
+
$output .= " </table>\n\r";
|
877 |
+
return $output;
|
878 |
+
}
|
879 |
+
|
880 |
+
function nzshpcrt_getvariationform($variation_id)
|
881 |
+
{
|
882 |
+
global $wpdb,$nzshpcrt_imagesize_info;
|
883 |
+
|
884 |
+
$variation_sql = "SELECT * FROM `".$wpdb->prefix."product_variations` WHERE `id`='$variation_id' LIMIT 1";
|
885 |
+
$variation_data = $wpdb->get_results($variation_sql,ARRAY_A) ;
|
886 |
+
$variation = $variation_data[0];
|
887 |
+
$output .= " <table>\n\r";
|
888 |
+
$output .= " <tr>\n\r";
|
889 |
+
$output .= " <td>\n\r";
|
890 |
+
$output .= TXT_WPSC_NAME.": ";
|
891 |
+
$output .= " </td>\n\r";
|
892 |
+
$output .= " <td>\n\r";
|
893 |
+
$output .= "<input type='text' name='title' value='".stripslashes($variation['name'])."' />";
|
894 |
+
$output .= " </td>\n\r";
|
895 |
+
$output .= " </tr>\n\r";
|
896 |
+
|
897 |
+
$output .= " <tr>\n\r";
|
898 |
+
$output .= " <td>\n\r";
|
899 |
+
$output .= TXT_WPSC_VARIATION_VALUES.": ";
|
900 |
+
$output .= " </td>\n\r";
|
901 |
+
$output .= " <td>\n\r";
|
902 |
+
$variation_values_sql = "SELECT * FROM `".$wpdb->prefix."variation_values` WHERE `variation_id`='$variation_id' ORDER BY `id` ASC";
|
903 |
+
$variation_values = $wpdb->get_results($variation_values_sql,ARRAY_A);
|
904 |
+
$variation_value_count = count($variation_values);
|
905 |
+
$output .= "<div id='edit_variation_values'>";
|
906 |
+
$num = 0;
|
907 |
+
foreach($variation_values as $variation_value)
|
908 |
+
{
|
909 |
+
$output .= "<span id='variation_value_".$num."'>";
|
910 |
+
$output .= "<input type='text' name='variation_values[".$variation_value['id']."]' value='".htmlentities(stripslashes($variation_value['name']), ENT_QUOTES)."' />";
|
911 |
+
if($variation_value_count > 1)
|
912 |
+
{
|
913 |
+
$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>";
|
914 |
+
}
|
915 |
+
$output .= "<br />";
|
916 |
+
$output .= "</span>";
|
917 |
+
$num++;
|
918 |
+
}
|
919 |
+
$output .= "</div>";
|
920 |
+
$output .= "<a href='#' onclick='return add_variation_value(\"edit\")'>".TXT_WPSC_ADD."</a>";
|
921 |
+
$output .= " </td>\n\r";
|
922 |
+
$output .= " </tr>\n\r";
|
923 |
+
$output .= " </tr>\n\r";
|
924 |
+
|
925 |
+
$output .= " <tr>\n\r";
|
926 |
+
$output .= " <td>\n\r";
|
927 |
+
$output .= " </td>\n\r";
|
928 |
+
$output .= " <td>\n\r";
|
929 |
+
$output .= "<input type='hidden' name='prodid' value='".$variation['id']."' />";
|
930 |
+
$output .= "<input type='hidden' name='submit_action' value='edit' />";
|
931 |
+
$output .= "<input class='button' style='float:left;' type='submit' name='submit' value='".TXT_WPSC_EDIT."' />";
|
932 |
+
$output .= "<a class='button delete_button' href='admin.php?page=".WPSC_DIR_NAME."/display_variations.php&deleteid=".$variation['id']."' onclick=\"return conf();\" >".TXT_WPSC_DELETE."</a>";
|
933 |
+
$output .= " </td>\n\r";
|
934 |
+
$output .= " </tr>\n\r";
|
935 |
+
$output .= " </table>\n\r";
|
936 |
+
return $output;
|
937 |
+
}
|
938 |
+
|
939 |
+
function coupon_edit_form($coupon) {
|
940 |
+
$start_timestamp = strtotime($coupon['start']);
|
941 |
+
$end_timestamp = strtotime($coupon['expiry']);
|
942 |
+
$id = $coupon['id'];
|
943 |
+
$output = '';
|
944 |
+
$output .= "<form name='edit_coupon' method='post' action='".get_option('siteurl')."/wp-admin/admin.php?page=".WPSC_DIR_NAME."/display-coupons.php'>\n\r";
|
945 |
+
$output .= " <input type='hidden' value='true' name='is_edit_coupon' />\n\r";
|
946 |
+
$output .= "<table class='add-coupon'>\n\r";
|
947 |
+
$output .= " <tr>\n\r";
|
948 |
+
$output .= " <th>".TXT_WPSC_COUPON_CODE."</th>\n\r";
|
949 |
+
$output .= " <th>".TXT_WPSC_DISCOUNT."</th>\n\r";
|
950 |
+
$output .= " <th>".TXT_WPSC_START."</th>\n\r";
|
951 |
+
$output .= " <th>".TXT_WPSC_EXPIRY."</th>\n\r";
|
952 |
+
$output .= " <th>".TXT_WPSC_USE_ONCE."</th>\n\r";
|
953 |
+
$output .= " <th>".TXT_WPSC_ACTIVE."</th>\n\r";
|
954 |
+
$output .= " <th>".TXT_WPSC_PERTICKED."</th>\n\r";
|
955 |
+
$output .= " <th></th>\n\r";
|
956 |
+
$output .= " </tr>\n\r";
|
957 |
+
$output .= " <tr>\n\r";
|
958 |
+
$output .= " <td>\n\r";
|
959 |
+
$output .= " <input type='text' value='".$coupon['coupon_code']."' name='edit_coupon[".$id."][coupon_code]' />\n\r";
|
960 |
+
$output .= " </td>\n\r";
|
961 |
+
$output .= " <td>\n\r";
|
962 |
+
$output .= " <input type='text' value='".$coupon['value']."' size='3' name=edit_coupon[".$id."][value]' />\n\r";
|
963 |
+
$output .= " <select name='edit_coupon[".$id."][is-percentage]'>\n\r";
|
964 |
+
$output .= " <option value='0' ".(($coupon['is-percentage'] == 0) ? "selected='true'" : '')." >$</option>\n\r";//
|
965 |
+
$output .= " <option value='1' ".(($coupon['is-percentage'] == 1) ? "selected='true'" : '')." >%</option>\n\r";
|
966 |
+
$output .= " </select>\n\r";
|
967 |
+
$output .= " </td>\n\r";
|
968 |
+
$output .= " <td>\n\r";
|
969 |
+
$output .= " <select name='edit_coupon[".$id."][start][day]'>\n\r";
|
970 |
+
for($i = 1; $i <=31; ++$i) {
|
971 |
+
$selected = '';
|
972 |
+
if($i == date("d", $start_timestamp)) { $selected = "selected='true'"; }
|
973 |
+
$output .= " <option $selected value='$i'>$i</option>";
|
974 |
+
}
|
975 |
+
$output .= " </select>\n\r";
|
976 |
+
$output .= " <select name='edit_coupon[".$id."][start][month]'>\n\r";
|
977 |
+
for($i = 1; $i <=12; ++$i) {
|
978 |
+
$selected = '';
|
979 |
+
if($i == (int)date("m", $start_timestamp)) { $selected = "selected='true'"; }
|
980 |
+
$output .= " <option $selected value='$i'>".date("M",mktime(0, 0, 0, $i, 1, date("Y")))."</option>";
|
981 |
+
}
|
982 |
+
$output .= " </select>\n\r";
|
983 |
+
$output .= " <select name='edit_coupon[".$id."][start][year]'>\n\r";
|
984 |
+
for($i = date("Y"); $i <= (date("Y") +12); ++$i) {
|
985 |
+
$selected = '';
|
986 |
+
if($i == date("Y", $start_timestamp)) { $selected = "selected='true'"; }
|
987 |
+
$output .= " <option $selected value='$i'>".$i."</option>";
|
988 |
+
}
|
989 |
+
$output .= " </select>\n\r";
|
990 |
+
$output .= " </td>\n\r";
|
991 |
+
$output .= " <td>\n\r";
|
992 |
+
$output .= " <select name='edit_coupon[".$id."][expiry][day]'>\n\r";
|
993 |
+
for($i = 1; $i <=31; ++$i) {
|
994 |
+
$selected = '';
|
995 |
+
if($i == date("d", $end_timestamp)) { $selected = "selected='true'"; }
|
996 |
+
$output .= " <option $selected value='$i'>$i</option>";
|
997 |
+
}
|
998 |
+
$output .= " </select>\n\r";
|
999 |
+
$output .= " <select name='edit_coupon[".$id."][expiry][month]'>\n\r";
|
1000 |
+
|
1001 |
+
for($i = 1; $i <=12; ++$i) {
|
1002 |
+
$selected = '';
|
1003 |
+
if($i == (int)date("m", $end_timestamp)) { $selected = "selected='true'"; }
|
1004 |
+
$output .= " <option $selected value='$i'>".date("M",mktime(0, 0, 0, $i, 1, date("Y")))."</option>";
|
1005 |
+
}
|
1006 |
+
$output .= " </select>\n\r";
|
1007 |
+
$output .= " <select name='edit_coupon[".$id."][expiry][year]'>\n\r";
|
1008 |
+
for($i = date("Y"); $i <= (date("Y") +12); ++$i) {
|
1009 |
+
$selected = '';
|
1010 |
+
if($i == (date("Y", $end_timestamp))) { $selected = "selected='true'"; }
|
1011 |
+
$output .= " <option $selected value='$i'>".$i."</option>\n\r";
|
1012 |
+
}
|
1013 |
+
$output .= " </select>\n\r";
|
1014 |
+
$output .= " </td>\n\r";
|
1015 |
+
$output .= " <td>\n\r";
|
1016 |
+
$output .= " <input type='hidden' value='0' name='edit_coupon[".$id."][use-once]' />\n\r";
|
1017 |
+
$output .= " <input type='checkbox' value='1' ".(($coupon['use-once'] == 1) ? "checked='true'" : '')." name='edit_coupon[".$id."][use-once]' />\n\r";
|
1018 |
+
$output .= " </td>\n\r";
|
1019 |
+
$output .= " <td>\n\r";
|
1020 |
+
$output .= " <input type='hidden' value='0' name='edit_coupon[".$id."][active]' />\n\r";
|
1021 |
+
$output .= " <input type='checkbox' value='1' ".(($coupon['active'] == 1) ? "checked='true'" : '')." name='edit_coupon[".$id."][active]' />\n\r";
|
1022 |
+
$output .= " </td>\n\r";
|
1023 |
+
$output .= " <td>\n\r";
|
1024 |
+
$output .= " <input type='hidden' value='".$id."' name='edit_coupon[".$id."][id]' />\n\r";
|
1025 |
+
//$output .= " <input type='hidden' value='false' name='add_coupon' />\n\r";
|
1026 |
+
$output .= " <input type='submit' value='Submit' name='edit_coupon[".$id."][submit_coupon]' />\n\r";
|
1027 |
+
$output .= " <input type='submit' value='Delete' name='edit_coupon[".$id."][delete_coupon]' />\n\r";
|
1028 |
+
|
1029 |
+
$output .= " </td>\n\r";
|
1030 |
+
$output .= " </tr>\n\r";
|
1031 |
+
$output .= "</table>\n\r";
|
1032 |
+
$output .= "</form>\n\r";
|
1033 |
+
return $output;
|
1034 |
+
}
|
1035 |
+
|
1036 |
+
function setting_button(){
|
1037 |
+
$output.="<div><input type='button' value='Settings »' class='button' onclick='display_settings_button()'>";
|
1038 |
+
$output.="<span id='settings_button' style='width:180px;background-color:#f1f1f1;position:absolute; border:1px solid black; display:none;'>";
|
1039 |
+
$output.="<ul class='settings_button'>";
|
1040 |
+
$output.="<li><a href='?page=".WPSC_DIR_NAME."/options.php'>Shop Settings</a></li>";
|
1041 |
+
$output.="<li><a href='?page=".WPSC_DIR_NAME."/gatewayoptions.php'>Money and Payment</a></li>";
|
1042 |
+
$output.="<li><a href='?page=".WPSC_DIR_NAME."/form_fields.php'>Chechkout page Settings</a></li>";
|
1043 |
+
$output.="<li><a href='?page=".WPSC_DIR_NAME."/instructions.php'>Help/Upgrade</a></li>";
|
1044 |
+
$output.="</ul>";
|
1045 |
+
$output.="</span> </div>";
|
1046 |
+
|
1047 |
+
return $output;
|
1048 |
+
}
|
1049 |
+
?>
|
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,856 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 td{ vertical-align: top; }
|
31 |
+
|
32 |
+
table.wpsc_options tr td input.text, table.wpsc_options tr td textarea{ width: 300px; }
|
33 |
+
|
34 |
+
table.wpsc_options tr td textarea{ height: 120px; }
|
35 |
+
|
36 |
+
table#productpage{
|
37 |
+
width: 100%;
|
38 |
+
clear: both;
|
39 |
+
border-collapse: collapse;
|
40 |
+
}
|
41 |
+
|
42 |
+
table#productpage tr td{
|
43 |
+
vertical-align: top;
|
44 |
+
padding: 0px 0px 0px 6px;
|
45 |
+
}
|
46 |
+
|
47 |
+
table#productpage tr td.secondcol{ width: 60%; margin-left: 20px; ; }
|
48 |
+
|
49 |
+
table#itemlist{
|
50 |
+
width: 100%;
|
51 |
+
border-collapse:collapse;
|
52 |
+
border:1px solid #bbb;
|
53 |
+
border-top:none;
|
54 |
+
}
|
55 |
+
|
56 |
+
|
57 |
+
/* table#itemlist tr{border-left:1px solid #bbb;border-right:1px solid #bbb;} */
|
58 |
+
table#itemlist tr td{text-align: left; padding:10px 5px 8px 5px; }
|
59 |
+
|
60 |
+
table#itemlist tr.products{border-left:1px solid #bbb;border-right:1px solid #bbb;}
|
61 |
+
table#itemlist tr.productsalt{background-color:#f3f3f3;border-left:1px solid #bbb;border-right:1px solid #bbb;}
|
62 |
+
table#itemlist tr.products td{text-align: left;padding:0px; vertical-align: middle ; border-top:1px solid #bbb;border-bottom:1px solid #bbb;}
|
63 |
+
table#itemlist tr.productsalt td{text-align: left;padding:0px; vertical-align: middle ; border-top:1px solid #bbb;border-bottom:1px solid #bbb;}
|
64 |
+
|
65 |
+
table#itemlist tr td.imagecol{ padding: 4px;}
|
66 |
+
|
67 |
+
table#itemlist tr td.colspan{ text-align: left; padding: 0px; }
|
68 |
+
|
69 |
+
table#itemlist tr.firstrow td{ font-weight: bold; padding-left: 5px; padding-right: 5px; }
|
70 |
+
|
71 |
+
|
72 |
+
|
73 |
+
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;}
|
74 |
+
table tr.selectcategory{background-color:#E4F2FD;border-left:1px solid #bbb;border-right:1px solid #bbb;}
|
75 |
+
|
76 |
+
table.itemlist{ margin: 0px; }
|
77 |
+
|
78 |
+
div.subcategory{ list-style-type: none; vertical-align: top; margin: 0px; padding: 0px; }
|
79 |
+
|
80 |
+
div.subcategory img.category_indenter{ float: left; margin-top: 10px; }
|
81 |
+
table.additem{ width: 100%; border-left:1px solid #bbb;border-right:1px solid #bbb;}
|
82 |
+
|
83 |
+
|
84 |
+
table.itemlist tr td{ text-align: center; padding-left: 3px; padding-right: 3px; }
|
85 |
+
|
86 |
+
table.edititem{ width: 100%;}
|
87 |
+
span.small{ font-size: 9pt; }
|
88 |
+
span.small_italic{font-size:9px; font-style:italic;color:#888;}
|
89 |
+
table.producttext{width:497px;border-collapse:collapse;border-left:1px solid #bbb;border-right:1px solid #bbb;}
|
90 |
+
table tr.firstrowth td{ vertical-align: top; padding:10px 5px 8px;}
|
91 |
+
|
92 |
+
div#productform{ display: none; }
|
93 |
+
|
94 |
+
div#productform table tr td{ height: 11px !important; }
|
95 |
+
div#productform table.additem td.itemfirstcol{ width: 120px !important; padding-left:8px; vertical-align: middle; }
|
96 |
+
|
97 |
+
div#additem{ display: block;}
|
98 |
+
|
99 |
+
/* div#additem table tr td{ height: 11px; } */
|
100 |
+
|
101 |
+
div#additem table.additem td.itemfirstcol{ width: 120px !important; padding-left:8px; vertical-align: middle; }
|
102 |
+
|
103 |
+
div#productform td.itemfirstcol{ width: 120px !important; padding-left:8px; vertical-align: middle; }
|
104 |
+
div#additem table.additem input.text,div#additem table.additem textarea{margin-right:6px;width:350px;border:1px solid #bbb;}
|
105 |
+
div#productform input.text,div#productform textarea, div#additem input.text,div#additem textarea{margin-right:6px;width:350px;border:1px solid #bbb;}
|
106 |
+
input.image_resize{ position: relative; top: 4px; }
|
107 |
+
|
108 |
+
#loadingindicator_span{ visibility: hidden; }
|
109 |
+
|
110 |
+
strong.form_group{ font-size: 11pt; color: #ccc; }
|
111 |
+
|
112 |
+
strong.form_group span{ font-size: 8pt; }
|
113 |
+
|
114 |
+
span.image_size_text{ font-size: 8pt; }
|
115 |
+
|
116 |
+
img#previewimage{ width: 100px; max-width: 100px; }
|
117 |
+
|
118 |
+
div#preview_button{ width: 100%; text-align: center; }
|
119 |
+
|
120 |
+
a#preview_button{ font-size: 8pt; }
|
121 |
+
|
122 |
+
a.lightbox_links{ border-bottom: none; }
|
123 |
+
|
124 |
+
td#product_log_data{ width: 70%; vertical-align: top; }
|
125 |
+
|
126 |
+
td#order_summary_container{ padding-left: 10px; padding-top: 0em; vertical-align: top; }
|
127 |
+
|
128 |
+
td#order_summary_container strong.order_summary{ display: block; margin-top: 4px; margin-bottom: 3px; }
|
129 |
+
|
130 |
+
td#order_summary_container div.order_summary{ background-color: #eaf2f5; border: 1px solid #d7e4ec; padding-top: 15px; padding-left: 15px; padding-right: 15px; }
|
131 |
+
|
132 |
+
td#order_summary_container div.wpsc_news{
|
133 |
+
background-color: #eaf2f5;
|
134 |
+
border: 1px solid #d7e4ec;
|
135 |
+
padding-top: 5px;
|
136 |
+
padding-left: 15px;
|
137 |
+
padding-right: 15px;
|
138 |
+
margin-bottom: 10px;
|
139 |
+
position: relative;
|
140 |
+
}
|
141 |
+
|
142 |
+
td#order_summary_container div.wpsc_news strong{
|
143 |
+
margin-top: 0px;
|
144 |
+
}
|
145 |
+
|
146 |
+
ul.ecom_dashboard {
|
147 |
+
padding-left: 1em;
|
148 |
+
margin-top: 5px;
|
149 |
+
}
|
150 |
+
|
151 |
+
ul.ecom_dashboard li{
|
152 |
+
padding: 0px;
|
153 |
+
margin: 0px;
|
154 |
+
font-size: 8pt;
|
155 |
+
/* list-style-type: none; */
|
156 |
+
}
|
157 |
+
|
158 |
+
a#close_news_box{
|
159 |
+
position: absolute;
|
160 |
+
top: 2px;
|
161 |
+
right: 4px;
|
162 |
+
display: block;
|
163 |
+
text-decoration: none;
|
164 |
+
border: none;
|
165 |
+
}
|
166 |
+
|
167 |
+
div.order_summary_subsection{ margin-bottom: 1em; }
|
168 |
+
|
169 |
+
div.order_summary_subsection strong{ display: block; border-bottom: 1px solid #d0dee7; width: 100%; font-size: 8pt; }
|
170 |
+
|
171 |
+
div.order_summary_subsection p{ font-size: 8pt; display: block; margin-top: 3px; }
|
172 |
+
|
173 |
+
|
174 |
+
td#order_summary_container div.gold-cart_pesterer{ background-color: #eaf2f5; border: 1px solid #d7e4ec; padding: 15px; margin-top: 15px; }
|
175 |
+
|
176 |
+
td#order_summary_container div.gold-cart_pesterer div{ font-size: 8pt; color: #666666; } /*
|
177 |
+
td#order_summary_container div.gold-cart_pesterer div a{ color: #666666; border-bottom: 1px solid #666666; }
|
178 |
+
td#order_summary_container div.gold-cart_pesterer div a:hover { color: #666666; border-bottom: 1px solid #666666; }*/
|
179 |
+
td#order_summary_container div.gold-cart_pesterer div img{ float: left; margin-right: 12px; }
|
180 |
+
|
181 |
+
|
182 |
+
a.image_link{ border-bottom: none !important; }
|
183 |
+
|
184 |
+
a.image_link img{ border-bottom: none !important; }
|
185 |
+
|
186 |
+
a.add_item_link{ display: block; border-bottom: none !important; }
|
187 |
+
|
188 |
+
a.add_item_link span{ /*border-bottom: 1px solid #69c;*/ }
|
189 |
+
|
190 |
+
a.add_item_link img{ margin-bottom: -3px; }
|
191 |
+
|
192 |
+
table#form_field_table tr td, table#form_field_table tr th{ border: 1px solid white; }
|
193 |
+
|
194 |
+
table#form_field_table tr th{ margin: 0px; padding:0px; }
|
195 |
+
|
196 |
+
table#form_field_table tr td.namecol{ }
|
197 |
+
|
198 |
+
table#form_field_table tr *.namecol{ width: 170px; padding-right: 8px; }
|
199 |
+
table#form_field_table tr *.namecol input{ width: 160px; }
|
200 |
+
|
201 |
+
table#form_field_table tr *.typecol{ width: 120px; }
|
202 |
+
table#form_field_table tr *.typecol select{ width: 115px; }
|
203 |
+
|
204 |
+
table#form_field_table tr *.mandatorycol{ width: 90px; text-align: center; }
|
205 |
+
table#form_field_table tr *.mandatorycol input{ }
|
206 |
+
|
207 |
+
table#form_field_table tr *.logdisplaycol{ width: 70px; text-align: center; }
|
208 |
+
table#form_field_table tr *.logdisplaycol input{ }
|
209 |
+
|
210 |
+
table#form_field_table tr *.ordercol{ width: 70px; text-align: center; }
|
211 |
+
table#form_field_table tr *.ordercol input{ }
|
212 |
+
|
213 |
+
table#form_field_table tr th{ padding-left: 0px; padding-right: 0px;
|
214 |
+
}
|
215 |
+
|
216 |
+
|
217 |
+
div#form_field_form_container{ padding: 0px; margin: 0px; }
|
218 |
+
|
219 |
+
div#form_field_form_container div, div#form_field_form_container div table{ padding: 0px; margin: 0px; width: 100%; border-collapse: collapse; }
|
220 |
+
|
221 |
+
img.log_expander_icon { margin-right: 3px; }
|
222 |
+
|
223 |
+
/* td { border: 1px solid red; } */
|
224 |
+
|
225 |
+
div#form_field_form_container div table tr td{ padding: 0px; margin: 0px; }
|
226 |
+
|
227 |
+
div.order_status{ display: none;}
|
228 |
+
|
229 |
+
div.order_status div{ width: 100%; padding:1ex 0px 1ex 1em; display: block !important;}
|
230 |
+
|
231 |
+
div.order_status ul{ list-style-type: none; margin: 1ex 0px 0px 0px; padding: 0px; }
|
232 |
+
|
233 |
+
div.order_status ul li{ padding-left: 0px; }
|
234 |
+
|
235 |
+
div.order_status ul li input{ margin: 0px 2px -2px 0px; }
|
236 |
+
|
237 |
+
img.log_expander_icon { margin-right: 3px; }
|
238 |
+
|
239 |
+
/* td { border: 1px solid red; } */
|
240 |
+
|
241 |
+
td.authorize_info_box { vertical-align: top; text-align: left; }
|
242 |
+
|
243 |
+
div.authorize_info_box { background: #f0f8ff; vertical-align: middle; text-align: center; width: 284px; height: 117px; }
|
244 |
+
div.authorize_info_box table { display: block; height: 117px; margin: auto auto auto auto; width: 205px; }
|
245 |
+
div.authorize_info_box table tr td { text-align: left; height: 117px; vertical-align: middle; color: #999999; font-size: 8pt; }
|
246 |
+
|
247 |
+
hr.image_seperator { border-top: 1px solid #cccccc; border-bottom: none; border-left: none; border-right: none;}
|
248 |
+
|
249 |
+
table.add_extra_images { width: 100%; }
|
250 |
+
|
251 |
+
div#list_view_quantity_container{
|
252 |
+
}
|
253 |
+
|
254 |
+
a.product_log_rss {
|
255 |
+
border-bottom: none;
|
256 |
+
}
|
257 |
+
|
258 |
+
a.product_log_rss span{
|
259 |
+
border-bottom: 1px solid #6699cc;
|
260 |
+
}
|
261 |
+
|
262 |
+
a.noline{
|
263 |
+
text-decoration:none;
|
264 |
+
border:0px;
|
265 |
+
}
|
266 |
+
|
267 |
+
a.admin_download {
|
268 |
+
display: block;
|
269 |
+
height: 26px;
|
270 |
+
border-bottom: none;
|
271 |
+
}
|
272 |
+
|
273 |
+
a.admin_download img{
|
274 |
+
margin-right: 3px;
|
275 |
+
}
|
276 |
+
|
277 |
+
a.admin_download span{
|
278 |
+
border-bottom: 1px solid #6699cc;
|
279 |
+
}
|
280 |
+
|
281 |
+
h3.log_headers{
|
282 |
+
color: #71a4c8;
|
283 |
+
margin-bottom: 0px;
|
284 |
+
margin-top: 0px;
|
285 |
+
}
|
286 |
+
|
287 |
+
input.edit_button {
|
288 |
+
float: left;
|
289 |
+
}
|
290 |
+
|
291 |
+
a.delete_button {
|
292 |
+
display: block;
|
293 |
+
float: left;
|
294 |
+
width: auto;
|
295 |
+
color: #333333;
|
296 |
+
font-size: 13px;
|
297 |
+
margin-top: 1px;
|
298 |
+
vertical-align: middle;
|
299 |
+
padding:0.25em 0.25em 0.25em 0.25em !important;
|
300 |
+
height: 19px;
|
301 |
+
margin-left: 12px;
|
302 |
+
}
|
303 |
+
a.delete_button:hover{
|
304 |
+
color: #333333;
|
305 |
+
}
|
306 |
+
|
307 |
+
div.flag_email{
|
308 |
+
position: relative;
|
309 |
+
left: 60px;
|
310 |
+
}
|
311 |
+
|
312 |
+
td.positioning_buttons a{
|
313 |
+
border-bottom: none;
|
314 |
+
margin-left: 3px;
|
315 |
+
}
|
316 |
+
|
317 |
+
input.tax_forms{
|
318 |
+
text-align: right;
|
319 |
+
width: 2.75em;
|
320 |
+
}
|
321 |
+
|
322 |
+
a.add_image_upload_forms div{/*
|
323 |
+
height: 8pt;
|
324 |
+
width: 1ex;
|
325 |
+
background-color: #cccccc !important;
|
326 |
+
float: left;*/
|
327 |
+
display: none;
|
328 |
+
}
|
329 |
+
|
330 |
+
label.order_filters{ font-size: 8pt; }
|
331 |
+
input.order_filters{ margin-bottom: -2px; }
|
332 |
+
|
333 |
+
a.thickbox{
|
334 |
+
border: none;
|
335 |
+
}
|
336 |
+
a.thickbox img{
|
337 |
+
border: none;
|
338 |
+
}
|
339 |
+
|
340 |
+
.entry p { margin: 0 0 1em 0; }
|
341 |
+
|
342 |
+
|
343 |
+
div.select_product_file, div.edit_select_product_file{
|
344 |
+
width: 300px;
|
345 |
+
margin-top: 3px;
|
346 |
+
padding: 2px;
|
347 |
+
border: 1px solid #B2B2B2;
|
348 |
+
background-color: #eeeeee;
|
349 |
+
overflow: auto;
|
350 |
+
overflow-x: hidden;
|
351 |
+
position: relative;
|
352 |
+
padding-bottom: 6px;
|
353 |
+
margin-bottom: 0px;
|
354 |
+
}
|
355 |
+
|
356 |
+
div.select_product_file p, div.edit_select_product_file p{
|
357 |
+
margin: 0px;
|
358 |
+
width: 96%;
|
359 |
+
_width: 90%;
|
360 |
+
padding: 4px;
|
361 |
+
}
|
362 |
+
|
363 |
+
div.select_product_file p input, div.edit_select_product_file p input{
|
364 |
+
margin: 0px 4px -3px 0px;
|
365 |
+
}
|
366 |
+
|
367 |
+
div.select_product_file p.alt, div.edit_select_product_file p.alt{
|
368 |
+
background-color: #ffffff;
|
369 |
+
}
|
370 |
+
|
371 |
+
div.select_product_handle, div.edit_select_product_handle{
|
372 |
+
position: relative;
|
373 |
+
height: 6px;
|
374 |
+
width: 306px;
|
375 |
+
background-color: #b2b2b2;
|
376 |
+
font-size: 1px;
|
377 |
+
margin: 0px;
|
378 |
+
}
|
379 |
+
|
380 |
+
div.select_product_handle div, div.edit_select_product_handle div{
|
381 |
+
position: relative;
|
382 |
+
top: 1px;
|
383 |
+
_top: 0px;
|
384 |
+
height: 1px;
|
385 |
+
border-bottom: 1px dotted #ffffff;
|
386 |
+
width: 13px;
|
387 |
+
_width: 14px;
|
388 |
+
margin: 0px auto 0px auto;
|
389 |
+
}
|
390 |
+
|
391 |
+
span.admin_product_notes{
|
392 |
+
font-size: 9pt;
|
393 |
+
color: #666666;
|
394 |
+
}
|
395 |
+
|
396 |
+
span.select_product_note{
|
397 |
+
display: block;
|
398 |
+
margin-top: 10px;
|
399 |
+
}
|
400 |
+
|
401 |
+
table.product_variation_listing{
|
402 |
+
margin-bottom: 12px;
|
403 |
+
}
|
404 |
+
|
405 |
+
table.product_variation_listing th.variation_name{
|
406 |
+
color: #71A4C8;
|
407 |
+
font-style: italic;
|
408 |
+
text-align: left;
|
409 |
+
padding-bottom: 1px;
|
410 |
+
}
|
411 |
+
|
412 |
+
table.product_variation_grid{
|
413 |
+
margin-top: 12px;
|
414 |
+
}
|
415 |
+
|
416 |
+
table.product_variation_grid th.variation_name{
|
417 |
+
color: #71A4C8;
|
418 |
+
font-style: italic;
|
419 |
+
text-align: left;
|
420 |
+
padding-bottom: 1px;
|
421 |
+
}
|
422 |
+
|
423 |
+
div.wpsc_listen_button{
|
424 |
+
clear: both;
|
425 |
+
display: block;
|
426 |
+
height: 26px;
|
427 |
+
padding: 0px;
|
428 |
+
}
|
429 |
+
|
430 |
+
/* marketing / coupon page styling */
|
431 |
+
|
432 |
+
div.modify_coupon{ border: 1px solid #eeeeee; display: none; width: 100%; }
|
433 |
+
|
434 |
+
table.coupon_data{
|
435 |
+
width: 100%;
|
436 |
+
}
|
437 |
+
|
438 |
+
table.add-coupon tr th{ text-align: left; padding: 2px 5px 0px 5px; }
|
439 |
+
table.add-coupon tr td{ text-align: left; padding: 2px 5px 2px 5px; }
|
440 |
+
|
441 |
+
|
442 |
+
table.coupon-list{ width: 100%; }
|
443 |
+
|
444 |
+
table.coupon-list tr.toprow td{ text-align: left; font-weight:bold; }
|
445 |
+
|
446 |
+
table.coupon-list tr td{ padding: 2px 5px 2px 5px; }
|
447 |
+
|
448 |
+
table.coupon-list tr.alt{ background-color: #eeeeee; }
|
449 |
+
|
450 |
+
table.coupon-list tr.alt td{ background-color: #eeeeee; }
|
451 |
+
|
452 |
+
td#order_summary_container{ width: 80px; }
|
453 |
+
|
454 |
+
/* written by allen */
|
455 |
+
.groupWrapper{
|
456 |
+
width: 260px;
|
457 |
+
float: left;
|
458 |
+
margin-right: 1%;
|
459 |
+
min-height: 100px;
|
460 |
+
}
|
461 |
+
|
462 |
+
.serializer{
|
463 |
+
clear: both;
|
464 |
+
}
|
465 |
+
|
466 |
+
|
467 |
+
table#itemlist tr td.category_item_container {
|
468 |
+
padding:0px 0px 0px 0px;
|
469 |
+
border-left:1px solid #bbb;
|
470 |
+
border-bottom:1px solid #bbb;
|
471 |
+
border-right:1px solid #bbb;
|
472 |
+
}
|
473 |
+
|
474 |
+
.groupItem{
|
475 |
+
border-top:1px solid #bbb;
|
476 |
+
width:385px;
|
477 |
+
height:35px;
|
478 |
+
clear: both;
|
479 |
+
/* margin-left:-6px; */
|
480 |
+
padding: 0px 0px 4px 0px;
|
481 |
+
}
|
482 |
+
|
483 |
+
.groupItem .itemHeader{
|
484 |
+
width:35px;
|
485 |
+
line-height: 15px;
|
486 |
+
color: #000;
|
487 |
+
padding: 4px;
|
488 |
+
cursor: move;
|
489 |
+
height: 35px;
|
490 |
+
position: relative;
|
491 |
+
clear: both;
|
492 |
+
}
|
493 |
+
|
494 |
+
.groupItem .itemHeader a{
|
495 |
+
margin: 4px 0px 4px 0px;
|
496 |
+
font-weight: normal;
|
497 |
+
font-size: 11px;
|
498 |
+
text-decoration: none;
|
499 |
+
}
|
500 |
+
.sortHelper{
|
501 |
+
border: 3px dashed #666;
|
502 |
+
width: auto;
|
503 |
+
}
|
504 |
+
.groupWrapper p{
|
505 |
+
height: 1px;
|
506 |
+
overflow: hidden;
|
507 |
+
margin: 0;
|
508 |
+
padding: 0;
|
509 |
+
}
|
510 |
+
|
511 |
+
.inputsTooltip{
|
512 |
+
border: 1px solid #000;
|
513 |
+
background-color: #444;
|
514 |
+
padding: 4px;
|
515 |
+
color: #ccc;
|
516 |
+
font-family: Arial, Helvetica, sans-serif;
|
517 |
+
font-size: 11px;
|
518 |
+
width: 150px;
|
519 |
+
}
|
520 |
+
.inputsTooltip #tooltipTitle{
|
521 |
+
font-weight: bold;
|
522 |
+
}
|
523 |
+
|
524 |
+
#description{
|
525 |
+
width: 300px;
|
526 |
+
height: 150px;
|
527 |
+
cursor: ns-resize;
|
528 |
+
cursor: n-resize;
|
529 |
+
|
530 |
+
}
|
531 |
+
|
532 |
+
#description textarea{
|
533 |
+
width: 300px;
|
534 |
+
height: 150px;
|
535 |
+
}
|
536 |
+
#resizeS{
|
537 |
+
border:0px;
|
538 |
+
top:-4px;
|
539 |
+
margin-left:1px;
|
540 |
+
margin-top:-2px;
|
541 |
+
width: 308px;
|
542 |
+
height: 6px;
|
543 |
+
background-color: #ccc;
|
544 |
+
bottom: 0;
|
545 |
+
left: 1px;
|
546 |
+
background-image:url(i/resizable-s.gif);
|
547 |
+
background-repeat:no-repeat;
|
548 |
+
background-position: center;
|
549 |
+
overflow: hidden;
|
550 |
+
}
|
551 |
+
|
552 |
+
#description1{
|
553 |
+
width: 300px;
|
554 |
+
height: 150px;
|
555 |
+
cursor: ns-resize;
|
556 |
+
cursor: n-resize;
|
557 |
+
|
558 |
+
}
|
559 |
+
|
560 |
+
#description1 textarea{
|
561 |
+
width: 300px;
|
562 |
+
height: 150px;
|
563 |
+
}
|
564 |
+
|
565 |
+
#resizeS1{
|
566 |
+
border:0px;
|
567 |
+
top:-4px;
|
568 |
+
margin-left:1px;
|
569 |
+
margin-top:-2px;
|
570 |
+
width: 308px;
|
571 |
+
height: 6px;
|
572 |
+
background-color: #ccc;
|
573 |
+
bottom: 0;
|
574 |
+
left: 1px;
|
575 |
+
background-image:url(i/resizable-s.gif);
|
576 |
+
background-repeat:no-repeat;
|
577 |
+
background-position: center;
|
578 |
+
overflow: hidden;
|
579 |
+
}
|
580 |
+
|
581 |
+
.mce_plugin_cforms_img{
|
582 |
+
background:url(../images/cformsmce.gif) no-repeat 5px center;
|
583 |
+
border:0;
|
584 |
+
border-top: 1px dotted #cccccc;
|
585 |
+
border-bottom: 1px dotted #cccccc;
|
586 |
+
width:100%;
|
587 |
+
padding:0.3em 0 0.3em 120px;
|
588 |
+
}
|
589 |
+
div.panel_wrapper{
|
590 |
+
display:block;
|
591 |
+
height:22px;
|
592 |
+
overflow:visible;
|
593 |
+
width:100%;
|
594 |
+
padding:0;
|
595 |
+
background:white url(../images/cfii.gif) no-repeat right 1px;
|
596 |
+
}
|
597 |
+
div.panel_wrapper div.current{
|
598 |
+
display:block;
|
599 |
+
height:22px;
|
600 |
+
overflow:visible;
|
601 |
+
width:100%;
|
602 |
+
padding:15px 0 0 10px;
|
603 |
+
}
|
604 |
+
div.panel_wrapper div.current table {
|
605 |
+
font-size:13px;
|
606 |
+
}
|
607 |
+
td.cflabel{
|
608 |
+
font-size:12px;
|
609 |
+
|
610 |
+
}
|
611 |
+
td.cfinput{
|
612 |
+
padding-left:10px;
|
613 |
+
}
|
614 |
+
td.cfinput select {
|
615 |
+
font-size:12px;
|
616 |
+
width:210px;
|
617 |
+
}
|
618 |
+
div.mceActionPanel{
|
619 |
+
}
|
620 |
+
#cancel,
|
621 |
+
#insert{
|
622 |
+
width:120px!important;
|
623 |
+
}
|
624 |
+
|
625 |
+
td#order_summary_container div.menu {
|
626 |
+
background-color:#EAF2F5;
|
627 |
+
border:1px solid #D7E4EC;
|
628 |
+
padding-left:15px;
|
629 |
+
padding-right:15px;
|
630 |
+
padding-top:15px;
|
631 |
+
}
|
632 |
+
|
633 |
+
|
634 |
+
div#changenotice {
|
635 |
+
background: #e5f3ff;
|
636 |
+
display: none;
|
637 |
+
padding: 5px;
|
638 |
+
margin-left: 0px !important;
|
639 |
+
}
|
640 |
+
|
641 |
+
|
642 |
+
div.pli_img{
|
643 |
+
cursor:move;
|
644 |
+
left:0px;
|
645 |
+
width:35px;
|
646 |
+
top:0px;
|
647 |
+
float:left;
|
648 |
+
}
|
649 |
+
|
650 |
+
td.pli_name{
|
651 |
+
width:90px;
|
652 |
+
padding-left: 0px !important;
|
653 |
+
}
|
654 |
+
|
655 |
+
div.pli_name{
|
656 |
+
left:auto;
|
657 |
+
top:5px;
|
658 |
+
width:90px;
|
659 |
+
display:block;
|
660 |
+
float:left;
|
661 |
+
margin-left: 8px;
|
662 |
+
margin-top:10px;
|
663 |
+
}
|
664 |
+
|
665 |
+
div.pli_price{
|
666 |
+
left:auto;
|
667 |
+
width:50px;
|
668 |
+
display:block;
|
669 |
+
top:0px;
|
670 |
+
float:left;
|
671 |
+
margin-left: 80px;
|
672 |
+
margin-top:10px;
|
673 |
+
}
|
674 |
+
|
675 |
+
div#pli_edit{
|
676 |
+
left:auto;
|
677 |
+
width:auto;
|
678 |
+
top:0px;
|
679 |
+
float:left;
|
680 |
+
}
|
681 |
+
|
682 |
+
|
683 |
+
ul.settings_button{
|
684 |
+
list-style-type:none;
|
685 |
+
padding:0px 3px 0 10px;
|
686 |
+
margin:5px 0 0 0;
|
687 |
+
}
|
688 |
+
|
689 |
+
|
690 |
+
#additem .postbox, #productform .postbox, #titlediv, #additem .postarea, #additem .stuffbox {
|
691 |
+
border-color:#EBEBEB rgb(204, 204, 204) rgb(204, 204, 204) rgb(235, 235, 235);
|
692 |
+
}
|
693 |
+
#additem .postbox, #productform .postbox, #additem .stuffbox {
|
694 |
+
border-style:solid;
|
695 |
+
border-width:1px;
|
696 |
+
margin-bottom:10px;
|
697 |
+
margin-left:20px;
|
698 |
+
margin-right:8px;
|
699 |
+
padding:2px;
|
700 |
+
}
|
701 |
+
|
702 |
+
#additem .togbox,#productform .togbox {
|
703 |
+
background-color:#B2B2B2;
|
704 |
+
background-image:url(./images/toggle-arrow.gif);
|
705 |
+
}
|
706 |
+
#additem .togbox, #productform .togbox{
|
707 |
+
-moz-border-radius-bottomleft:3px;
|
708 |
+
-moz-border-radius-topleft:3px;
|
709 |
+
background-position:-10px 16px;
|
710 |
+
background-repeat:no-repeat;
|
711 |
+
display:block;
|
712 |
+
height:39px;
|
713 |
+
margin-left:-19px;
|
714 |
+
margin-top:-11px;
|
715 |
+
overflow:hidden;
|
716 |
+
position:absolute;
|
717 |
+
text-indent:-9999px;
|
718 |
+
width:12px;
|
719 |
+
border:none !important;
|
720 |
+
}
|
721 |
+
#additem h3, #productform h3 {
|
722 |
+
color:#333;
|
723 |
+
background-color:#EAF3FA;
|
724 |
+
}
|
725 |
+
#additem h3, #productform h3 {
|
726 |
+
font-size:14px;
|
727 |
+
font-weight:bold;
|
728 |
+
margin:0pt 0pt 0px;
|
729 |
+
padding:9px 5px;
|
730 |
+
}
|
731 |
+
|
732 |
+
#additem .closed h3, #productform .closed h3 {
|
733 |
+
margin: 0px;
|
734 |
+
}
|
735 |
+
|
736 |
+
#additem .closed .togbox, #productform .closed .togbox {
|
737 |
+
background-color:#2583AD;
|
738 |
+
background-image:url(images/toggle-arrow.gif);
|
739 |
+
background-position:4px 15px;
|
740 |
+
}
|
741 |
+
|
742 |
+
#additem .closed .inside, #productform .closed .inside {
|
743 |
+
width:548px;
|
744 |
+
display:none;
|
745 |
+
}
|
746 |
+
#additem .inside, #productform .inside {
|
747 |
+
font-size:11px;
|
748 |
+
margin:0pt 12px 15px;
|
749 |
+
}
|
750 |
+
|
751 |
+
div.categorisation_title {
|
752 |
+
background:#333333;
|
753 |
+
padding:10px 5px 8px;
|
754 |
+
position: relative;
|
755 |
+
top: 0px;
|
756 |
+
left: 0px;
|
757 |
+
}
|
758 |
+
|
759 |
+
|
760 |
+
|
761 |
+
div#add_categorisation, div#edit_categorisation{
|
762 |
+
display: none;
|
763 |
+
border: 1px solid #BBBBBB;
|
764 |
+
padding: 4px;
|
765 |
+
}
|
766 |
+
|
767 |
+
div#add_categorisation br, div#edit_categorisation br{
|
768 |
+
clear: both;
|
769 |
+
}
|
770 |
+
|
771 |
+
|
772 |
+
div#add_categorisation fieldset, div#edit_categorisation fieldset{
|
773 |
+
width: 230px;
|
774 |
+
float: left;
|
775 |
+
border: none;
|
776 |
+
}
|
777 |
+
|
778 |
+
div#add_categorisation fieldset label, div#edit_categorisation fieldset label{
|
779 |
+
display: block;
|
780 |
+
}
|
781 |
+
|
782 |
+
ul.categorisation_links{
|
783 |
+
list-style-type: none;
|
784 |
+
clear: both;
|
785 |
+
padding: 0px;
|
786 |
+
}
|
787 |
+
|
788 |
+
ul.categorisation_links li{
|
789 |
+
display: block;
|
790 |
+
float: left;
|
791 |
+
list-style-type: none;
|
792 |
+
margin: 0px;
|
793 |
+
font-size: 14px;
|
794 |
+
padding: 4px;
|
795 |
+
}
|
796 |
+
|
797 |
+
ul.categorisation_links li.selected a{
|
798 |
+
color: #D54E21;
|
799 |
+
}
|
800 |
+
|
801 |
+
|
802 |
+
a.add_category_link{
|
803 |
+
float: right;
|
804 |
+
}
|
805 |
+
|
806 |
+
|
807 |
+
div.product_custom_meta {
|
808 |
+
display: block;
|
809 |
+
width: 100%;
|
810 |
+
}
|
811 |
+
|
812 |
+
div.product_custom_meta a.add_more_meta {
|
813 |
+
display: block;
|
814 |
+
float: left;
|
815 |
+
margin-top: 18px;
|
816 |
+
margin-left: 4px;
|
817 |
+
}
|
818 |
+
|
819 |
+
div.product_custom_meta a.remove_meta {
|
820 |
+
display: block;
|
821 |
+
float: left;
|
822 |
+
margin-top: 18px;
|
823 |
+
margin-left: 4px;
|
824 |
+
}
|
825 |
+
|
826 |
+
|
827 |
+
div.product_custom_meta label {
|
828 |
+
display: block;
|
829 |
+
width: 170px;
|
830 |
+
float: left;
|
831 |
+
}
|
832 |
+
|
833 |
+
div.product_custom_meta label input {
|
834 |
+
font-size:13px;
|
835 |
+
width: 160px !important;
|
836 |
+
margin:1px !important;
|
837 |
+
padding:3px !important;
|
838 |
+
display: block;
|
839 |
+
}
|
840 |
+
|
841 |
+
div.product_custom_meta br {
|
842 |
+
clear: both;
|
843 |
+
}
|
844 |
+
|
845 |
+
table.product_editform {
|
846 |
+
width: 100%;
|
847 |
+
border-left:1px solid #bbb;
|
848 |
+
border-right:1px solid #bbb;
|
849 |
+
}
|
850 |
+
|
851 |
+
table.category_forms {
|
852 |
+
width: 100%;
|
853 |
+
border-left:1px solid #bbb;
|
854 |
+
border-right:1px solid #bbb;
|
855 |
+
border-bottom:1px solid #bbb;
|
856 |
+
}
|
wp-shopping-cart/admin.js
ADDED
@@ -0,0 +1,692 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
{
|
18 |
+
jQuery('div.select_product_file').Resizable({
|
19 |
+
minWidth: 300,
|
20 |
+
minHeight: select_min_height,
|
21 |
+
maxWidth: 300,
|
22 |
+
maxHeight: select_max_height,
|
23 |
+
handlers: {
|
24 |
+
s: '.select_product_handle'
|
25 |
+
}
|
26 |
+
});
|
27 |
+
}
|
28 |
+
);
|
29 |
+
|
30 |
+
function activate_resizable()
|
31 |
+
{
|
32 |
+
jQuery('div.edit_select_product_file').Resizable({
|
33 |
+
minWidth: 300,
|
34 |
+
minHeight: select_min_height,
|
35 |
+
maxWidth: 300,
|
36 |
+
maxHeight: select_max_height,
|
37 |
+
handlers: {
|
38 |
+
s: '.edit_select_product_handle'
|
39 |
+
}
|
40 |
+
});
|
41 |
+
}
|
42 |
+
|
43 |
+
function categorylist(url)
|
44 |
+
{
|
45 |
+
self.location = url;
|
46 |
+
}
|
47 |
+
|
48 |
+
function submit_change_country()
|
49 |
+
{
|
50 |
+
document.cart_options.submit();
|
51 |
+
//document.cart_options.submit();
|
52 |
+
}
|
53 |
+
|
54 |
+
var getresults=function(results)
|
55 |
+
{
|
56 |
+
document.getElementById('formcontent').innerHTML = results;
|
57 |
+
document.getElementById('additem').style.display = 'none';
|
58 |
+
document.getElementById('productform').style.display = 'block';
|
59 |
+
jQuery("#loadingindicator_span").css('visibility','hidden');
|
60 |
+
jQuery('#formcontent .postbox h3').click( function() {
|
61 |
+
jQuery(jQuery(this).parent('div.postbox')).toggleClass('closed');
|
62 |
+
if(jQuery(jQuery(this).parent('div.postbox')).hasClass('closed')) {
|
63 |
+
jQuery('a.togbox',this).html('+');
|
64 |
+
} else {
|
65 |
+
jQuery('a.togbox',this).html('–');
|
66 |
+
}
|
67 |
+
});
|
68 |
+
activate_resizable();
|
69 |
+
TB_init();
|
70 |
+
}
|
71 |
+
|
72 |
+
function filleditform(prodid)
|
73 |
+
{
|
74 |
+
ajax.post("index.php",getresults,"ajax=true&admin=true&prodid="+prodid);
|
75 |
+
jQuery('#loadingimage').attr('src', WPSC_URL+'/images/indicator.gif');
|
76 |
+
jQuery('#loadingindicator_span').css('visibility','visible');
|
77 |
+
}
|
78 |
+
|
79 |
+
function fillvariationform(variation_id)
|
80 |
+
{
|
81 |
+
ajax.post("index.php",getresults,"ajax=true&admin=true&variation_id="+variation_id);
|
82 |
+
jQuery('#loadingimage').attr('src', WPSC_URL+'/images/indicator.gif');
|
83 |
+
jQuery('#loadingindicator_span').css('visibility','visible');
|
84 |
+
}
|
85 |
+
|
86 |
+
function showaddform() {
|
87 |
+
document.getElementById('productform').style.display = 'none';
|
88 |
+
document.getElementById('additem').style.display = 'block';
|
89 |
+
return false;
|
90 |
+
}
|
91 |
+
|
92 |
+
function showadd_categorisation_form(){
|
93 |
+
if(jQuery('div#add_categorisation').css('display') != 'block') {
|
94 |
+
jQuery('div#add_categorisation').css('display', 'block');
|
95 |
+
jQuery('div#edit_categorisation').css('display', 'none');
|
96 |
+
} else {
|
97 |
+
jQuery('div#add_categorisation').css('display', 'none');
|
98 |
+
}
|
99 |
+
return false;
|
100 |
+
}
|
101 |
+
|
102 |
+
|
103 |
+
function showedit_categorisation_form(){
|
104 |
+
if(jQuery('div#edit_categorisation').css('display') != 'block') {
|
105 |
+
jQuery('div#edit_categorisation').css('display', 'block');
|
106 |
+
jQuery('div#add_categorisation').css('display', 'none');
|
107 |
+
} else {
|
108 |
+
jQuery('div#edit_categorisation').css('display', 'none');
|
109 |
+
}
|
110 |
+
return false;
|
111 |
+
}
|
112 |
+
|
113 |
+
function fillcategoryform(catid) {
|
114 |
+
ajax.post("index.php",getresults,"ajax=true&admin=true&catid="+catid);
|
115 |
+
}
|
116 |
+
|
117 |
+
function fillbrandform(catid) {
|
118 |
+
ajax.post("index.php",getresults,"ajax=true&admin=true&brandid="+catid);
|
119 |
+
}
|
120 |
+
|
121 |
+
var gercurrency=function(results)
|
122 |
+
{
|
123 |
+
document.getElementById('cslchar1').innerHTML = results;
|
124 |
+
document.getElementById('cslchar2').innerHTML = results;
|
125 |
+
document.getElementById('cslchar3').innerHTML = results;
|
126 |
+
document.getElementById('cslchar4').innerHTML = results;
|
127 |
+
}
|
128 |
+
|
129 |
+
function getcurrency(id) {
|
130 |
+
ajax.post("index.php",gercurrency,"ajax=true¤cyid="+id);
|
131 |
+
}
|
132 |
+
|
133 |
+
function country_list(id) {
|
134 |
+
var country_list=function(results) {
|
135 |
+
document.getElementById('options_region').innerHTML = results;
|
136 |
+
}
|
137 |
+
ajax.post("index.php",country_list,"ajax=true&get_country_tax=true&country_id="+id);
|
138 |
+
}
|
139 |
+
|
140 |
+
function hideelement(id) {
|
141 |
+
state = document.getElementById(id).style.display;
|
142 |
+
//alert(document.getElementById(id).style.display);
|
143 |
+
if(state != 'block') {
|
144 |
+
document.getElementById(id).style.display = 'block';
|
145 |
+
} else {
|
146 |
+
document.getElementById(id).style.display = 'none';
|
147 |
+
}
|
148 |
+
}
|
149 |
+
|
150 |
+
function update_preview_url(prodid) {
|
151 |
+
image_height = document.getElementById("image_height").value;
|
152 |
+
image_width = document.getElementById("image_width").value;
|
153 |
+
if(((image_height > 0) && (image_height <= 1024)) && ((image_width > 0) && (image_width <= 1024))) {
|
154 |
+
new_url = "index.php?productid="+prodid+"&height="+image_height+"&width="+image_width+"";
|
155 |
+
document.getElementById("preview_link").setAttribute('href',new_url);
|
156 |
+
} else {
|
157 |
+
new_url = "index.php?productid="+prodid+"";
|
158 |
+
document.getElementById("preview_link").setAttribute('href',new_url);
|
159 |
+
}
|
160 |
+
return false;
|
161 |
+
}
|
162 |
+
|
163 |
+
|
164 |
+
|
165 |
+
|
166 |
+
function checkimageresize() {
|
167 |
+
document.getElementById('image_resize2').checked = true;
|
168 |
+
}
|
169 |
+
|
170 |
+
|
171 |
+
|
172 |
+
function add_variation_value(value_type)
|
173 |
+
{
|
174 |
+
container_id = value_type+"_variation_values";
|
175 |
+
//alert(container_id);
|
176 |
+
last_element_id = document.getElementById(container_id).lastChild.id;
|
177 |
+
last_element_id = last_element_id.split("_");
|
178 |
+
last_element_id = last_element_id.reverse();
|
179 |
+
new_element_id = "variation_value_"+(parseInt(last_element_id[0])+1);
|
180 |
+
|
181 |
+
|
182 |
+
old_elements = document.getElementById(container_id).innerHTML;
|
183 |
+
|
184 |
+
//new_element_contents = "<span id='"+new_element_id+"'>";
|
185 |
+
new_element_contents = "";
|
186 |
+
if(value_type == "edit")
|
187 |
+
{
|
188 |
+
new_element_contents += "<input type='text' name='new_variation_values[]' value='' />";
|
189 |
+
}
|
190 |
+
else
|
191 |
+
{
|
192 |
+
new_element_contents += "<input type='text' name='variation_values[]' value='' />";
|
193 |
+
}
|
194 |
+
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 />";
|
195 |
+
//new_element_contents += "</span>";
|
196 |
+
|
197 |
+
new_element = document.createElement('span');
|
198 |
+
new_element.id = new_element_id;
|
199 |
+
|
200 |
+
document.getElementById(container_id).appendChild(new_element);
|
201 |
+
document.getElementById(new_element_id).innerHTML = new_element_contents;
|
202 |
+
return false;
|
203 |
+
}
|
204 |
+
|
205 |
+
|
206 |
+
// if(($_POST['ajax'] == "true") && ($_POST['remove_variation_value'] == "true") && is_numeric($_POST['variation_value_id']))
|
207 |
+
function remove_variation_value(id,variation_value)
|
208 |
+
{
|
209 |
+
var delete_variation_value=function(results)
|
210 |
+
{
|
211 |
+
}
|
212 |
+
element_count = document.getElementById("add_variation_values").childNodes.length;
|
213 |
+
if(element_count > 1)
|
214 |
+
{
|
215 |
+
ajax.post("index.php",delete_variation_value,"ajax=true&remove_variation_value=true&variation_value_id="+variation_value);
|
216 |
+
target_element = document.getElementById(id);
|
217 |
+
document.getElementById("add_variation_values").removeChild(target_element);
|
218 |
+
}
|
219 |
+
}
|
220 |
+
|
221 |
+
function remove_variation_value_field(id)
|
222 |
+
{
|
223 |
+
element_count = document.getElementById("add_variation_values").childNodes.length;
|
224 |
+
if(element_count > 1)
|
225 |
+
{
|
226 |
+
target_element = document.getElementById(id);
|
227 |
+
document.getElementById("add_variation_values").removeChild(target_element);
|
228 |
+
}
|
229 |
+
}
|
230 |
+
|
231 |
+
function variation_value_list(id) {
|
232 |
+
var display_list=function(results) {
|
233 |
+
eval(results);
|
234 |
+
if(variation_value_html != '') {
|
235 |
+
new_element_id = "product_variations_"+variation_value_id;
|
236 |
+
if(document.getElementById(new_element_id) === null) {
|
237 |
+
new_element = document.createElement('span');
|
238 |
+
new_element.id = new_element_id;
|
239 |
+
document.getElementById("edit_product_variations").appendChild(new_element);
|
240 |
+
document.getElementById(new_element_id).innerHTML = variation_value_html;
|
241 |
+
}
|
242 |
+
}
|
243 |
+
prodid=document.getElementById("prodid").value;
|
244 |
+
var id_string = '';
|
245 |
+
jQuery("#"+new_element_id+" input[@type='checkbox']").each(function() {id_string+="&"+this.name+"="+this.value; });
|
246 |
+
jQuery("#"+new_element_id+" input[@type='hidden']").each(function() {id_string+="&"+this.name+"="+this.value; });
|
247 |
+
//alert(id_string);
|
248 |
+
//ajax.post("index.php",display_list_ajaxx,"ajax=true&list_variation_values_ajaxx=true&pid="+prodid+id_string);
|
249 |
+
}
|
250 |
+
ajax.post("index.php",display_list,"ajax=true&list_variation_values=true&variation_id="+id+"&prefix=edit_product_variations");
|
251 |
+
}
|
252 |
+
|
253 |
+
|
254 |
+
|
255 |
+
function edit_variation_value_list(id) {
|
256 |
+
// haah, the javascript end does essentially nothing of interest, just sends a request, and dumps the output in a div tag
|
257 |
+
var display_variation_forms=function(results) {
|
258 |
+
if(results !== "false") { // do nothing if just the word false is returned
|
259 |
+
//alert(jQuery("div#edit_variations_container").html(results));
|
260 |
+
|
261 |
+
//alert(jQuery("div#edit_variations_container"));
|
262 |
+
jQuery("div#edit_variations_container").html(results);
|
263 |
+
}
|
264 |
+
}
|
265 |
+
product_id= jQuery("#prodid").val();
|
266 |
+
ajax.post("index.php",display_variation_forms,"ajax=true&edit_variation_value_list=true&variation_id="+id+"&product_id="+product_id);
|
267 |
+
}
|
268 |
+
|
269 |
+
|
270 |
+
|
271 |
+
var display_list_ajaxx=function(results) {
|
272 |
+
jQuery("div#edit_variations_container").html(results);
|
273 |
+
//alert(results);
|
274 |
+
}
|
275 |
+
|
276 |
+
function add_variation_value_list(id)
|
277 |
+
{
|
278 |
+
var display_list=function(results) {
|
279 |
+
eval(results);
|
280 |
+
if(variation_value_html != '') {
|
281 |
+
new_element_id = "add_product_variations_"+variation_value_id;
|
282 |
+
if(document.getElementById(new_element_id) === null) {
|
283 |
+
new_element = document.createElement('span');
|
284 |
+
new_element.id = new_element_id;
|
285 |
+
document.getElementById("add_product_variations").appendChild(new_element);
|
286 |
+
document.getElementById(new_element_id).innerHTML = variation_value_html;
|
287 |
+
}
|
288 |
+
jQuery("#add_product_variation_details").html(variation_subvalue_html);
|
289 |
+
}
|
290 |
+
jQuery("#edit_product_variations input[@type='checkbox']").each(function() {
|
291 |
+
// alert(this.id);
|
292 |
+
});
|
293 |
+
//ajax.post("index.php",display_list_ajaxx,"ajax=true&list_variation_values_ajaxx=true");
|
294 |
+
}
|
295 |
+
current_variations = jQuery("input.variation_ids").serialize();
|
296 |
+
ajax.post("index.php",display_list,"ajax=true&list_variation_values=true&new_variation_id="+id+"&prefix=add_product_variations&"+current_variations+"");
|
297 |
+
}
|
298 |
+
|
299 |
+
function remove_variation_value_list(prefix,id){
|
300 |
+
var redisplay_list=function(results) {
|
301 |
+
jQuery("#add_product_variation_details").html(results);
|
302 |
+
}
|
303 |
+
if(prefix == "edit_product_variations") {
|
304 |
+
target_element_id = "product_variations_"+id;
|
305 |
+
} else {
|
306 |
+
target_element_id = prefix+"_"+id;
|
307 |
+
}
|
308 |
+
target_element = document.getElementById(target_element_id);
|
309 |
+
document.getElementById(prefix).removeChild(target_element);
|
310 |
+
if(prefix == "add_product_variations") {
|
311 |
+
current_variations = jQuery("input.variation_ids").serialize();
|
312 |
+
ajax.post("index.php",redisplay_list,"ajax=true&redisplay_variation_values=true&"+current_variations+"");
|
313 |
+
}
|
314 |
+
return false;
|
315 |
+
}
|
316 |
+
|
317 |
+
function tick_active(target_id,input_value)
|
318 |
+
{
|
319 |
+
if(input_value != '')
|
320 |
+
{
|
321 |
+
document.getElementById(target_id).checked = true;
|
322 |
+
}
|
323 |
+
}
|
324 |
+
|
325 |
+
function add_form_field()
|
326 |
+
{
|
327 |
+
time = new Date();
|
328 |
+
new_element_number = time.getTime();
|
329 |
+
new_element_id = "form_id_"+new_element_number;
|
330 |
+
|
331 |
+
new_element_contents = "";
|
332 |
+
new_element_contents += " <table><tr>\n\r";
|
333 |
+
new_element_contents += "<td class='namecol'><input type='text' name='new_form_name["+new_element_number+"]' value='' /></td>\n\r";
|
334 |
+
new_element_contents += "<td class='typecol'><select name='new_form_type["+new_element_number+"]'>"+HTML_FORM_FIELD_TYPES+"</select></td>\n\r";
|
335 |
+
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";
|
336 |
+
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";
|
337 |
+
new_element_contents += "<td class='ordercol'><input type='text' size='3' name='new_form_order["+new_element_number+"]' value='' /></td>\n\r";
|
338 |
+
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";
|
339 |
+
new_element_contents += "<td></td>\n\r";
|
340 |
+
new_element_contents += "</tr></table>";
|
341 |
+
|
342 |
+
new_element = document.createElement('div');
|
343 |
+
new_element.id = new_element_id;
|
344 |
+
|
345 |
+
document.getElementById("form_field_form_container").appendChild(new_element);
|
346 |
+
document.getElementById(new_element_id).innerHTML = new_element_contents;
|
347 |
+
return false;
|
348 |
+
}
|
349 |
+
|
350 |
+
function remove_new_form_field(id)
|
351 |
+
{
|
352 |
+
element_count = document.getElementById("form_field_form_container").childNodes.length;
|
353 |
+
if(element_count > 1)
|
354 |
+
{
|
355 |
+
target_element = document.getElementById(id);
|
356 |
+
document.getElementById("form_field_form_container").removeChild(target_element);
|
357 |
+
}
|
358 |
+
return false;
|
359 |
+
}
|
360 |
+
|
361 |
+
function remove_form_field(id,form_id)
|
362 |
+
{
|
363 |
+
var delete_variation_value=function(results)
|
364 |
+
{
|
365 |
+
}
|
366 |
+
element_count = document.getElementById("form_field_form_container").childNodes.length;
|
367 |
+
if(element_count > 1)
|
368 |
+
{
|
369 |
+
ajax.post("index.php",delete_variation_value,"ajax=true&remove_form_field=true&form_id="+form_id);
|
370 |
+
target_element = document.getElementById(id);
|
371 |
+
document.getElementById("form_field_form_container").removeChild(target_element);
|
372 |
+
}
|
373 |
+
return false;
|
374 |
+
}
|
375 |
+
|
376 |
+
function show_status_box(id,image_id)
|
377 |
+
{
|
378 |
+
state = document.getElementById(id).style.display;
|
379 |
+
if(state != 'block')
|
380 |
+
{
|
381 |
+
document.getElementById(id).style.display = 'block';
|
382 |
+
document.getElementById(image_id).src = WPSC_URL+'/images/icon_window_collapse.gif';
|
383 |
+
}
|
384 |
+
else
|
385 |
+
{
|
386 |
+
document.getElementById(id).style.display = 'none';
|
387 |
+
document.getElementById(image_id).src = WPSC_URL+'/images/icon_window_expand.gif';
|
388 |
+
}
|
389 |
+
return false;
|
390 |
+
}
|
391 |
+
|
392 |
+
function submit_status_form(id)
|
393 |
+
{
|
394 |
+
document.getElementById(id).submit();
|
395 |
+
}
|
396 |
+
|
397 |
+
// pe.{
|
398 |
+
var prevElement = null;
|
399 |
+
var prevOption = null;
|
400 |
+
|
401 |
+
function hideOptionElement(id, option) {
|
402 |
+
if (prevOption == option) {
|
403 |
+
return;
|
404 |
+
}
|
405 |
+
if (prevElement != null) {
|
406 |
+
prevElement.style.display = "none";
|
407 |
+
}
|
408 |
+
|
409 |
+
if (id == null) {
|
410 |
+
prevElement = null;
|
411 |
+
} else {
|
412 |
+
prevElement = document.getElementById(id);
|
413 |
+
jQuery('#'+id).css( 'display','block');
|
414 |
+
}
|
415 |
+
prevOption = option;
|
416 |
+
}
|
417 |
+
|
418 |
+
|
419 |
+
// }.pe
|
420 |
+
|
421 |
+
function toggle_display_options(state)
|
422 |
+
{
|
423 |
+
switch(state)
|
424 |
+
{
|
425 |
+
case 'list':
|
426 |
+
document.getElementById('grid_view_options').style.display = 'none';
|
427 |
+
document.getElementById('list_view_options').style.display = 'block';
|
428 |
+
break;
|
429 |
+
|
430 |
+
case 'grid':
|
431 |
+
document.getElementById('list_view_options').style.display = 'none';
|
432 |
+
document.getElementById('grid_view_options').style.display = 'block';
|
433 |
+
break;
|
434 |
+
|
435 |
+
default:
|
436 |
+
document.getElementById('list_view_options').style.display = 'none';
|
437 |
+
document.getElementById('grid_view_options').style.display = 'none';
|
438 |
+
break;
|
439 |
+
}
|
440 |
+
}
|
441 |
+
|
442 |
+
function log_submitform(id)
|
443 |
+
{
|
444 |
+
value1 = document.getElementById(id);
|
445 |
+
if (ajax.serialize(value1).search(/value=3/)!=-1) {
|
446 |
+
document.getElementById("track_id").style.display="block";
|
447 |
+
} else {
|
448 |
+
document.getElementById("track_id").style.display="none";
|
449 |
+
}
|
450 |
+
var get_log_results=function(results)
|
451 |
+
{
|
452 |
+
eval(results);
|
453 |
+
}
|
454 |
+
frm = document.getElementById(id);
|
455 |
+
ajax.post("index.php?ajax=true&log_state=true",get_log_results,ajax.serialize(frm));
|
456 |
+
return false;
|
457 |
+
}
|
458 |
+
|
459 |
+
function save_tracking_id(id)
|
460 |
+
{
|
461 |
+
value1 = document.getElementById('tracking_id_'+id).value;
|
462 |
+
value1 ="id="+id +"&value="+value1;
|
463 |
+
ajax.post("index.php?ajax=true&save_tracking_id=true",noresults,value1);
|
464 |
+
return false;
|
465 |
+
}
|
466 |
+
|
467 |
+
|
468 |
+
/* the following is written by Allen */
|
469 |
+
jQuery(document).ready(
|
470 |
+
function()
|
471 |
+
{
|
472 |
+
jQuery('#description').Resizable(
|
473 |
+
{
|
474 |
+
minWidth: 50,
|
475 |
+
minHeight: 50,
|
476 |
+
maxWidth: 400,
|
477 |
+
maxHeight: 400,
|
478 |
+
handlers: {
|
479 |
+
s: '#resizeS'
|
480 |
+
},
|
481 |
+
onResize: function(size)
|
482 |
+
{
|
483 |
+
jQuery('textarea', this).css('height', size.height - 6 + 'px');
|
484 |
+
}
|
485 |
+
}
|
486 |
+
);
|
487 |
+
}
|
488 |
+
);
|
489 |
+
|
490 |
+
jQuery(document).ready(
|
491 |
+
function()
|
492 |
+
{
|
493 |
+
jQuery('#description1').Resizable(
|
494 |
+
{
|
495 |
+
minWidth: 50,
|
496 |
+
minHeight: 50,
|
497 |
+
maxWidth: 400,
|
498 |
+
maxHeight: 400,
|
499 |
+
handlers: {
|
500 |
+
s: '#resizeS1'
|
501 |
+
},
|
502 |
+
onResize: function(size)
|
503 |
+
{
|
504 |
+
jQuery('textarea', this).css('height', size.height - 6 + 'px');
|
505 |
+
}
|
506 |
+
}
|
507 |
+
);
|
508 |
+
}
|
509 |
+
);
|
510 |
+
|
511 |
+
var select_min_height = 75;
|
512 |
+
var select_max_height = 50;
|
513 |
+
|
514 |
+
//ToolTip JavaScript
|
515 |
+
jQuery('img').Tooltip(
|
516 |
+
{
|
517 |
+
className: 'inputsTooltip',
|
518 |
+
position: 'mouse',
|
519 |
+
delay: 200
|
520 |
+
}
|
521 |
+
);
|
522 |
+
|
523 |
+
jQuery(window).load( function () {
|
524 |
+
|
525 |
+
jQuery('.additem .postbox h3').click( function() {
|
526 |
+
jQuery(jQuery(this).parent('div.postbox')).toggleClass('closed');
|
527 |
+
if(jQuery(jQuery(this).parent('div.postbox')).hasClass('closed')) {
|
528 |
+
jQuery('a.togbox',this).html('+');
|
529 |
+
} else {
|
530 |
+
jQuery('a.togbox',this).html('–');
|
531 |
+
}
|
532 |
+
});
|
533 |
+
|
534 |
+
jQuery('a.closeEl').bind('click', toggleContent);
|
535 |
+
jQuery('div.groupWrapper').Sortable( {
|
536 |
+
accept: 'groupItem',
|
537 |
+
helperclass: 'sortHelper',
|
538 |
+
activeclass : 'sortableactive',
|
539 |
+
hoverclass : 'sortablehover',
|
540 |
+
handle: 'div.itemHeader',
|
541 |
+
tolerance: 'pointer',
|
542 |
+
onChange : function(ser) {
|
543 |
+
serialize();
|
544 |
+
},
|
545 |
+
onStart : function() {
|
546 |
+
jQuery.iAutoscroller.start(this, document.getElementsByTagName('body'));
|
547 |
+
},
|
548 |
+
onStop : function() {
|
549 |
+
jQuery.iAutoscroller.stop();
|
550 |
+
}
|
551 |
+
}
|
552 |
+
);
|
553 |
+
|
554 |
+
jQuery('a#close_news_box').click( function () {
|
555 |
+
jQuery('div.wpsc_news').css( 'display', 'none' );
|
556 |
+
ajax.post("index.php", noresults, "ajax=true&admin=true&hide_ecom_dashboard=true");
|
557 |
+
return false;
|
558 |
+
});
|
559 |
+
});
|
560 |
+
var toggleContent = function(e)
|
561 |
+
{
|
562 |
+
var targetContent = $('div.itemContent', this.parentNode.parentNode);
|
563 |
+
if (targetContent.css('display') == 'none') {
|
564 |
+
targetContent.slideDown(300);
|
565 |
+
$(this).html('[-]');
|
566 |
+
} else {
|
567 |
+
targetContent.slideUp(300);
|
568 |
+
$(this).html('[+]');
|
569 |
+
}
|
570 |
+
return false;
|
571 |
+
};
|
572 |
+
|
573 |
+
|
574 |
+
function serialize(s) {
|
575 |
+
var serialize_results=function() {
|
576 |
+
jQuery("div#changenotice").css("display","block").html('Product Order Saved');
|
577 |
+
jQuery('#loadingindicator_span').css('visibility','hidden');
|
578 |
+
}
|
579 |
+
serial = jQuery.SortSerialize(s);
|
580 |
+
category_id = jQuery("input#item_list_category_id").val();
|
581 |
+
ajax.post("index.php", serialize_results, "ajax=true&changeorder=true&category_id="+category_id+"&"+serial.hash);
|
582 |
+
jQuery("#loadingimage").attr('src', WPSC_URL+'/images/indicator.gif');
|
583 |
+
jQuery('#loadingindicator_span').css('visibility','visible');
|
584 |
+
};
|
585 |
+
|
586 |
+
|
587 |
+
function hideelement1(id, item_value)
|
588 |
+
{
|
589 |
+
//alert(value);
|
590 |
+
if(item_value == 5) {
|
591 |
+
jQuery(document.getElementById(id)).css('display', 'block');
|
592 |
+
} else {
|
593 |
+
jQuery(document.getElementById(id)).css('display', 'none');
|
594 |
+
}
|
595 |
+
}
|
596 |
+
|
597 |
+
|
598 |
+
function suspendsubs(user_id)
|
599 |
+
{
|
600 |
+
var comm =jQuery("#suspend_subs"+user_id).attr("checked");
|
601 |
+
//alert(comm);
|
602 |
+
if (comm == true){
|
603 |
+
ajax.post("index.php",noresults,"ajax=true&log_state=true&suspend=true&value=1&id="+user_id);
|
604 |
+
} else {
|
605 |
+
ajax.post("index.php",noresults,"ajax=true&log_state=true&suspend=true&value=2&id="+user_id);
|
606 |
+
}
|
607 |
+
return false;
|
608 |
+
}
|
609 |
+
|
610 |
+
function delete_extra_preview(preview_name, prodid) {
|
611 |
+
var preview_name_results=function(results) {
|
612 |
+
filleditform(prodid);
|
613 |
+
}
|
614 |
+
ajax.post("index.php",preview_name_results,"ajax=true&admin=true&prodid="+prodid+"&preview_name="+preview_name);
|
615 |
+
}
|
616 |
+
|
617 |
+
function shipwire_sync() {
|
618 |
+
ajax.post("index.php",noresults,"ajax=true&shipwire_sync=ture");
|
619 |
+
}
|
620 |
+
|
621 |
+
function shipwire_tracking() {
|
622 |
+
ajax.post("index.php",noresults,"ajax=true&shipwire_tracking=ture");
|
623 |
+
}
|
624 |
+
|
625 |
+
function display_settings_button() {
|
626 |
+
jQuery("#settings_button").slideToggle(200);
|
627 |
+
//document.getElementById("settings_button").style.display='block';
|
628 |
+
}
|
629 |
+
|
630 |
+
function submittogoogle(id){
|
631 |
+
value1=document.getElementById("google_command_list_"+id).value;
|
632 |
+
value2=document.getElementById("partial_amount_"+id).value;
|
633 |
+
reason=document.getElementById("cancel_reason_"+id).value;
|
634 |
+
comment=document.getElementById("cancel_comment_"+id).value;
|
635 |
+
message=document.getElementById("message_to_buyer_message_"+id).value;
|
636 |
+
document.getElementById("google_command_indicator").style.display='inline';
|
637 |
+
ajax.post("index.php",submittogoogleresults,"ajax=true&submittogoogle=true&message="+message+"&value="+value1+"&amount="+value2+"&comment="+comment+"&reason="+reason+"&id="+id);
|
638 |
+
return true;
|
639 |
+
}
|
640 |
+
|
641 |
+
var submittogoogleresults=function (results) {
|
642 |
+
window.location.reload(true);
|
643 |
+
}
|
644 |
+
|
645 |
+
function display_partial_box(id){
|
646 |
+
value1=document.getElementById("google_command_list_"+id).value;
|
647 |
+
if ((value1=='Refund') || (value1=='Charge')){
|
648 |
+
document.getElementById("google_partial_radio_"+id).style.display='inline';
|
649 |
+
if (value1=='Refund'){
|
650 |
+
document.getElementById("google_cancel_"+id).style.display='block';
|
651 |
+
document.getElementById("cancel_reason_"+id).style.display='inline';
|
652 |
+
document.getElementById("cancel_div_comment_"+id).style.display='none';
|
653 |
+
}
|
654 |
+
}else if ((value1=='Cancel')||(value1=='Refund')) {
|
655 |
+
document.getElementById("google_cancel_"+id).style.display='block';
|
656 |
+
document.getElementById("cancel_reason_"+id).style.display='inline';
|
657 |
+
}else if (value1=='Send Message') {
|
658 |
+
document.getElementById("message_to_buyer_"+id).style.display='block';
|
659 |
+
} else {
|
660 |
+
document.getElementById("cancel_div_comment_"+id).style.display='none';
|
661 |
+
document.getElementById("google_cancel_"+id).style.display='none';
|
662 |
+
document.getElementById("cancel_reason_"+id).style.display='none';
|
663 |
+
document.getElementById("message_to_buyer_"+id).style.display='none';
|
664 |
+
document.getElementById("google_partial_radio_"+id).style.display='none';
|
665 |
+
document.getElementById("partial_amount_"+id).style.display='none';
|
666 |
+
}
|
667 |
+
}
|
668 |
+
|
669 |
+
function add_more_meta(e) {
|
670 |
+
current_meta_forms = jQuery(e).parent("div.product_custom_meta"); // grab the form container
|
671 |
+
new_meta_forms = current_meta_forms.clone(true); // clone the form container
|
672 |
+
jQuery("label input", new_meta_forms).val(''); // reset all contained forms to empty
|
673 |
+
current_meta_forms.after(new_meta_forms); // append it after the container of the clicked element
|
674 |
+
return false;
|
675 |
+
}
|
676 |
+
|
677 |
+
function remove_meta(e, meta_id) {
|
678 |
+
current_meta_form = jQuery(e).parent("div.product_custom_meta"); // grab the form container
|
679 |
+
//meta_name = jQuery("input#custom_meta_name_"+meta_id, current_meta_form).val();
|
680 |
+
//meta_value = jQuery("input#custom_meta_value_"+meta_id, current_meta_form).val();
|
681 |
+
returned_value = jQuery.ajax({
|
682 |
+
type: "POST",
|
683 |
+
url: "admin.php?ajax=true",
|
684 |
+
data: "admin=true&remove_meta=true&meta_id="+meta_id+"",
|
685 |
+
success: function(results) {
|
686 |
+
if(results > 0) {
|
687 |
+
jQuery("div#custom_meta_"+meta_id).remove();
|
688 |
+
}
|
689 |
+
}
|
690 |
+
});
|
691 |
+
return false;
|
692 |
+
}
|
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,316 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 ="&";
|
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 »" 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&action=register&width=360&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 |
+
|
171 |
+
if(isset($gateway_checkout_form_fields)) {
|
172 |
+
echo $gateway_checkout_form_fields;
|
173 |
+
}
|
174 |
+
$product=$_SESSION['nzshpcrt_cart'][0];
|
175 |
+
$engrave = get_product_meta($product->product_id,'engraved',true);
|
176 |
+
if ($engrave[0] == true) {
|
177 |
+
echo "<tr>
|
178 |
+
<td>
|
179 |
+
Engrave text:
|
180 |
+
</td>
|
181 |
+
<td>
|
182 |
+
<input type='text' name='engrave1'>
|
183 |
+
</td>
|
184 |
+
</tr>
|
185 |
+
<tr>
|
186 |
+
<td>
|
187 |
+
</td>
|
188 |
+
<td>
|
189 |
+
<input type='text' name='engrave2'>
|
190 |
+
</td>
|
191 |
+
</tr>";
|
192 |
+
}
|
193 |
+
|
194 |
+
if (get_option('display_find_us') == '1') {
|
195 |
+
echo "<tr><td> </td></tr><tr>
|
196 |
+
<td>How did you find us:</td>
|
197 |
+
<td><select name='how_find_us'>
|
198 |
+
<option value='Word of Mouth'>Word of mouth</option>
|
199 |
+
<option value='Advertisement'>Advertising</option>
|
200 |
+
<option value='Internet'>Internet</option>
|
201 |
+
<option value='Customer'>Existing Customer</option>
|
202 |
+
</select></td></tr>";
|
203 |
+
}
|
204 |
+
|
205 |
+
$termsandconds = get_option('terms_and_conditions');
|
206 |
+
if($termsandconds != '')
|
207 |
+
{
|
208 |
+
?>
|
209 |
+
<tr>
|
210 |
+
<td>
|
211 |
+
</td>
|
212 |
+
<td>
|
213 |
+
<input type='checkbox' value='yes' name='agree' /> <?php echo TXT_WPSC_TERMS1;?><a class='thickbox' target='_blank' href='<?php
|
214 |
+
echo get_option('siteurl')."?termsandconds=true&width=360&height=400'"; ?>' class='termsandconds'><?php echo TXT_WPSC_TERMS2;?></a>
|
215 |
+
</td>
|
216 |
+
</tr>
|
217 |
+
<?php
|
218 |
+
}
|
219 |
+
else
|
220 |
+
{
|
221 |
+
echo "<input type='hidden' value='yes' name='agree' />";
|
222 |
+
echo "";
|
223 |
+
}
|
224 |
+
if(get_option('payment_method') == 2)
|
225 |
+
{
|
226 |
+
$curgateway = get_option('payment_gateway');
|
227 |
+
foreach($GLOBALS['nzshpcrt_gateways'] as $gateway)
|
228 |
+
{
|
229 |
+
if($gateway['internalname'] == $curgateway )
|
230 |
+
{
|
231 |
+
$gateway_name = $gateway['name'];
|
232 |
+
}
|
233 |
+
}
|
234 |
+
?>
|
235 |
+
<tr>
|
236 |
+
<td colspan="2">
|
237 |
+
<strong>Payment Method</strong>
|
238 |
+
</td>
|
239 |
+
</tr>
|
240 |
+
|
241 |
+
<tr>
|
242 |
+
<td colspan='2'>
|
243 |
+
<input type='radio' name='payment_method' value='1' id='payment_method_1' checked='true'>
|
244 |
+
<label for='payment_method_1'><?php echo TXT_WPSC_PAY_USING;?> <?php echo $gateway_name; ?>/<?php echo TXT_WPSC_CREDIT_CARD;?></label>
|
245 |
+
</td>
|
246 |
+
</tr>
|
247 |
+
|
248 |
+
<tr>
|
249 |
+
<td colspan='2'>
|
250 |
+
<input type='radio' name='payment_method' value='2' id='payment_method_2'>
|
251 |
+
<label for='payment_method_2'><?php echo TXT_WPSC_PAY_MANUALLY;?></label>
|
252 |
+
</td>
|
253 |
+
</tr>
|
254 |
+
<?php
|
255 |
+
}
|
256 |
+
// if ((function_exists('getdistance')) && (get_option('googleStoreLocator')==1)) {
|
257 |
+
// echo "<tr><td colspan='2'><strong>2. Select Store</strong</td></tr>";
|
258 |
+
// 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>";
|
259 |
+
// }
|
260 |
+
// if (get_option('googleStoreLocator')==1) {
|
261 |
+
// echo "<tr>
|
262 |
+
// <td>
|
263 |
+
// <input type='radio' name='pickupordelivery' id='pickupordelivery1' value='1'><label for='pickupordelivery1'>".TXT_WPSC_PICKUP."</label>
|
264 |
+
// </td>
|
265 |
+
// <td>
|
266 |
+
// <input type='radio' name='pickupordelivery' id='pickupordelivery2' value='2'><label for='pickupordelivery2'>".TXT_WPSC_DELIVERY."</label>
|
267 |
+
// </td>
|
268 |
+
// </tr>";
|
269 |
+
// }
|
270 |
+
?>
|
271 |
+
<tr>
|
272 |
+
<?php if((is_user_logged_in() && (get_option('require_register') == 1)) xor (get_option('require_register') == 0)) { ?>
|
273 |
+
<td>
|
274 |
+
</td>
|
275 |
+
<td>
|
276 |
+
<input type='hidden' value='true' name='submitwpcheckout' />
|
277 |
+
<?php
|
278 |
+
if (get_option('payment_gateway') == 'google') {
|
279 |
+
echo "<br>";
|
280 |
+
if (get_option('google_button_size') == '0'){
|
281 |
+
$google_button_w=180;
|
282 |
+
$google_button_h=46;
|
283 |
+
} elseif(get_option('google_button_size') == '1') {
|
284 |
+
$google_button_w=168;
|
285 |
+
$google_button_h=44;
|
286 |
+
} elseif(get_option('google_button_size') == '2') {
|
287 |
+
$google_button_w=160;
|
288 |
+
$google_button_h=43;
|
289 |
+
}
|
290 |
+
if ($_SESSION['google_prohibited']!='1') {
|
291 |
+
?>
|
292 |
+
<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">
|
293 |
+
<?php } else { ?>
|
294 |
+
<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"/>
|
295 |
+
<?php }?>
|
296 |
+
<?php } else { ?>
|
297 |
+
<input type='submit' value='<?php echo TXT_WPSC_MAKEPURCHASE;?>' name='submit' />
|
298 |
+
<?php } ?>
|
299 |
+
<?php } else { ?>
|
300 |
+
<td colspan='2'>
|
301 |
+
<br /><strong><?php echo TXT_WPSC_PLEASE_LOGIN;?></strong><br />
|
302 |
+
<?php echo TXT_WPSC_IF_JUST_REGISTERED;?>
|
303 |
+
</td>
|
304 |
+
<?php } ?>
|
305 |
+
</tr>
|
306 |
+
</table>
|
307 |
+
</form>
|
308 |
+
</div>
|
309 |
+
<?php
|
310 |
+
}
|
311 |
+
}
|
312 |
+
else
|
313 |
+
{
|
314 |
+
echo TXT_WPSC_BUYPRODUCTS;
|
315 |
+
}
|
316 |
+
?>
|
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']." ".$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 |
+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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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(" ", " ", (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(" ", " ", 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&submit_action=remove_set&product_id=".$product_id."&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_br = 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($j==0) {
|
359 |
+
$default_topping='checked="checked"';
|
360 |
+
} else {
|
361 |
+
$default_topping='';
|
362 |
+
}
|
363 |
+
$j++;
|
364 |
+
$variation_id = $variation_association['variation_id'];
|
365 |
+
$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')";
|
366 |
+
$value_assoc_data = $wpdb->get_results($value_assoc_sql,ARRAY_A);
|
367 |
+
$variation_data_sql = "SELECT * FROM `".$wpdb->prefix."product_variations` WHERE `id` IN ('$variation_id') LIMIT 1";
|
368 |
+
$variation_data = $wpdb->get_results($variation_data_sql,ARRAY_A);
|
369 |
+
$variation_data = $variation_data[0];
|
370 |
+
if($no_label !== true) {
|
371 |
+
$output .= "<label for='variation_select_".$product_id."_".$variation_data['id']."'>". $variation_data['name'] . ":</label> ";
|
372 |
+
}
|
373 |
+
if(($update_price === true) && (count($variation_ids) >= 1) && (count($variation_ids) <= 2)) {
|
374 |
+
$special = 'false';
|
375 |
+
if($no_label == true) {
|
376 |
+
$special = 'true';
|
377 |
+
}
|
378 |
+
$on_change = "onchange='change_variation($product_id, Array(\"".implode("\",\"", $variation_ids)."\"), $special)'";
|
379 |
+
} else { $on_change = ''; }
|
380 |
+
$special_prefix = '';
|
381 |
+
if($no_label == true) {
|
382 |
+
$special_prefix = 'special_';
|
383 |
+
}
|
384 |
+
if (get_option("checkbox_variations")=='1') {
|
385 |
+
$output .= "<br>";
|
386 |
+
} else {
|
387 |
+
$output .= "<select id='".$special_prefix."variation_select_".$product_id."_".$variation_data['id']."' name='variation[".$variation_data['id']."]' $on_change >";
|
388 |
+
}
|
389 |
+
foreach((array)$value_assoc_data as $value_association) {
|
390 |
+
if($i == 0) {
|
391 |
+
$first_entries[] = $value_association['value_id'];
|
392 |
+
}
|
393 |
+
$value_id = $value_association['value_id'];
|
394 |
+
$value_data = $wpdb->get_row("SELECT * FROM `".$wpdb->prefix."variation_values` WHERE `id` = '$value_id' ORDER BY `id` ASC",ARRAY_A);
|
395 |
+
$check_stock = false;
|
396 |
+
if(($product_data['quantity_limited'] == 1) && (count($variation_assoc_data) == 1)) {
|
397 |
+
$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);
|
398 |
+
$check_stock = true;
|
399 |
+
$stock = $variation_stock_data['stock'];
|
400 |
+
}
|
401 |
+
|
402 |
+
if (get_option('checkbox_variations')==1) {
|
403 |
+
$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>";
|
404 |
+
//exit("'onclick='add_toping(".$product_id.", ".$value_data['id'].")'>");
|
405 |
+
} else {
|
406 |
+
if(($check_stock == true) && ($stock < 1)) {
|
407 |
+
$output .= "<option value='".$value_data['id']."' disabled='true'>".$value_data['name']." - ".TXT_WPSC_NO_STOCK."</option>";
|
408 |
+
} else {
|
409 |
+
$output .= "<option value='".$value_data['id']."'>".$value_data['name']."</option>";
|
410 |
+
}
|
411 |
+
}
|
412 |
+
$i++;
|
413 |
+
}
|
414 |
+
if (get_option("checkbox_variations")=='1') {
|
415 |
+
$output .= "";
|
416 |
+
} else {
|
417 |
+
$output .= "</select>";
|
418 |
+
}
|
419 |
+
if($no_br !== true) {
|
420 |
+
$output .= "<br />";
|
421 |
+
}
|
422 |
+
}
|
423 |
+
}
|
424 |
+
|
425 |
+
if($update_price === true) {
|
426 |
+
$first_entry_count = count($first_entries);
|
427 |
+
if(($first_entry_count >= 1) && ($first_entry_count <= 2)) {
|
428 |
+
$price = calculate_product_price($product_id, $first_entries);
|
429 |
+
} else { $price = null; }
|
430 |
+
return Array($output, $price);
|
431 |
+
} else {
|
432 |
+
return $output;
|
433 |
+
}
|
434 |
+
}
|
435 |
+
|
436 |
+
function variations_add_grid_view($variations) {
|
437 |
+
global $wpdb;
|
438 |
+
$variation_count = count($variations);
|
439 |
+
if(!(($variation_count >= 1) && ($variation_count <= 2))) {
|
440 |
+
return "";
|
441 |
+
exit();
|
442 |
+
}
|
443 |
+
|
444 |
+
switch($variation_count) {
|
445 |
+
case 1:
|
446 |
+
$variation_name = $wpdb->get_var("SELECT `name` FROM `".$wpdb->prefix."product_variations` WHERE `id` = '".$variations[0]."' ORDER BY `id` ASC LIMIT 1");
|
447 |
+
$grid_header = str_replace(":variation1:",$variation_name ,TXT_WPSC_VARIATION_GRID_CONTROL_SINGLE);
|
448 |
+
break;
|
449 |
+
|
450 |
+
case 2:
|
451 |
+
$variation_name1 = $wpdb->get_var("SELECT `name` FROM `".$wpdb->prefix."product_variations` WHERE `id` = '".$variations[0]."' ORDER BY `id` ASC LIMIT 1");
|
452 |
+
$variation_name2 = $wpdb->get_var("SELECT `name` FROM `".$wpdb->prefix."product_variations` WHERE `id` = '".$variations[1]."' ORDER BY `id` ASC LIMIT 1");
|
453 |
+
$grid_header = str_replace(Array(":variation1:", ":variation2:"),Array($variation_name1, $variation_name2) ,TXT_WPSC_VARIATION_GRID_CONTROL_PAIR);
|
454 |
+
break;
|
455 |
+
}
|
456 |
+
|
457 |
+
$output .= "<table class='product_variation_grid'>\n\r";
|
458 |
+
$output .= " <tr>\n\r";
|
459 |
+
$output .= " <th colspan='3' class='variation_name'>".$grid_header."</th>\n\r";
|
460 |
+
$output .= " </tr>\n\r";
|
461 |
+
$output .= " <tr>\n\r";
|
462 |
+
$output .= " <td><strong>".TXT_WPSC_VARIATION."</strong></td>\n\r";
|
463 |
+
$output .= " <td><strong>".TXT_WPSC_STOCK."</strong></td>\n\r";
|
464 |
+
$output .= " <td><strong>".TXT_WPSC_PRICE."</strong></td>\n\r";
|
465 |
+
/*
|
466 |
+
if(count($associated_variations) == 1) {
|
467 |
+
$output .= " <td><strong>".TXT_WPSC_ASSOCIATEWITHFILE."</strong></td>\n\r";
|
468 |
+
}
|
469 |
+
*/
|
470 |
+
$output .= " </tr>\n\r";
|
471 |
+
if(count($variations) == 2) {
|
472 |
+
foreach($variations as $key => $variation) {
|
473 |
+
$associated_variation_values[$key] = $wpdb->get_results("SELECT `{$wpdb->prefix}variation_values`.* FROM `{$wpdb->prefix}variation_values` WHERE `variation_id` = '{$variation}'",ARRAY_A);
|
474 |
+
}
|
475 |
+
|
476 |
+
foreach((array)$associated_variation_values[0] as $associated_variation_value[0]) {
|
477 |
+
foreach((array)$associated_variation_values[1] as $associated_variation_value[1]) {
|
478 |
+
$output .= " <tr>\n\r";
|
479 |
+
$output .= " <td>".str_replace(" ", " ", (stripslashes($associated_variation_value[0]['name']).", ".stripslashes($associated_variation_value[1]['name'])))."</td>\n\r";
|
480 |
+
$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";
|
481 |
+
$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";
|
482 |
+
$output .= " </tr>\n\r";
|
483 |
+
}
|
484 |
+
}
|
485 |
+
} else {
|
486 |
+
$variation = $variations[0];
|
487 |
+
$associated_variation_values = $wpdb->get_results("SELECT `{$wpdb->prefix}variation_values`.* FROM `{$wpdb->prefix}variation_values` WHERE `variation_id` = '{$variation}'",ARRAY_A);
|
488 |
+
|
489 |
+
foreach((array)$associated_variation_values as $associated_variation_value) {
|
490 |
+
$output .= " <tr>\n\r";
|
491 |
+
$output .= " <td>".str_replace(" ", " ", stripslashes($associated_variation_value['name']))."</td>\n\r";
|
492 |
+
$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);
|
493 |
+
$output .= " <td><input type='text' name='variation_priceandstock[{$associated_variation_value['id']}][0][stock]' value='{$variation_info['stock']}' size='3' /></td>\n\r";
|
494 |
+
$output .= " <td><input type='text' name='variation_priceandstock[{$associated_variation_value['id']}][0][price]' value='' size='6' /></td>\n\r";
|
495 |
+
$output .= " </tr>\n\r";
|
496 |
+
}
|
497 |
+
}
|
498 |
+
|
499 |
+
$output .= "</table>\n\r";
|
500 |
+
return $output;
|
501 |
+
}
|
502 |
+
function update_variation_values($product_id, $variation_values) {
|
503 |
+
global $wpdb;
|
504 |
+
$product_id = (int)$product_id;
|
505 |
+
foreach($variation_values as $key[0] => $variation_row) {
|
506 |
+
$key[0] = (int)$key[0];
|
507 |
+
foreach($variation_row as $key[1] => $variation_data) {
|
508 |
+
// sanitise the input
|
509 |
+
$key[1] = (int)$key[1];
|
510 |
+
$variation_price = (float)str_replace(",","",$variation_data['price']);
|
511 |
+
$variation_stock =(int)$variation_data['stock']; // having 1.2 stock makes no sense unless dealing with different units
|
512 |
+
$variation_file =(int)(bool)$variation_data['file'];
|
513 |
+
|
514 |
+
if(is_numeric($key[0]) && is_numeric($key[1]) && (is_numeric($variation_data['stock']) || is_numeric($variation_data['price']))) {
|
515 |
+
$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);
|
516 |
+
if(is_numeric($variation_stock_data['id'])) {
|
517 |
+
$variation_sql = null; // return the sql array to null for each trip round the loop
|
518 |
+
if(($variation_stock_data['stock'] != $variation_stock)) {
|
519 |
+
$variation_sql[] = "`stock` = '{$variation_stock}'";
|
520 |
+
}
|
521 |
+
|
522 |
+
if(($variation_stock_data['price'] != $variation_price)) {
|
523 |
+
$variation_sql[] = "`price` = '{$variation_price}'";
|
524 |
+
}
|
525 |
+
|
526 |
+
if(($variation_stock_data['file'] != $variation_file)) {
|
527 |
+
$variation_sql[] = "`file` = '{$variation_file}'";
|
528 |
+
}
|
529 |
+
|
530 |
+
if($variation_sql != null){
|
531 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."variation_priceandstock` SET ".implode(",",$variation_sql)."WHERE `id` = '".$variation_stock_data['id']."' LIMIT 1 ;");
|
532 |
+
}
|
533 |
+
} else {
|
534 |
+
$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}');");
|
535 |
+
}
|
536 |
+
}
|
537 |
+
}
|
538 |
+
}
|
539 |
+
}
|
540 |
+
}
|
541 |
+
?>
|
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 »'); ?>
|
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 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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guiya', '', '', 'MRO', '0', '0');
|
3 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (2, 'Martinique (French)', 'MQ', 'Euro', '€', '€', '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', '$', '$', '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', '€', '€', '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', '$', '$', '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', '$', '$', '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', '£', '£', 'GBP', '0', '0');
|
31 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (30, 'Japan', 'JP', 'Japanese Yen', '¥', '¥', 'JPY', '0', '0');
|
32 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (31, 'Jamaica', 'JM', 'Jamaican Dollar', '$', '$', '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', '€', '€', 'EUR', '0', '0');
|
35 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (34, 'Isle of Man', 'IM', 'Pound Sterling', '£', '£', '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', '€', '€', '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', '$', '$', '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', '$', '$', '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', '$', '$', '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', '£', '£', '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', '$', '$', 'USD', '0', '0');
|
54 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (53, 'Grenada', 'GD', 'East Carribean Dollar', '$', '$', 'XCD', '0', '0');
|
55 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (54, 'Guadeloupe (French)', 'GP', 'Euro', '€', '€', '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', '€', '€', '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', '€', '€', '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', '€', '€', 'EUR', '0', '0');
|
65 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (64, 'France', 'FR', 'Euro', '€', '€', 'EUR', '0', '0');
|
66 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (65, 'Finland', 'FI', 'Euro', '€', '€', 'EUR', '0', '0');
|
67 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (66, 'Fiji', 'FJ', 'Fiji Dollar', '$', '$', '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', '$', '$', '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', '$', '$', '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', '$', '$', 'AUD', '0', '0');
|
93 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (92, 'Christmas Island', 'CX', 'Australian Dollar', '$', '$', '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', '$', '$', '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', '$', '$', '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', '$', '$', 'BND', '0', '0');
|
107 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (106, 'British Indian Ocean Territory', 'IO', 'US Dollar', '$', '$', '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', '$', '$', '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', '$', '$', 'BZD', '0', '0');
|
117 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (116, 'Belgium', 'BE', 'Euro', '€', '€', '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', '$', '$', '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', '$', '$', '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', '€', '€', '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', '$', '$', 'XCD', '0', '0');
|
129 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (128, 'Antarctica', 'AQ', 'Dollar', '$', '$', 'ATA', '0', '0');
|
130 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (129, 'Anguilla', 'AI', 'East Caribbean Dollar', '$', '$', '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', '€', '€', 'EUR', '0', '0');
|
133 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (132, 'American Samoa', 'AS', 'US Dollar', '$', '$', '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', '$', '$', 'USD', '1', '');
|
138 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (137, 'Australia', 'AU', 'Australian Dollar', '$', '$', 'AUD', '0', '0');
|
139 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (138, 'Great Britain', 'GB', 'Pound Sterling', '£', '£', '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', '€', '€', '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', '$', '$', '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', '€', '€', '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', '$', '$', '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', '$', '$', 'NAD', '0', '0');
|
152 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (151, 'Nauru', 'NR', 'Australian Dollar', '$', '$', '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', '€', '€', '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', '$', '$', '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', '$', '$', 'NZD', '0', '0');
|
162 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (161, 'Norfolk Island', 'NF', 'Australian Dollar', '$', '$', 'AUD', '0', '0');
|
163 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (162, 'Northern Mariana Islands', 'MP', 'US Dollar', '$', '$', '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', '$', '$', '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', '$', '$', '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', '€', '€', 'EUR', '0', '0');
|
177 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (176, 'Puerto Rico', 'PR', 'US Dollar', '$', '$', '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', '€', '€', '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', '$', '$', 'XCD', '0', '0');
|
185 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (184, 'Saint Lucia', 'LC', 'East Caribbean Dollar', '$', '$', 'XCD', '0', '0');
|
186 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (185, 'Saint Pierre and Miquelon', 'PM', 'Euro', '€', '€', 'EUR', '0', '0');
|
187 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (186, 'Saint Vincent & Grenadines', 'VC', 'East Caribbean Dollar', '$', '$', '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', '$', '$', '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', '$', '$', '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', '£', '£', 'GBP', '0', '0');
|
202 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (201, 'Spain', 'ES', 'Euro', '€', '€', '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', '$', '$', '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', '$', '$', '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', '$', '$', 'TTD', '0', '0');
|
219 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (218, 'Tunisia', 'TN', 'Tunisian Dollar', '$', '$', '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', '$', '$', 'USD', '0', '0');
|
223 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (222, 'Tuvalu', 'TV', 'Australian Dollar', '$', '$', 'AUD', '0', '0');
|
224 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (223, 'U.K.', 'UK', 'Pound Sterling', '£', '£', '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', '$', '$', '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', '€', '€', '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', '$', '$', 'USD', '0', '0');
|
236 |
+
INSERT INTO `".$wpdb->prefix."currency_list` VALUES (235, 'Virgin Islands (USA)', 'VI', 'US Dollar', '$', '$', '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', '$', '$', 'ZWD', '0', '0');
|
243 |
+
INSERT INTO `".$wpdb->prefix."currency_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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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; ?>' /> <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>
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 "".stripslashes($category['name'])." (".$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 |
+
$wp_rewrite->flush_rules();
|
274 |
+
}
|
275 |
+
}
|
276 |
+
|
277 |
+
?>
|
278 |
+
<script language='javascript' type='text/javascript'>
|
279 |
+
function conf() {
|
280 |
+
var check = confirm("<?php echo TXT_WPSC_SURETODELETECATEGORY;?>");
|
281 |
+
if(check) {
|
282 |
+
return true;
|
283 |
+
} else {
|
284 |
+
return false;
|
285 |
+
}
|
286 |
+
}
|
287 |
+
function categorisation_conf() {
|
288 |
+
var check = confirm("<?php echo TXT_WPSC_SURETODELETECATEGORISATION;?>");
|
289 |
+
if(check) {
|
290 |
+
return true;
|
291 |
+
} else {
|
292 |
+
return false;
|
293 |
+
}
|
294 |
+
}
|
295 |
+
|
296 |
+
<?php
|
297 |
+
if(is_numeric($_POST['prodid'])) {
|
298 |
+
echo "fillcategoryform(".$_POST['prodid'].");";
|
299 |
+
}
|
300 |
+
?>
|
301 |
+
</script>
|
302 |
+
<noscript>
|
303 |
+
</noscript>
|
304 |
+
<div class="wrap">
|
305 |
+
<h2><?php echo TXT_WPSC_CATEGORISATION;?></h2>
|
306 |
+
<a href='' onclick='return showadd_categorisation_form()' class='add_item_link'><span><?php echo TXT_WPSC_ADD_CATEGORISATION;?></span></a>
|
307 |
+
<span id='loadingindicator_span'><img id='loadingimage' src='<?php echo WPSC_URL;?>/images/indicator.gif' alt='Loading' title='Loading' /></span><br />
|
308 |
+
|
309 |
+
|
310 |
+
<div id='add_categorisation'>
|
311 |
+
<strong><?php echo TXT_WPSC_ADD_CATEGORISATION;?></strong>
|
312 |
+
<form method='POST' enctype='multipart/form-data'>
|
313 |
+
|
314 |
+
<fieldset>
|
315 |
+
<label for='add_categorisation_name'>Name</label>
|
316 |
+
<input type='text' name='name' value='' id='add_categorisation_name' />
|
317 |
+
</fieldset>
|
318 |
+
|
319 |
+
<fieldset>
|
320 |
+
<label for='add_categorisation_description'>Description</label>
|
321 |
+
<input type='text' name='description' value='' id='add_categorisation_description' />
|
322 |
+
</fieldset>
|
323 |
+
|
324 |
+
<fieldset>
|
325 |
+
<label> </label>
|
326 |
+
|
327 |
+
<input type='hidden' name='submit_action' value='add_categorisation' />
|
328 |
+
<input type='submit' name='submit_form' value='<?php echo TXT_WPSC_SUBMIT; ?>' />
|
329 |
+
</fieldset>
|
330 |
+
</form>
|
331 |
+
<br/>
|
332 |
+
</div>
|
333 |
+
|
334 |
+
<div id='edit_categorisation'>
|
335 |
+
<strong><?php echo TXT_WPSC_EDIT_CATEGORISATION;?></strong>
|
336 |
+
|
337 |
+
<form method='POST' enctype='multipart/form-data'>
|
338 |
+
|
339 |
+
<fieldset>
|
340 |
+
<label for='add_categorisation_name'>Name</label>
|
341 |
+
<input type='text' name='name' value='<?php echo $current_categorisation['name']; ?>' id='add_categorisation_name' />
|
342 |
+
</fieldset>
|
343 |
+
|
344 |
+
<fieldset>
|
345 |
+
<label for='add_categorisation_description'>Description</label>
|
346 |
+
<input type='text' name='description' value='<?php echo $current_categorisation['description']; ?>' id='add_categorisation_description' />
|
347 |
+
</fieldset>
|
348 |
+
|
349 |
+
<fieldset>
|
350 |
+
<label> </label>
|
351 |
+
<input type='hidden' name='group_id' value='<?php echo $current_categorisation['id']; ?>' />
|
352 |
+
<input type='hidden' name='submit_action' value='edit_categorisation' />
|
353 |
+
<input type='submit' name='submit_form' value='<?php echo TXT_WPSC_SUBMIT; ?>' />
|
354 |
+
<?php if($current_categorisation['default'] != 1) { ?>
|
355 |
+
<a href='<?php echo "?page={$_GET['page']}&category_delete_id={$current_categorisation['id']}" ?>' onclick='return categorisation_conf()' > <?php echo TXT_WPSC_DELETE; ?></a>
|
356 |
+
<?php } ?>
|
357 |
+
</fieldset>
|
358 |
+
</form>
|
359 |
+
<br/>
|
360 |
+
</div>
|
361 |
+
|
362 |
+
|
363 |
+
<?php
|
364 |
+
|
365 |
+
$categorisation_groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}wpsc_categorisation_groups` WHERE `active` IN ('1')", ARRAY_A);
|
366 |
+
echo "<ul class='categorisation_links'>\n\r";
|
367 |
+
foreach((array)$categorisation_groups as $categorisation_group){
|
368 |
+
$selected = '';
|
369 |
+
if($current_categorisation['id'] == $categorisation_group['id']) {
|
370 |
+
$selected = "class='selected'";
|
371 |
+
}
|
372 |
+
echo " <li $selected >\n\r";
|
373 |
+
echo " <a href='?page={$_GET['page']}&category_group={$categorisation_group['id']}'>{$categorisation_group['name']}</a> ";
|
374 |
+
echo " </li>\n\r";
|
375 |
+
}
|
376 |
+
echo "</ul>\n\r";
|
377 |
+
|
378 |
+
|
379 |
+
$num = 0;
|
380 |
+
echo " <table id='productpage'>\n\r";
|
381 |
+
echo " <tr><td>\n\r";
|
382 |
+
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>";
|
383 |
+
echo " <table id='itemlist'>\n\r";
|
384 |
+
echo " <tr class='firstrow'>\n\r";
|
385 |
+
|
386 |
+
echo " <td>\n\r";
|
387 |
+
echo TXT_WPSC_IMAGE;
|
388 |
+
echo " </td>\n\r";
|
389 |
+
|
390 |
+
echo " <td>\n\r";
|
391 |
+
echo TXT_WPSC_NAME;
|
392 |
+
echo " </td>\n\r";
|
393 |
+
|
394 |
+
echo " <td>\n\r";
|
395 |
+
echo TXT_WPSC_DESCRIPTION;
|
396 |
+
echo " </td>\n\r";
|
397 |
+
|
398 |
+
echo " <td>\n\r";
|
399 |
+
echo TXT_WPSC_EDIT;
|
400 |
+
echo " </td>\n\r";
|
401 |
+
|
402 |
+
echo " </tr>\n\r";
|
403 |
+
|
404 |
+
display_categories($current_categorisation['id']);
|
405 |
+
|
406 |
+
echo " </table>\n\r";
|
407 |
+
echo " </td><td class='secondcol'>\n\r";
|
408 |
+
echo " <div id='productform'>";
|
409 |
+
echo "<form method='POST' enctype='multipart/form-data' name='editproduct$num'>\n\r";
|
410 |
+
echo "<div class='categorisation_title'><strong class='form_group'>".TXT_WPSC_EDITDETAILS." </strong></div>\n\r";
|
411 |
+
|
412 |
+
echo " <div id='formcontent'>\n\r";
|
413 |
+
echo " </div>\n\r";
|
414 |
+
echo "</form>\n\r";
|
415 |
+
echo " </div>\n\r";
|
416 |
+
?>
|
417 |
+
<div id='additem'>
|
418 |
+
|
419 |
+
<div class='categorisation_title'><strong class='form_group'><?php echo TXT_WPSC_ADDDETAILS;?></strong></div>
|
420 |
+
<form method='POST' enctype='multipart/form-data'>
|
421 |
+
<table class='category_forms'>
|
422 |
+
<tr>
|
423 |
+
<td>
|
424 |
+
<?php echo TXT_WPSC_NAME;?>:
|
425 |
+
</td>
|
426 |
+
<td>
|
427 |
+
<input type='text' name='name' value='' />
|
428 |
+
</td>
|
429 |
+
</tr>
|
430 |
+
<tr>
|
431 |
+
<td>
|
432 |
+
<?php echo TXT_WPSC_DESCRIPTION;?>:
|
433 |
+
</td>
|
434 |
+
<td>
|
435 |
+
<textarea name='description' cols='40' rows='8'></textarea>
|
436 |
+
</td>
|
437 |
+
</tr>
|
438 |
+
<tr>
|
439 |
+
<td>
|
440 |
+
<?php echo TXT_WPSC_CATEGORY_PARENT;?>:
|
441 |
+
</td>
|
442 |
+
<td>
|
443 |
+
<?php echo wpsc_parent_category_list($current_categorisation['id'], 0,0); ?>
|
444 |
+
</td>
|
445 |
+
</tr>
|
446 |
+
<tr>
|
447 |
+
<td>
|
448 |
+
<?php echo TXT_WPSC_IMAGE;?>:
|
449 |
+
</td>
|
450 |
+
<td>
|
451 |
+
<input type='file' name='image' value='' />
|
452 |
+
</td>
|
453 |
+
</tr>
|
454 |
+
<?php
|
455 |
+
if(function_exists("getimagesize")) {
|
456 |
+
?>
|
457 |
+
<tr>
|
458 |
+
<td>
|
459 |
+
</td>
|
460 |
+
<td>
|
461 |
+
<?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>
|
462 |
+
</td>
|
463 |
+
</tr>
|
464 |
+
<?php
|
465 |
+
}
|
466 |
+
?>
|
467 |
+
<tr>
|
468 |
+
<td>
|
469 |
+
</td>
|
470 |
+
<td>
|
471 |
+
<input type='hidden' name='categorisation_group' value='<?php echo $current_categorisation['id']; ?>' />
|
472 |
+
<input type='hidden' name='submit_action' value='add' />
|
473 |
+
<input class='button' type='submit' name='submit' value='<?php echo TXT_WPSC_ADD;?>' />
|
474 |
+
</td>
|
475 |
+
</tr>
|
476 |
+
</table>
|
477 |
+
</form>
|
478 |
+
</div>
|
479 |
+
<?php
|
480 |
+
echo " </td></tr>\n\r";
|
481 |
+
echo " </table>\n\r";
|
482 |
+
?>
|
483 |
+
</div>
|
wp-shopping-cart/display-coupons.php
ADDED
@@ -0,0 +1,422 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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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; ?>' /> <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>
|
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>
|
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> </TD></tr>
|
413 |
+
<tr>
|
414 |
+
<td>
|
415 |
+
RSS Feed Address:
|
416 |
+
</td>
|
417 |
+
<td>
|
418 |
+
<?php echo get_option('siteurl')."/index.php?rss=true&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,1345 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
include_once('tagging_functions.php');
|
3 |
+
$category_data = null;
|
4 |
+
|
5 |
+
function topcategorylist() {
|
6 |
+
global $wpdb,$category_data;
|
7 |
+
$siteurl = get_option('siteurl');
|
8 |
+
$url = $siteurl."/wp-admin/admin.php?page=".WPSC_DIR_NAME."/display-items.php";
|
9 |
+
$options = "";
|
10 |
+
$options .= "<option value='$url'>".TXT_WPSC_ALLCATEGORIES."</option>\r\n";
|
11 |
+
$options .= top_category_options(null, 0, $_GET['catid']);
|
12 |
+
$concat .= "<select name='category' onChange='categorylist(this.options[this.selectedIndex].value)'>".$options."</select>\r\n";
|
13 |
+
return $concat;
|
14 |
+
}
|
15 |
+
|
16 |
+
function top_category_options($category_id = null, $iteration = 0, $selected_id = null) {
|
17 |
+
/*
|
18 |
+
* Displays the category forms for adding and editing products
|
19 |
+
* Recurses to generate the branched view for subcategories
|
20 |
+
*/
|
21 |
+
global $wpdb;
|
22 |
+
$siteurl = get_option('siteurl');
|
23 |
+
$url = $siteurl."/wp-admin/admin.php?page=".WPSC_DIR_NAME."/display-items.php";
|
24 |
+
if(is_numeric($category_id)) {
|
25 |
+
$values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `active`='1' AND `category_parent` = '$category_id' ORDER BY `id` ASC",ARRAY_A);
|
26 |
+
} else {
|
27 |
+
$values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `active`='1' AND `category_parent` = '0' ORDER BY `id` ASC",ARRAY_A);
|
28 |
+
}
|
29 |
+
foreach((array)$values as $option) {
|
30 |
+
if($selected_id == $option['id']) {
|
31 |
+
$selected = "selected='selected'";
|
32 |
+
}
|
33 |
+
$output .= "<option $selected value='$url&catid=".$option['id']."'>".str_repeat("-", $iteration).stripslashes($option['name'])."</option>\r\n";
|
34 |
+
$output .= top_category_options($option['id'], $iteration+1, $selected_id);
|
35 |
+
$selected = "";
|
36 |
+
}
|
37 |
+
return $output;
|
38 |
+
}
|
39 |
+
|
40 |
+
function brandslist($current_brand = '') {
|
41 |
+
global $wpdb;
|
42 |
+
$options = "";
|
43 |
+
$options .= "<option $selected value='0'>".TXT_WPSC_SELECTABRAND."</option>\r\n";
|
44 |
+
$values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_brands` WHERE `active`='1' ORDER BY `id` ASC",ARRAY_A);
|
45 |
+
foreach((array)$values as $option) {
|
46 |
+
if($curent_category == $option['id']) {
|
47 |
+
$selected = "selected='selected'";
|
48 |
+
}
|
49 |
+
$options .= "<option $selected value='".$option['id']."'>".$option['name']."</option>\r\n";
|
50 |
+
$selected = "";
|
51 |
+
}
|
52 |
+
$concat .= "<select name='brand'>".$options."</select>\r\n";
|
53 |
+
return $concat;
|
54 |
+
}
|
55 |
+
|
56 |
+
function variationslist($current_variation = '') {
|
57 |
+
global $wpdb;
|
58 |
+
$options = "";
|
59 |
+
$values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_variations` ORDER BY `id` ASC",ARRAY_A);
|
60 |
+
$options .= "<option $selected value='0'>".TXT_WPSC_PLEASECHOOSE."</option>\r\n";
|
61 |
+
foreach((array)$values as $option) {
|
62 |
+
if($current_brand == $option['id']) {
|
63 |
+
$selected = "selected='selected'";
|
64 |
+
}
|
65 |
+
$options .= "<option $selected value='".$option['id']."'>".$option['name']."</option>\r\n";
|
66 |
+
$selected = "";
|
67 |
+
}
|
68 |
+
$concat .= "<select name='variations' onChange='add_variation_value_list(this.options[this.selectedIndex].value)'>".$options."</select>\r\n";
|
69 |
+
return $concat;
|
70 |
+
}
|
71 |
+
|
72 |
+
/*
|
73 |
+
* Makes the order changes
|
74 |
+
*/
|
75 |
+
|
76 |
+
if(is_numeric($_GET['catid']) && is_numeric($_GET['product_id']) && ($_GET['position_action'] != ''))
|
77 |
+
{
|
78 |
+
$position_cat_id = $_GET['catid'];
|
79 |
+
$position_prod_id = $_GET['product_id'];
|
80 |
+
$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);
|
81 |
+
$current_order_row = $current_order_row[0];
|
82 |
+
switch($_GET['position_action'])
|
83 |
+
{
|
84 |
+
case 'top':
|
85 |
+
if($current_order_row['order'] > 0)
|
86 |
+
{
|
87 |
+
$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);
|
88 |
+
$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;");
|
89 |
+
if($check_existing != null)
|
90 |
+
{
|
91 |
+
$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']."'");
|
92 |
+
}
|
93 |
+
}
|
94 |
+
break;
|
95 |
+
|
96 |
+
case 'up':
|
97 |
+
if($current_order_row['order'] > 0)
|
98 |
+
{
|
99 |
+
$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);
|
100 |
+
//exit("<pre>".print_r($target_rows,true)."</pre>");
|
101 |
+
if(count($target_rows) == 2)
|
102 |
+
{
|
103 |
+
$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");
|
104 |
+
$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");
|
105 |
+
}
|
106 |
+
}
|
107 |
+
break;
|
108 |
+
|
109 |
+
case 'down':
|
110 |
+
$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);
|
111 |
+
//exit("<pre>".print_r($target_rows,true)."</pre>");
|
112 |
+
if(count($target_rows) == 2)
|
113 |
+
{
|
114 |
+
$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");
|
115 |
+
$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");
|
116 |
+
}
|
117 |
+
break;
|
118 |
+
|
119 |
+
case 'bottom':
|
120 |
+
$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);
|
121 |
+
$end_order_number = $end_row[0]['order'];
|
122 |
+
//exit($current_order_row['order'] . " | " . $end_order_number);
|
123 |
+
if($current_order_row['order'] < $end_order_number)
|
124 |
+
{
|
125 |
+
$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;");
|
126 |
+
$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']."'");
|
127 |
+
}
|
128 |
+
break;
|
129 |
+
|
130 |
+
default:
|
131 |
+
break;
|
132 |
+
}
|
133 |
+
}
|
134 |
+
|
135 |
+
|
136 |
+
/*
|
137 |
+
* Adds new products
|
138 |
+
*/
|
139 |
+
if($_POST['submit_action'] == 'add')
|
140 |
+
{
|
141 |
+
|
142 |
+
$file_name = null;
|
143 |
+
if($_POST['file_url'] != null)
|
144 |
+
{
|
145 |
+
$url_array = array_reverse(explode("/",$_POST['file_url']));
|
146 |
+
if(is_file(WPSC_FILE_DIR.$url_array[0])) {
|
147 |
+
$file_name = $url_array[0];
|
148 |
+
}
|
149 |
+
}
|
150 |
+
|
151 |
+
$thumbnail_image = '';
|
152 |
+
|
153 |
+
|
154 |
+
$file = 0;
|
155 |
+
/* handle adding file uploads here */
|
156 |
+
if(!empty($_FILES['file']['name'])) {
|
157 |
+
$fileid = wpsc_item_process_file('add');
|
158 |
+
$file = $fileid;
|
159 |
+
} else if (($_POST['select_product_file'] != '')) {
|
160 |
+
$fileid = wpsc_item_reassign_file($_POST['select_product_file'], 'add');
|
161 |
+
$file = $fileid;
|
162 |
+
}
|
163 |
+
|
164 |
+
|
165 |
+
if(is_numeric($_POST['quantity']) && ($_POST['quantity_limited'] == "yes")) {
|
166 |
+
$quantity_limited = 1;
|
167 |
+
$quantity = (int)$_POST['quantity'];
|
168 |
+
} else {
|
169 |
+
$quantity_limited = 0;
|
170 |
+
$quantity = 0;
|
171 |
+
}
|
172 |
+
|
173 |
+
if($_POST['special'] == 'yes') {
|
174 |
+
$special = 1;
|
175 |
+
if(is_numeric($_POST['special_price'])) {
|
176 |
+
$special_price = $_POST['price'] - $_POST['special_price'];
|
177 |
+
}
|
178 |
+
} else {
|
179 |
+
$special = 0;
|
180 |
+
$special_price = '';
|
181 |
+
}
|
182 |
+
|
183 |
+
if($_POST['notax'] == 'yes') {
|
184 |
+
$notax = 1;
|
185 |
+
} else {
|
186 |
+
$notax = 0;
|
187 |
+
}
|
188 |
+
|
189 |
+
|
190 |
+
if($_POST['display_frontpage'] == "yes") {
|
191 |
+
$display_frontpage = 1;
|
192 |
+
} else {
|
193 |
+
$display_frontpage = 0;
|
194 |
+
}
|
195 |
+
|
196 |
+
if($_POST['donation'] == "yes") {
|
197 |
+
$is_donation = 1;
|
198 |
+
} else {
|
199 |
+
$is_donation = 0;
|
200 |
+
}
|
201 |
+
|
202 |
+
if($_POST['no_shipping'] == "yes") {
|
203 |
+
$no_shipping = 1;
|
204 |
+
} else {
|
205 |
+
$no_shipping = 0;
|
206 |
+
}
|
207 |
+
|
208 |
+
|
209 |
+
|
210 |
+
|
211 |
+
$insertsql = "INSERT INTO `".$wpdb->prefix."product_list` ( `name` , `description` , `additional_description` , `price` , `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((float)$_POST['pnp'])."', '".$wpdb->escape($_POST['international_pnp'])."', '".(int)$file."', '".$image."', '".$wpdb->escape((int)$_POST['brand'])."', '$quantity_limited','$quantity','$special','$special_price', '$display_frontpage', '$notax', '$is_donation', '$no_shipping', '".$wpdb->escape($thumbnail_image)."', '" . $wpdb->escape($_POST['image_resize']) . "');";
|
212 |
+
|
213 |
+
|
214 |
+
if($wpdb->query($insertsql)) {
|
215 |
+
|
216 |
+
$product_id_data = $wpdb->get_results("SELECT LAST_INSERT_ID() AS `id` FROM `".$wpdb->prefix."product_list` LIMIT 1",ARRAY_A);
|
217 |
+
$product_id = $product_id_data[0]['id'];
|
218 |
+
if(function_exists('wp_insert_term')) {
|
219 |
+
product_tag_init();
|
220 |
+
$tags = $_POST['product_tag'];
|
221 |
+
if ($tags!="") {
|
222 |
+
$tags = explode(',',$tags);
|
223 |
+
foreach($tags as $tag){
|
224 |
+
$tt = wp_insert_term((string)$tag, 'product_tag');
|
225 |
+
}
|
226 |
+
$return = wp_set_object_terms($product_id, $tags, 'product_tag');
|
227 |
+
}
|
228 |
+
}
|
229 |
+
|
230 |
+
/* Handle new image uploads here */
|
231 |
+
$image = wpsc_item_process_image($product_id);
|
232 |
+
|
233 |
+
|
234 |
+
/* Process extra meta values */
|
235 |
+
if($_POST['productmeta_values'] != null) {
|
236 |
+
foreach((array)$_POST['productmeta_values'] as $key => $value) {
|
237 |
+
if(get_product_meta($product_id, $key) != false) {
|
238 |
+
update_product_meta($product_id, $key, $value);
|
239 |
+
} else {
|
240 |
+
add_product_meta($product_id, $key, $value);
|
241 |
+
}
|
242 |
+
}
|
243 |
+
}
|
244 |
+
|
245 |
+
if($_POST['new_custom_meta'] != null) {
|
246 |
+
foreach((array)$_POST['new_custom_meta']['name'] as $key => $name) {
|
247 |
+
$value = $_POST['new_custom_meta']['value'][(int)$key];
|
248 |
+
if(($name != '') && ($value != '')) {
|
249 |
+
add_product_meta($product_id, $name, $value, false, true);
|
250 |
+
}
|
251 |
+
}
|
252 |
+
}
|
253 |
+
|
254 |
+
do_action('wpsc_product_form_submit', $product_id);
|
255 |
+
|
256 |
+
/* Add tidy url name */
|
257 |
+
$tidied_name = trim($_POST['name']);
|
258 |
+
$tidied_name = strtolower($tidied_name);
|
259 |
+
$url_name = preg_replace(array("/(\s)+/","/[^\w-]+/i"), array("-", ''), $tidied_name);
|
260 |
+
$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);
|
261 |
+
$extension_number = '';
|
262 |
+
if($similar_names['count'] > 0) {
|
263 |
+
$extension_number = (int)$similar_names['max_number']+1;
|
264 |
+
}
|
265 |
+
$url_name .= $extension_number;
|
266 |
+
add_product_meta($product_id, 'url_name', $url_name,true);
|
267 |
+
|
268 |
+
if(($_FILES['extra_image'] != null) && function_exists('edit_submit_extra_images')) {
|
269 |
+
$var = edit_submit_extra_images($product_id);
|
270 |
+
}
|
271 |
+
|
272 |
+
$variations_procesor = new nzshpcrt_variations;
|
273 |
+
if($_POST['variation_values'] != null) {
|
274 |
+
$variations_procesor->add_to_existing_product($product_id,$_POST['variation_values']);
|
275 |
+
}
|
276 |
+
|
277 |
+
if($_POST['variation_priceandstock'] != null) {
|
278 |
+
$variations_procesor->update_variation_values($product_id, $_POST['variation_priceandstock']);
|
279 |
+
// exit("<pre>".print_r($_POST,true)."</pre>");
|
280 |
+
}
|
281 |
+
|
282 |
+
|
283 |
+
//$variations_procesor->edit_add_product_values($_POST['prodid'],$_POST['edit_add_variation_values']);
|
284 |
+
$counter = 0;
|
285 |
+
$item_list = '';
|
286 |
+
if(count($_POST['category']) > 0)
|
287 |
+
{
|
288 |
+
foreach($_POST['category'] as $category_id)
|
289 |
+
{
|
290 |
+
$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");
|
291 |
+
if($check_existing == null)
|
292 |
+
{
|
293 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."item_category_associations` ( `product_id` , `category_id` ) VALUES ( '".$product_id."', '".$category_id."');");
|
294 |
+
}
|
295 |
+
}
|
296 |
+
}
|
297 |
+
|
298 |
+
$display_added_product = "filleditform(".$product_id.");";
|
299 |
+
|
300 |
+
echo "<div class='updated'><p align='center'>".TXT_WPSC_ITEMHASBEENADDED."</p></div>";
|
301 |
+
}
|
302 |
+
else
|
303 |
+
{
|
304 |
+
echo "<div class='updated'><p align='center'>".TXT_WPSC_ITEMHASNOTBEENADDED."</p></div>";
|
305 |
+
}
|
306 |
+
}
|
307 |
+
|
308 |
+
if($_GET['submit_action'] == "remove_set")
|
309 |
+
{
|
310 |
+
if(is_numeric($_GET['product_id']) && is_numeric($_GET['variation_assoc_id']))
|
311 |
+
{
|
312 |
+
$product_id = $_GET['product_id'];
|
313 |
+
$variation_assoc_id = $_GET['variation_assoc_id'];
|
314 |
+
$check_association_id = $wpdb->get_var("SELECT `id` FROM `".$table_prefix."variation_associations` WHERE `id` = '$variation_assoc_id' LIMIT 1");
|
315 |
+
if(($variation_assoc_id > 0) && ($variation_assoc_id == $check_association_id))
|
316 |
+
{
|
317 |
+
$variation_association = $wpdb->get_row("SELECT * FROM `".$table_prefix."variation_associations` WHERE `id` = '$variation_assoc_id' LIMIT 1",ARRAY_A);
|
318 |
+
$delete_variation_sql = "DELETE FROM `".$table_prefix."variation_associations` WHERE `id` = '$variation_assoc_id' LIMIT 1";
|
319 |
+
$wpdb->query($delete_variation_sql);
|
320 |
+
//echo("<pre>".print_r($variation_association,true)."</pre>");
|
321 |
+
if($variation_association != null)
|
322 |
+
{
|
323 |
+
$variation_id = $variation_association['variation_id'];
|
324 |
+
$delete_value_sql = "DELETE FROM `".$table_prefix."variation_values_associations` WHERE `product_id` = '$product_id' AND `variation_id` = '$variation_id'";
|
325 |
+
//exit($delete_value_sql);
|
326 |
+
$wpdb->query($delete_value_sql);
|
327 |
+
}
|
328 |
+
echo "<div class='updated'><p align='center'>".TXT_WPSC_PRODUCTHASBEENEDITED."</p></div>";
|
329 |
+
}
|
330 |
+
}
|
331 |
+
}
|
332 |
+
|
333 |
+
if($_POST['submit_action'] == "edit")
|
334 |
+
{
|
335 |
+
// exit("<pre>".print_r($_POST,true)."</pre>");
|
336 |
+
$id = $_POST['prodid'];
|
337 |
+
if(function_exists('edit_submit_extra_images'))
|
338 |
+
{
|
339 |
+
if(($_FILES['extra_image'] != null))
|
340 |
+
{
|
341 |
+
$var = edit_submit_extra_images($id);
|
342 |
+
}
|
343 |
+
}
|
344 |
+
if(function_exists('edit_extra_images'))
|
345 |
+
{
|
346 |
+
$var = edit_extra_images($id);
|
347 |
+
}
|
348 |
+
|
349 |
+
$file_name = null;
|
350 |
+
if($_POST['file_url'] != null) {
|
351 |
+
$url_array = array_reverse(explode("/",$_POST['file_url']));
|
352 |
+
//exit("<pre>".print_r($url_array,true)."</pre>");
|
353 |
+
if(is_file(WPSC_FILE_DIR.$url_array[0])) {
|
354 |
+
$file_name = $url_array[0];
|
355 |
+
}
|
356 |
+
}
|
357 |
+
|
358 |
+
//written by allen
|
359 |
+
if(isset($_POST['product_tags'])) {
|
360 |
+
$imtags = $_POST['product_tags'];
|
361 |
+
$tags = explode(',',$imtags);
|
362 |
+
product_tag_init();
|
363 |
+
if(is_array($tags)) {
|
364 |
+
foreach((array)$tags as $tag){
|
365 |
+
$tt = wp_insert_term((string)$tag, 'product_tag');
|
366 |
+
}
|
367 |
+
}
|
368 |
+
wp_set_object_terms($id, $tags, 'product_tag');
|
369 |
+
}
|
370 |
+
//end of written by allen
|
371 |
+
|
372 |
+
if (isset($_POST['external_link'])) {
|
373 |
+
add_product_meta($_POST['prodid'], 'external_link', $_POST['external_link'],true);
|
374 |
+
}
|
375 |
+
|
376 |
+
if (isset($_POST['merchant_notes'])) {
|
377 |
+
$id = (int)$_POST['prodid'];
|
378 |
+
$notes = $_POST['merchant_notes'];
|
379 |
+
$updatelink_sql = "SELECT * FROM `".$wpdb->prefix."wpsc_productmeta` WHERE `product_id` = '$id' AND `meta_key`='merchant_notes'";
|
380 |
+
$updatelink_data = $wpdb->get_results($updatelink_sql, ARRAY_A);
|
381 |
+
if (count($updatelink_data)>0){
|
382 |
+
$updatelink_sql = "UPDATE `".$wpdb->prefix."wpsc_productmeta` SET `meta_value` = '$notes' WHERE `product_id` = '$id' AND `meta_key`='merchant_notes'";
|
383 |
+
$updatelink_data = $wpdb->query($updatelink_sql);
|
384 |
+
} else {
|
385 |
+
$updatelink_sql = "INSERT INTO `".$wpdb->prefix."wpsc_productmeta` (`product_id`,`meta_key`,`meta_value`) VALUES('$id','merchant_notes' ,'$notes')";
|
386 |
+
$updatelink_data = $wpdb->query($updatelink_sql);
|
387 |
+
}
|
388 |
+
}
|
389 |
+
|
390 |
+
// if (isset($_POST['engrave'])) {
|
391 |
+
// $id = $_POST['prodid'];
|
392 |
+
// $engrave = $_POST['engrave'];
|
393 |
+
// $updatelink_sql = "SELECT * FROM ".$wpdb->prefix."wpsc_productmeta WHERE product_id = $id AND meta_key='merchant_notes'";
|
394 |
+
// $updatelink_data = $wpdb->get_results($updatelink_sql, ARRAY_A);
|
395 |
+
// if (count($updatelink_data)>0){
|
396 |
+
// $updatelink_sql = "UPDATE ".$wpdb->prefix."wpsc_productmeta SET meta_value = '$notes' WHERE product_id = $id AND meta_key='merchant_notes'";
|
397 |
+
// $updatelink_data = $wpdb->query($updatelink_sql);
|
398 |
+
// } else {
|
399 |
+
// $updatelink_sql = "INSERT INTO ".$wpdb->prefix."wpsc_productmeta VALUES('',$id,'merchant_notes' ,'$notes')";
|
400 |
+
// $updatelink_data = $wpdb->query($updatelink_sql);
|
401 |
+
// }
|
402 |
+
// }
|
403 |
+
|
404 |
+
/* handle editing file uploads here */
|
405 |
+
if(!empty($_FILES['file']['name'])) {
|
406 |
+
$fileid = wpsc_item_process_file('edit');
|
407 |
+
$file = $fileid;
|
408 |
+
} else if (($_POST['select_product_file'] != '')) {
|
409 |
+
$fileid = wpsc_item_reassign_file($_POST['select_product_file'], 'edit');
|
410 |
+
$file = $fileid;
|
411 |
+
}
|
412 |
+
|
413 |
+
|
414 |
+
if(file_exists($_FILES['preview_file']['tmp_name'])) {
|
415 |
+
$fileid = $wpdb->get_var("SELECT `file` FROM `".$wpdb->prefix."product_list` WHERE `id` = '$id' LIMIT 1");
|
416 |
+
copy($_FILES['preview_file']['tmp_name'], (WPSC_PREVIEW_DIR.basename($_FILES['preview_file']['name'])));
|
417 |
+
$mimetype = wpsc_get_mimetype(WPSC_PREVIEW_DIR.basename($_FILES['preview_file']['name']));
|
418 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."product_files` SET `preview` = '".$wpdb->escape(basename($_FILES['preview_file']['name']))."', `preview_mimetype` = '".$mimetype."' WHERE `id` = '$fileid' LIMIT 1");
|
419 |
+
}
|
420 |
+
|
421 |
+
/* Handle new image uploads here */
|
422 |
+
$image = wpsc_item_process_image();
|
423 |
+
|
424 |
+
|
425 |
+
if(is_numeric($_POST['prodid'])) {
|
426 |
+
if(($_POST['image_resize'] == 1 || $_POST['image_resize'] == 2) && ($image == '')) {
|
427 |
+
/* resize the image if directed to do so and no new image is supplied */
|
428 |
+
$image_data = $wpdb->get_row("SELECT `id`,`image` FROM `".$wpdb->prefix."product_list` WHERE `id`=".$_POST['prodid']." LIMIT 1",ARRAY_A);
|
429 |
+
// prevent images from being replaced by those from other products
|
430 |
+
$check_multiple_use = $wpdb->get_var("SELECT COUNT(`image`) AS `count` FROM `".$wpdb->prefix."product_list` WHERE `image`='".$image_data['image']."'");
|
431 |
+
if($check_multiple_use > 1) {
|
432 |
+
$new_filename = $image_data['id']."_".$image_data['image'];
|
433 |
+
if(file_exists(WPSC_THUMBNAIL_DIR.$image_data['image']) && ($image_data['image'] != null)) {
|
434 |
+
copy(WPSC_THUMBNAIL_DIR.$image_data['image'], WPSC_THUMBNAIL_DIR.$new_filename);
|
435 |
+
}
|
436 |
+
if(file_exists(WPSC_IMAGE_DIR.$image_data['image']) && ($image_data['image'] != null)) {
|
437 |
+
copy(WPSC_IMAGE_DIR.$image_data['image'], WPSC_IMAGE_DIR.$new_filename);
|
438 |
+
}
|
439 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `image` = '".$new_filename."' WHERE `id`='".$image_data['id']."' LIMIT 1");
|
440 |
+
$image_data = $wpdb->get_row("SELECT `id`,`image` FROM `".$wpdb->prefix."product_list` WHERE `id`=".$_POST['prodid']." LIMIT 1",ARRAY_A);
|
441 |
+
}
|
442 |
+
|
443 |
+
|
444 |
+
if(file_exists(WPSC_THUMBNAIL_DIR.$image_data['image']) && ($image_data['image'] != '')) {
|
445 |
+
$imagepath = WPSC_IMAGE_DIR . $image_data['image'];
|
446 |
+
$image_output = WPSC_THUMBNAIL_DIR . $image_data['image'];
|
447 |
+
switch($_POST['image_resize']) {
|
448 |
+
case 1:
|
449 |
+
$height = get_option('product_image_height');
|
450 |
+
$width = get_option('product_image_width');
|
451 |
+
break;
|
452 |
+
|
453 |
+
case 2:
|
454 |
+
$height = $_POST['height'];
|
455 |
+
$width = $_POST['width'];
|
456 |
+
break;
|
457 |
+
}
|
458 |
+
image_processing($imagepath, $image_output, $width, $height);
|
459 |
+
}
|
460 |
+
}
|
461 |
+
|
462 |
+
if(is_numeric($_POST['prodid'])) {
|
463 |
+
$counter = 0;
|
464 |
+
$item_list = '';
|
465 |
+
if(count($_POST['category']) > 0) {
|
466 |
+
foreach($_POST['category'] as $category_id) {
|
467 |
+
$category_id = (int)$category_id; // force it to be an integer rather than check if it is one
|
468 |
+
$check_existing = $wpdb->get_var("SELECT `id` FROM `".$wpdb->prefix."item_category_associations` WHERE `product_id` = ".$id." AND `category_id` = '$category_id' LIMIT 1");
|
469 |
+
if($check_existing == null) {
|
470 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."item_category_associations` ( `product_id` , `category_id` ) VALUES ('".$id."', '".$category_id."');");
|
471 |
+
}
|
472 |
+
if($counter > 0) {
|
473 |
+
$item_list .= ", ";
|
474 |
+
}
|
475 |
+
$item_list .= "'".$category_id."'";
|
476 |
+
$counter++;
|
477 |
+
}
|
478 |
+
} else {
|
479 |
+
$item_list = "'0'";
|
480 |
+
}
|
481 |
+
$wpdb->query("DELETE FROM `".$wpdb->prefix."item_category_associations` WHERE `product_id`= '$id' AND `category_id` NOT IN (".$item_list.")");
|
482 |
+
}
|
483 |
+
|
484 |
+
$key = Array();
|
485 |
+
|
486 |
+
|
487 |
+
if(is_numeric($_POST['quantity']) && ($_POST['quantity_limited'] == "yes")){
|
488 |
+
$quantity_limited = 1;
|
489 |
+
$quantity = $_POST['quantity'];
|
490 |
+
} else {
|
491 |
+
$quantity_limited = 0;
|
492 |
+
$quantity = 0;
|
493 |
+
}
|
494 |
+
|
495 |
+
if($_POST['special'] == 'yes') {
|
496 |
+
$special = 1;
|
497 |
+
if(is_numeric($_POST['special_price'])) {
|
498 |
+
$special_price = $_POST['price'] - $_POST['special_price'];
|
499 |
+
}
|
500 |
+
} else {
|
501 |
+
$special = 0;
|
502 |
+
$special_price = '';
|
503 |
+
}
|
504 |
+
|
505 |
+
if($_POST['notax'] == 'yes') {
|
506 |
+
$notax = 1;
|
507 |
+
} else {
|
508 |
+
$notax = 0;
|
509 |
+
}
|
510 |
+
|
511 |
+
|
512 |
+
if($_POST['display_frontpage'] == "yes") {
|
513 |
+
$display_frontpage = 1;
|
514 |
+
} else {
|
515 |
+
$display_frontpage = 0;
|
516 |
+
}
|
517 |
+
|
518 |
+
if($_POST['donation'] == "yes") {
|
519 |
+
$is_donation = 1;
|
520 |
+
} else {
|
521 |
+
$is_donation = 0;
|
522 |
+
}
|
523 |
+
|
524 |
+
if($_POST['no_shipping'] == "yes") {
|
525 |
+
$no_shipping = 1;
|
526 |
+
} else {
|
527 |
+
$no_shipping = 0;
|
528 |
+
}
|
529 |
+
|
530 |
+
$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` = '".$wpdb->escape($_POST['brand'])."', 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' WHERE `id`='".$_POST['prodid']."' LIMIT 1";
|
531 |
+
|
532 |
+
$wpdb->query($updatesql);
|
533 |
+
if(($_FILES['image']['name'] != null) && ($image != null)) {
|
534 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `image` = '".$image."' WHERE `id`='".$_POST['prodid']."' LIMIT 1");
|
535 |
+
}
|
536 |
+
|
537 |
+
if($_POST['productmeta_values'] != null) {
|
538 |
+
foreach((array)$_POST['productmeta_values'] as $key => $value) {
|
539 |
+
if(get_product_meta($_POST['prodid'], $key) != false) {
|
540 |
+
update_product_meta($_POST['prodid'], $key, $value);
|
541 |
+
} else {
|
542 |
+
add_product_meta($_POST['prodid'], $key, $value);
|
543 |
+
}
|
544 |
+
}
|
545 |
+
}
|
546 |
+
|
547 |
+
if($_POST['new_custom_meta'] != null) {
|
548 |
+
foreach((array)$_POST['new_custom_meta']['name'] as $key => $name) {
|
549 |
+
$value = $_POST['new_custom_meta']['value'][(int)$key];
|
550 |
+
if(($name != '') && ($value != '')) {
|
551 |
+
add_product_meta($_POST['prodid'], $name, $value, false, true);
|
552 |
+
}
|
553 |
+
}
|
554 |
+
}
|
555 |
+
|
556 |
+
|
557 |
+
if($_POST['custom_meta'] != null) {
|
558 |
+
foreach((array)$_POST['custom_meta'] as $key => $values) {
|
559 |
+
if(($values['name'] != '') && ($values['value'] != '')) {
|
560 |
+
$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 ;");
|
561 |
+
// 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 ;";
|
562 |
+
//add_product_meta($_POST['prodid'], $values['name'], $values['value'], false, true);
|
563 |
+
}
|
564 |
+
}
|
565 |
+
}
|
566 |
+
|
567 |
+
|
568 |
+
|
569 |
+
|
570 |
+
do_action('wpsc_product_form_submit', $product_id);
|
571 |
+
|
572 |
+
/* Add or edit tidy url name */
|
573 |
+
$tidied_name = trim($_POST['title']);
|
574 |
+
$tidied_name = strtolower($tidied_name);
|
575 |
+
$url_name = preg_replace(array("/(\s)+/","/[^\w-]+/i"), array("-", ''), $tidied_name);
|
576 |
+
$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);
|
577 |
+
$extension_number = '';
|
578 |
+
if($similar_names['count'] > 0) {
|
579 |
+
$extension_number = (int)$similar_names['max_number']+1;
|
580 |
+
}
|
581 |
+
|
582 |
+
$stored_name = get_product_meta($_POST['prodid'], 'url_name', true);
|
583 |
+
if(get_product_meta($_POST['prodid'], 'url_name', true) != false) {
|
584 |
+
$current_url_name = get_product_meta($_POST['prodid'], 'url_name');
|
585 |
+
if($current_url_name[0] != $url_name) {
|
586 |
+
$url_name .= $extension_number;
|
587 |
+
update_product_meta($_POST['prodid'], 'url_name', $url_name);
|
588 |
+
}
|
589 |
+
} else {
|
590 |
+
$url_name .= $extension_number;
|
591 |
+
add_product_meta($_POST['prodid'], 'url_name', $url_name, true);
|
592 |
+
}
|
593 |
+
|
594 |
+
/* update thumbnail images */
|
595 |
+
if(!($thumbnail_image == null && $_POST['image_resize'] == 3 && $_POST['current_thumbnail_image'] != null)) {
|
596 |
+
if($thumbnail_image != null) {
|
597 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `thumbnail_image` = '".$thumbnail_image."' WHERE `id`='".$_POST['prodid']."' LIMIT 1");
|
598 |
+
}
|
599 |
+
}
|
600 |
+
|
601 |
+
$image_resize = $_POST['image_resize'];
|
602 |
+
if(!is_numeric($image_resize) || ($image_resize < 1)) {
|
603 |
+
$image_resize = 0;
|
604 |
+
}
|
605 |
+
|
606 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `thumbnail_state` = '".$image_resize."' WHERE `id`='".$_POST['prodid']."' LIMIT 1");
|
607 |
+
|
608 |
+
if($_POST['deleteimage'] == 1) {
|
609 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `image` = '' WHERE `id`='".$_POST['prodid']."' LIMIT 1");
|
610 |
+
}
|
611 |
+
|
612 |
+
$variations_procesor = new nzshpcrt_variations;
|
613 |
+
if($_POST['variation_values'] != null) {
|
614 |
+
//$variations_procesor->add_to_existing_product($_POST['prodid'],$_POST['variation_values']);
|
615 |
+
}
|
616 |
+
|
617 |
+
if($_POST['edit_variation_values'] != null) {
|
618 |
+
$variations_procesor->edit_product_values($_POST['prodid'],$_POST['edit_variation_values']);
|
619 |
+
}
|
620 |
+
|
621 |
+
if($_POST['edit_add_variation_values'] != null) {
|
622 |
+
$variations_procesor->edit_add_product_values($_POST['prodid'],$_POST['edit_add_variation_values']);
|
623 |
+
}
|
624 |
+
|
625 |
+
if($_POST['variation_priceandstock'] != null) {
|
626 |
+
$variations_procesor->update_variation_values($_POST['prodid'], $_POST['variation_priceandstock']);
|
627 |
+
}
|
628 |
+
echo "<div class='updated'><p align='center'>".TXT_WPSC_PRODUCTHASBEENEDITED."</p></div>";
|
629 |
+
}
|
630 |
+
}
|
631 |
+
|
632 |
+
if(is_numeric($_GET['deleteid'])) {
|
633 |
+
$wpdb->query("DELETE FROM `".$wpdb->prefix."wpsc_productmeta` WHERE `product_id` = '".$_GET['deleteid']."' AND `meta_key` IN ('url_name')");
|
634 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `active` = '0' WHERE `id`='".$_GET['deleteid']."' LIMIT 1");
|
635 |
+
}
|
636 |
+
|
637 |
+
|
638 |
+
/*
|
639 |
+
* Gets the product list, commented to make it stick out more, as it is hard to notice
|
640 |
+
*/
|
641 |
+
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
|
642 |
+
$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`
|
643 |
+
FROM `".$wpdb->prefix."product_list`
|
644 |
+
LEFT JOIN `".$wpdb->prefix."item_category_associations` ON `".$wpdb->prefix."product_list`.`id` = `".$wpdb->prefix."item_category_associations`.`product_id`
|
645 |
+
LEFT JOIN `".$wpdb->prefix."product_order` ON ( (
|
646 |
+
`".$wpdb->prefix."product_list`.`id` = `".$wpdb->prefix."product_order`.`product_id`
|
647 |
+
)
|
648 |
+
AND (
|
649 |
+
`".$wpdb->prefix."item_category_associations`.`category_id` = `".$wpdb->prefix."product_order`.`category_id`
|
650 |
+
) )
|
651 |
+
WHERE `".$wpdb->prefix."product_list`.`active` = '1'
|
652 |
+
AND `".$wpdb->prefix."item_category_associations`.`category_id`
|
653 |
+
IN (
|
654 |
+
'".$_GET['catid']."'
|
655 |
+
)
|
656 |
+
ORDER BY `order_state` DESC,`".$wpdb->prefix."product_order`.`order` ASC";
|
657 |
+
} else {
|
658 |
+
$itempp = 20;
|
659 |
+
if ($_GET['pnum']!='all') {
|
660 |
+
$page = (int)$_GET['pnum'];
|
661 |
+
|
662 |
+
$start = $page * $itempp;
|
663 |
+
$sql = "SELECT DISTINCT * FROM `{$wpdb->prefix}product_list` WHERE `active`='1' LIMIT $start,$itempp";
|
664 |
+
} else {
|
665 |
+
$sql = "SELECT DISTINCT * FROM `{$wpdb->prefix}product_list` WHERE `active`='1'";
|
666 |
+
}
|
667 |
+
}
|
668 |
+
|
669 |
+
$product_list = $wpdb->get_results($sql,ARRAY_A);
|
670 |
+
$num_prodcuts = count($wpdb->get_results("SELECT DISTINCT * FROM `".$wpdb->prefix."product_list` WHERE `active`='1'",ARRAY_A));
|
671 |
+
|
672 |
+
/*
|
673 |
+
* The product list is stored in $product_list now
|
674 |
+
*/
|
675 |
+
|
676 |
+
/*
|
677 |
+
* Detects if the directories for images, thumbnails and files are writeable, if they are not, tells the user to make them writeable.
|
678 |
+
*/
|
679 |
+
|
680 |
+
$unwriteable_directories = Array();
|
681 |
+
|
682 |
+
if(!is_writable(WPSC_FILE_DIR)) {
|
683 |
+
$unwriteable_directories[] = WPSC_FILE_DIR;
|
684 |
+
}
|
685 |
+
|
686 |
+
if(!is_writable(WPSC_PREVIEW_DIR)) {
|
687 |
+
$unwriteable_directories[] = WPSC_PREVIEW_DIR;
|
688 |
+
}
|
689 |
+
|
690 |
+
if(!is_writable(WPSC_IMAGE_DIR)) {
|
691 |
+
$unwriteable_directories[] = WPSC_IMAGE_DIR;
|
692 |
+
}
|
693 |
+
|
694 |
+
if(!is_writable(WPSC_THUMBNAIL_DIR)) {
|
695 |
+
$unwriteable_directories[] = WPSC_THUMBNAIL_DIR;
|
696 |
+
}
|
697 |
+
|
698 |
+
if(!is_writable(WPSC_CATEGORY_DIR)) {
|
699 |
+
$unwriteable_directories[] = WPSC_CATEGORY_DIR;
|
700 |
+
}
|
701 |
+
|
702 |
+
if(count($unwriteable_directories) > 0)
|
703 |
+
{
|
704 |
+
echo "<div class='error'>".str_replace(":directory:","<ul><li>".implode($unwriteable_directories, "</li><li>")."</li></ul>",TXT_WPSC_WRONG_FILE_PERMS)."</div>";
|
705 |
+
}
|
706 |
+
?>
|
707 |
+
|
708 |
+
|
709 |
+
<div class="wrap">
|
710 |
+
<h2><?php echo TXT_WPSC_DISPLAYPRODUCTS;?></h2>
|
711 |
+
<span style='float:right;'><?php echo setting_button(); ?></span>
|
712 |
+
|
713 |
+
<?php
|
714 |
+
?>
|
715 |
+
<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; ?>' /> <span><?php echo TXT_WPSC_ADDPRODUCT;?></span></a><br />
|
716 |
+
|
717 |
+
<script language='javascript' type='text/javascript'>
|
718 |
+
function conf()
|
719 |
+
{
|
720 |
+
var check = confirm("<?php echo TXT_WPSC_SURETODELETEPRODUCT;?>");
|
721 |
+
if(check)
|
722 |
+
{
|
723 |
+
return true;
|
724 |
+
}
|
725 |
+
else
|
726 |
+
{
|
727 |
+
return false;
|
728 |
+
}
|
729 |
+
}
|
730 |
+
<?php
|
731 |
+
if(is_numeric($_POST['prodid']))
|
732 |
+
{
|
733 |
+
echo "filleditform(".$_POST['prodid'].");";
|
734 |
+
}
|
735 |
+
else if(is_numeric($_GET['product_id']))
|
736 |
+
{
|
737 |
+
echo "filleditform(".$_GET['product_id'].");";
|
738 |
+
}
|
739 |
+
|
740 |
+
echo $display_added_product ;
|
741 |
+
?>
|
742 |
+
</script>
|
743 |
+
<?php
|
744 |
+
$num = 0;
|
745 |
+
|
746 |
+
|
747 |
+
echo " <table id='productpage'>\n\r";
|
748 |
+
echo " <tr><td>\n\r";
|
749 |
+
echo " <table id='itemlist'>\n\r";
|
750 |
+
echo " <tr class='firstrowth'>\n\r";
|
751 |
+
echo " <td colspan='4' style='text-align: left;'>\n\r";
|
752 |
+
echo "<strong class='form_group'>".TXT_WPSC_SELECT_PRODUCT."</strong>";
|
753 |
+
echo " </td>\n\r";
|
754 |
+
echo " </tr>\n\r";
|
755 |
+
echo " <tr class='selectcategory'>\n\r";
|
756 |
+
echo " <td colspan='4' width='160px'>\n\r";
|
757 |
+
echo "<div style='float: right; width: 160px;'>";
|
758 |
+
echo topcategorylist() . "<span id='loadingindicator_span'><img id='loadingimage' src='".WPSC_URL."/images/indicator.gif' alt='Loading' title='Loading' /></span></div>";
|
759 |
+
echo TXT_WPSC_PLEASESELECTACATEGORY.":";
|
760 |
+
|
761 |
+
echo " </td>\n\r";
|
762 |
+
echo " </tr>\n\r";
|
763 |
+
// echo " <tr>\n\r";
|
764 |
+
// echo"<td colspan='4'>\n\r";
|
765 |
+
// echo " <div id='changenotice' class='updated'></div>";
|
766 |
+
// echo " </td>\n\r";
|
767 |
+
// echo " </tr>\n\r";
|
768 |
+
|
769 |
+
|
770 |
+
|
771 |
+
if(is_numeric($_GET['catid'])) {
|
772 |
+
$name_style = 'class="pli_name"';
|
773 |
+
$price_style = 'class="pli_price"';
|
774 |
+
$edit_style = 'class="pli_edit"';
|
775 |
+
} else {
|
776 |
+
$name_style = '';
|
777 |
+
$price_style = '';
|
778 |
+
$edit_style = '';
|
779 |
+
}
|
780 |
+
|
781 |
+
|
782 |
+
echo " <tr class='firstrow'>\n\r";
|
783 |
+
|
784 |
+
echo " <td width='45px'>";
|
785 |
+
echo "</td>\n\r";
|
786 |
+
|
787 |
+
echo " <td ".$name_style.">";
|
788 |
+
echo TXT_WPSC_NAME;
|
789 |
+
echo "</td>\n\r";
|
790 |
+
|
791 |
+
echo " <td ".$price_style.">";
|
792 |
+
echo TXT_WPSC_PRICE;
|
793 |
+
echo "</td>\n\r";
|
794 |
+
|
795 |
+
if(!is_numeric($_GET['catid'])) {
|
796 |
+
echo " <td>";
|
797 |
+
echo TXT_WPSC_CATEGORIES;
|
798 |
+
echo "</td>\n\r";
|
799 |
+
}
|
800 |
+
|
801 |
+
echo " </tr>\n\r";
|
802 |
+
if(is_numeric($_GET['catid'])) {
|
803 |
+
echo "<tr><td colspan='4' class='category_item_container'>\n\r";
|
804 |
+
}
|
805 |
+
|
806 |
+
if($product_list != null)
|
807 |
+
{
|
808 |
+
$order_number = 0;
|
809 |
+
if(is_numeric($_GET['catid'])){
|
810 |
+
echo " <form><input type='hidden' name='category_id' id='item_list_category_id' value='".(int)$_GET['catid']."'/></form>";
|
811 |
+
echo " <div id='sort1' class='groupWrapper'>\n\r";
|
812 |
+
}
|
813 |
+
$tablei=1;
|
814 |
+
foreach($product_list as $product)
|
815 |
+
{
|
816 |
+
/*
|
817 |
+
* Creates order table entries if they are not already present
|
818 |
+
* No need for extra database queries to determine the highest order number
|
819 |
+
* anything without one is automatically at the bottom
|
820 |
+
* so anything with an order number is already processed by the time it starts adding rows
|
821 |
+
*/
|
822 |
+
if(is_numeric($_GET['catid'])){
|
823 |
+
echo " <div id='".$product['id']."' class='groupItem'>\n\r";
|
824 |
+
//echo " <div class='itemHeader'></div>\n\r";
|
825 |
+
echo " <div class='itemContent'>\n\r";
|
826 |
+
} else {
|
827 |
+
if ($tablei==1) {
|
828 |
+
echo "<tr class='products'>";
|
829 |
+
} else {
|
830 |
+
echo "<tr class='productsalt'>";
|
831 |
+
}
|
832 |
+
$tablei*=-1;
|
833 |
+
}
|
834 |
+
|
835 |
+
if(is_numeric($_GET['catid'])) {
|
836 |
+
if($product['order_state'] > 0) {
|
837 |
+
if($product['order'] > $order_number) {
|
838 |
+
$order_number = $product['order'];
|
839 |
+
$order_number++;
|
840 |
+
}
|
841 |
+
} else {
|
842 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."product_order` ( `category_id` , `product_id` , `order` ) VALUES ( '".$product['category_id']."', '".$product['id']."', '$order_number');");
|
843 |
+
$order_number++;
|
844 |
+
}
|
845 |
+
}
|
846 |
+
if(is_numeric($_GET['catid'])) {
|
847 |
+
echo " <div class='itemHeader pli_img'>\n\r";
|
848 |
+
echo "<a class='noline' title='Drag to a new position'>";
|
849 |
+
} else {
|
850 |
+
echo " <td style='width: 40px;' class='imagecol'>\r\n";
|
851 |
+
}
|
852 |
+
|
853 |
+
if(($product['thumbnail_image'] != null) && file_exists(WPSC_THUMBNAIL_DIR.$product['thumbnail_image'])) { // check for custom thumbnail images
|
854 |
+
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' />";
|
855 |
+
} else if(($product['image'] != null) && file_exists(WPSC_THUMBNAIL_DIR.$product['image'])) { // check for automatic thumbnail images
|
856 |
+
echo "<img title='Drag to a new position' src='".WPSC_THUMBNAIL_URL.$product['image']."' title='".$product['name']."' alt='".$product['name']."' width='35' height='35' />";
|
857 |
+
} else { // no image, display this fact
|
858 |
+
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' />";
|
859 |
+
}
|
860 |
+
|
861 |
+
echo "</a>";
|
862 |
+
if(is_numeric($_GET['catid'])){
|
863 |
+
echo " </div>\n\r";
|
864 |
+
} else {
|
865 |
+
echo "</td><td width='25%'>";
|
866 |
+
}
|
867 |
+
|
868 |
+
if(is_numeric($_GET['catid'])){
|
869 |
+
echo " <div class='pli_name'>\n\r";
|
870 |
+
}
|
871 |
+
|
872 |
+
echo "<a href='#' onclick='filleditform(".$product['id'].");return false;'>";
|
873 |
+
if ($product['name']=='') {
|
874 |
+
echo "(".TXT_WPSC_NONAME.")";
|
875 |
+
} else {
|
876 |
+
echo stripslashes($product['name']);
|
877 |
+
}
|
878 |
+
echo "</a>";
|
879 |
+
|
880 |
+
|
881 |
+
|
882 |
+
if(is_numeric($_GET['catid'])){
|
883 |
+
echo " </div>\n\r";
|
884 |
+
} else {
|
885 |
+
echo "</td><td>";
|
886 |
+
}
|
887 |
+
if(is_numeric($_GET['catid'])){
|
888 |
+
echo " <div class='pli_price'>\n\r";
|
889 |
+
}
|
890 |
+
echo nzshpcrt_currency_display($product['price'], 1);
|
891 |
+
if(is_numeric($_GET['catid'])){
|
892 |
+
echo " </div>\n\r";
|
893 |
+
}
|
894 |
+
|
895 |
+
if(!is_numeric($_GET['catid'])) {
|
896 |
+
echo " <td>\n\r";
|
897 |
+
$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);
|
898 |
+
$i = 0;
|
899 |
+
foreach((array)$category_list as $category_row)
|
900 |
+
{
|
901 |
+
if($i > 0)
|
902 |
+
{
|
903 |
+
echo "<br />";
|
904 |
+
}
|
905 |
+
echo "<a href='?page=".$_GET['page']."&catid=".$category_row['id']."'>".stripslashes($category_row['name'])."</a>";
|
906 |
+
$i++;
|
907 |
+
}
|
908 |
+
}
|
909 |
+
if(!is_numeric($_GET['catid'])){
|
910 |
+
echo "</td>";
|
911 |
+
}
|
912 |
+
// echo "<a href='#' title='sth' onclick='filleditform(".$product['id'].");return false;'>".TXT_WPSC_EDIT."</a>";
|
913 |
+
echo " </div>\n\r";
|
914 |
+
echo " </div>\n\r";
|
915 |
+
if(!is_numeric($_GET['catid'])){
|
916 |
+
echo "</tr>";
|
917 |
+
}
|
918 |
+
}
|
919 |
+
echo " </div>\n\r";
|
920 |
+
echo "</td></tr>";
|
921 |
+
if(is_numeric($_GET['catid'])){
|
922 |
+
//echo "<tr><td> <a href='#' onClick='serialize();return false;'>".TXT_WPSC_SAVE_PRODUCT_ORDER."</a></td><td></td></tr>";
|
923 |
+
} else {
|
924 |
+
if (isset($itempp)) {
|
925 |
+
$num_pages = ceil($num_prodcuts/$itempp);
|
926 |
+
}
|
927 |
+
if (!isset($_GET['pnum'])) {
|
928 |
+
$_GET['pnum']=0;
|
929 |
+
}
|
930 |
+
echo "<tr class='selectcategory' style='border: none;'><td style='text-align:right;' colspan='4' width='70%'>";
|
931 |
+
for ($i=0;$i<$num_pages;$i++) {
|
932 |
+
$newpage=$_GET['pnum']+1;
|
933 |
+
$pagenumber=$i+1;
|
934 |
+
if (($i==$_GET['pnum']) && is_numeric($_GET['pnum'] )) {
|
935 |
+
echo '<span class="page-numbers current">'.$pagenumber.'</span>';
|
936 |
+
} else {
|
937 |
+
echo "<a style='text-decoration:none;' class='page-numbers' href='?page=".$_GET['page']."&pnum=".$i."'>".$pagenumber."</a>";
|
938 |
+
}
|
939 |
+
}
|
940 |
+
if (!isset($_GET['catid'])) {
|
941 |
+
if ($_GET['pnum']==='all') {
|
942 |
+
echo '<span class="page-numbers current">'.TXT_WPSC_SHOWALL.'</span>';
|
943 |
+
} else {
|
944 |
+
echo "<a style='text-decoration:none;' class='page-numbers' href='?page=".$_GET['page']."&pnum=all'>".TXT_WPSC_SHOWALL."</a>";
|
945 |
+
}
|
946 |
+
}
|
947 |
+
echo "</td></tr>";
|
948 |
+
}
|
949 |
+
|
950 |
+
|
951 |
+
}
|
952 |
+
|
953 |
+
echo " </table>\n\r";
|
954 |
+
echo " </td><td class='secondcol'>\n\r";
|
955 |
+
echo " <div id='productform'>";
|
956 |
+
echo "<div class='categorisation_title'><strong class='form_group'>". TXT_WPSC_PRODUCTDETAILS." <span>".TXT_WPSC_ENTERPRODUCTDETAILSHERE."</span></strong></div>";
|
957 |
+
echo "<form method='POST' enctype='multipart/form-data' name='editproduct$num'>";
|
958 |
+
echo " <table class='producttext'>\n\r";;
|
959 |
+
|
960 |
+
|
961 |
+
echo " </table>\n\r";
|
962 |
+
echo " <div id='formcontent' style='width:100%;'>\n\r";
|
963 |
+
echo " </div>\n\r";
|
964 |
+
echo "</form>";
|
965 |
+
echo " </div>";
|
966 |
+
?>
|
967 |
+
<div id='additem'>
|
968 |
+
<div class="categorisation_title"><strong class="form_group"><?php echo TXT_WPSC_PRODUCTDETAILS;?> <span><?php echo TXT_WPSC_ENTERPRODUCTDETAILSHERE;?></span></strong></div>
|
969 |
+
|
970 |
+
<form method='POST' enctype='multipart/form-data'>
|
971 |
+
<table class='additem'>
|
972 |
+
<tr>
|
973 |
+
<td class='itemfirstcol'>
|
974 |
+
<?php echo TXT_WPSC_PRODUCTNAME;?>:
|
975 |
+
</td>
|
976 |
+
<td>
|
977 |
+
<input size='30' type='text' name='name' value='' class='text' />
|
978 |
+
</td>
|
979 |
+
</tr>
|
980 |
+
<tr>
|
981 |
+
<td class='itemfirstcol'>
|
982 |
+
<?php echo TXT_WPSC_PRODUCTDESCRIPTION;?>:
|
983 |
+
</td>
|
984 |
+
<td>
|
985 |
+
<textarea name='description' cols='40' rows='8'></textarea><br />
|
986 |
+
</td>
|
987 |
+
</tr>
|
988 |
+
<tr>
|
989 |
+
<td class='itemfirstcol'>
|
990 |
+
<?php echo TXT_WPSC_ADDITIONALDESCRIPTION;?>:
|
991 |
+
</td>
|
992 |
+
<td>
|
993 |
+
<textarea name='additional_description' cols='40' rows='8'></textarea><br />
|
994 |
+
</td>
|
995 |
+
</tr>
|
996 |
+
<tr>
|
997 |
+
<td class='itemfirstcol'>
|
998 |
+
<?php echo TXT_WPSC_PRODUCT_TAGS;?>:
|
999 |
+
</td>
|
1000 |
+
<td>
|
1001 |
+
<input type='text' class='text' name='product_tag' id='product_tag'><br /><span class='small_italic'>Seperate with commas</span>
|
1002 |
+
</td>
|
1003 |
+
</tr>
|
1004 |
+
<tr><td> </td></tr>
|
1005 |
+
<tr>
|
1006 |
+
<td class='itemfirstcol'>
|
1007 |
+
</td>
|
1008 |
+
<td>
|
1009 |
+
<?php
|
1010 |
+
$categorisation_groups = $wpdb->get_results("SELECT * FROM `{$wpdb->prefix}wpsc_categorisation_groups` WHERE `active` IN ('1')", ARRAY_A);
|
1011 |
+
foreach($categorisation_groups as $categorisation_group){
|
1012 |
+
$category_count = $wpdb->get_var("SELECT COUNT(*) FROM `{$wpdb->prefix}product_categories` WHERE `group_id` IN ('{$categorisation_group['id']}')");
|
1013 |
+
if($category_count > 0) {
|
1014 |
+
echo "<p>";
|
1015 |
+
$category_group_name = str_replace("[categorisation]", $categorisation_group['name'], TXT_WPSC_PRODUCT_CATEGORIES);
|
1016 |
+
echo "<strong>".$category_group_name.":</strong><br>";
|
1017 |
+
echo categorylist($categorisation_group['id'], false, 'add_');
|
1018 |
+
echo "</p>";
|
1019 |
+
}
|
1020 |
+
}
|
1021 |
+
?>
|
1022 |
+
</td>
|
1023 |
+
</tr>
|
1024 |
+
|
1025 |
+
|
1026 |
+
|
1027 |
+
|
1028 |
+
<tr><td colspan='2'><div id='price_and_stock' class='postbox'>
|
1029 |
+
<h3>
|
1030 |
+
<a class="togbox">+</a>
|
1031 |
+
<?php echo TXT_WPSC_PRICE_AND_STOCK_CONTROL;?>
|
1032 |
+
</h3>
|
1033 |
+
<div class='inside'>
|
1034 |
+
<table>
|
1035 |
+
<tr>
|
1036 |
+
<td>
|
1037 |
+
<?php echo TXT_WPSC_PRICE;?>: <input type='text' size='10' name='price' value='0.00' />
|
1038 |
+
</td>
|
1039 |
+
</tr>
|
1040 |
+
<tr>
|
1041 |
+
<td>
|
1042 |
+
<input id='add_form_tax' type='checkbox' name='notax' value='yes' /> <label for='add_form_tax'><?php echo TXT_WPSC_TAXALREADYINCLUDED;?></label>
|
1043 |
+
</td>
|
1044 |
+
</tr>
|
1045 |
+
<tr>
|
1046 |
+
|
1047 |
+
<td>
|
1048 |
+
<input id='add_form_donation' type='checkbox' name='donation' value='yes' /> <label for='add_form_donation'><?php echo TXT_WPSC_IS_DONATION;?></label>
|
1049 |
+
</td>
|
1050 |
+
</tr>
|
1051 |
+
<tr>
|
1052 |
+
|
1053 |
+
<td>
|
1054 |
+
<input id='add_form_no_shipping' type='checkbox' name='no_shipping' value='yes' /> <label for='add_form_no_shipping'><?php echo TXT_WPSC_NO_SHIPPING;?></label>
|
1055 |
+
</td>
|
1056 |
+
</tr>
|
1057 |
+
<tr>
|
1058 |
+
<td>
|
1059 |
+
<input type="checkbox" onclick="hideelement('add_special')" value="yes" name="special" id="add_form_special"/>
|
1060 |
+
<label for="add_form_special"><?php echo TXT_WPSC_SPECIAL;?></label>
|
1061 |
+
<div style="display: none;" id="add_special">
|
1062 |
+
<input type="text" size="10" value="0.00" name="special_price"/>
|
1063 |
+
</div>
|
1064 |
+
</td>
|
1065 |
+
</tr>
|
1066 |
+
<tr>
|
1067 |
+
<td style='width:430px;'>
|
1068 |
+
<input id='add_form_quantity_limited' type="checkbox" onclick="hideelement('add_stock')" value="yes" name="quantity_limited"/>
|
1069 |
+
<label for='add_form_quantity_limited' class='small'><?php echo TXT_WPSC_UNTICKBOX;?></label>
|
1070 |
+
<div style="display: none;" id="add_stock">
|
1071 |
+
<input type='text' name='quantity' value='0' size='10' />
|
1072 |
+
</div>
|
1073 |
+
</td>
|
1074 |
+
</tr>
|
1075 |
+
</table></div></div></TD></tr>
|
1076 |
+
<?php
|
1077 |
+
do_action('wpsc_product_form', array('product_id' => 0, 'state' => 'add'));
|
1078 |
+
?>
|
1079 |
+
<tr>
|
1080 |
+
<td colspan="2">
|
1081 |
+
<div id='variation' class='postbox closed'>
|
1082 |
+
<h3>
|
1083 |
+
<a class="togbox">+</a>
|
1084 |
+
<?php echo TXT_WPSC_VARIATION_CONTROL; ?>
|
1085 |
+
</h3>
|
1086 |
+
<div class='inside'>
|
1087 |
+
<table>
|
1088 |
+
<tr>
|
1089 |
+
<td>
|
1090 |
+
<?php echo TXT_WPSC_ADD_VAR; ?>
|
1091 |
+
</td>
|
1092 |
+
<td>
|
1093 |
+
<?php echo variationslist(); ?>
|
1094 |
+
<div id='add_product_variations'>
|
1095 |
+
|
1096 |
+
</div>
|
1097 |
+
<div id='add_product_variation_details'>
|
1098 |
+
|
1099 |
+
</div>
|
1100 |
+
</td>
|
1101 |
+
</tr>
|
1102 |
+
</table></div></div></td></tr>
|
1103 |
+
<tr>
|
1104 |
+
<td colspan='2'>
|
1105 |
+
<div class='postbox closed' id='shipping'>
|
1106 |
+
<h3>
|
1107 |
+
<a class="togbox">+</a>
|
1108 |
+
<?php echo TXT_WPSC_SHIPPING_DETAILS; ?>
|
1109 |
+
</h3>
|
1110 |
+
<div class='inside'>
|
1111 |
+
<table>
|
1112 |
+
<tr>
|
1113 |
+
<td>
|
1114 |
+
<?php echo TXT_WPSC_LOCAL_PNP; ?>
|
1115 |
+
</td>
|
1116 |
+
<td>
|
1117 |
+
<input type='text' size='10' name='pnp' value='0.00' />
|
1118 |
+
</td>
|
1119 |
+
</tr>
|
1120 |
+
|
1121 |
+
<tr>
|
1122 |
+
<td>
|
1123 |
+
<?php echo TXT_WPSC_INTERNATIONAL_PNP; ?>
|
1124 |
+
</td>
|
1125 |
+
<td>
|
1126 |
+
<input type='text' size='10' name='international_pnp' value='0.00' />
|
1127 |
+
</td>
|
1128 |
+
</tr>
|
1129 |
+
</table></div></div></td></tr>
|
1130 |
+
<tr><td colspan='2'><div id='advanced' class='postbox closed'>
|
1131 |
+
<h3>
|
1132 |
+
<a class="togbox">+</a>
|
1133 |
+
<?php echo TXT_WPSC_ADVANCED_OPTIONS;?>
|
1134 |
+
</h3>
|
1135 |
+
<div class='inside'>
|
1136 |
+
<table>
|
1137 |
+
<tr>
|
1138 |
+
<td class='itemfirstcol'>
|
1139 |
+
<?php echo TXT_WPSC_ADMINNOTES;?>:
|
1140 |
+
</td>
|
1141 |
+
<td>
|
1142 |
+
<textarea cols="40" rows="3" type='text' name='merchant_notes' id='merchant_notes'></textarea>
|
1143 |
+
</td>
|
1144 |
+
</tr>
|
1145 |
+
<tr>
|
1146 |
+
<td class='itemfirstcol'>
|
1147 |
+
</td>
|
1148 |
+
<td>
|
1149 |
+
<input type="checkbox" value="yes" id="add_form_display_frontpage" name="display_frontpage"/>
|
1150 |
+
<label for='add_form_display_frontpage'><?php echo TXT_WPSC_DISPLAY_FRONT_PAGE;?></label>
|
1151 |
+
</td>
|
1152 |
+
</tr>
|
1153 |
+
<td class='itemfirstcol'>
|
1154 |
+
</td>
|
1155 |
+
<td>
|
1156 |
+
<input type='checkbox' name="productmeta_values[engraved]" id='add_engrave_text'>
|
1157 |
+
<label for='add_engrave_text'><?php echo TXT_WPSC_ENGRAVE;?></label>
|
1158 |
+
<br />
|
1159 |
+
</td>
|
1160 |
+
</tr>
|
1161 |
+
|
1162 |
+
|
1163 |
+
<?php if(get_option('payment_gateway') == 'google') { ?>
|
1164 |
+
<tr>
|
1165 |
+
<td class='itemfirstcol'>
|
1166 |
+
</td>
|
1167 |
+
<td>
|
1168 |
+
<input type='checkbox' name="productmeta_values['google_prohibited']" id='add_google_prohibited' /> <label for='add_google_prohibited'>
|
1169 |
+
<?php echo TXT_WPSC_PROHIBITED;?></label><br />
|
1170 |
+
Prohibited <a href='http://checkout.google.com/support/sell/bin/answer.py?answer=75724'>by Google?</a>
|
1171 |
+
</td>
|
1172 |
+
</tr>
|
1173 |
+
<?php } ?>
|
1174 |
+
<tr>
|
1175 |
+
<td class='itemfirstcol'>
|
1176 |
+
<?php echo TXT_WPSC_EXTERNALLINK;?>:
|
1177 |
+
</td>
|
1178 |
+
<td>
|
1179 |
+
<input type='text' class='text' name='external_link' id='external_link' size='40'>
|
1180 |
+
</td>
|
1181 |
+
</tr>
|
1182 |
+
|
1183 |
+
<tr>
|
1184 |
+
<td></td>
|
1185 |
+
<td>
|
1186 |
+
<?php echo TXT_WPSC_USEONLYEXTERNALLINK;?></strong>
|
1187 |
+
</td>
|
1188 |
+
</tr>
|
1189 |
+
|
1190 |
+
<tr>
|
1191 |
+
<td>
|
1192 |
+
<?php echo TXT_WPSC_ADD_CUSTOM_FIELD;?>:
|
1193 |
+
</td>
|
1194 |
+
<td>
|
1195 |
+
<div class="product_custom_meta">
|
1196 |
+
<label >
|
1197 |
+
<?php echo TXT_WPSC_NAME;?>:
|
1198 |
+
<input type="text" name="new_custom_meta[name][]" value="" class="text"/>
|
1199 |
+
</label>
|
1200 |
+
|
1201 |
+
<label>
|
1202 |
+
<?php echo TXT_WPSC_VALUE;?>:
|
1203 |
+
<input type="text" name="new_custom_meta[value][]" value="" class="text"/>
|
1204 |
+
|
1205 |
+
</label>
|
1206 |
+
<a href='#' class='add_more_meta' onclick='return add_more_meta(this)'>+</a>
|
1207 |
+
<br />
|
1208 |
+
</div>
|
1209 |
+
|
1210 |
+
</td>
|
1211 |
+
</tr>
|
1212 |
+
|
1213 |
+
|
1214 |
+
|
1215 |
+
</table></div></div></td></tr>
|
1216 |
+
<tr>
|
1217 |
+
<td colspan='2'>
|
1218 |
+
<div id='product_image' class='postbox'>
|
1219 |
+
<h3>
|
1220 |
+
<a class="togbox">+</a>
|
1221 |
+
<?php echo TXT_WPSC_PRODUCTIMAGES;?>
|
1222 |
+
</h3>
|
1223 |
+
<div class='inside'>
|
1224 |
+
<table>
|
1225 |
+
<tr>
|
1226 |
+
<td>
|
1227 |
+
<?php echo TXT_WPSC_PRODUCTIMAGE;?>:
|
1228 |
+
</td>
|
1229 |
+
<td>
|
1230 |
+
<input type='file' name='image' value='' />
|
1231 |
+
</td>
|
1232 |
+
</tr>
|
1233 |
+
|
1234 |
+
<tr>
|
1235 |
+
<td></td><td>
|
1236 |
+
<table>
|
1237 |
+
<?php
|
1238 |
+
// pe.{ & table opening above
|
1239 |
+
if(function_exists("getimagesize") && is_numeric(get_option('product_image_height')) && is_numeric(get_option('product_image_width')))
|
1240 |
+
{
|
1241 |
+
?>
|
1242 |
+
<tr>
|
1243 |
+
<td>
|
1244 |
+
<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>
|
1245 |
+
</td>
|
1246 |
+
</tr>
|
1247 |
+
<tr>
|
1248 |
+
<td>
|
1249 |
+
<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>
|
1250 |
+
</td>
|
1251 |
+
</tr>
|
1252 |
+
<?php
|
1253 |
+
$default_size_set = true;
|
1254 |
+
}
|
1255 |
+
|
1256 |
+
if(function_exists("getimagesize"))
|
1257 |
+
{
|
1258 |
+
?>
|
1259 |
+
<tr>
|
1260 |
+
<td>
|
1261 |
+
<input type='radio' name='image_resize' value='2'id='add_image_resize2' class='image_resize' onclick='hideOptionElement("heightWidth", "image_resize2");' />
|
1262 |
+
<label for='add_image_resize2'><?php echo TXT_WPSC_USESPECIFICSIZE; ?> </label>
|
1263 |
+
<div id='heightWidth' style='display: none;'>
|
1264 |
+
<input type='text' size='4' name='width' value='' /><label for='add_image_resize2'><?php echo TXT_WPSC_PXWIDTH;?></label>
|
1265 |
+
<input type='text' size='4' name='height' value='' /><label for='add_image_resize2'><?php echo TXT_WPSC_PXHEIGHT; ?> </label>
|
1266 |
+
</div>
|
1267 |
+
</td>
|
1268 |
+
</tr>
|
1269 |
+
<tr>
|
1270 |
+
<td>
|
1271 |
+
<input type='radio' name='image_resize' value='3' id='add_image_resize3' class='image_resize' onclick='hideOptionElement("browseThumb", "image_resize3");' />
|
1272 |
+
<label for='add_image_resize3'><?php echo TXT_WPSC_SEPARATETHUMBNAIL; ?></label><br />
|
1273 |
+
<div id='browseThumb' style='display: none;'>
|
1274 |
+
<input type='file' name='thumbnailImage' value='' />
|
1275 |
+
</div>
|
1276 |
+
</td>
|
1277 |
+
</tr>
|
1278 |
+
|
1279 |
+
<?php
|
1280 |
+
}
|
1281 |
+
|
1282 |
+
if(function_exists('add_multiple_image_form')) {
|
1283 |
+
echo add_multiple_image_form("add_");
|
1284 |
+
}
|
1285 |
+
?>
|
1286 |
+
</table>
|
1287 |
+
</td>
|
1288 |
+
</tr>
|
1289 |
+
</table>
|
1290 |
+
</div></div></td></tr>
|
1291 |
+
|
1292 |
+
<tr>
|
1293 |
+
<td colspan='2'>
|
1294 |
+
<div id='product_download' class='postbox closed'>
|
1295 |
+
<h3>
|
1296 |
+
<a class='togbox'>+</a>
|
1297 |
+
<?php echo TXT_WPSC_PRODUCTDOWNLOAD;?>
|
1298 |
+
</h3>
|
1299 |
+
<div class='inside'>
|
1300 |
+
<table>
|
1301 |
+
<tr>
|
1302 |
+
<td>
|
1303 |
+
<?php echo TXT_WPSC_DOWNLOADABLEPRODUCT;?>:
|
1304 |
+
</td>
|
1305 |
+
<td>
|
1306 |
+
<input type='file' name='file' value='' /><br />
|
1307 |
+
<?php echo wpsc_select_product_file(); ?>
|
1308 |
+
<br />
|
1309 |
+
</td>
|
1310 |
+
</tr>
|
1311 |
+
|
1312 |
+
<?php
|
1313 |
+
if(function_exists("make_mp3_preview") || function_exists("wpsc_media_player"))
|
1314 |
+
{
|
1315 |
+
echo " <tr>\n\r";
|
1316 |
+
echo " <td>\n\r";
|
1317 |
+
echo TXT_WPSC_PREVIEW_FILE.": ";
|
1318 |
+
echo " </td>\n\r";
|
1319 |
+
echo " <td>\n\r";
|
1320 |
+
echo "<input type='file' name='preview_file' value='' /><br />";
|
1321 |
+
//echo "<span class='admin_product_notes'>".TXT_WPSC_PREVIEW_FILE_NOTE."</span>";
|
1322 |
+
echo "<br />";
|
1323 |
+
echo "<br />";
|
1324 |
+
echo " </td>\n\r";
|
1325 |
+
echo " </tr>\n\r";
|
1326 |
+
}
|
1327 |
+
?>
|
1328 |
+
</table></div></div></td></tr>
|
1329 |
+
<tr>
|
1330 |
+
<td>
|
1331 |
+
</td>
|
1332 |
+
<td>
|
1333 |
+
<input type='hidden' name='submit_action' value='add' />
|
1334 |
+
<input class='button' type='submit' name='submit' value='<?php echo TXT_WPSC_ADD_PRODUCT;?>' />
|
1335 |
+
</td>
|
1336 |
+
</tr>
|
1337 |
+
</table>
|
1338 |
+
</form>
|
1339 |
+
</div>
|
1340 |
+
<?php
|
1341 |
+
echo " </td></tr>\n\r";
|
1342 |
+
echo " </table>\n\r"
|
1343 |
+
|
1344 |
+
?>
|
1345 |
+
</div>
|
wp-shopping-cart/display-log.php
ADDED
@@ -0,0 +1,741 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
//echo("<pre>".print_r($cart_item,true)."</pre>");
|
42 |
+
/*
|
43 |
+
* this finds the earliest time in the shopping cart and sorts out the timestamp system for the month by month display
|
44 |
+
*/
|
45 |
+
$sql = "SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."purchase_logs` WHERE `date`!='' ORDER BY `date` DESC";
|
46 |
+
$purchase_count= $wpdb->get_results($sql,ARRAY_A) ;
|
47 |
+
|
48 |
+
$earliest_record_sql = "SELECT MIN(`date`) AS `date` FROM `".$wpdb->prefix."purchase_logs` WHERE `date`!=''";
|
49 |
+
$earliest_record = $wpdb->get_results($earliest_record_sql,ARRAY_A) ;
|
50 |
+
|
51 |
+
$current_timestamp = time();
|
52 |
+
$earliest_timestamp = $earliest_record[0]['date'];
|
53 |
+
|
54 |
+
$current_year = date("Y");
|
55 |
+
$earliest_year = date("Y",$earliest_timestamp);
|
56 |
+
|
57 |
+
$j = 0;
|
58 |
+
for($year = $current_year; $year >= $earliest_year; $year--)
|
59 |
+
{
|
60 |
+
for($month = 12; $month >= 1; $month--)
|
61 |
+
{
|
62 |
+
$start_timestamp = mktime(0, 0, 0, $month, 1, $year);
|
63 |
+
$end_timestamp = mktime(0, 0, 0, ($month+1), 1, $year);
|
64 |
+
if(($end_timestamp >= $earliest_timestamp) && ($start_timestamp <= $current_timestamp))
|
65 |
+
{
|
66 |
+
$date_list[$j]['start'] = $start_timestamp;
|
67 |
+
$date_list[$j]['end'] = $end_timestamp;
|
68 |
+
$j++;
|
69 |
+
}
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
if($_GET['filter'] !== 'true')
|
74 |
+
{
|
75 |
+
if(is_numeric($_GET['filter'])) {
|
76 |
+
$max_number = $_GET['filter'];
|
77 |
+
} else {
|
78 |
+
if ($_GET['filter']=='paid') {
|
79 |
+
$paidlog=true;
|
80 |
+
}
|
81 |
+
|
82 |
+
$max_number = 3;
|
83 |
+
}
|
84 |
+
|
85 |
+
$date_list = array_slice($date_list, 0, $max_number);
|
86 |
+
}
|
87 |
+
|
88 |
+
?>
|
89 |
+
<div class="wrap" style=''>
|
90 |
+
<h2><?php echo TXT_WPSC_DISPLAYPURCHASES;?></h2><br />
|
91 |
+
<table style='width: 100%;'>
|
92 |
+
<tr>
|
93 |
+
<td id='product_log_data'>
|
94 |
+
<?php
|
95 |
+
if(($purchase_log == null) && !is_numeric($_GET['purchaseid'])) {
|
96 |
+
if($earliest_record[0]['date'] != null) {
|
97 |
+
$form_sql = "SELECT * FROM `".$wpdb->prefix."collect_data_forms` WHERE `active` = '1' AND `display_log` = '1';";
|
98 |
+
$form_data = $wpdb->get_results($form_sql,ARRAY_A);
|
99 |
+
|
100 |
+
$col_count = 5 + count($form_data);
|
101 |
+
|
102 |
+
$i = 0;
|
103 |
+
echo "<table class='logdisplay'>";
|
104 |
+
|
105 |
+
//exit("<pre>".print_r($date_list,true)."</pre>");
|
106 |
+
foreach($date_list as $date_pair){
|
107 |
+
if(($date_pair['end'] >= $earliest_timestamp) && ($date_pair['start'] <= $current_timestamp)) {
|
108 |
+
$sql = "SELECT * FROM `".$wpdb->prefix."purchase_logs` WHERE `date` BETWEEN '".$date_pair['start']."' AND '".$date_pair['end']."' ORDER BY `date` DESC";
|
109 |
+
if ($paidlog) {
|
110 |
+
$sql = "SELECT * FROM `".$wpdb->prefix."purchase_logs` WHERE `date` BETWEEN '".$date_pair['start']."' AND '".$date_pair['end']."' AND `processed` >= '2' ORDER BY `date` DESC";
|
111 |
+
} else if($_GET['filteremail']) {
|
112 |
+
$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;";
|
113 |
+
}
|
114 |
+
|
115 |
+
|
116 |
+
|
117 |
+
$purchase_log = $wpdb->get_results($sql,ARRAY_A) ;
|
118 |
+
$i = 0;
|
119 |
+
$subtotal = 0;
|
120 |
+
echo "<tr>";
|
121 |
+
echo " <td colspan='$col_count'>";
|
122 |
+
echo "<h3 class='log_headers'>".date("M Y", $date_pair['start']) ."</h3>";
|
123 |
+
echo " </td>";
|
124 |
+
echo "</tr>";
|
125 |
+
if($purchase_log != null)
|
126 |
+
{
|
127 |
+
echo "<tr class='toprow'>";
|
128 |
+
|
129 |
+
// echo " <td>";
|
130 |
+
// echo TXT_WPSC_PURCHASE_NUMBER;
|
131 |
+
// echo " </td>";
|
132 |
+
|
133 |
+
echo " <td style='text-align: left;'>";
|
134 |
+
echo TXT_WPSC_STATUS;
|
135 |
+
echo " </td>";
|
136 |
+
|
137 |
+
echo " <td>";
|
138 |
+
echo TXT_WPSC_DATE;
|
139 |
+
echo " </td>";
|
140 |
+
|
141 |
+
foreach($form_data as $form_field)
|
142 |
+
{
|
143 |
+
echo " <td>";
|
144 |
+
echo $form_field['name'];
|
145 |
+
echo " </td>";
|
146 |
+
}
|
147 |
+
|
148 |
+
echo " <td>";
|
149 |
+
echo TXT_WPSC_PRICE;
|
150 |
+
echo " </td>";
|
151 |
+
|
152 |
+
if(get_option('payment_method') == 2)
|
153 |
+
{
|
154 |
+
echo " <td>";
|
155 |
+
echo TXT_WPSC_PAYMENT_METHOD;
|
156 |
+
echo " </td>";
|
157 |
+
}
|
158 |
+
|
159 |
+
echo " <td>";
|
160 |
+
echo TXT_WPSC_VIEWDETAILS;
|
161 |
+
echo " </td>";
|
162 |
+
|
163 |
+
//echo "<td width='1%'>";
|
164 |
+
//echo TXT_WPSC_STORENAME;
|
165 |
+
//echo "<td>";
|
166 |
+
|
167 |
+
echo "</tr>";
|
168 |
+
|
169 |
+
foreach($purchase_log as $purchase)
|
170 |
+
{
|
171 |
+
$status_state = "expand";
|
172 |
+
$status_style = "";
|
173 |
+
$alternate = "";
|
174 |
+
$i++;
|
175 |
+
if(($i % 2) != 0)
|
176 |
+
{
|
177 |
+
$alternate = "class='alt'";
|
178 |
+
}
|
179 |
+
echo "<tr $alternate>\n\r";
|
180 |
+
// echo " <td>";
|
181 |
+
// echo $purchase['id'];
|
182 |
+
// echo " </td>";
|
183 |
+
|
184 |
+
echo " <td class='processed'>";
|
185 |
+
if($purchase['processed'] < 1)
|
186 |
+
{
|
187 |
+
$purchase['processed'] = 1;
|
188 |
+
}
|
189 |
+
$stage_sql = "SELECT * FROM `".$wpdb->prefix."purchase_statuses` WHERE `id`='".$purchase['processed']."' AND `active`='1' LIMIT 1";
|
190 |
+
$stage_data = $wpdb->get_row($stage_sql,ARRAY_A);
|
191 |
+
|
192 |
+
echo "<a href='#' onclick='return show_status_box(\"status_box_".$purchase['id']."\",\"log_expander_icon_".$purchase['id']."\");'>";
|
193 |
+
if($_GET['id'] == $purchase['id'])
|
194 |
+
{
|
195 |
+
$status_state = "collapse";
|
196 |
+
$status_style = "style='display: block;'";
|
197 |
+
}
|
198 |
+
echo "<img class='log_expander_icon' id='log_expander_icon_".$purchase['id']."' src='".WPSC_URL."/images/icon_window_$status_state.gif' alt='' title='' />";
|
199 |
+
if($stage_data['colour'] != '')
|
200 |
+
{
|
201 |
+
$colour = "style='color: #".$stage_data['colour'].";'";
|
202 |
+
}
|
203 |
+
echo "<span $colour id='form_group_".$purchase['id']."_text'>".$stage_data['name']."</span>";
|
204 |
+
echo "</a>";
|
205 |
+
echo " </td>\n\r";
|
206 |
+
|
207 |
+
echo " <td>";
|
208 |
+
echo date("jS M Y",$purchase['date']);
|
209 |
+
echo " </td>\n\r";
|
210 |
+
|
211 |
+
foreach($form_data as $form_field)
|
212 |
+
{
|
213 |
+
$collected_data_sql = "SELECT * FROM `".$wpdb->prefix."submited_form_data` WHERE `log_id` = '".$purchase['id']."' AND `form_id` = '".$form_field['id']."' LIMIT 1";
|
214 |
+
$collected_data = $wpdb->get_results($collected_data_sql,ARRAY_A);
|
215 |
+
$collected_data = $collected_data[0];
|
216 |
+
switch($form_field['type'])
|
217 |
+
{
|
218 |
+
case 'country':
|
219 |
+
echo " <td>";
|
220 |
+
echo get_country($purchase['billing_country']);
|
221 |
+
echo " </td>\n\r";
|
222 |
+
break;
|
223 |
+
|
224 |
+
case 'delivery_country':
|
225 |
+
echo " <td>";
|
226 |
+
echo get_country($purchase['shipping_country']);
|
227 |
+
echo " </td>\n\r";
|
228 |
+
break;
|
229 |
+
|
230 |
+
default:
|
231 |
+
echo " <td>";
|
232 |
+
echo $collected_data['value'];
|
233 |
+
echo " </td>\n\r";
|
234 |
+
break;
|
235 |
+
}
|
236 |
+
}
|
237 |
+
|
238 |
+
echo " <td>";
|
239 |
+
|
240 |
+
if($purchase['shipping_country'] != '')
|
241 |
+
{
|
242 |
+
$billing_country = $purchase['billing_country'];
|
243 |
+
$shipping_country = $purchase['shipping_country'];
|
244 |
+
}
|
245 |
+
else
|
246 |
+
{
|
247 |
+
$country_sql = "SELECT * FROM `".$wpdb->prefix."submited_form_data` WHERE `log_id` = '".$purchase['id']."' AND `form_id` = '".get_option('country_form_field')."' LIMIT 1";
|
248 |
+
$country_data = $wpdb->get_results($country_sql,ARRAY_A);
|
249 |
+
$billing_country = $country_data[0]['value'];
|
250 |
+
$shipping_country = $country_data[0]['value'];
|
251 |
+
}
|
252 |
+
//echo $country;
|
253 |
+
echo nzshpcrt_currency_display(nzshpcrt_find_total_price($purchase['id'],$shipping_country),1);
|
254 |
+
$subtotal += nzshpcrt_find_total_price($purchase['id'],$shipping_country);
|
255 |
+
echo " </td>\n\r";
|
256 |
+
|
257 |
+
if(get_option('payment_method') == 2)
|
258 |
+
{
|
259 |
+
echo " <td>";
|
260 |
+
$gateway_name = '';
|
261 |
+
foreach($GLOBALS['nzshpcrt_gateways'] as $gateway)
|
262 |
+
{
|
263 |
+
if($purchase['gateway'] != 'testmode')
|
264 |
+
{
|
265 |
+
if($gateway['internalname'] == $purchase['gateway'] )
|
266 |
+
{
|
267 |
+
$gateway_name = $gateway['name'];
|
268 |
+
}
|
269 |
+
}
|
270 |
+
else
|
271 |
+
{
|
272 |
+
$gateway_name = "Manual Payment";
|
273 |
+
}
|
274 |
+
}
|
275 |
+
echo $gateway_name;
|
276 |
+
echo " </td>\n\r";
|
277 |
+
}
|
278 |
+
echo " <td>";
|
279 |
+
echo "<a href='admin.php?page=".WPSC_DIR_NAME."/display-log.php&purchaseid=".$purchase['id']."'>".TXT_WPSC_VIEWDETAILS."</a>";
|
280 |
+
echo " </td>\n\r";
|
281 |
+
|
282 |
+
//echo " <td>";
|
283 |
+
//echo $purchase['closest_store'];
|
284 |
+
//echo " </td>\n\r";
|
285 |
+
|
286 |
+
echo "</tr>\n\r";
|
287 |
+
|
288 |
+
$stage_list_sql = "SELECT * FROM `".$wpdb->prefix."purchase_statuses` ORDER BY `id` ASC";
|
289 |
+
$stage_list_data = $wpdb->get_results($stage_list_sql,ARRAY_A);
|
290 |
+
|
291 |
+
echo "<tr>\n\r";
|
292 |
+
echo " <td colspan='$col_count'>\n\r";
|
293 |
+
echo " <div id='status_box_".$purchase['id']."' class='order_status' $status_style>\n\r";
|
294 |
+
echo " <div>\n\r";
|
295 |
+
echo " <strong class='form_group'>".TXT_WPSC_ORDER_STATUS."</strong>\n\r";
|
296 |
+
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";
|
297 |
+
echo " <input type='hidden' name='page' value='".$_GET['page']."' />\n\r";
|
298 |
+
if(isset($_GET['filter']))
|
299 |
+
{
|
300 |
+
echo " <input type='hidden' name='filter' value='".$_GET['filter']."' />\n\r";
|
301 |
+
}
|
302 |
+
echo " <input type='hidden' name='id' value='".$purchase['id']."' />\n\r";
|
303 |
+
//echo " <input type='hidden' name='id' value='".$purchase['id']."' />\n\r";
|
304 |
+
echo " <ul>\n\r";
|
305 |
+
foreach($stage_list_data as $stage)
|
306 |
+
{
|
307 |
+
$selected = '';
|
308 |
+
if($stage['id'] == $purchase['processed'])
|
309 |
+
{
|
310 |
+
$selected = "checked='true'";
|
311 |
+
}
|
312 |
+
$button_id = "button_".$purchase['id']."_".$stage['id'];
|
313 |
+
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";
|
314 |
+
}
|
315 |
+
|
316 |
+
echo " </ul>\n\r";
|
317 |
+
//echo " <input type='submit' name='log_state_submit' value='Save... »' class='button' /> \n\r";
|
318 |
+
echo " </form>\n\r";
|
319 |
+
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>";
|
320 |
+
if($purchase['transactid'] != '')
|
321 |
+
{
|
322 |
+
echo " <span style='float:right; margin-right: 15px; '>".TXT_WPSC_TXN_ID.": ".$purchase['transactid']."</span>";
|
323 |
+
}
|
324 |
+
echo "<a href='admin.php?page=".WPSC_DIR_NAME."/display-log.php&deleteid=".$purchase['id']."'>".TXT_WPSC_REMOVE_LOG."</a>";
|
325 |
+
echo " </div>\n\r";
|
326 |
+
echo " </div>\n\r";
|
327 |
+
echo " </td>\n\r";
|
328 |
+
echo "</tr>\n\r";
|
329 |
+
}
|
330 |
+
|
331 |
+
echo "<tr>";
|
332 |
+
echo " <td colspan='$col_count'>";
|
333 |
+
echo "<strong>Total:</strong> ".nzshpcrt_currency_display($subtotal ,1);
|
334 |
+
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>";
|
335 |
+
echo " </td>";
|
336 |
+
echo "</tr>";
|
337 |
+
}
|
338 |
+
else
|
339 |
+
{
|
340 |
+
echo "<tr>";
|
341 |
+
echo " <td colspan='$col_count'>";
|
342 |
+
echo "No transactions for this month.";
|
343 |
+
echo " </td>";
|
344 |
+
echo "</tr>";
|
345 |
+
}
|
346 |
+
}
|
347 |
+
}
|
348 |
+
echo " </table>";
|
349 |
+
} else {
|
350 |
+
echo " <table>";
|
351 |
+
echo "<tr>";
|
352 |
+
echo " <td>";
|
353 |
+
echo TXT_WPSC_NO_PURCHASES;
|
354 |
+
echo " </td>";
|
355 |
+
echo "</tr>";
|
356 |
+
echo " </table>";
|
357 |
+
}
|
358 |
+
} else if(is_numeric($_GET['purchaseid'])) {
|
359 |
+
|
360 |
+
$purch_sql = "SELECT * FROM `".$wpdb->prefix."purchase_logs` WHERE `id`='".$_GET['purchaseid']."'";
|
361 |
+
$purch_data = $wpdb->get_results($purch_sql,ARRAY_A) ;
|
362 |
+
|
363 |
+
$cartsql = "SELECT * FROM `".$wpdb->prefix."cart_contents` WHERE `purchaseid`=".$_GET['purchaseid']."";
|
364 |
+
$cart_log = $wpdb->get_results($cartsql,ARRAY_A) ;
|
365 |
+
$j = 0;
|
366 |
+
if($cart_log != null) {
|
367 |
+
echo "<table class='logdisplay'>";
|
368 |
+
echo "<tr class='toprow2'>";
|
369 |
+
|
370 |
+
echo " <td>";
|
371 |
+
echo TXT_WPSC_NAME;
|
372 |
+
echo " </td>";
|
373 |
+
|
374 |
+
echo " <td>";
|
375 |
+
echo TXT_WPSC_QUANTITY;
|
376 |
+
echo " </td>";
|
377 |
+
|
378 |
+
echo " <td>";
|
379 |
+
echo TXT_WPSC_PRICE;
|
380 |
+
echo " </td>";
|
381 |
+
|
382 |
+
echo " <td>";
|
383 |
+
echo TXT_WPSC_TAX;
|
384 |
+
echo " </td>";
|
385 |
+
|
386 |
+
echo " <td>";
|
387 |
+
echo TXT_WPSC_SHIPPING;
|
388 |
+
echo " </td>";
|
389 |
+
|
390 |
+
echo " <td>";
|
391 |
+
echo TXT_WPSC_TOTAL;
|
392 |
+
echo " </td>";
|
393 |
+
|
394 |
+
echo "</tr>";
|
395 |
+
$endtotal = 0;
|
396 |
+
$all_donations = true;
|
397 |
+
$all_no_shipping = true;
|
398 |
+
foreach($cart_log as $cart_row)
|
399 |
+
{
|
400 |
+
$alternate = "";
|
401 |
+
$j++;
|
402 |
+
if(($j % 2) != 0)
|
403 |
+
{
|
404 |
+
$alternate = "class='alt'";
|
405 |
+
}
|
406 |
+
$productsql= "SELECT * FROM `".$wpdb->prefix."product_list` WHERE `id`=".$cart_row['prodid']."";
|
407 |
+
$product_data = $wpdb->get_results($productsql,ARRAY_A);
|
408 |
+
|
409 |
+
$variation_sql = "SELECT * FROM `".$wpdb->prefix."cart_item_variations` WHERE `cart_id`='".$cart_row['id']."'";
|
410 |
+
$variation_data = $wpdb->get_results($variation_sql,ARRAY_A);
|
411 |
+
$variation_count = count($variation_data);
|
412 |
+
if($variation_count > 1)
|
413 |
+
{
|
414 |
+
$variation_list = " (";
|
415 |
+
$i = 0;
|
416 |
+
foreach($variation_data as $variation)
|
417 |
+
{
|
418 |
+
if($i > 0)
|
419 |
+
{
|
420 |
+
$variation_list .= ", ";
|
421 |
+
}
|
422 |
+
$value_id = $variation['value_id'];
|
423 |
+
$value_data = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."variation_values` WHERE `id`='".$value_id."' LIMIT 1",ARRAY_A);
|
424 |
+
$variation_list .= $value_data[0]['name'];
|
425 |
+
$i++;
|
426 |
+
}
|
427 |
+
$variation_list .= ")";
|
428 |
+
}
|
429 |
+
else if($variation_count == 1)
|
430 |
+
{
|
431 |
+
$value_id = $variation_data[0]['value_id'];
|
432 |
+
$value_data = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."variation_values` WHERE `id`='".$value_id."' LIMIT 1",ARRAY_A);
|
433 |
+
$variation_list = " (".$value_data[0]['name'].")";
|
434 |
+
}
|
435 |
+
else
|
436 |
+
{
|
437 |
+
$variation_list = '';
|
438 |
+
}
|
439 |
+
|
440 |
+
if($purch_data[0]['shipping_country'] != '') {
|
441 |
+
$billing_country = $purch_data[0]['billing_country'];
|
442 |
+
$shipping_country = $purch_data[0]['shipping_country'];
|
443 |
+
} else {
|
444 |
+
$country_sql = "SELECT * FROM `".$wpdb->prefix."submited_form_data` WHERE `log_id` = '".$_GET['purchaseid']."' AND `form_id` = '".get_option('country_form_field')."' LIMIT 1";
|
445 |
+
$country_data = $wpdb->get_results($country_sql,ARRAY_A);
|
446 |
+
$billing_country = $country_data[0]['value'];
|
447 |
+
$shipping_country = $country_data[0]['value'];
|
448 |
+
}
|
449 |
+
|
450 |
+
if($cart_row['donation'] != 1) {
|
451 |
+
$all_donations = false;
|
452 |
+
}
|
453 |
+
if($cart_row['no_shipping'] != 1) {
|
454 |
+
$shipping = $cart_row['pnp'] * $cart_row['quantity'];
|
455 |
+
$total_shipping += $shipping;
|
456 |
+
$all_no_shipping = false;
|
457 |
+
} else {
|
458 |
+
$shipping = 0;
|
459 |
+
}
|
460 |
+
echo "<tr $alternate>";
|
461 |
+
|
462 |
+
echo " <td>";
|
463 |
+
echo $product_data[0]['name'];
|
464 |
+
echo $variation_list;
|
465 |
+
echo " </td>";
|
466 |
+
|
467 |
+
echo " <td>";
|
468 |
+
echo $cart_row['quantity'];
|
469 |
+
echo " </td>";
|
470 |
+
|
471 |
+
echo " <td>";
|
472 |
+
|
473 |
+
$price = $cart_row['price'] * $cart_row['quantity'];
|
474 |
+
$gst = $price - ($price / (1+($cart_row['gst'] / 100)));
|
475 |
+
echo nzshpcrt_currency_display($price-$gst, 1);
|
476 |
+
echo " </td>";
|
477 |
+
|
478 |
+
echo " <td>";
|
479 |
+
|
480 |
+
echo nzshpcrt_currency_display($gst, 1);
|
481 |
+
echo " </td>";
|
482 |
+
|
483 |
+
echo " <td>";
|
484 |
+
echo nzshpcrt_currency_display($cart_row['pnp'], 1);
|
485 |
+
echo " </td>";
|
486 |
+
|
487 |
+
echo " <td>";
|
488 |
+
$endtotal += $price;
|
489 |
+
echo nzshpcrt_currency_display(($shipping + $price), 1);
|
490 |
+
echo " </td>";
|
491 |
+
|
492 |
+
echo '</tr>';
|
493 |
+
}
|
494 |
+
echo "<tr >";
|
495 |
+
|
496 |
+
echo " <td colspan='4'>";
|
497 |
+
echo " </td>";
|
498 |
+
|
499 |
+
echo " <td>";
|
500 |
+
|
501 |
+
if($purch_data[0]['discount_value'] > 0) {
|
502 |
+
echo "<strong>".TXT_WPSC_DISCOUNT.":</strong><br />";
|
503 |
+
}
|
504 |
+
|
505 |
+
|
506 |
+
if(($all_donations == false) && ($all_no_shipping == false)) {
|
507 |
+
|
508 |
+
|
509 |
+
echo "<strong>".TXT_WPSC_BASESHIPPING.":</strong><br />";
|
510 |
+
echo "<strong>".TXT_WPSC_TOTALSHIPPING.":</strong><br />";
|
511 |
+
}
|
512 |
+
echo "<strong>".TXT_WPSC_FINALTOTAL.":</strong>";
|
513 |
+
echo " </td>";
|
514 |
+
|
515 |
+
echo " <td>";
|
516 |
+
if($purch_data[0]['discount_value'] > 0) {
|
517 |
+
echo nzshpcrt_currency_display($purch_data[0]['discount_value'], 1)."<br />";
|
518 |
+
}
|
519 |
+
|
520 |
+
if(($all_donations == false) && ($all_no_shipping == false)) {
|
521 |
+
echo nzshpcrt_currency_display($purch_data[0]['base_shipping'],1)."<br />";
|
522 |
+
$total_shipping += $purch_data[0]['base_shipping'];
|
523 |
+
$endtotal += $total_shipping;
|
524 |
+
echo nzshpcrt_currency_display($total_shipping, 1) . "<br />";
|
525 |
+
}
|
526 |
+
$endtotal -= $purch_data[0]['discount_value'];
|
527 |
+
echo nzshpcrt_currency_display($endtotal,1);
|
528 |
+
echo " </td>";
|
529 |
+
|
530 |
+
echo '</tr>';
|
531 |
+
|
532 |
+
echo "</table>";
|
533 |
+
echo "<br />";
|
534 |
+
|
535 |
+
|
536 |
+
|
537 |
+
|
538 |
+
echo "<strong>".TXT_WPSC_CUSTOMERDETAILS."</strong>";
|
539 |
+
echo "<table>";
|
540 |
+
$form_sql = "SELECT * FROM `".$wpdb->prefix."submited_form_data` WHERE `log_id` = '".$_GET['purchaseid']."'";
|
541 |
+
$input_data = $wpdb->get_results($form_sql,ARRAY_A);
|
542 |
+
//exit("<pre>".print_r($input_data,true)."</pre>");
|
543 |
+
if($input_data != null) {
|
544 |
+
foreach($input_data as $form_field) {
|
545 |
+
$form_sql = "SELECT * FROM `".$wpdb->prefix."collect_data_forms` WHERE `active` = '1' AND `id` = '".$form_field['form_id']."' LIMIT 1";
|
546 |
+
$form_data = $wpdb->get_results($form_sql,ARRAY_A);
|
547 |
+
if($form_data != null) {
|
548 |
+
$form_data = $form_data[0];
|
549 |
+
switch($form_data['type']) {
|
550 |
+
case 'country':
|
551 |
+
if(is_numeric($purch_data[0]['shipping_region'])) {
|
552 |
+
echo " <tr><td>".TXT_WPSC_STATE.":</td><td>".get_region($purch_data[0]['shipping_region'])."</td></tr>";
|
553 |
+
}
|
554 |
+
echo " <tr><td>".$form_data['name'].":</td><td>".get_country($purch_data[0]['billing_country'])."</td></tr>";
|
555 |
+
break;
|
556 |
+
|
557 |
+
case 'delivery_country':
|
558 |
+
echo " <tr><td>".$form_data['name'].":</td><td>".get_country($purch_data[0]['shipping_country'])."</td></tr>";
|
559 |
+
break;
|
560 |
+
|
561 |
+
default:
|
562 |
+
echo " <tr><td>".$form_data['name'].":</td><td>".$form_field['value']."</td></tr>";
|
563 |
+
break;
|
564 |
+
}
|
565 |
+
}
|
566 |
+
}
|
567 |
+
} else {
|
568 |
+
echo " <tr><td>".TXT_WPSC_NAME.":</td><td>".$purch_data[0]['firstname']." ".$purch_data[0]['lastname']."</td></tr>";
|
569 |
+
echo " <tr><td>".TXT_WPSC_ADDRESS.":</td><td>".$purch_data[0]['address']."</td></tr>";
|
570 |
+
echo " <tr><td>".TXT_WPSC_PHONE.":</td><td>".$purch_data[0]['phone']."</td></tr>";
|
571 |
+
echo " <tr><td>".TXT_WPSC_EMAIL.":</td><td>".$purch_data[0]['email']."</td></tr>";
|
572 |
+
}
|
573 |
+
|
574 |
+
if(get_option('payment_method') == 2) {
|
575 |
+
$gateway_name = '';
|
576 |
+
foreach($GLOBALS['nzshpcrt_gateways'] as $gateway) {
|
577 |
+
if($purch_data[0]['gateway'] != 'testmode') {
|
578 |
+
if($gateway['internalname'] == $purch_data[0]['gateway'] ) {
|
579 |
+
$gateway_name = $gateway['name'];
|
580 |
+
}
|
581 |
+
} else {
|
582 |
+
$gateway_name = "Manual Payment";
|
583 |
+
}
|
584 |
+
}
|
585 |
+
}
|
586 |
+
echo " <tr><td>".TXT_WPSC_PAYMENT_METHOD.":</td><td>".$gateway_name."</td></tr>";
|
587 |
+
echo " <tr><td>".TXT_WPSC_PURCHASE_NUMBER.":</td><td>".$purch_data[0]['id']."</td></tr>";
|
588 |
+
echo " <tr><td>".TXT_WPSC_HOWCUSTOMERFINDUS.":</td><td>".$purch_data[0]['find_us']."</td></tr>";
|
589 |
+
$engrave_line = explode(",",$purch_data[0]['engravetext']);
|
590 |
+
echo " <tr><td>".TXT_WPSC_ENGRAVE."</td><td></td></tr>";
|
591 |
+
echo " <tr><td>Line1:</td><td>".$engrave_line[0]."</td></tr>";
|
592 |
+
echo " <tr><td>Line2:</td><td>".$engrave_line[1]."</td></tr>";
|
593 |
+
if($purch_data[0]['transactid'] != '') {
|
594 |
+
echo " <tr><td>".TXT_WPSC_TXN_ID.":</td><td>".$purch_data[0]['transactid']."</td></tr>";
|
595 |
+
}
|
596 |
+
echo "</table>";
|
597 |
+
} else {
|
598 |
+
echo "<br />".TXT_WPSC_USERSCARTWASEMPTY;
|
599 |
+
}
|
600 |
+
echo "<br /><a href='admin.php?page=".WPSC_DIR_NAME."/display-log.php&deleteid=".$_GET['purchaseid']."'>".TXT_WPSC_REMOVE_LOG."</a>";
|
601 |
+
echo "<br /><a href='admin.php?page=".WPSC_DIR_NAME."/display-log.php'>".TXT_WPSC_GOBACK."</a>";
|
602 |
+
}
|
603 |
+
|
604 |
+
$sql = "SELECT * FROM `".$wpdb->prefix."purchase_logs` WHERE `date`!=''";
|
605 |
+
$purchase_log = $wpdb->get_results($sql,ARRAY_A) ;
|
606 |
+
?>
|
607 |
+
</td>
|
608 |
+
|
609 |
+
<td id='order_summary_container'>
|
610 |
+
<?php
|
611 |
+
require_once (ABSPATH . WPINC . '/rss.php');
|
612 |
+
$rss = fetch_rss('http://www.instinct.co.nz/feed/');
|
613 |
+
if($rss != null) {
|
614 |
+
$rss->items = array_slice((array)$rss->items, 0, 5);
|
615 |
+
$current_hash = sha1(serialize($rss->items));
|
616 |
+
if((string)get_option('wpsc_ecom_news_hash') !== (string)$current_hash ) {
|
617 |
+
?>
|
618 |
+
<div class='wpsc_news'>
|
619 |
+
<strong><?php echo TXT_WPSC_ECOM_NEWS; ?></strong>
|
620 |
+
<ul class='ecom_dashboard'>
|
621 |
+
<?php
|
622 |
+
foreach($rss->items as $items) {
|
623 |
+
echo "<li><a href='".$items['link']."'>".$items['title']."</a></li>";
|
624 |
+
}
|
625 |
+
?>
|
626 |
+
</ul>
|
627 |
+
<a href='admin.php?page=<?php echo WPSC_DIR_NAME;?>/display-log.php&hide_news=true' id='close_news_box'>X</a>
|
628 |
+
</div>
|
629 |
+
<?php
|
630 |
+
}
|
631 |
+
}
|
632 |
+
?>
|
633 |
+
<div class='menu'>
|
634 |
+
<div class='order_summary_subsection'>
|
635 |
+
<strong><?php echo TXT_WPSC_MENU; ?></strong>
|
636 |
+
<p>
|
637 |
+
<a href="?page=<?php echo WPSC_DIR_NAME;?>/options.php">Shop Settings</a><br>
|
638 |
+
<a href="?page=<?php echo WPSC_DIR_NAME;?>/gatewayoptions.php">Gateway Settings</a><br>
|
639 |
+
<a href="?page=<?php echo WPSC_DIR_NAME;?>/form_fields.php">Checkout Settings</a><br>
|
640 |
+
<a href="?page=<?php echo WPSC_DIR_NAME;?>/instructions.php">Help</a>
|
641 |
+
</p>
|
642 |
+
</div>
|
643 |
+
</div>
|
644 |
+
<br>
|
645 |
+
<strong class='order_summary'><?php echo TXT_WPSC_ORDER_SUMMARY; ?></strong>
|
646 |
+
<div class='order_summary'>
|
647 |
+
<div class='order_summary_subsection'>
|
648 |
+
|
649 |
+
<strong><?php echo TXT_WPSC_FILTER_ORDER; ?></strong>
|
650 |
+
<p class='order_filters'>
|
651 |
+
<form class='order_filters' method='GET' action='' name='order_filters'>
|
652 |
+
<input type='hidden' name='page' value='<?php echo $_GET['page']?>' />
|
653 |
+
<?php
|
654 |
+
|
655 |
+
switch($_GET['filter'])
|
656 |
+
{
|
657 |
+
case "true":
|
658 |
+
$filter[1] = "checked='true'";
|
659 |
+
break;
|
660 |
+
|
661 |
+
case 3:
|
662 |
+
default:
|
663 |
+
$filter[0] = "checked='true'";
|
664 |
+
break;
|
665 |
+
|
666 |
+
case 1:
|
667 |
+
default:
|
668 |
+
$filter[2] = "checked='true'";
|
669 |
+
break;
|
670 |
+
}
|
671 |
+
|
672 |
+
?>
|
673 |
+
<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>
|
674 |
+
<br />
|
675 |
+
<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>
|
676 |
+
<br />
|
677 |
+
<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>
|
678 |
+
<br />
|
679 |
+
<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>
|
680 |
+
<br>
|
681 |
+
<?=TXT_WPSC_SEARCHEMAIL?>: <input type='text' name='filteremail' >
|
682 |
+
</form>
|
683 |
+
<br />
|
684 |
+
</p>
|
685 |
+
|
686 |
+
<strong><?php echo TXT_WPSC_TOTAL_THIS_MONTH; ?></strong>
|
687 |
+
<p id='log_total_month'>
|
688 |
+
<?php
|
689 |
+
$year = date("Y");
|
690 |
+
$month = date("m");
|
691 |
+
$start_timestamp = mktime(0, 0, 0, $month, 1, $year);
|
692 |
+
$end_timestamp = mktime(0, 0, 0, ($month+1), 0, $year);
|
693 |
+
echo nzshpcrt_currency_display(admin_display_total_price($start_timestamp, $end_timestamp),1);
|
694 |
+
echo " ".TXT_WPSC_ACCEPTED_PAYMENTS;
|
695 |
+
?>
|
696 |
+
</p>
|
697 |
+
</div>
|
698 |
+
|
699 |
+
|
700 |
+
<div class='order_summary_subsection'>
|
701 |
+
<strong><?php echo TXT_WPSC_TOTAL_INCOME; ?></strong>
|
702 |
+
<p id='log_total_absolute'>
|
703 |
+
<?php
|
704 |
+
//$total_income = $wpdb->get_results($sql,ARRAY_A);
|
705 |
+
echo nzshpcrt_currency_display(admin_display_total_price(),1);
|
706 |
+
?>
|
707 |
+
</p>
|
708 |
+
</div>
|
709 |
+
|
710 |
+
|
711 |
+
|
712 |
+
<div class='order_summary_subsection'>
|
713 |
+
<strong><?php echo TXT_WPSC_RSS_FEED_HEADER; ?></strong>
|
714 |
+
<p>
|
715 |
+
<a class='product_log_rss' href='index.php?rss=true&rss_key=key&action=purchase_log'><img align='absmiddle' src='<?php echo WPSC_URL; ?>/images/rss-icon.jpg' alt='' title='' /> <span><?php echo TXT_WPSC_RSS_FEED_LINK; ?></span></a> <?php echo TXT_WPSC_RSS_FEED_TEXT; ?> </p>
|
716 |
+
</div>
|
717 |
+
<div class='order_summary_subsection'>
|
718 |
+
<strong><?php echo TXT_WPSC_PLUGIN_NEWS_HEADER; ?></strong>
|
719 |
+
<p>
|
720 |
+
<?php echo TXT_WPSC_PLUGIN_NEWS; ?>
|
721 |
+
<br /><br /><?php echo TXT_WPSC_POWERED_BY; ?><a href='http://www.instinct.co.nz'>Instinct</a>
|
722 |
+
</p>
|
723 |
+
</div>
|
724 |
+
</div>
|
725 |
+
<?php
|
726 |
+
if(get_option('activation_state') != "true")
|
727 |
+
{
|
728 |
+
?>
|
729 |
+
<div class='gold-cart_pesterer'>
|
730 |
+
<div>
|
731 |
+
<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.
|
732 |
+
</div>
|
733 |
+
</div>
|
734 |
+
<?php
|
735 |
+
}
|
736 |
+
?>
|
737 |
+
</td>
|
738 |
+
</tr>
|
739 |
+
</table>
|
740 |
+
|
741 |
+
</div>
|
wp-shopping-cart/display_variations.php
ADDED
@@ -0,0 +1,304 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
function variationlist($curent_variation)
|
3 |
+
{
|
4 |
+
global $wpdb;
|
5 |
+
$options = "";
|
6 |
+
//$options .= "<option value=''>".TXT_WPSC_SELECTAVARIATION."</option>\r\n";
|
7 |
+
$values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_categories` ORDER BY `id` ASC",ARRAY_A);
|
8 |
+
foreach($values as $option)
|
9 |
+
{
|
10 |
+
if($curent_variation == $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='variation'>".$options."</select>\r\n";
|
18 |
+
return $concat;
|
19 |
+
}
|
20 |
+
|
21 |
+
function parent_variation_list()
|
22 |
+
{
|
23 |
+
global $wpdb,$variation_data;
|
24 |
+
$options = "";
|
25 |
+
$values = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_categories` WHERE `variation_parent`='0' AND `active` = '1' ORDER BY `id` ASC",ARRAY_A);
|
26 |
+
$url = "http://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']."?page=".WPSC_DIR_NAME."/display-items.php";
|
27 |
+
$options .= "<option value='$url'>".TXT_WPSC_SELECT_PARENT."</option>\r\n";
|
28 |
+
if($values != null)
|
29 |
+
{
|
30 |
+
foreach($values as $option)
|
31 |
+
{
|
32 |
+
$variation_data[$option['id']] = $option['name'];
|
33 |
+
if($_GET['catid'] == $option['id'])
|
34 |
+
{
|
35 |
+
$selected = "selected='selected'";
|
36 |
+
}
|
37 |
+
$options .= "<option $selected value='".$option['id']."'>".$option['name']."</option>\r\n";
|
38 |
+
$selected = "";
|
39 |
+
}
|
40 |
+
}
|
41 |
+
$concat .= "<select name='variation_parent'>".$options."</select>\r\n";
|
42 |
+
return $concat;
|
43 |
+
}
|
44 |
+
|
45 |
+
function display_variation_row($variation)
|
46 |
+
{
|
47 |
+
echo " <tr>\n\r";
|
48 |
+
|
49 |
+
echo " <td>\n\r";
|
50 |
+
echo "".stripslashes($variation['name'])."";
|
51 |
+
echo " </td>\n\r";
|
52 |
+
|
53 |
+
echo " <td>\n\r";
|
54 |
+
echo "<a href='#' onclick='fillvariationform(".$variation['id'].");return false;'>".TXT_WPSC_EDIT."</a>";
|
55 |
+
echo " </td>\n\r";
|
56 |
+
echo " </tr>\n\r";
|
57 |
+
}
|
58 |
+
|
59 |
+
|
60 |
+
$imagedir = WPSC_FILE_PATH."/variation_images/";
|
61 |
+
|
62 |
+
/* delete variation_value */
|
63 |
+
if($_GET['delete_value'] == 'true')
|
64 |
+
{
|
65 |
+
if(is_numeric($_GET['variation_id']) && is_numeric($_GET['value_id']))
|
66 |
+
{
|
67 |
+
//exit("DELETE FROM `".$wpdb->prefix."variation_values_associations` WHERE `value_id` = '".$_GET['value_id']."'");
|
68 |
+
$wpdb->query("DELETE FROM `".$wpdb->prefix."variation_values_associations` WHERE `value_id` = '".$_GET['value_id']."'");
|
69 |
+
$wpdb->query("DELETE FROM `".$wpdb->prefix."variation_values` WHERE `id` = '".$_GET['value_id']."' AND `variation_id` = '".$_GET['variation_id']."' LIMIT 1");
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
/* add variation */
|
74 |
+
if($_POST['submit_action'] == "add")
|
75 |
+
{
|
76 |
+
//exit("<pre>".print_r($_POST,true)."</pre>");
|
77 |
+
$variation_sql = "INSERT INTO `".$wpdb->prefix."product_variations` (`name`, `variation_association`) VALUES ( '".$_POST['name']."', 0);";
|
78 |
+
if($wpdb->query($variation_sql))
|
79 |
+
{
|
80 |
+
$variation_id = $wpdb->get_results("SELECT LAST_INSERT_ID() AS `id` FROM `".$wpdb->prefix."product_variations` LIMIT 1",ARRAY_A);
|
81 |
+
$variation_id = $variation_id[0]['id'];
|
82 |
+
$variation_values = $_POST['variation_values'];
|
83 |
+
$variation_value_sql ="INSERT INTO `".$wpdb->prefix."variation_values` ( `name` , `variation_id` )
|
84 |
+
VALUES ";
|
85 |
+
$num = 0;
|
86 |
+
foreach($variation_values as $variation_value)
|
87 |
+
{
|
88 |
+
switch($num)
|
89 |
+
{
|
90 |
+
case 0:
|
91 |
+
$comma = '';
|
92 |
+
break;
|
93 |
+
|
94 |
+
default:
|
95 |
+
$comma = ', ';
|
96 |
+
break;
|
97 |
+
}
|
98 |
+
$variation_value_sql .= "$comma( '".$wpdb->escape(trim($variation_value))."', '".$variation_id."')";
|
99 |
+
$num++;
|
100 |
+
}
|
101 |
+
$variation_value_sql .= ";";
|
102 |
+
$wpdb->query($variation_value_sql);
|
103 |
+
echo "<div class='updated'><p align='center'>".TXT_WPSC_ITEMHASBEENADDED."</p></div>";
|
104 |
+
}
|
105 |
+
else
|
106 |
+
{
|
107 |
+
echo "<div class='updated'><p align='center'>".TXT_WPSC_ITEMHASNOTBEENADDED."</p></div>";
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
|
112 |
+
|
113 |
+
/* edit variation */
|
114 |
+
if(($_POST['submit_action'] == "edit") && is_numeric($_POST['prodid']))
|
115 |
+
{
|
116 |
+
//exit("<pre>".print_r($_POST,true)."</pre>");
|
117 |
+
$variation_id = $_POST['prodid'];
|
118 |
+
foreach($_POST['variation_values'] as $variation_value_id => $variation_value)
|
119 |
+
{
|
120 |
+
if(is_numeric($variation_value_id))
|
121 |
+
{
|
122 |
+
$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);
|
123 |
+
$variation_value_state = $variation_value_state[0]['name'];
|
124 |
+
}
|
125 |
+
|
126 |
+
if($variation_value_state != $variation_value)
|
127 |
+
{
|
128 |
+
$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;");
|
129 |
+
}
|
130 |
+
}
|
131 |
+
|
132 |
+
$variation_value_sql ="INSERT INTO `".$wpdb->prefix."variation_values` ( `name` , `variation_id` )
|
133 |
+
VALUES ";
|
134 |
+
$num = 0;
|
135 |
+
if($_POST['new_variation_values'] != null)
|
136 |
+
{
|
137 |
+
$num = 0;
|
138 |
+
foreach($_POST['new_variation_values'] as $variation_value)
|
139 |
+
{
|
140 |
+
switch($num)
|
141 |
+
{
|
142 |
+
case 0:
|
143 |
+
$comma = '';
|
144 |
+
break;
|
145 |
+
|
146 |
+
default:
|
147 |
+
$comma = ', ';
|
148 |
+
break;
|
149 |
+
}
|
150 |
+
$variation_value_sql .= "$comma('".$wpdb->escape(trim($variation_value))."', '".$variation_id."')";
|
151 |
+
$num++;
|
152 |
+
}
|
153 |
+
$variation_value_sql .= ";";
|
154 |
+
$wpdb->query($variation_value_sql);
|
155 |
+
}
|
156 |
+
|
157 |
+
$updatesql = "UPDATE `".$wpdb->prefix."product_variations` SET `name` = '".$wpdb->escape($_POST['title'])."' WHERE `id`='".$variation_id."' LIMIT 1";
|
158 |
+
$wpdb->query($updatesql);
|
159 |
+
|
160 |
+
echo "<div class='updated'><p align='center'>".TXT_WPSC_VARIATIONHASBEENEDITED."</p></div>";
|
161 |
+
}
|
162 |
+
|
163 |
+
|
164 |
+
if(is_numeric($_GET['deleteid']))
|
165 |
+
{
|
166 |
+
$delete_value_assoc_sql = "DELETE FROM `".$wpdb->prefix."variation_values_associations` WHERE `variation_id` = '".$_GET['deleteid']."'";
|
167 |
+
$delete_variation_assoc_sql = "DELETE FROM `".$wpdb->prefix."variation_associations` WHERE `variation_id` = '".$_GET['deleteid']."'";
|
168 |
+
$delete_values_sql = "DELETE FROM `".$wpdb->prefix."variation_values` WHERE `variation_id` = '".$_GET['deleteid']."';";
|
169 |
+
$delete_variation_sql = "DELETE FROM `".$wpdb->prefix."product_variations` WHERE `id`='".$_GET['deleteid']."' LIMIT 1";
|
170 |
+
$wpdb->query($delete_value_assoc_sql);
|
171 |
+
$wpdb->query($delete_variation_assoc_sql);
|
172 |
+
$wpdb->query($delete_values_sql);
|
173 |
+
$wpdb->query($delete_variation_sql);
|
174 |
+
}
|
175 |
+
|
176 |
+
?>
|
177 |
+
|
178 |
+
<script language='javascript' type='text/javascript'>
|
179 |
+
function conf()
|
180 |
+
{
|
181 |
+
var check = confirm("<?php echo TXT_WPSC_SURETODELETEPRODUCT;?>");
|
182 |
+
if(check)
|
183 |
+
{
|
184 |
+
return true;
|
185 |
+
}
|
186 |
+
else
|
187 |
+
{
|
188 |
+
return false;
|
189 |
+
}
|
190 |
+
}
|
191 |
+
|
192 |
+
<?php
|
193 |
+
if(is_numeric($_POST['prodid']))
|
194 |
+
{
|
195 |
+
echo "fillvariationform(".$_POST['prodid'].");";
|
196 |
+
}
|
197 |
+
|
198 |
+
if(is_numeric($_GET['variation_id']))
|
199 |
+
{
|
200 |
+
echo "fillvariationform(".$_GET['variation_id'].");";
|
201 |
+
}
|
202 |
+
?>
|
203 |
+
</script>
|
204 |
+
<noscript>
|
205 |
+
</noscript>
|
206 |
+
<div class="wrap">
|
207 |
+
<h2><?php echo TXT_WPSC_DISPLAYVARIATIONS;?></h2>
|
208 |
+
<p>
|
209 |
+
<?php echo TXT_WPSC_DISPLAYVARIATIONSDESCRIPTION;?>
|
210 |
+
|
211 |
+
</p>
|
212 |
+
<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; ?>' /> <span><?php echo TXT_WPSC_ADDVARIATION;?></span></a>
|
213 |
+
<span id='loadingindicator_span'><img id='loadingimage' src='<?php echo WPSC_URL; ?>/images/indicator.gif' alt='Loading' title='Loading' /></span><br />
|
214 |
+
<?php
|
215 |
+
$num = 0;
|
216 |
+
echo " <table id='productpage'>\n\r";
|
217 |
+
echo " <tr><td>\n\r";
|
218 |
+
echo " <table id='itemlist'>\n\r";
|
219 |
+
echo " <tr class='firstrow'>\n\r";
|
220 |
+
|
221 |
+
echo " <td>\n\r";
|
222 |
+
echo TXT_WPSC_NAME;
|
223 |
+
echo " </td>\n\r";
|
224 |
+
|
225 |
+
echo " <td>\n\r";
|
226 |
+
echo TXT_WPSC_EDIT;
|
227 |
+
echo " </td>\n\r";
|
228 |
+
|
229 |
+
echo " </tr>\n\r";
|
230 |
+
$variation_sql = "SELECT * FROM `".$wpdb->prefix."product_variations` ORDER BY `id`";
|
231 |
+
$variation_list = $wpdb->get_results($variation_sql,ARRAY_A);
|
232 |
+
if($variation_list != null)
|
233 |
+
{
|
234 |
+
foreach($variation_list as $variation)
|
235 |
+
{
|
236 |
+
display_variation_row($variation);
|
237 |
+
}
|
238 |
+
}
|
239 |
+
|
240 |
+
echo " </table>\n\r";
|
241 |
+
echo " </td><td class='secondcol'>\n\r";
|
242 |
+
echo " <div id='productform'>";
|
243 |
+
echo "<form method='POST' enctype='multipart/form-data' name='editproduct$num'>";
|
244 |
+
echo " <table class='producttext'>\n\r";;
|
245 |
+
|
246 |
+
echo " <tr>\n\r";
|
247 |
+
echo " <td colspan='2'>\n\r";
|
248 |
+
echo "<strong>".TXT_WPSC_EDITVARIATION."</strong>";
|
249 |
+
echo " </td>\n\r";
|
250 |
+
echo " </tr>\n\r";
|
251 |
+
|
252 |
+
echo " </table>\n\r";
|
253 |
+
echo " <div id='formcontent'>\n\r";
|
254 |
+
echo " </div>\n\r";
|
255 |
+
echo "</form>";
|
256 |
+
echo " </div>";
|
257 |
+
?>
|
258 |
+
<div id='additem'>
|
259 |
+
<form method='POST' enctype='multipart/form-data'>
|
260 |
+
<table>
|
261 |
+
<tr>
|
262 |
+
<td colspan='2'>
|
263 |
+
<strong><?php echo TXT_WPSC_ADDVARIATION;?></strong>
|
264 |
+
</td>
|
265 |
+
</tr>
|
266 |
+
<tr>
|
267 |
+
<td>
|
268 |
+
<?php echo TXT_WPSC_NAME;?>:
|
269 |
+
</td>
|
270 |
+
<td>
|
271 |
+
<input type='text' name='name' value='' />
|
272 |
+
</td>
|
273 |
+
</tr>
|
274 |
+
<tr>
|
275 |
+
<td>
|
276 |
+
<?php echo TXT_WPSC_VARIATION_VALUES;?>:
|
277 |
+
</td>
|
278 |
+
<td>
|
279 |
+
<div id='add_variation_values'><span id='variation_value_1'>
|
280 |
+
<input type='text' name='variation_values[]' value='' />
|
281 |
+
<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 />
|
282 |
+
</span><span id='variation_value_2'>
|
283 |
+
<input type='text' name='variation_values[]' value='' />
|
284 |
+
<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 />
|
285 |
+
</span></div>
|
286 |
+
<a href='#' onclick='return add_variation_value("add")'><?php echo TXT_WPSC_ADD;?></a>
|
287 |
+
</td>
|
288 |
+
</tr>
|
289 |
+
<tr>
|
290 |
+
<td>
|
291 |
+
</td>
|
292 |
+
<td>
|
293 |
+
<input type='hidden' name='submit_action' value='add' />
|
294 |
+
<input class='button' type='submit' name='submit' value='<?php echo TXT_WPSC_ADD;?>' />
|
295 |
+
</td>
|
296 |
+
</tr>
|
297 |
+
</table>
|
298 |
+
</form>
|
299 |
+
</div>
|
300 |
+
<?php
|
301 |
+
echo " </td></tr>\n\r";
|
302 |
+
echo " </table>\n\r";
|
303 |
+
?>
|
304 |
+
</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(" ", $iteration);
|
32 |
+
}
|
33 |
+
$output .= str_repeat(" ", $iteration);
|
34 |
+
}
|
35 |
+
$output .= "- ";
|
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>
|
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,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|
14 |
+
|
15 |
+
if(is_numeric($_POST['payment_method']) && (get_option('payment_gateway') != $_POST['payment_method'])) {
|
16 |
+
update_option('payment_method', $_POST['payment_method']);
|
17 |
+
$changes_made = true;
|
18 |
+
}
|
19 |
+
|
20 |
+
if($_POST['payment_instructions'] != get_option('payment_instructions')) {
|
21 |
+
update_option('payment_instructions', $_POST['payment_instructions']);
|
22 |
+
$changes_made = true;
|
23 |
+
}
|
24 |
+
|
25 |
+
if(($_POST['payment_gw'] != null) && ($_POST['submit_details'] == null)) {
|
26 |
+
update_option('payment_gateway', $_POST['payment_gw']);
|
27 |
+
$curgateway = get_option('payment_gateway');
|
28 |
+
$changes_made = true;
|
29 |
+
}
|
30 |
+
|
31 |
+
if(($_POST['payment_gw'] != null) && ($_POST['submit_details'] != null)) {
|
32 |
+
foreach($nzshpcrt_gateways as $gateway) {
|
33 |
+
if($gateway['internalname'] == $curgateway) {
|
34 |
+
$gateway['submit_function']();
|
35 |
+
$changes_made = true;
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
39 |
+
|
40 |
+
if($changes_made == true)
|
41 |
+
{
|
42 |
+
echo "<div class='updated'><p align='center'>".TXT_WPSC_THANKSAPPLIED."</p></div>";
|
43 |
+
}
|
44 |
+
//exit($curgateway);
|
45 |
+
$form = "";
|
46 |
+
foreach($nzshpcrt_gateways as $gateway)
|
47 |
+
{
|
48 |
+
if($gateway['internalname'] == $curgateway )
|
49 |
+
{
|
50 |
+
$selected = " selected='selected'";
|
51 |
+
$form = $gateway['form']();
|
52 |
+
}
|
53 |
+
else
|
54 |
+
{
|
55 |
+
$selected = '';
|
56 |
+
}
|
57 |
+
$gatewaylist .="<option value='".$gateway['internalname']."' ".$selected." >".$gateway['name']."</option>";
|
58 |
+
}
|
59 |
+
$gatewaylist = "<option value='".$nogw."'>".TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY."</option>" . $gatewaylist;
|
60 |
+
|
61 |
+
|
62 |
+
|
63 |
+
$selected[get_option('payment_method')] = "checked='true'";
|
64 |
+
?>
|
65 |
+
<script language='JavaScript' type='text/javascript'>
|
66 |
+
function selectgateway()
|
67 |
+
{
|
68 |
+
document.forms.gatewayopt.submit()
|
69 |
+
}
|
70 |
+
</script>
|
71 |
+
<div class="wrap">
|
72 |
+
<form name='gatewayopt' method='POST'>
|
73 |
+
|
74 |
+
<h2><?php echo TXT_WPSC_PAYMENT_OPTIONS;?></h2>
|
75 |
+
<p><?php echo TXT_WPSC_PAYMENT_DESCRIPTION;?></p>
|
76 |
+
<table>
|
77 |
+
<tr>
|
78 |
+
<td colspan='2' width='50%'>
|
79 |
+
<input type='radio' name='payment_method' value='3' id='payment_method_3' <?php echo $selected[3]; ?>>
|
80 |
+
<label for='payment_method_3'><?php echo TXT_WPSC_MANUAL_PAYMENT; ?></label>
|
81 |
+
</td>
|
82 |
+
|
83 |
+
<td rowspan='4'>
|
84 |
+
<strong><?php echo TXT_WPSC_PAYMENT_INSTRUCTIONS; ?>:</strong>
|
85 |
+
<textarea cols='55' rows='6' name='payment_instructions'><?php echo get_option('payment_instructions');?></textarea>
|
86 |
+
</td>
|
87 |
+
|
88 |
+
</tr>
|
89 |
+
<tr>
|
90 |
+
<td colspan='2'>
|
91 |
+
<input type='radio' name='payment_method' value='1' id='payment_method_1' <?php echo $selected[1]; ?>>
|
92 |
+
<label for='payment_method_1'><?php echo TXT_WPSC_CREDIT_CARD; ?></label>
|
93 |
+
</td>
|
94 |
+
</tr>
|
95 |
+
<tr>
|
96 |
+
<td colspan='2'>
|
97 |
+
<input type='radio' name='payment_method' value='2' id='payment_method_2' <?php echo $selected[2]; ?>>
|
98 |
+
<label for='payment_method_2'><?php echo TXT_WPSC_CREDIT_CARD_AND_MANUAL_PAYMENT; ?></label>
|
99 |
+
</td>
|
100 |
+
</tr>
|
101 |
+
<tr>
|
102 |
+
<td colspan='2' style='padding: 2px;'>
|
103 |
+
<input type='hidden' name='submit_action' value='add' />
|
104 |
+
<input type='submit' name='submit_details' value='<?php echo TXT_WPSC_SAVE_CHANGES;?>' />
|
105 |
+
</td>
|
106 |
+
</tr>
|
107 |
+
</table>
|
108 |
+
|
109 |
+
<br />
|
110 |
+
<br />
|
111 |
+
|
112 |
+
<h2><?php echo TXT_WPSC_GATEWAY_OPTIONS;?></h2>
|
113 |
+
<table>
|
114 |
+
<tr>
|
115 |
+
<td>
|
116 |
+
<?php echo TXT_WPSC_PAYMENTGATEWAY2;?>
|
117 |
+
</td>
|
118 |
+
<td>
|
119 |
+
<select name='payment_gw' onChange='selectgateway();'>
|
120 |
+
<?php
|
121 |
+
echo $gatewaylist;
|
122 |
+
?>
|
123 |
+
</select>
|
124 |
+
</td>
|
125 |
+
</tr><?php
|
126 |
+
echo $form;
|
127 |
+
?>
|
128 |
+
<table>
|
129 |
+
<tr>
|
130 |
+
<td>
|
131 |
+
</td>
|
132 |
+
<td>
|
133 |
+
<input type='submit' value='<?php echo TXT_WPSC_SUBMIT;?>' name='submit_details' />
|
134 |
+
</td>
|
135 |
+
</tr>
|
136 |
+
<?php if (($curgateway=='paypal_multiple')||($curgateway=='paypal_certified')){?>
|
137 |
+
<tr>
|
138 |
+
<td colspan="2">
|
139 |
+
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:
|
140 |
+
</td>
|
141 |
+
</tr>
|
142 |
+
<tr>
|
143 |
+
<td colspan="2">
|
144 |
+
<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>
|
145 |
+
</td>
|
146 |
+
</tr>
|
147 |
+
<?php } elseif ($curgateway=='google') {?>
|
148 |
+
<tr>
|
149 |
+
<td colspan="2">Find it with Google. Buy it with Google Checkout.
|
150 |
+
</tr>
|
151 |
+
<tr>
|
152 |
+
<td></td>
|
153 |
+
<td>
|
154 |
+
Want a faster, safer and more convenient way to shop online? You got it.</td>
|
155 |
+
</td>
|
156 |
+
</tr>
|
157 |
+
<tr>
|
158 |
+
<td></td>
|
159 |
+
<td>
|
160 |
+
<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>
|
161 |
+
</td>
|
162 |
+
</tr>
|
163 |
+
<?php }?>
|
164 |
+
</table>
|
165 |
+
</form>
|
166 |
+
<br />
|
167 |
+
<?php
|
168 |
+
if((get_option('activation_state') !== 'true')&&($curgateway!='google'))
|
169 |
+
{
|
170 |
+
echo TXT_WPSC_PAYMENTGATEWAYNOTE;
|
171 |
+
}
|
172 |
+
?>
|
173 |
+
</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/gold_cart_readme.txt
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copy the contents of the zip file (a folder called gold_cart_files) into the wp-shopping-cart folder. Now it should automatically display a new tab called gold options, once you have entered in your API key all of the additional gold features will unlock.
|
2 |
+
|
3 |
+
If it does not appear straight away you might need to deavtivate and then reactivate the e-commerce plugin.
|
4 |
+
|
5 |
+
Please report any problems in the forums.
|
6 |
+
|
7 |
+
www.instinct.co.nz/blogshop
|
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']; ?>&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>  <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,198 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 ="&";
|
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("/\[wpsc_category=([\d]+).*(full?)?\]/", $content, $matches)) {
|
45 |
+
$category_id = $matches[1];
|
46 |
+
if(stristr($matches[0], 'full')) {
|
47 |
+
// my regex knowledge fails it, either works in one mode and not in the other, or vice versa, therefore I need to use this code to determine if we are using full view
|
48 |
+
$full_view = true;
|
49 |
+
}
|
50 |
+
//echo("<pre>".print_r($matches,true)."</pre>");
|
51 |
+
$siteurl = get_option('siteurl');
|
52 |
+
if(get_option('permalink_structure') != '') {
|
53 |
+
$seperator ="?";
|
54 |
+
} else {
|
55 |
+
$seperator ="&";
|
56 |
+
}
|
57 |
+
|
58 |
+
foreach((array)$activated_widgets as $widget_container) {
|
59 |
+
if(is_array($widget_container) && array_search(TXT_WPSC_DONATIONS, $widget_container)) {
|
60 |
+
$no_donations_sql = "AND `".$wpdb->prefix."product_list`.`donation` != '1'";
|
61 |
+
break;
|
62 |
+
}
|
63 |
+
}
|
64 |
+
|
65 |
+
$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";
|
66 |
+
|
67 |
+
$product_list = $wpdb->get_results($sql,ARRAY_A);
|
68 |
+
|
69 |
+
$output = "<div id='homepage_products'>\n\r";
|
70 |
+
if ($full_view != null){
|
71 |
+
$output .= "<table class='productdisplay'>";
|
72 |
+
}
|
73 |
+
foreach((array)$product_list as $product) {
|
74 |
+
$wpsc_theme = wpsc_theme_html($product);
|
75 |
+
if ($full_view == null) {
|
76 |
+
$output .= "<div class='category_view_product'>\n\r";
|
77 |
+
} else {
|
78 |
+
/* product image is here */
|
79 |
+
$output .= "<tr>";
|
80 |
+
$output .= "<td class='imagecol'>";
|
81 |
+
}
|
82 |
+
$output .="<a href='".WPSC_THUMBNAIL_URL.$product['image']."' class='thickbox preview_link' rel='".str_replace(" ", "_",$product['name'])."'>";
|
83 |
+
if($product['image'] != '') {
|
84 |
+
$output .= "<img class='product_image' src='".WPSC_THUMBNAIL_URL.$product['image']."' title='".$product['name']."' alt='".$product['name']."' />\n\r";
|
85 |
+
}
|
86 |
+
$output .= "</a>";
|
87 |
+
if ($full_view != null) {
|
88 |
+
$output .= "</td><td class='textcol'>";
|
89 |
+
} else {
|
90 |
+
$output .= "<div class='product_details'>";
|
91 |
+
}
|
92 |
+
if (get_option('hide_name_link')!=1) {
|
93 |
+
if(($product['special']==1) && ($variations_output[1] === null)) {
|
94 |
+
$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>";
|
95 |
+
} else {
|
96 |
+
$output .= "<a href='".wpsc_product_url($product['id'])."' class='wpsc_product_title' >$special<strong>" . stripslashes($product['name']) . "</strong></a>";
|
97 |
+
}
|
98 |
+
} else {
|
99 |
+
if(($product['special']==1) && ($variations_output[1] === null)) {
|
100 |
+
$output .= "<a class='wpsc_product_title' >$special<strong class='special'>Special / Sale Price - </strong><strong>" . stripslashes($product['name']) . "</strong></a>";
|
101 |
+
} else {
|
102 |
+
$output .= "<a class='wpsc_product_title' >$special<strong>" . stripslashes($product['name']) . "</strong></a>";
|
103 |
+
}
|
104 |
+
}
|
105 |
+
if ($full_view !=null) {
|
106 |
+
if($product['description'] != '') {
|
107 |
+
$output .= "<p class='wpsc_description'>".nl2br(stripslashes($product['description'])) . "</p>";
|
108 |
+
}
|
109 |
+
|
110 |
+
if($product['additional_description'] != '') {
|
111 |
+
$output .= "<a href='#' class='additional_description_link' onclick='return show_additional_description(\"additionaldescription".$product['id']."\",\"link_icon".$product['id']."\");'>";
|
112 |
+
$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']."' />";
|
113 |
+
$output .= TXT_WPSC_MOREDETAILS."</a>";
|
114 |
+
|
115 |
+
$output .= "<span class='additional_description' id='additionaldescription".$product['id']."'><br />";
|
116 |
+
$output .= nl2br(stripslashes($product['additional_description'])) . "";
|
117 |
+
$output .= "</span><br />";
|
118 |
+
}
|
119 |
+
}
|
120 |
+
/*
|
121 |
+
adding to cart stuff
|
122 |
+
*/
|
123 |
+
$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;' >";
|
124 |
+
$output .= "<input type='hidden' name='prodid' value='".$product['id']."' />";
|
125 |
+
$output .= "<input type='hidden' name='item' value='".$product['id']."' />";
|
126 |
+
|
127 |
+
$variations_procesor = new nzshpcrt_variations;
|
128 |
+
|
129 |
+
$variations_output = $variations_procesor->display_product_variations($product['id'],false, false, true);
|
130 |
+
$output .= $variations_output[0];
|
131 |
+
if($variations_output[1] !== null) {
|
132 |
+
$product['price'] = $variations_output[1];
|
133 |
+
}
|
134 |
+
|
135 |
+
if(($product['special']==1) && ($variations_output[1] === null)) {
|
136 |
+
$output .= "<span class='oldprice'>".nzshpcrt_currency_display($product['price'], $product['notax']) . "</span><br />";
|
137 |
+
$output .= nzshpcrt_currency_display(($product['price'] - $product['special_price']), $product['notax'],false,$product['id']) . "<br />";
|
138 |
+
} else {
|
139 |
+
$output .= "<span id='product_price_".$product['id']."'>" . nzshpcrt_currency_display($product['price'], $product['notax']) . "</span><br />";
|
140 |
+
}
|
141 |
+
if(((get_option('hide_addtocart_button') !='1') || (get_option('payment_gateway') !='google'))) {
|
142 |
+
if(isset($wpsc_theme) && is_array($wpsc_theme) && ($wpsc_theme['html'] !='')) {
|
143 |
+
$output .= $wpsc_theme['html'];
|
144 |
+
} else {
|
145 |
+
$output .= "<input type='submit' id='product_".$product['id']."_submit_button' class='wpsc_buy_button' name='Buy' value='".TXT_WPSC_ADDTOCART."' />";
|
146 |
+
}
|
147 |
+
}
|
148 |
+
$output .= "</form>";
|
149 |
+
if (get_option('addtocart_or_buynow')=='1') {
|
150 |
+
if (get_option('payment_gateway')=='google') {
|
151 |
+
$output .= google_buynow($product['id']);
|
152 |
+
}
|
153 |
+
}
|
154 |
+
|
155 |
+
|
156 |
+
if ($full_view != null) {
|
157 |
+
if(get_option('product_ratings') == 1) {
|
158 |
+
$output .= "<div class='product_footer'>";
|
159 |
+
|
160 |
+
$output .= "<div class='product_average_vote'>";
|
161 |
+
$output .= "<strong>".TXT_WPSC_AVGCUSTREVIEW.":</strong>";
|
162 |
+
$output .= nzshpcrt_product_rating($product['id']);
|
163 |
+
$output .= "</div>";
|
164 |
+
|
165 |
+
$output .= "<div class='product_user_vote'>";
|
166 |
+
$vote_output = nzshpcrt_product_vote($product['id'],"onmouseover='hide_save_indicator(\"saved_".$product['id']."_text\");'");
|
167 |
+
if($vote_output[1] == 'voted') {
|
168 |
+
$output .= "<strong><span id='rating_".$product['id']."_text'>".TXT_WPSC_YOURRATING.":</span>";
|
169 |
+
$output .= "<span class='rating_saved' id='saved_".$product['id']."_text'> ".TXT_WPSC_RATING_SAVED."</span>";
|
170 |
+
$output .= "</strong>";
|
171 |
+
} else if($vote_output[1] == 'voting') {
|
172 |
+
$output .= "<strong><span id='rating_".$product['id']."_text'>".TXT_WPSC_RATETHISITEM.":</span>";
|
173 |
+
$output .= "<span class='rating_saved' id='saved_".$product['id']."_text'> ".TXT_WPSC_RATING_SAVED."</span>";
|
174 |
+
$output .= "</strong>";
|
175 |
+
}
|
176 |
+
$output .= $vote_output[0];
|
177 |
+
$output .= "</div>";
|
178 |
+
$output .= "</div>";
|
179 |
+
}
|
180 |
+
|
181 |
+
$output .="</td>";
|
182 |
+
$output .="</tr>";
|
183 |
+
} else {
|
184 |
+
$output .= "</div>\n\r";
|
185 |
+
$output .= "</div>";
|
186 |
+
}
|
187 |
+
}
|
188 |
+
if ($full_view != null) {
|
189 |
+
$output .= "</table>";
|
190 |
+
}
|
191 |
+
$output .= "</div>\n\r";
|
192 |
+
$output .= "<br style='clear: left;'>\n\r";
|
193 |
+
return preg_replace("/\[wpsc_category=(\d)+(,\ *full)?\]/", $output, $content);
|
194 |
+
} else {
|
195 |
+
return $content;
|
196 |
+
}
|
197 |
+
}
|
198 |
+
?>
|
wp-shopping-cart/image_preview.php
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
if ($height < $width ) {
|
39 |
+
$temp_h = ($width / $source_w) * $source_h;
|
40 |
+
} else {
|
41 |
+
$temp_w = ($height / $source_h) * $source_w;
|
42 |
+
}
|
43 |
+
|
44 |
+
// Create temp resized image
|
45 |
+
$temp_img = ImageCreateTrueColor( $temp_w, $temp_h );
|
46 |
+
$bgcolor = ImageColorAllocate( $temp_img, 255, 255, 255 );
|
47 |
+
ImageFilledRectangle( $temp_img, 0, 0, $temp_w, $temp_h, $bgcolor );
|
48 |
+
ImageAlphaBlending( $temp_img, TRUE );
|
49 |
+
|
50 |
+
ImageCopyResampled( $temp_img, $src_img, 0, 0, 0, 0, $temp_w, $temp_h, $source_w, $source_h );
|
51 |
+
|
52 |
+
$dst_img = ImageCreateTrueColor($width,$height);
|
53 |
+
$bgcolor = ImageColorAllocate( $dst_img, 255, 255, 255 );
|
54 |
+
ImageFilledRectangle( $dst_img, 0, 0, $width, $height, $bgcolor );
|
55 |
+
ImageAlphaBlending($dst_img, TRUE );
|
56 |
+
|
57 |
+
// X & Y Offset to crop image properly
|
58 |
+
$w1 = ($temp_w/2) - ($width/2);
|
59 |
+
$h1 = ($temp_h/2) - ($height/2);
|
60 |
+
|
61 |
+
|
62 |
+
ImageCopyResampled( $dst_img, $temp_img, 0, 0, $w1, $h1, $width, $height, $width, $height );
|
63 |
+
|
64 |
+
if($imagetype[2] == IMAGETYPE_PNG) {
|
65 |
+
imagesavealpha($dst_img,true);
|
66 |
+
ImageAlphaBlending($dst_img, false);
|
67 |
+
}
|
68 |
+
|
69 |
+
header("Content-type: image/png");
|
70 |
+
ImagePNG($dst_img);
|
71 |
+
exit();
|
72 |
+
}
|
73 |
+
?>
|
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,1338 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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') < 38))) {
|
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 |
+
`active` varchar(1) NOT NULL default '0',
|
162 |
+
`datetime` datetime NOT NULL,
|
163 |
+
PRIMARY KEY (`id`),
|
164 |
+
UNIQUE KEY `uniqueid` (`uniqueid`)
|
165 |
+
) TYPE=MyISAM;
|
166 |
+
";
|
167 |
+
|
168 |
+
|
169 |
+
// Table structure for table `".$wpdb->prefix."extras_values`
|
170 |
+
|
171 |
+
$num++;
|
172 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'extras_values';
|
173 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."extras_values` (
|
174 |
+
`id` int(11) NOT NULL auto_increment,
|
175 |
+
`name` varchar(128) NOT NULL,
|
176 |
+
`extras_id` int(11) NOT NULL,
|
177 |
+
PRIMARY KEY (`id`)
|
178 |
+
) TYPE=MyISAM;
|
179 |
+
";
|
180 |
+
|
181 |
+
|
182 |
+
// Table structure for table `".$wpdb->prefix."extras_values_associations`
|
183 |
+
|
184 |
+
$num++;
|
185 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'extras_values_associations';
|
186 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."extras_values_associations` (
|
187 |
+
`id` int(11) NOT NULL auto_increment,
|
188 |
+
`product_id` int(11) NOT NULL,
|
189 |
+
`value_id` int(11) NOT NULL,
|
190 |
+
`price` varchar(20) NOT NULL,
|
191 |
+
`visible` varchar(1) NOT NULL,
|
192 |
+
`extras_id` int(11) NOT NULL,
|
193 |
+
PRIMARY KEY (`id`)
|
194 |
+
) TYPE=MyISAM;
|
195 |
+
";
|
196 |
+
|
197 |
+
|
198 |
+
// Table structure for table `".$wpdb->prefix."item_category_associations`
|
199 |
+
|
200 |
+
$num++;
|
201 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'item_category_associations';
|
202 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."item_category_associations` (
|
203 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
204 |
+
`product_id` bigint(20) unsigned NOT NULL default '0',
|
205 |
+
`category_id` bigint(20) unsigned NOT NULL default '0',
|
206 |
+
PRIMARY KEY (`id`),
|
207 |
+
UNIQUE KEY `product_id` (`product_id`,`category_id`)
|
208 |
+
) TYPE=MyISAM ;
|
209 |
+
";
|
210 |
+
|
211 |
+
|
212 |
+
// Table structure for table `".$wpdb->prefix."product_brands`
|
213 |
+
|
214 |
+
$num++;
|
215 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_brands';
|
216 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_brands` (
|
217 |
+
`id` bigint(20) NOT NULL auto_increment,
|
218 |
+
`name` text NOT NULL,
|
219 |
+
`description` text NOT NULL,
|
220 |
+
`active` varchar(1) NOT NULL default '1',
|
221 |
+
`order` bigint(20) unsigned NOT NULL,
|
222 |
+
PRIMARY KEY (`id`)
|
223 |
+
) TYPE=MyISAM ;
|
224 |
+
";
|
225 |
+
|
226 |
+
|
227 |
+
// Table structure for table `".$wpdb->prefix."product_categories`
|
228 |
+
|
229 |
+
$num++;
|
230 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_categories';
|
231 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_categories` (
|
232 |
+
`id` bigint(20) NOT NULL auto_increment,
|
233 |
+
`group_id` BIGINT( 20 ) UNSIGNED NOT NULL,
|
234 |
+
`name` text NOT NULL,
|
235 |
+
`nice-name` varchar(255) NOT NULL,
|
236 |
+
`description` text NOT NULL,
|
237 |
+
`image` text NOT NULL,
|
238 |
+
`fee` varchar(1) NOT NULL default '0',
|
239 |
+
`active` varchar(1) NOT NULL default '1',
|
240 |
+
`category_parent` bigint(20) unsigned default '0',
|
241 |
+
`order` bigint(20) unsigned NOT NULL,
|
242 |
+
PRIMARY KEY (`id`),
|
243 |
+
KEY `group_id` (`group_id`),
|
244 |
+
KEY `nice-name` (`nice-name`)
|
245 |
+
) TYPE=MyISAM ;
|
246 |
+
";
|
247 |
+
|
248 |
+
|
249 |
+
// Table structure for table `".$wpdb->prefix."product_extra`
|
250 |
+
|
251 |
+
$num++;
|
252 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_extra';
|
253 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_extra` (
|
254 |
+
`id` int(11) NOT NULL auto_increment,
|
255 |
+
`name` varchar(128) NOT NULL,
|
256 |
+
PRIMARY KEY (`id`)
|
257 |
+
) TYPE=MyISAM;
|
258 |
+
";
|
259 |
+
|
260 |
+
|
261 |
+
// Table structure for table `".$wpdb->prefix."product_files`
|
262 |
+
|
263 |
+
$num++;
|
264 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_files';
|
265 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_files` (
|
266 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
267 |
+
`filename` varchar(255) NOT NULL default '',
|
268 |
+
`mimetype` varchar(128) NOT NULL default '',
|
269 |
+
`idhash` varchar(45) NOT NULL default '',
|
270 |
+
`preview` varchar(255) NOT NULL default '',
|
271 |
+
`preview_mimetype` varchar(128) NOT NULL default '',
|
272 |
+
`date` varchar(255) NOT NULL,
|
273 |
+
PRIMARY KEY (`id`)
|
274 |
+
) TYPE=MyISAM ;
|
275 |
+
";
|
276 |
+
|
277 |
+
|
278 |
+
// Table structure for table `".$wpdb->prefix."product_images`
|
279 |
+
|
280 |
+
$num++;
|
281 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_images';
|
282 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_images` (
|
283 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
284 |
+
`product_id` bigint(20) unsigned NOT NULL,
|
285 |
+
`image` varchar(255) NOT NULL,
|
286 |
+
`width` mediumint(8) unsigned NOT NULL,
|
287 |
+
`height` mediumint(8) unsigned NOT NULL,
|
288 |
+
PRIMARY KEY (`id`),
|
289 |
+
KEY `product_id` (`product_id`)
|
290 |
+
) TYPE=MyISAM ;
|
291 |
+
";
|
292 |
+
|
293 |
+
|
294 |
+
// Table structure for table `".$wpdb->prefix."product_list`
|
295 |
+
|
296 |
+
$num++;
|
297 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_list';
|
298 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_list` (
|
299 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
300 |
+
`name` text NOT NULL,
|
301 |
+
`description` longtext NOT NULL,
|
302 |
+
`additional_description` longtext NOT NULL,
|
303 |
+
`price` varchar(20) NOT NULL default '0',
|
304 |
+
`pnp` varchar(20) NOT NULL default '0',
|
305 |
+
`international_pnp` varchar(20) NOT NULL default '0',
|
306 |
+
`file` bigint(20) unsigned NOT NULL,
|
307 |
+
`image` text NOT NULL,
|
308 |
+
`category` bigint(20) unsigned NOT NULL default '0',
|
309 |
+
`brand` bigint(20) unsigned NOT NULL default '0',
|
310 |
+
`quantity_limited` varchar(1) NOT NULL,
|
311 |
+
`quantity` int(10) unsigned NOT NULL default '0',
|
312 |
+
`special` varchar(1) NOT NULL default '0',
|
313 |
+
`special_price` varchar(20) NOT NULL default '0',
|
314 |
+
`display_frontpage` varchar(1) NOT NULL default '0',
|
315 |
+
`notax` varchar(1) NOT NULL default '0',
|
316 |
+
`active` varchar(1) NOT NULL default '1',
|
317 |
+
`donation` varchar(1) NOT NULL default '0',
|
318 |
+
`no_shipping` varchar(1) NOT NULL default '0',
|
319 |
+
`thumbnail_image` text,
|
320 |
+
`thumbnail_state` int(11) NOT NULL,
|
321 |
+
PRIMARY KEY (`id`)
|
322 |
+
) TYPE=MyISAM ;
|
323 |
+
";
|
324 |
+
|
325 |
+
|
326 |
+
// Table structure for table `".$wpdb->prefix."product_order`
|
327 |
+
|
328 |
+
$num++;
|
329 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_order';
|
330 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_order` (
|
331 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
332 |
+
`category_id` bigint(20) unsigned NOT NULL default '0',
|
333 |
+
`product_id` bigint(20) unsigned NOT NULL default '0',
|
334 |
+
`order` bigint(20) unsigned NOT NULL default '0',
|
335 |
+
PRIMARY KEY (`id`),
|
336 |
+
UNIQUE KEY `category_id` (`category_id`,`product_id`),
|
337 |
+
KEY `order` (`order`)
|
338 |
+
) TYPE=MyISAM ;
|
339 |
+
";
|
340 |
+
|
341 |
+
|
342 |
+
// Table structure for table `".$wpdb->prefix."product_rating`
|
343 |
+
|
344 |
+
$num++;
|
345 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_rating';
|
346 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_rating` (
|
347 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
348 |
+
`ipnum` varchar(30) NOT NULL default '',
|
349 |
+
`productid` bigint(20) unsigned NOT NULL default '0',
|
350 |
+
`rated` tinyint(1) NOT NULL default '0',
|
351 |
+
`time` bigint(20) unsigned NOT NULL,
|
352 |
+
PRIMARY KEY (`id`)
|
353 |
+
) TYPE=MyISAM;
|
354 |
+
";
|
355 |
+
|
356 |
+
|
357 |
+
// Table structure for table `".$wpdb->prefix."product_variations`
|
358 |
+
|
359 |
+
$num++;
|
360 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'product_variations';
|
361 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."product_variations` (
|
362 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
363 |
+
`name` varchar(128) NOT NULL default '',
|
364 |
+
`variation_association` bigint(20) unsigned NOT NULL default '0',
|
365 |
+
PRIMARY KEY (`id`),
|
366 |
+
KEY `variation_association` (`variation_association`)
|
367 |
+
) TYPE=MyISAM;
|
368 |
+
";
|
369 |
+
|
370 |
+
|
371 |
+
// Table structure for table `".$wpdb->prefix."purchase_logs`
|
372 |
+
|
373 |
+
$num++;
|
374 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'purchase_logs';
|
375 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."purchase_logs` (
|
376 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
377 |
+
`totalprice` varchar(128) NOT NULL default '0',
|
378 |
+
`statusno` smallint(6) NOT NULL default '0',
|
379 |
+
`sessionid` varchar(255) NOT NULL default '',
|
380 |
+
`transactid` varchar(255) NOT NULL default '',
|
381 |
+
`authcode` varchar(255) NOT NULL default '',
|
382 |
+
`downloadid` bigint(20) unsigned NOT NULL default '0',
|
383 |
+
`processed` bigint(20) unsigned NOT NULL default '1',
|
384 |
+
`user_ID` bigint(20) unsigned default NULL,
|
385 |
+
`date` varchar(255) NOT NULL default '',
|
386 |
+
`gateway` varchar(64) NOT NULL default '',
|
387 |
+
`billing_country` char(6) NOT NULL default '',
|
388 |
+
`shipping_country` char(6) NOT NULL default '',
|
389 |
+
`base_shipping` varchar(128) NOT NULL default '0',
|
390 |
+
`email_sent` char(1) NOT NULL default '0',
|
391 |
+
`discount_value` varchar(32) NOT NULL default '0',
|
392 |
+
`discount_data` text NOT NULL,
|
393 |
+
`track_id` varchar(50) default NULL,
|
394 |
+
`shipping_region` char(6) NOT NULL,
|
395 |
+
`find_us` varchar(255) NOT NULL,
|
396 |
+
`engravetext` varchar(255) default NULL,
|
397 |
+
`closest_store` varchar(255) default NULL,
|
398 |
+
`google_order_number` varchar(20) NOT NULL default '',
|
399 |
+
`google_user_marketing_preference` varchar(10) NOT NULL default '',
|
400 |
+
`google_status` longtext NOT NULL,
|
401 |
+
PRIMARY KEY (`id`),
|
402 |
+
UNIQUE KEY `sessionid` (`sessionid`),
|
403 |
+
KEY `gateway` (`gateway`)
|
404 |
+
) TYPE=MyISAM ;
|
405 |
+
";
|
406 |
+
|
407 |
+
|
408 |
+
// Table structure for table `".$wpdb->prefix."purchase_statuses`
|
409 |
+
|
410 |
+
$num++;
|
411 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'purchase_statuses';
|
412 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."purchase_statuses` (
|
413 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
414 |
+
`name` varchar(128) NOT NULL default '',
|
415 |
+
`active` varchar(1) NOT NULL default '0',
|
416 |
+
`colour` varchar(6) NOT NULL,
|
417 |
+
PRIMARY KEY (`id`)
|
418 |
+
) TYPE=MyISAM ;
|
419 |
+
";
|
420 |
+
|
421 |
+
|
422 |
+
// Table structure for table `".$wpdb->prefix."region_tax`
|
423 |
+
|
424 |
+
$num++;
|
425 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'region_tax';
|
426 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."region_tax` (
|
427 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
428 |
+
`country_id` bigint(20) unsigned NOT NULL default '0',
|
429 |
+
`name` varchar(64) NOT NULL default '',
|
430 |
+
`code` char(2) NOT NULL default '',
|
431 |
+
`tax` float NOT NULL default '0',
|
432 |
+
PRIMARY KEY (`id`),
|
433 |
+
KEY `country_id` (`country_id`)
|
434 |
+
) TYPE=MyISAM ;
|
435 |
+
";
|
436 |
+
|
437 |
+
|
438 |
+
// Table structure for table `".$wpdb->prefix."submited_form_data`
|
439 |
+
|
440 |
+
$num++;
|
441 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'submited_form_data';
|
442 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."submited_form_data` (
|
443 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
444 |
+
`log_id` bigint(20) unsigned NOT NULL default '0',
|
445 |
+
`form_id` bigint(20) unsigned NOT NULL default '0',
|
446 |
+
`value` varchar(255) NOT NULL default '',
|
447 |
+
PRIMARY KEY (`id`),
|
448 |
+
KEY `log_id` (`log_id`,`form_id`)
|
449 |
+
) TYPE=MyISAM ;
|
450 |
+
";
|
451 |
+
|
452 |
+
|
453 |
+
// Table structure for table `".$wpdb->prefix."variation_associations`
|
454 |
+
|
455 |
+
$num++;
|
456 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'variation_associations';
|
457 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."variation_associations` (
|
458 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
459 |
+
`type` varchar(64) NOT NULL default '',
|
460 |
+
`name` varchar(128) NOT NULL default '',
|
461 |
+
`associated_id` bigint(20) unsigned NOT NULL default '0',
|
462 |
+
`variation_id` bigint(20) unsigned NOT NULL default '0',
|
463 |
+
PRIMARY KEY (`id`),
|
464 |
+
KEY `associated_id` (`associated_id`),
|
465 |
+
KEY `variation_id` (`variation_id`)
|
466 |
+
) TYPE=MyISAM;
|
467 |
+
";
|
468 |
+
|
469 |
+
|
470 |
+
// Table structure for table `".$wpdb->prefix."variation_priceandstock`
|
471 |
+
|
472 |
+
$num++;
|
473 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'variation_priceandstock';
|
474 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."variation_priceandstock` (
|
475 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
476 |
+
`product_id` bigint(20) unsigned NOT NULL default '0',
|
477 |
+
`variation_id_1` bigint(20) unsigned NOT NULL default '0',
|
478 |
+
`variation_id_2` bigint(20) unsigned NOT NULL default '0',
|
479 |
+
`stock` bigint(20) unsigned NOT NULL default '0',
|
480 |
+
`price` varchar(32) NOT NULL,
|
481 |
+
`file` varchar(1) NOT NULL default '0',
|
482 |
+
PRIMARY KEY (`id`),
|
483 |
+
KEY `product_id` (`product_id`),
|
484 |
+
KEY `variation_id_1` (`variation_id_1`,`variation_id_2`)
|
485 |
+
) TYPE=MyISAM;
|
486 |
+
";
|
487 |
+
|
488 |
+
|
489 |
+
// Table structure for table `".$wpdb->prefix."variation_values`
|
490 |
+
|
491 |
+
$num++;
|
492 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'variation_values';
|
493 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."variation_values` (
|
494 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
495 |
+
`name` varchar(128) NOT NULL default '',
|
496 |
+
`variation_id` bigint(20) unsigned NOT NULL default '0',
|
497 |
+
PRIMARY KEY (`id`),
|
498 |
+
KEY `variation_id` (`variation_id`)
|
499 |
+
) TYPE=MyISAM;
|
500 |
+
";
|
501 |
+
|
502 |
+
|
503 |
+
// Table structure for table `".$wpdb->prefix."variation_values_associations`
|
504 |
+
|
505 |
+
$num++;
|
506 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'variation_values_associations';
|
507 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."variation_values_associations` (
|
508 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
509 |
+
`product_id` bigint(20) unsigned NOT NULL default '0',
|
510 |
+
`value_id` bigint(20) unsigned NOT NULL default '0',
|
511 |
+
`quantity` int(11) NOT NULL default '0',
|
512 |
+
`price` varchar(32) NOT NULL default '0',
|
513 |
+
`visible` varchar(1) NOT NULL default '0',
|
514 |
+
`variation_id` bigint(20) unsigned NOT NULL default '0',
|
515 |
+
PRIMARY KEY (`id`),
|
516 |
+
KEY `product_id` (`product_id`,`value_id`,`variation_id`)
|
517 |
+
) TYPE=MyISAM;
|
518 |
+
";
|
519 |
+
|
520 |
+
|
521 |
+
// Table structure for table `".$wpdb->prefix."wpsc_coupon_codes`
|
522 |
+
|
523 |
+
$num++;
|
524 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'wpsc_coupon_codes';
|
525 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."wpsc_coupon_codes` (
|
526 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
527 |
+
`coupon_code` varchar(255) default NULL,
|
528 |
+
`value` bigint(20) unsigned NOT NULL default '0',
|
529 |
+
`is-percentage` char(1) NOT NULL default '0',
|
530 |
+
`use-once` char(1) NOT NULL default '0',
|
531 |
+
`is-used` char(1) NOT NULL default '0',
|
532 |
+
`active` char(1) NOT NULL default '1',
|
533 |
+
`every_product` varchar(255) NOT NULL,
|
534 |
+
`start` datetime NOT NULL,
|
535 |
+
`expiry` datetime NOT NULL,
|
536 |
+
PRIMARY KEY (`id`),
|
537 |
+
KEY `coupon_code` (`coupon_code`),
|
538 |
+
KEY `active` (`active`),
|
539 |
+
KEY `start` (`start`),
|
540 |
+
KEY `expiry` (`expiry`)
|
541 |
+
) TYPE=MyISAM ;
|
542 |
+
";
|
543 |
+
|
544 |
+
|
545 |
+
// Table structure for table `".$wpdb->prefix."wpsc_logged_subscriptions`
|
546 |
+
|
547 |
+
$num++;
|
548 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'wpsc_logged_subscriptions';
|
549 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."wpsc_logged_subscriptions` (
|
550 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
551 |
+
`cart_id` bigint(20) unsigned NOT NULL default '0',
|
552 |
+
`user_id` bigint(20) unsigned NOT NULL default '0',
|
553 |
+
`length` varchar(64) NOT NULL default '0',
|
554 |
+
`start_time` varchar(64) NOT NULL default '0',
|
555 |
+
`active` varchar(1) NOT NULL default '0',
|
556 |
+
PRIMARY KEY (`id`),
|
557 |
+
KEY `cart_id` (`cart_id`),
|
558 |
+
KEY `user_id` (`user_id`),
|
559 |
+
KEY `start_time` (`start_time`)
|
560 |
+
) TYPE=MyISAM;
|
561 |
+
";
|
562 |
+
|
563 |
+
|
564 |
+
// Table structure for table `".$wpdb->prefix."wpsc_productmeta`
|
565 |
+
|
566 |
+
$num++;
|
567 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'wpsc_productmeta';
|
568 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."wpsc_productmeta` (
|
569 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
570 |
+
`product_id` bigint(20) unsigned NOT NULL default '0',
|
571 |
+
`meta_key` varchar(255) default NULL,
|
572 |
+
`meta_value` longtext,
|
573 |
+
PRIMARY KEY (`id`),
|
574 |
+
KEY `product_id` (`product_id`),
|
575 |
+
KEY `meta_key` (`meta_key`)
|
576 |
+
) TYPE=MyISAM ;
|
577 |
+
";
|
578 |
+
|
579 |
+
$num++;
|
580 |
+
$wpsc_tables[$num]['table_name'] = $wpdb->prefix.'wpsc_categorisation_groups';
|
581 |
+
$wpsc_tables[$num]['table_sql'] = "CREATE TABLE `".$wpdb->prefix."wpsc_categorisation_groups` (
|
582 |
+
`id` bigint(20) unsigned NOT NULL auto_increment,
|
583 |
+
`name` varchar(255) NOT NULL,
|
584 |
+
`description` text NOT NULL,
|
585 |
+
`active` varchar(1) NOT NULL default '1',
|
586 |
+
`default` varchar(1) NOT NULL default '0',
|
587 |
+
PRIMARY KEY (`id`),
|
588 |
+
KEY `group_name` (`name`)
|
589 |
+
) ENGINE=MyISAM ;
|
590 |
+
";
|
591 |
+
|
592 |
+
|
593 |
+
// and here is where the tables are added to the database
|
594 |
+
foreach($wpsc_tables as $wpsc_table) {
|
595 |
+
if(!$wpdb->get_var("SHOW TABLES LIKE '{$wpsc_table['table_name']}'")) {
|
596 |
+
$wpdb->query($wpsc_table['table_sql']);
|
597 |
+
}
|
598 |
+
}
|
599 |
+
|
600 |
+
wpsc_create_upload_directories();
|
601 |
+
|
602 |
+
|
603 |
+
require dirname(__FILE__) . "/currency_list.php";
|
604 |
+
/*
|
605 |
+
Updates from old versions,
|
606 |
+
*/
|
607 |
+
if(get_option('wpsc_version') <= 3.5) {
|
608 |
+
include_once('updates/update-to-3.5.0.php');
|
609 |
+
}
|
610 |
+
//
|
611 |
+
// if((get_option('wpsc_version') < 3.5 ) || ((get_option('wpsc_version') == 3.5 ) && (get_option('wpsc_minor_version') <= 2))) {
|
612 |
+
include_once('updates/update-to-3.5.2.php');
|
613 |
+
// }
|
614 |
+
|
615 |
+
include_once('updates/update-to-3.5.2.php');
|
616 |
+
include_once('updates/update-to-3.6.0.php');
|
617 |
+
include_once('updates/update-to-3.6.4.php');
|
618 |
+
/* all code to add new database tables and columns must be above here */
|
619 |
+
if((get_option('wpsc_version') < WPSC_VERSION) || (get_option('wpsc_version') == WPSC_VERSION) && (get_option('wpsc_minor_version') < WPSC_MINOR_VERSION)) {
|
620 |
+
update_option('wpsc_version', WPSC_VERSION);
|
621 |
+
update_option('wpsc_minor_version', WPSC_MINOR_VERSION);
|
622 |
+
}
|
623 |
+
|
624 |
+
$currency_data = $wpdb->get_var("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."currency_list`");
|
625 |
+
if($currency_data == 0) {
|
626 |
+
$currency_array = explode("\n",$currency_sql);
|
627 |
+
foreach($currency_array as $currency_row) {
|
628 |
+
$wpdb->query($currency_row);
|
629 |
+
}
|
630 |
+
}
|
631 |
+
|
632 |
+
$add_initial_category = $wpdb->get_results("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."product_categories`;",ARRAY_A);
|
633 |
+
if($add_initial_category[0]['count'] == 0) {
|
634 |
+
$wpdb->query("INSERT INTO `{$wpdb->prefix}wpsc_categorisation_groups` (`id`, `name`, `description`, `active`, `default`) VALUES (1, 'Categories', 'Product Categories', '1', '1')");
|
635 |
+
$wpdb->query("INSERT INTO `{$wpdb->prefix}wpsc_categorisation_groups` (`id`, `name`, `description`, `active`, `default`) VALUES (2, 'Brands', 'Product Brands', '1', '0')");
|
636 |
+
|
637 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."product_categories` (`group_id`, `name` , `description`, `active`) VALUES ('1', '".TXT_WPSC_EXAMPLECATEGORY."', '".TXT_WPSC_EXAMPLEDETAILS."', '1');");
|
638 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."product_categories` (`group_id`, `name` , `description`, `active`) VALUES ('2', '".TXT_WPSC_EXAMPLEBRAND."', '".TXT_WPSC_EXAMPLEDETAILS."', '1');");
|
639 |
+
}
|
640 |
+
|
641 |
+
|
642 |
+
$purchase_statuses_data = $wpdb->get_results("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."purchase_statuses`",ARRAY_A);
|
643 |
+
if($purchase_statuses_data[0]['count'] == 0) {
|
644 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."purchase_statuses` (`name` , `active` , `colour` )
|
645 |
+
VALUES
|
646 |
+
('".TXT_WPSC_RECEIVED."', '1', ''),
|
647 |
+
('".TXT_WPSC_ACCEPTED_PAYMENT."', '1', ''),
|
648 |
+
('".TXT_WPSC_JOB_DISPATCHED."', '1', ''),
|
649 |
+
('".TXT_WPSC_PROCESSED."', '1', '');");
|
650 |
+
}
|
651 |
+
|
652 |
+
$check_category_assoc = $wpdb->get_results("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."item_category_associations`;",ARRAY_A);
|
653 |
+
if($check_category_assoc[0]['count'] == 0) {
|
654 |
+
$sql = "SELECT * FROM `".$wpdb->prefix."product_list` WHERE `active`=1";
|
655 |
+
$product_list = $wpdb->get_results($sql,ARRAY_A);
|
656 |
+
foreach((array)$product_list as $product) {
|
657 |
+
$results = $wpdb->query("INSERT INTO `".$wpdb->prefix."item_category_associations` (`product_id` , `category_id` ) VALUES ('".$product['id']."', '".$product['category']."');");
|
658 |
+
}
|
659 |
+
}
|
660 |
+
|
661 |
+
|
662 |
+
$add_regions = $wpdb->get_var("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."region_tax`");
|
663 |
+
// exit($add_regions);
|
664 |
+
if($add_regions < 1) {
|
665 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Alberta', '0.00')");
|
666 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'British Columbia', '0.00')");
|
667 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Manitoba', '0.00')");
|
668 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'New Brunswick', '0.00')");
|
669 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Newfoundland', '0.00')");
|
670 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Northwest Territories', '0.00')");
|
671 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Nova Scotia', '0.00')");
|
672 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Nunavut', '0.00')");
|
673 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Ontario', '0.00')");
|
674 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Prince Edward Island', '0.00')");
|
675 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Quebec', '0.00')");
|
676 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Saskatchewan', '0.00')");
|
677 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '100', 'Yukon', '0.00')");
|
678 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Alabama', '0.00')");
|
679 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Alaska', '0.00')");
|
680 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Arizona', '0.00')");
|
681 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Arkansas', '0.00')");
|
682 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'California', '0.00')");
|
683 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Colorado', '0.00')");
|
684 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Connecticut', '0.00')");
|
685 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Delaware', '0.00')");
|
686 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Florida', '0.00')");
|
687 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Georgia', '0.00')");
|
688 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Hawaii', '0.00')");
|
689 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Idaho', '0.00')");
|
690 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Illinois', '0.00')");
|
691 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Indiana', '0.00')");
|
692 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Iowa', '0.00')");
|
693 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Kansas', '0.00')");
|
694 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Kentucky', '0.00')");
|
695 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Louisiana', '0.00')");
|
696 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Maine', '0.00')");
|
697 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Maryland', '0.00')");
|
698 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Massachusetts', '0.00')");
|
699 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Michigan', '0.00')");
|
700 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Minnesota', '0.00')");
|
701 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Mississippi', '0.00')");
|
702 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Missouri', '0.00')");
|
703 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Montana', '0.00')");
|
704 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Nebraska', '0.00')");
|
705 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Nevada', '0.00')");
|
706 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'New Hampshire', '0.00')");
|
707 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'New Jersey', '0.00')");
|
708 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'New Mexico', '0.00')");
|
709 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'New York', '0.00')");
|
710 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'North Carolina', '0.00')");
|
711 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'North Dakota', '0.00')");
|
712 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Ohio', '0.00')");
|
713 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Oklahoma', '0.00')");
|
714 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Oregon', '0.00')");
|
715 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Pennsylvania', '0.00')");
|
716 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Rhode Island', '0.00')");
|
717 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'South Carolina', '0.00')");
|
718 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'South Dakota', '0.00')");
|
719 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Tennessee', '0.00')");
|
720 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Texas', '0.00')");
|
721 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Utah', '0.00')");
|
722 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Vermont', '0.00')");
|
723 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Virginia', '0.00')");
|
724 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Washington', '0.00')");
|
725 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Washington DC', '0.00')");
|
726 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'West Virginia', '0.00')");
|
727 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Wisconsin', '0.00')");
|
728 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."region_tax` ( `country_id` , `name` , `tax` ) VALUES ( '136', 'Wyoming', '0.00')");
|
729 |
+
|
730 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'AL' WHERE `name` IN('Alabama')LIMIT 1 ;");
|
731 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'AK' WHERE `name` IN('Alaska') LIMIT 1 ;");
|
732 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'AZ' WHERE `name` IN('Arizona') LIMIT 1 ;");
|
733 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'AR' WHERE `name` IN('Arkansas') LIMIT 1 ;");
|
734 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'CA' WHERE `name` IN('California') LIMIT 1 ;");
|
735 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'CO' WHERE `name` IN('Colorado') LIMIT 1 ;");
|
736 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'CT' WHERE `name` IN('Connecticut') LIMIT 1 ;");
|
737 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'DE' WHERE `name` IN('Delaware') LIMIT 1 ;");
|
738 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'FL' WHERE `name` IN('Florida') LIMIT 1 ;");
|
739 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'GA' WHERE `name` IN('Georgia') LIMIT 1 ;");
|
740 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'HI' WHERE `name` IN('Hawaii') LIMIT 1 ;");
|
741 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'ID' WHERE`name` IN('Idaho') LIMIT 1 ;");
|
742 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'IL' WHERE `name` IN('Illinois') LIMIT 1 ;");
|
743 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'IN' WHERE `name` IN('Indiana') LIMIT 1 ;");
|
744 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'IA' WHERE `name` IN('Iowa') LIMIT 1 ;");
|
745 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'KS' WHERE `name` IN('Kansas') LIMIT 1 ;");
|
746 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'KY' WHERE `name` IN('Kentucky') LIMIT 1 ;");
|
747 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'LA' WHERE `name` IN('Louisiana') LIMIT 1 ;");
|
748 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'ME' WHERE `name` IN('Maine') LIMIT 1 ;");
|
749 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MD' WHERE `name` IN('Maryland') LIMIT 1 ;");
|
750 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MA' WHERE `name` IN('Massachusetts') LIMIT 1 ;");
|
751 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MI' WHERE `name` IN('Michigan') LIMIT 1 ;");
|
752 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MN' WHERE `name` IN('Minnesota') LIMIT 1 ;");
|
753 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MS' WHERE `name` IN('Mississippi') LIMIT 1 ;");
|
754 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MO' WHERE `name` IN('Missouri') LIMIT 1 ;");
|
755 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'MT' WHERE `name` IN('Montana') LIMIT 1 ;");
|
756 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NE' WHERE `name` IN('Nebraska') LIMIT 1 ;");
|
757 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NV' WHERE `name` IN('Nevada') LIMIT 1 ;");
|
758 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NH' WHERE `name` IN('New Hampshire') LIMIT 1 ;");
|
759 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NJ' WHERE `name` IN('New Jersey') LIMIT 1 ;");
|
760 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NM' WHERE `name` IN('New Mexico') LIMIT 1 ;");
|
761 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NY' WHERE `name` IN('New York') LIMIT 1 ;");
|
762 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'NC' WHERE `name` IN('North Carolina') LIMIT 1 ;");
|
763 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'ND' WHERE `name` IN('North Dakota') LIMIT 1 ;");
|
764 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'OH' WHERE `name` IN('Ohio') LIMIT 1 ;");
|
765 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'OK' WHERE `name` IN('Oklahoma') LIMIT 1 ;");
|
766 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'OR' WHERE `name` IN('Oregon') LIMIT 1 ;");
|
767 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'PA' WHERE `name` IN('Pennsylvania') LIMIT 1 ;");
|
768 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'RI' WHERE `name` IN('Rhode Island') LIMIT 1 ;");
|
769 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'SC' WHERE `name` IN('South Carolina') LIMIT 1 ;");
|
770 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'SD' WHERE `name` IN('South Dakota') LIMIT 1 ;");
|
771 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'TN' WHERE `name` IN('Tennessee') LIMIT 1 ;");
|
772 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'TX' WHERE `name` IN('Texas') LIMIT 1 ;");
|
773 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'UT' WHERE `name` IN('Utah') LIMIT 1 ;");
|
774 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'VT' WHERE `name` IN('Vermont') LIMIT 1 ;");
|
775 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'VA' WHERE `name` IN('Virginia') LIMIT 1 ;");
|
776 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'WA' WHERE `name` IN('Washington') LIMIT 1 ;");
|
777 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'DC' WHERE `name` IN('Washington DC') LIMIT 1 ;");
|
778 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'WV' WHERE `name` IN('West Virginia') LIMIT 1 ;");
|
779 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'WI' WHERE `name` IN('Wisconsin') LIMIT 1 ;");
|
780 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."region_tax` SET `code` = 'WY' WHERE `name` IN('Wyoming') LIMIT 1 ;");
|
781 |
+
}
|
782 |
+
|
783 |
+
|
784 |
+
$data_forms = $wpdb->get_results("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."collect_data_forms`",ARRAY_A);
|
785 |
+
if($data_forms[0]['count'] == 0) {
|
786 |
+
$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),
|
787 |
+
( '".TXT_WPSC_FIRSTNAME."', 'text', '1', '1', '', '1', 2),
|
788 |
+
( '".TXT_WPSC_LASTNAME."', 'text', '1', '1', '', '1', 3),
|
789 |
+
( '".TXT_WPSC_ADDRESS."', 'address', '1', '0', '', '1', 4),
|
790 |
+
( '".TXT_WPSC_CITY."', 'city', '1', '0', '', '1', 5),
|
791 |
+
( '".TXT_WPSC_COUNTRY."', 'country', '1', '0', '', '1', 7),
|
792 |
+
( '".TXT_WPSC_POSTAL_CODE."', 'text', '0', '0', '', '1', 8),
|
793 |
+
( '".TXT_WPSC_EMAIL."', 'email', '1', '1', '', '1', 9),
|
794 |
+
( '".TXT_WPSC_DELIVER_TO_A_FRIEND."', 'heading', '0', '0', '', '1', 10),
|
795 |
+
( '".TXT_WPSC_FIRSTNAME."', 'text', '0', '0', '', '1', 11),
|
796 |
+
( '".TXT_WPSC_LASTNAME."', 'text', '0', '0', '', '1', 12),
|
797 |
+
( '".TXT_WPSC_ADDRESS."', 'address', '0', '0', '', '1', 13),
|
798 |
+
( '".TXT_WPSC_CITY."', 'city', '0', '0', '', '1', 14),
|
799 |
+
( '".TXT_WPSC_STATE."', 'text', '0', '0', '', '1', 15),
|
800 |
+
( '".TXT_WPSC_COUNTRY."', 'delivery_country', '0', '0', '', '1', 16),
|
801 |
+
( '".TXT_WPSC_POSTAL_CODE."', 'text', '0', '0', '', '1', 17);");
|
802 |
+
update_option('country_form_field', $country_form_id[0]['id']);
|
803 |
+
update_option('email_form_field', $email_form_id[0]['id']);
|
804 |
+
$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');");
|
805 |
+
}
|
806 |
+
|
807 |
+
|
808 |
+
$product_brands_data = $wpdb->get_results("SELECT COUNT(*) AS `count` FROM `".$wpdb->prefix."product_brands`",ARRAY_A);
|
809 |
+
if($product_brands_data[0]['count'] == 0) {
|
810 |
+
$wpdb->query("INSERT INTO `".$wpdb->prefix."product_brands` ( `name`, `description`, `active`, `order`) VALUES ( '".TXT_WPSC_EXAMPLEBRAND."','".TXT_WPSC_EXAMPLEDETAILS."', '1', '0');");
|
811 |
+
}
|
812 |
+
|
813 |
+
add_option('show_thumbnails', 1, TXT_WPSC_SHOWTHUMBNAILS, "yes");
|
814 |
+
|
815 |
+
add_option('product_image_width', '', TXT_WPSC_PRODUCTIMAGEWIDTH, 'yes');
|
816 |
+
add_option('product_image_height', '', TXT_WPSC_PRODUCTIMAGEHEIGHT, 'yes');
|
817 |
+
|
818 |
+
add_option('category_image_width', '', TXT_WPSC_CATEGORYIMAGEWIDTH, 'yes');
|
819 |
+
add_option('category_image_height', '', TXT_WPSC_CATEGORYIMAGEHEIGHT, 'yes');
|
820 |
+
|
821 |
+
add_option('product_list_url', '', TXT_WPSC_PRODUCTLISTURL, 'yes');
|
822 |
+
add_option('shopping_cart_url', '', TXT_WPSC_SHOPPINGCARTURL, 'yes');
|
823 |
+
add_option('checkout_url', '', TXT_WPSC_CHECKOUTURL, 'yes');
|
824 |
+
add_option('transact_url', '', TXT_WPSC_TRANSACTURL, 'yes');
|
825 |
+
add_option('payment_gateway', '', TXT_WPSC_PAYMENTGATEWAY, 'yes');
|
826 |
+
if(function_exists('register_sidebar') ) {
|
827 |
+
add_option('cart_location', '4', TXT_WPSC_CARTLOCATION, 'yes');
|
828 |
+
} else {
|
829 |
+
add_option('cart_location', '1', TXT_WPSC_CARTLOCATION, 'yes');
|
830 |
+
}
|
831 |
+
|
832 |
+
if ( function_exists('register_sidebar') ) {
|
833 |
+
add_option('cart_location', '4', TXT_WPSC_CARTLOCATION, 'yes');
|
834 |
+
} else {
|
835 |
+
add_option('cart_location', '1', TXT_WPSC_CARTLOCATION, 'yes');
|
836 |
+
}
|
837 |
+
|
838 |
+
//add_option('show_categorybrands', '0', TXT_WPSC_SHOWCATEGORYBRANDS, 'yes');
|
839 |
+
|
840 |
+
add_option('currency_type', '156', TXT_WPSC_CURRENCYTYPE, 'yes');
|
841 |
+
add_option('currency_sign_location', '3', TXT_WPSC_CURRENCYSIGNLOCATION, 'yes');
|
842 |
+
|
843 |
+
add_option('gst_rate', '1', TXT_WPSC_GSTRATE, 'yes');
|
844 |
+
|
845 |
+
add_option('max_downloads', '1', TXT_WPSC_MAXDOWNLOADS, 'yes');
|
846 |
+
|
847 |
+
add_option('display_pnp', '1', TXT_WPSC_DISPLAYPNP, 'yes');
|
848 |
+
|
849 |
+
add_option('display_specials', '1', TXT_WPSC_DISPLAYSPECIALS, 'yes');
|
850 |
+
add_option('do_not_use_shipping', '0', 'do_not_use_shipping', 'yes');
|
851 |
+
|
852 |
+
add_option('postage_and_packaging', '0', TXT_WPSC_POSTAGEAND_PACKAGING, 'yes');
|
853 |
+
|
854 |
+
add_option('purch_log_email', '', TXT_WPSC_PURCHLOGEMAIL, 'yes');
|
855 |
+
add_option('return_email', '', TXT_WPSC_RETURNEMAIL, 'yes');
|
856 |
+
add_option('terms_and_conditions', '', TXT_WPSC_TERMSANDCONDITIONS, 'yes');
|
857 |
+
|
858 |
+
add_option('google_key', 'none', TXT_WPSC_GOOGLEMECHANTKEY, 'yes');
|
859 |
+
add_option('google_id', 'none', TXT_WPSC_GOOGLEMECHANTID, 'yes');
|
860 |
+
|
861 |
+
add_option('default_brand', 'none', TXT_WPSC_DEFAULTBRAND, 'yes');
|
862 |
+
add_option('default_category', 'none', TXT_WPSC_DEFAULTCATEGORY, 'yes');
|
863 |
+
|
864 |
+
add_option('product_view', 'default', "", 'yes');
|
865 |
+
add_option('add_plustax', 'default', "", '1');
|
866 |
+
|
867 |
+
if(get_option('default_category') < 1) {
|
868 |
+
update_option('default_category','none');
|
869 |
+
}
|
870 |
+
|
871 |
+
add_option('nzshpcrt_first_load', '0', "", 'yes');
|
872 |
+
|
873 |
+
if(!((get_option('show_categorybrands') > 0) && (get_option('show_categorybrands') < 3))) {
|
874 |
+
update_option('show_categorybrands', 2);
|
875 |
+
}
|
876 |
+
//add_option('show_categorybrands', '0', TXT_WPSC_SHOWCATEGORYBRANDS, 'yes');
|
877 |
+
/* PayPal options */
|
878 |
+
add_option('paypal_business', '', TXT_WPSC_PAYPALBUSINESS, 'yes');
|
879 |
+
add_option('paypal_url', '', TXT_WPSC_PAYPALURL, 'yes');
|
880 |
+
//update_option('paypal_url', "https://www.sandbox.paypal.com/xclick");
|
881 |
+
|
882 |
+
|
883 |
+
add_option('paypal_multiple_business', '', TXT_WPSC_PAYPALBUSINESS, 'yes');
|
884 |
+
|
885 |
+
if(get_option('paypal_multiple_url') == null) {
|
886 |
+
add_option('paypal_multiple_url', '', TXT_WPSC_PAYPALURL, 'yes');
|
887 |
+
update_option('paypal_multiple_url', "https://www.paypal.com/cgi-bin/webscr");
|
888 |
+
}
|
889 |
+
|
890 |
+
add_option('product_ratings', '0', TXT_WPSC_SHOWPRODUCTRATINGS, 'yes');
|
891 |
+
|
892 |
+
if(get_option('wpsc_selected_theme') == '') {
|
893 |
+
add_option('wpsc_selected_theme', 'default', 'Selected Theme', 'yes');
|
894 |
+
update_option('wpsc_selected_theme', "default");
|
895 |
+
}
|
896 |
+
|
897 |
+
|
898 |
+
|
899 |
+
if(!get_option('product_image_height')) {
|
900 |
+
update_option('product_image_height', '96');
|
901 |
+
update_option('product_image_width', '96');
|
902 |
+
}
|
903 |
+
|
904 |
+
|
905 |
+
if(!get_option('category_image_height')) {
|
906 |
+
update_option('category_image_height', '96');
|
907 |
+
update_option('category_image_width', '96');
|
908 |
+
}
|
909 |
+
|
910 |
+
|
911 |
+
if(!get_option('single_view_image_height')) {
|
912 |
+
update_option('single_view_image_height', '128');
|
913 |
+
update_option('single_view_image_width', '128');
|
914 |
+
}
|
915 |
+
|
916 |
+
wpsc_product_files_htaccess();
|
917 |
+
|
918 |
+
/*
|
919 |
+
* This part creates the pages and automatically puts their URLs into the options page.
|
920 |
+
* 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.
|
921 |
+
*/
|
922 |
+
$post_date =date("Y-m-d H:i:s");
|
923 |
+
$post_date_gmt =gmdate("Y-m-d H:i:s");
|
924 |
+
|
925 |
+
$num=0;
|
926 |
+
$pages[$num]['name'] = 'products-page';
|
927 |
+
$pages[$num]['title'] = TXT_WPSC_PRODUCTSPAGE;
|
928 |
+
$pages[$num]['tag'] = '[productspage]';
|
929 |
+
$pages[$num]['option'] = 'product_list_url';
|
930 |
+
|
931 |
+
$num++;
|
932 |
+
$pages[$num]['name'] = 'checkout';
|
933 |
+
$pages[$num]['title'] = TXT_WPSC_CHECKOUT;
|
934 |
+
$pages[$num]['tag'] = '[shoppingcart]';
|
935 |
+
$pages[$num]['option'] = 'shopping_cart_url';
|
936 |
+
|
937 |
+
// $num++;
|
938 |
+
// $pages[$num]['name'] = 'enter-details';
|
939 |
+
// $pages[$num]['title'] = TXT_WPSC_ENTERDETAILS;
|
940 |
+
// $pages[$num]['tag'] = '[checkout]';
|
941 |
+
// $pages[2$num]['option'] = 'checkout_url';
|
942 |
+
|
943 |
+
$num++;
|
944 |
+
$pages[$num]['name'] = 'transaction-results';
|
945 |
+
$pages[$num]['title'] = TXT_WPSC_TRANSACTIONRESULTS;
|
946 |
+
$pages[$num]['tag'] = '[transactionresults]';
|
947 |
+
$pages[$num]['option'] = 'transact_url';
|
948 |
+
|
949 |
+
$num++;
|
950 |
+
$pages[$num]['name'] = 'your-account';
|
951 |
+
$pages[$num]['title'] = TXT_WPSC_YOUR_ACCOUNT;
|
952 |
+
$pages[$num]['tag'] = '[userlog]';
|
953 |
+
$pages[$num]['option'] = 'user_account_url';
|
954 |
+
|
955 |
+
$newpages = false;
|
956 |
+
$i = 0;
|
957 |
+
$post_parent = 0;
|
958 |
+
foreach($pages as $page) {
|
959 |
+
$check_page = $wpdb->get_row("SELECT * FROM `".$wpdb->posts."` WHERE `post_content` LIKE '%".$page['tag']."%' LIMIT 1",ARRAY_A);
|
960 |
+
if($check_page == null) {
|
961 |
+
if($i == 0) {
|
962 |
+
$post_parent = 0;
|
963 |
+
} else {
|
964 |
+
$post_parent = $first_id;
|
965 |
+
}
|
966 |
+
|
967 |
+
if($wp_version >= 2.1) {
|
968 |
+
$sql ="INSERT INTO ".$wpdb->posts."
|
969 |
+
(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)
|
970 |
+
VALUES
|
971 |
+
('1', '$post_date', '$post_date_gmt', '".$page['tag']."', '', '".$page['title']."', '', 'publish', 'closed', 'closed', '', '".$page['name']."', '', '', '$post_date', '$post_date_gmt', '$post_parent', '0', 'page')";
|
972 |
+
} else {
|
973 |
+
$sql ="INSERT INTO ".$wpdb->posts."
|
974 |
+
(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)
|
975 |
+
VALUES
|
976 |
+
('1', '$post_date', '$post_date_gmt', '".$page['tag']."', '', '".$page['title']."', '', 'static', 'closed', 'closed', '', '".$page['name']."', '', '', '$post_date', '$post_date_gmt', '$post_parent', '0')";
|
977 |
+
}
|
978 |
+
$wpdb->query($sql);
|
979 |
+
$post_id = $wpdb->insert_id;
|
980 |
+
if($i == 0) {
|
981 |
+
$first_id = $post_id;
|
982 |
+
}
|
983 |
+
$wpdb->query("UPDATE $wpdb->posts SET guid = '" . get_permalink($post_id) . "' WHERE ID = '$post_id'");
|
984 |
+
update_option($page['option'], get_permalink($post_id));
|
985 |
+
if($page['option'] == 'shopping_cart_url') {
|
986 |
+
update_option('checkout_url', get_permalink($post_id));
|
987 |
+
}
|
988 |
+
$newpages = true;
|
989 |
+
$i++;
|
990 |
+
}
|
991 |
+
}
|
992 |
+
if($newpages == true) {
|
993 |
+
wp_cache_delete('all_page_ids', 'pages');
|
994 |
+
$wp_rewrite->flush_rules();
|
995 |
+
}
|
996 |
+
|
997 |
+
|
998 |
+
/* adds nice names for permalinks for products */
|
999 |
+
$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`)");
|
1000 |
+
if($check_product_names != null) {
|
1001 |
+
$sql_query = "SELECT `id`, `name` FROM `".$wpdb->prefix."product_list` WHERE `active` IN('1')";
|
1002 |
+
$sql_data = $wpdb->get_results($sql_query,ARRAY_A);
|
1003 |
+
foreach((array)$sql_data as $datarow) {
|
1004 |
+
$tidied_name = trim($datarow['name']);
|
1005 |
+
$tidied_name = strtolower($tidied_name);
|
1006 |
+
$url_name = preg_replace(array("/(\s)+/","/[^\w-]+/"), array("-", ''), $tidied_name);
|
1007 |
+
$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);
|
1008 |
+
$extension_number = '';
|
1009 |
+
if($similar_names['count'] > 0) {
|
1010 |
+
$extension_number = (int)$similar_names['max_number']+1;
|
1011 |
+
}
|
1012 |
+
if(get_product_meta($datarow['id'], 'url_name') != false) {
|
1013 |
+
$current_url_name = get_product_meta($datarow['id'], 'url_name');
|
1014 |
+
if($current_url_name[0] != $url_name) {
|
1015 |
+
$url_name .= $extension_number;
|
1016 |
+
update_product_meta($datarow['id'], 'url_name', $url_name);
|
1017 |
+
}
|
1018 |
+
} else {
|
1019 |
+
$url_name .= $extension_number;
|
1020 |
+
add_product_meta($datarow['id'], 'url_name', $url_name, true);
|
1021 |
+
}
|
1022 |
+
}
|
1023 |
+
}
|
1024 |
+
|
1025 |
+
|
1026 |
+
/* adds nice names for permalinks for categories */
|
1027 |
+
$check_category_names = $wpdb->get_results("SELECT DISTINCT `nice-name` FROM `".$wpdb->prefix."product_categories` WHERE `nice-name` IN ('') AND `active` IN ('1')");
|
1028 |
+
if($check_category_names != null) {
|
1029 |
+
$sql_query = "SELECT `id`, `name` FROM `".$wpdb->prefix."product_categories` WHERE `active` IN('1')";
|
1030 |
+
$sql_data = $wpdb->get_results($sql_query,ARRAY_A);
|
1031 |
+
foreach((array)$sql_data as $datarow) {
|
1032 |
+
$tidied_name = trim($datarow['name']);
|
1033 |
+
$tidied_name = strtolower($tidied_name);
|
1034 |
+
$url_name = preg_replace(array("/(\s)+/","/[^\w-]+/"), array("-", ''), $tidied_name);
|
1035 |
+
$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);
|
1036 |
+
$extension_number = '';
|
1037 |
+
if($similar_names['count'] > 0) {
|
1038 |
+
$extension_number = (int)$similar_names['max_number']+1;
|
1039 |
+
}
|
1040 |
+
$url_name .= $extension_number;
|
1041 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."product_categories` SET `nice-name` = '$url_name' WHERE `id` = '".$datarow['id']."' LIMIT 1 ;");
|
1042 |
+
}
|
1043 |
+
$wp_rewrite->flush_rules();
|
1044 |
+
}
|
1045 |
+
|
1046 |
+
|
1047 |
+
|
1048 |
+
/* Moves images to thumbnails directory
|
1049 |
+
// this code should no longer be needed, as most people will be using a sufficiently new version
|
1050 |
+
$image_dir = WPSC_FILE_PATH."/images/";
|
1051 |
+
$product_images = WPSC_FILE_PATH."/product_images/";
|
1052 |
+
$product_thumbnails = WPSC_FILE_PATH."/product_images/thumbnails/";
|
1053 |
+
if(!is_dir($product_thumbnails)) {
|
1054 |
+
@ mkdir($product_thumbnails, 0775);
|
1055 |
+
}
|
1056 |
+
$product_list = $wpdb->get_results("SELECT * FROM `".$wpdb->prefix."product_list` WHERE `image` != ''",ARRAY_A);
|
1057 |
+
foreach((array)$product_list as $product) {
|
1058 |
+
if(!glob($product_thumbnails.$product['image'])) {
|
1059 |
+
$new_filename = $product['id']."_".$product['image'];
|
1060 |
+
if(file_exists($image_dir.$product['image'])) {
|
1061 |
+
copy($image_dir.$product['image'], $product_thumbnails.$new_filename);
|
1062 |
+
if(file_exists($product_images.$product['image'])) {
|
1063 |
+
copy($product_images.$product['image'], $product_images.$new_filename);
|
1064 |
+
}
|
1065 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `image` = '".$new_filename."' WHERE `id`='".$product['id']."' LIMIT 1");
|
1066 |
+
} else {
|
1067 |
+
$imagedir = $product_thumbnails;
|
1068 |
+
$name = $new_filename;
|
1069 |
+
$new_image_path = $product_images.$product['image'];
|
1070 |
+
$imagepath = $product['image'];
|
1071 |
+
$height = get_option('product_image_height');
|
1072 |
+
$width = get_option('product_image_width');
|
1073 |
+
if(file_exists($product_images.$product['image'])) {
|
1074 |
+
include("extra_image_processing.php");
|
1075 |
+
copy($product_images.$product['image'], $product_images.$new_filename);
|
1076 |
+
$wpdb->query("UPDATE `".$wpdb->prefix."product_list` SET `image` = '".$new_filename."' WHERE `id`='".$product['id']."' LIMIT 1");
|
1077 |
+
}
|
1078 |
+
}
|
1079 |
+
}
|
1080 |
+
} */
|
1081 |
+
|
1082 |
+
}
|
1083 |
+
|
1084 |
+
function wpsc_uninstall_plugin() {
|
1085 |
+
global $wpdb;
|
1086 |
+
if(current_user_can('edit_plugins')) {
|
1087 |
+
$option_list[] = 'addtocart_or_buynow ';
|
1088 |
+
$option_list[] = 'add_plustax ';
|
1089 |
+
$option_list[] = 'base_country ';
|
1090 |
+
$option_list[] = 'base_international_shipping ';
|
1091 |
+
$option_list[] = 'base_local_shipping ';
|
1092 |
+
$option_list[] = 'cart_location ';
|
1093 |
+
$option_list[] = 'category_image_height ';
|
1094 |
+
$option_list[] = 'category_image_width ';
|
1095 |
+
$option_list[] = 'catsprods_display_type ';
|
1096 |
+
$option_list[] = 'cat_brand_loc ';
|
1097 |
+
$option_list[] = 'checkbox_variations ';
|
1098 |
+
$option_list[] = 'checkout_url ';
|
1099 |
+
$option_list[] = 'country_form_field ';
|
1100 |
+
$option_list[] = 'currency_sign_location ';
|
1101 |
+
$option_list[] = 'currency_type ';
|
1102 |
+
$option_list[] = 'default_brand ';
|
1103 |
+
$option_list[] = 'display_pnp ';
|
1104 |
+
$option_list[] = 'display_specials ';
|
1105 |
+
$option_list[] = 'do_not_use_shipping ';
|
1106 |
+
$option_list[] = 'email_form_field ';
|
1107 |
+
$option_list[] = 'fancy_notifications ';
|
1108 |
+
$option_list[] = 'googleStoreLocator ';
|
1109 |
+
$option_list[] = 'google_button_bg ';
|
1110 |
+
$option_list[] = 'google_button_size ';
|
1111 |
+
$option_list[] = 'google_cur ';
|
1112 |
+
$option_list[] = 'google_id ';
|
1113 |
+
$option_list[] = 'google_key ';
|
1114 |
+
$option_list[] = 'google_server_type ';
|
1115 |
+
$option_list[] = 'google_shipping_country ';
|
1116 |
+
$option_list[] = 'gst_rate ';
|
1117 |
+
$option_list[] = 'hide_addtocart_button ';
|
1118 |
+
$option_list[] = 'hide_name_link ';
|
1119 |
+
$option_list[] = 'language_setting ';
|
1120 |
+
$option_list[] = 'list_view_quantity ';
|
1121 |
+
$option_list[] = 'max_downloads ';
|
1122 |
+
$option_list[] = 'nzshpcrt_first_load ';
|
1123 |
+
$option_list[] = 'payment_gateway ';
|
1124 |
+
$option_list[] = 'paypal_business ';
|
1125 |
+
$option_list[] = 'paypal_curcode ';
|
1126 |
+
$option_list[] = 'paypal_ipn ';
|
1127 |
+
$option_list[] = 'paypal_multiple_business ';
|
1128 |
+
$option_list[] = 'paypal_multiple_url ';
|
1129 |
+
$option_list[] = 'paypal_url ';
|
1130 |
+
$option_list[] = 'postage_and_packaging ';
|
1131 |
+
$option_list[] = 'product_image_height ';
|
1132 |
+
$option_list[] = 'product_image_width ';
|
1133 |
+
$option_list[] = 'product_list_url ';
|
1134 |
+
$option_list[] = 'product_ratings ';
|
1135 |
+
$option_list[] = 'product_view ';
|
1136 |
+
$option_list[] = 'purch_log_email ';
|
1137 |
+
$option_list[] = 'require_register ';
|
1138 |
+
$option_list[] = 'return_email ';
|
1139 |
+
$option_list[] = 'shopping_cart_url ';
|
1140 |
+
$option_list[] = 'show_advanced_search ';
|
1141 |
+
$option_list[] = 'show_categorybrands ';
|
1142 |
+
$option_list[] = 'show_category_count ';
|
1143 |
+
$option_list[] = 'show_category_thumbnails ';
|
1144 |
+
$option_list[] = 'show_images_only ';
|
1145 |
+
$option_list[] = 'show_live_search ';
|
1146 |
+
$option_list[] = 'show_search ';
|
1147 |
+
$option_list[] = 'show_sliding_cart ';
|
1148 |
+
$option_list[] = 'show_thumbnails ';
|
1149 |
+
$option_list[] = 'single_view_image_height ';
|
1150 |
+
$option_list[] = 'single_view_image_width ';
|
1151 |
+
$option_list[] = 'terms_and_conditions ';
|
1152 |
+
$option_list[] = 'transact_url ';
|
1153 |
+
$option_list[] = 'user_account_url ';
|
1154 |
+
$option_list[] = 'use_pagination ';
|
1155 |
+
$option_list[] = 'usps_user_id ';
|
1156 |
+
$option_list[] = 'wpsc_also_bought ';
|
1157 |
+
$option_list[] = 'wpsc_category_description ';
|
1158 |
+
$option_list[] = 'wpsc_dropshop_theme ';
|
1159 |
+
$option_list[] = 'wpsc_minor_version ';
|
1160 |
+
$option_list[] = 'wpsc_page_number_position ';
|
1161 |
+
$option_list[] = 'wpsc_products_per_page ';
|
1162 |
+
$option_list[] = 'wpsc_selected_theme ';
|
1163 |
+
$option_list[] = 'wpsc_use_pnp_cols ';
|
1164 |
+
$option_list[] = 'wpsc_version';
|
1165 |
+
$option_list[] = 'wpsc_incomplete_file_transfer';
|
1166 |
+
|
1167 |
+
foreach($option_list as $wpsc_option) {
|
1168 |
+
delete_option($wpsc_option);
|
1169 |
+
}
|
1170 |
+
|
1171 |
+
|
1172 |
+
$wpsc_table_list[] = $wpdb->prefix.'also_bought_product';
|
1173 |
+
$wpsc_table_list[] = $wpdb->prefix.'cart_contents';
|
1174 |
+
$wpsc_table_list[] = $wpdb->prefix.'cart_item_extras';
|
1175 |
+
$wpsc_table_list[] = $wpdb->prefix.'cart_item_variations';
|
1176 |
+
$wpsc_table_list[] = $wpdb->prefix.'collect_data_forms';
|
1177 |
+
$wpsc_table_list[] = $wpdb->prefix.'currency_list';
|
1178 |
+
$wpsc_table_list[] = $wpdb->prefix.'download_status';
|
1179 |
+
$wpsc_table_list[] = $wpdb->prefix.'extras_values';
|
1180 |
+
$wpsc_table_list[] = $wpdb->prefix.'extras_values_associations';
|
1181 |
+
$wpsc_table_list[] = $wpdb->prefix.'item_category_associations';
|
1182 |
+
$wpsc_table_list[] = $wpdb->prefix.'product_brands';
|
1183 |
+
$wpsc_table_list[] = $wpdb->prefix.'product_categories';
|
1184 |
+
$wpsc_table_list[] = $wpdb->prefix.'product_extra';
|
1185 |
+
$wpsc_table_list[] = $wpdb->prefix.'product_files';
|
1186 |
+
$wpsc_table_list[] = $wpdb->prefix.'product_images';
|
1187 |
+
$wpsc_table_list[] = $wpdb->prefix.'product_list';
|
1188 |
+
$wpsc_table_list[] = $wpdb->prefix.'product_order';
|
1189 |
+
$wpsc_table_list[] = $wpdb->prefix.'product_rating';
|
1190 |
+
$wpsc_table_list[] = $wpdb->prefix.'product_variations';
|
1191 |
+
$wpsc_table_list[] = $wpdb->prefix.'purchase_logs';
|
1192 |
+
$wpsc_table_list[] = $wpdb->prefix.'purchase_statuses';
|
1193 |
+
$wpsc_table_list[] = $wpdb->prefix.'region_tax';
|
1194 |
+
$wpsc_table_list[] = $wpdb->prefix.'submited_form_data';
|
1195 |
+
$wpsc_table_list[] = $wpdb->prefix.'variation_associations';
|
1196 |
+
$wpsc_table_list[] = $wpdb->prefix.'variation_priceandstock';
|
1197 |
+
$wpsc_table_list[] = $wpdb->prefix.'variation_values';
|
1198 |
+
$wpsc_table_list[] = $wpdb->prefix.'variation_values_associations';
|
1199 |
+
$wpsc_table_list[] = $wpdb->prefix.'wpsc_coupon_codes';
|
1200 |
+
$wpsc_table_list[] = $wpdb->prefix.'wpsc_logged_subscriptions';
|
1201 |
+
$wpsc_table_list[] = $wpdb->prefix.'wpsc_productmeta';
|
1202 |
+
$wpsc_table_list[] = $wpdb->prefix.'wpsc_categorisation_groups';
|
1203 |
+
|
1204 |
+
foreach($wpsc_table_list as $wpsc_table_name) {
|
1205 |
+
$wpdb->query("DROP TABLE `{$wpsc_table_name}`");
|
1206 |
+
}
|
1207 |
+
$active_plugins = get_option('active_plugins');
|
1208 |
+
unset($active_plugins[array_search(WPSC_DIR_NAME.'/wp-shopping-cart.php', $active_plugins)]);
|
1209 |
+
update_option('active_plugins', $active_plugins);
|
1210 |
+
header('Location: '.get_option('siteurl').'/wp-admin/plugins.php');
|
1211 |
+
exit();
|
1212 |
+
}
|
1213 |
+
}
|
1214 |
+
|
1215 |
+
function wpsc_uninstall_plugin_link($plugin) {
|
1216 |
+
if(($plugin == WPSC_DIR_NAME.'/wp-shopping-cart.php') && current_user_can('edit_plugins')) {
|
1217 |
+
echo "<td class='plugin-update' colspan='5' style='background: #ff7777;'>";
|
1218 |
+
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>";
|
1219 |
+
echo "</td>";
|
1220 |
+
}
|
1221 |
+
}
|
1222 |
+
if($_GET['wpsc_uninstall'] === 'verified') {
|
1223 |
+
add_action( 'init', 'wpsc_uninstall_plugin' );
|
1224 |
+
}
|
1225 |
+
|
1226 |
+
if($_GET['wpsc_uninstall'] === 'ask') {
|
1227 |
+
add_action( 'after_plugin_row', 'wpsc_uninstall_plugin_link' );
|
1228 |
+
}
|
1229 |
+
// add_action( 'after_plugin_row', 'wpsc_uninstall_plugin_link' );
|
1230 |
+
|
1231 |
+
function wpsc_product_files_htaccess() {
|
1232 |
+
if(!is_file(WPSC_FILE_DIR.".htaccess")) {
|
1233 |
+
$htaccess = "order deny,allow\n\r";
|
1234 |
+
$htaccess .= "deny from all\n\r";
|
1235 |
+
$htaccess .= "allow from none\n\r";
|
1236 |
+
$filename = WPSC_FILE_DIR.".htaccess";
|
1237 |
+
$file_handle = @ fopen($filename, 'w+');
|
1238 |
+
@ fwrite($file_handle, $htaccess);
|
1239 |
+
@ fclose($file_handle);
|
1240 |
+
@ chmod($file_handle, 665);
|
1241 |
+
}
|
1242 |
+
}
|
1243 |
+
|
1244 |
+
|
1245 |
+
|
1246 |
+
function wpsc_check_and_copy_files() {
|
1247 |
+
$upload_path = 'wp-content/plugins/'.WPSC_DIR_NAME;
|
1248 |
+
|
1249 |
+
$wpsc_dirs['files']['old'] = ABSPATH."{$upload_path}/files/";
|
1250 |
+
$wpsc_dirs['files']['new'] = WPSC_FILE_DIR;
|
1251 |
+
|
1252 |
+
$wpsc_dirs['previews']['old'] = ABSPATH."{$upload_path}/preview_clips/";
|
1253 |
+
$wpsc_dirs['previews']['new'] = WPSC_PREVIEW_DIR;
|
1254 |
+
|
1255 |
+
// 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
|
1256 |
+
$wpsc_dirs['images']['old'] = ABSPATH."{$upload_path}/product_images/";
|
1257 |
+
$wpsc_dirs['images']['new'] = WPSC_IMAGE_DIR;
|
1258 |
+
|
1259 |
+
$wpsc_dirs['categories']['old'] = ABSPATH."{$upload_path}/category_images/";
|
1260 |
+
$wpsc_dirs['categories']['new'] = WPSC_CATEGORY_DIR;
|
1261 |
+
$incomplete_file_transfer = false;
|
1262 |
+
foreach($wpsc_dirs as $wpsc_dir) {
|
1263 |
+
if(is_dir($wpsc_dir['old'])) {
|
1264 |
+
$files_in_dir = glob($wpsc_dir['old']."*");
|
1265 |
+
$stat = stat($wpsc_dir['new']);
|
1266 |
+
|
1267 |
+
if(count($files_in_dir) > 0) {
|
1268 |
+
foreach($files_in_dir as $file_in_dir) {
|
1269 |
+
$file_name = str_replace($wpsc_dir['old'], '', $file_in_dir);
|
1270 |
+
if( @ rename($wpsc_dir['old'].$file_name, $wpsc_dir['new'].$file_name) ) {
|
1271 |
+
if(is_dir($wpsc_dir['new'].$file_name)) {
|
1272 |
+
$perms = $stat['mode'] & 0000775;
|
1273 |
+
} else { $perms = $stat['mode'] & 0000665; }
|
1274 |
+
|
1275 |
+
@ chmod( ($wpsc_dir['new'].$file_name), $perms );
|
1276 |
+
} else {
|
1277 |
+
$incomplete_file_transfer = true;
|
1278 |
+
}
|
1279 |
+
}
|
1280 |
+
}
|
1281 |
+
}
|
1282 |
+
}
|
1283 |
+
if($incomplete_file_transfer == true) {
|
1284 |
+
add_option('wpsc_incomplete_file_transfer', 'default', "", 'true');
|
1285 |
+
}
|
1286 |
+
}
|
1287 |
+
|
1288 |
+
|
1289 |
+
function wpsc_create_upload_directories() {
|
1290 |
+
|
1291 |
+
$wpsc_files_directory = ABSPATH.get_option('upload_path').'/wpsc/';
|
1292 |
+
|
1293 |
+
|
1294 |
+
|
1295 |
+
if(!is_dir(ABSPATH.get_option('upload_path'))) {
|
1296 |
+
@ mkdir(ABSPATH.get_option('upload_path'), 0775);
|
1297 |
+
}
|
1298 |
+
|
1299 |
+
if(!is_dir($wpsc_files_directory)) {
|
1300 |
+
@ mkdir($wpsc_files_directory, 0775);
|
1301 |
+
}
|
1302 |
+
|
1303 |
+
if(!is_dir(WPSC_FILE_DIR)) {
|
1304 |
+
@ mkdir(WPSC_FILE_DIR, 0775);
|
1305 |
+
wpsc_product_files_htaccess();
|
1306 |
+
}
|
1307 |
+
|
1308 |
+
if(!is_dir(WPSC_PREVIEW_DIR)) {
|
1309 |
+
mkdir(WPSC_PREVIEW_DIR, 0775);
|
1310 |
+
}
|
1311 |
+
|
1312 |
+
if(!is_dir(WPSC_IMAGE_DIR)) {
|
1313 |
+
@ mkdir(WPSC_IMAGE_DIR, 0775);
|
1314 |
+
}
|
1315 |
+
|
1316 |
+
if(!is_dir(WPSC_THUMBNAIL_DIR)) {
|
1317 |
+
@ mkdir(WPSC_THUMBNAIL_DIR, 0775);
|
1318 |
+
}
|
1319 |
+
|
1320 |
+
if(!is_dir(WPSC_CATEGORY_DIR)) {
|
1321 |
+
@ mkdir(WPSC_CATEGORY_DIR, 0775);
|
1322 |
+
}
|
1323 |
+
|
1324 |
+
|
1325 |
+
$wpsc_file_directory = ABSPATH.get_option('upload_path').'/wpsc/';
|
1326 |
+
if(is_dir($wpsc_file_directory)) {
|
1327 |
+
// sort the permissions out in case they are not already sorted out.
|
1328 |
+
|
1329 |
+
@ chmod( ABSPATH.get_option('upload_path'), 0775 );
|
1330 |
+
@ chmod( $wpsc_file_directory, 0775 );
|
1331 |
+
@ chmod( WPSC_FILE_DIR, 0775 );
|
1332 |
+
@ chmod( WPSC_PREVIEW_DIR, 0775 );
|
1333 |
+
@ chmod( WPSC_IMAGE_DIR, 0775 );
|
1334 |
+
@ chmod( WPSC_CATEGORY_DIR, 0775 );
|
1335 |
+
}
|
1336 |
+
}
|
1337 |
+
|
1338 |
+
?>
|
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/js/dimensions.js
ADDED
@@ -0,0 +1,325 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;"> </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(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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!=\'2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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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k(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(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i(\'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.1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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 ] - <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.tooltip.js
ADDED
@@ -0,0 +1,342 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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/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 |
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 + "'> <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 >");
|
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", "< 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 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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&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 />"<?php wp_list_pages(\'title_li=<h2>Pages</h2>\' ); ?>"<br />
|
353 |
+
и да го смените с<br />
|
354 |
+
"<?php wp_list_pages(\'title_li=<h2>Pages<h2>&exclude=3,4,5\'); ?>"<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 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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ä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ü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öße nicht verä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ü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ügen');
|
35 |
+
define('TXT_WPSC_SENDSMS', 'SMS senden');
|
36 |
+
define('TXT_WPSC_PRODUCTS', 'Produkte');
|
37 |
+
define('TXT_WPSC_ADDCATEGORY', 'Kategorie hinzufü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äufe-Logbuch');
|
42 |
+
define('TXT_WPSC_ORDER_LOG', 'Bestellungen');
|
43 |
+
define('TXT_WPSC_OLDER_ORDERS', 'Ältere Bestellungen');
|
44 |
+
define('TXT_WPSC_ORDER', 'Bestellung');
|
45 |
+
define('TXT_WPSC_TOTAL_THIS_MONTH', 'Monatsumsä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ö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ährungsoptionen');
|
66 |
+
define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Ort des Währungssymbols');
|
67 |
+
define('TXT_WPSC_GSTRATE', 'MwSt.-Satz');
|
68 |
+
define('TXT_WPSC_MAXDOWNLOADS', 'Downloadlimit');
|
69 |
+
define('TXT_WPSC_DISPLAYPNP', 'Versandt & Verpackung anzeigen oder verstecken');
|
70 |
+
define('TXT_WPSC_DISPLAYSPECIALS', 'Sonderangebote in der Sidebar anzeigen oder verstecken');
|
71 |
+
define('TXT_WPSC_POSTAGEAND_PACKAGING', 'Standard Versandt & Verpackung');
|
72 |
+
define('TXT_WPSC_PURCHLOGEMAIL', 'eMailadresse an die die Einkaufsbenachrichtigung gesendet wird');
|
73 |
+
define('TXT_WPSC_RETURNEMAIL', 'Absendeadresse der Einkaufsbestä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önliche Daten');
|
83 |
+
define('TXT_WPSC_TRANSACTIONRESULTS', 'Ihre Bestellung');
|
84 |
+
define('TXT_WPSC_SELECTACATEGORY', 'Wählen Sie eine Kategorie');
|
85 |
+
define('TXT_WPSC_SELECTABRAND', 'Wä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äkchen entfernen, um den Wert zu lö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ügen');
|
103 |
+
define('TXT_WPSC_EDIT_VAR', 'Varianz bearbeiten');
|
104 |
+
define('TXT_WPSC_SELECTAVARIATION', 'Varianz auswählen');
|
105 |
+
define('TXT_WPSC_NEW_VARIATION', 'Neue Varianz erstellen');
|
106 |
+
|
107 |
+
define('TXT_WPSC_PRODUCTATT', 'Produktanhä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öße ändern');
|
111 |
+
define('TXT_WPSC_DONOTRESIZEIMAGE', 'Größe nicht ä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össe verwenden');
|
124 |
+
define('TXT_WPSC_USESPECIFICSIZE', 'bestimmte Grösse verwenden');
|
125 |
+
define('TXT_WPSC_PXHEIGHT', 'px Hö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öschen');
|
132 |
+
define('TXT_WPSC_EDIT', 'Bearbeiten');
|
133 |
+
define('TXT_WPSC_DELETE', 'Lö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öhe');
|
143 |
+
define('TXT_WPSC_WIDTH', 'Breite');
|
144 |
+
define('TXT_WPSC_PLEASEENTERAVALID', 'Bitte geben Sie einen gültigen');
|
145 |
+
define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Bitte geben Sie einen gültigen Vornamen ein');
|
146 |
+
define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Bitte geben Sie einen gültigen Nachnamen ein');
|
147 |
+
define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Bitte geben Sie eine gültige E-Mailadresse ein');
|
148 |
+
define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Bitte geben Sie eine gültige Adresse ein');
|
149 |
+
define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Bitte geben Sie eine gültige Telefonnummer ein');
|
150 |
+
define('TXT_WPSC_TERMSANDCONDITIONS', 'Sie haben den Allgemeinen Geschä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ü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ügt');
|
178 |
+
define('TXT_WPSC_ITEMHASNOTBEENADDED', 'Das Produkt wurde nicht hinzugefügt');
|
179 |
+
define('TXT_WPSC_ADDNEWCATEGORY', 'Neue Kategorie hinzufügen');
|
180 |
+
define('TXT_WPSC_SUBMIT', 'Senden');
|
181 |
+
define('TXT_WPSC_SELECTAVALIDCATEGORY', 'Bitte wählen Sie ein gültiges Land');
|
182 |
+
define('TXT_WPSC_PRODUCTNAME', 'Produktname');
|
183 |
+
define('TXT_WPSC_PRODUCTDESCRIPTION', 'Produktbeschreibung');
|
184 |
+
define('TXT_WPSC_ADDNEWPRODUCT', 'Produkt hinzufü: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üssen.');
|
193 |
+
define('TXT_WPSC_ASTERISK', 'Felder mit einem Stern * müssen ausgefü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ä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ßen');
|
214 |
+
define('TXT_WPSC_BUYPRODUCTS', 'Bitte wählen Sie zunä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ügen');
|
218 |
+
define('TXT_WPSC_DISPLAYBRANDS', 'Marken anzeigen');
|
219 |
+
define('TXT_WPSC_EDITBRAND', 'Marke bearbeiten');
|
220 |
+
define('TXT_WPSC_ADD', 'Hinzufügen');
|
221 |
+
define('TXT_WPSC_ADD_NEW_FORM', 'Neues Formularfeld hinzufügen');
|
222 |
+
define('TXT_WPSC_SAVE_CHANGES', 'Ä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ü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ü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öschen');
|
236 |
+
|
237 |
+
define('TXT_WPSC_SELECT_PARENT', 'Mutter auswählen');
|
238 |
+
define('TXT_WPSC_PRODUCTHASBEENEDITED', 'Das Produkt wurde bearbeitet.');
|
239 |
+
define('TXT_WPSC_ADDPRODUCT', 'Produkt hinzufügen');
|
240 |
+
define('TXT_WPSC_DISPLAYPRODUCTS', 'Produkte anzeigen');
|
241 |
+
define('TXT_WPSC_PLEASESELECTACATEGORY', 'Bitte wä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ä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ügen');
|
250 |
+
define('TXT_WPSC_CHOOSEACATEGORY', 'Wählen Sie eine Kategorie');
|
251 |
+
define('TXT_WPSC_CHOOSEABRAND', 'Wählen Sie eine Marke');
|
252 |
+
define('TXT_WPSC_USETHEACTUALIMAGE', 'Aktuelle Größe beibehalten.');
|
253 |
+
define('TXT_WPSC_DISPLAYPURCHASES', 'Einkä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&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ü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ä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ür mü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öße');
|
288 |
+
define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', 'Standard Kategorie Thumbnail-Größ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ährungsoptionen');
|
295 |
+
define('TXT_WPSC_GSTTAXRATE', 'MwSt/Steuersatz');
|
296 |
+
define('TXT_WPSC_CURRENCYTYPE', 'Währungsform');
|
297 |
+
define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Währungssymbol');
|
298 |
+
define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', 'Standard Versand & 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ä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ätigen');
|
321 |
+
define('TXT_WPSC_MAKEPAYMENT', 'Zahlung abschließ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öglichst. Produkte die runtergeladen werden können, können jetzt über die Links auf dieser Seite runtergeladen werden.\n\r\n\rAlle Preise beinhalten MwSt, Versand und Verpackung, soweit nö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ü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ü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ü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 ü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ünchen, kö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ö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ügt haben fü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üssen Sie zunäst deren IDs herausfinden. <br />
|
368 |
+
<br />Dann mü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 />"<?php wp_list_pages(\'title_li=<h2>Pages</h2>\' ); ?>"<br />
|
371 |
+
<br />Ersetzen Sie dies mit beispielsweise:<br />
|
372 |
+
<br />"<?php wp_list_pages(\'title_li=<h2>Pages<h2>&exclude=3,4,5\'); ?>"<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össen zu ändern, wenn Sie bereits hochgeladen wurden</p>
|
376 |
+
<p><strong>Permalinks</strong><br />
|
377 |
+
Wir geben uns die grösste Mühe.
|
378 |
+
Bislang habe ich noch keine wirklich guten Weg gefunden, die erforderlichen Variablen anzupassen um Permalinks ohne mod-rewrite verwenden zu können. Falls Sie mod_rewrite nicht nutzen kö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önnen, müssen Sie einen modernen Browser nutzen und Javascript einschalten. (Internet Explorer 6 oder höher, oder Firefox 1.0 oder höher, ältere Versionen wurden nicht getesten und funktionieren unter Umstä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ührungen</a> auf Flickr.
|
383 |
+
|
384 |
+
<h2>Deutsche Bearbeitung</h2>
|
385 |
+
<p>Dieses Wordpress-Plugin wurde ü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ätzliche Versandkosten');
|
397 |
+
define('TXT_WPSC_LOCAL_PNP', 'Lokale Versandgebür');
|
398 |
+
define('TXT_WPSC_INTERNATIONAL_PNP', 'Internationale Versandgebür');
|
399 |
+
define('TXT_WPSC_SHIPPING_NOTE', 'Hinweis: Kosten je Produkt unabhä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ätzliches Bild hinzufügen');
|
412 |
+
define('TXT_WPSC_DELETE_IMAGE', 'Bild lö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ü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öschen');
|
422 |
+
define('TXT_WPSC_ADDITIONAL_IMAGE', 'Zusätzliches Bild');
|
423 |
+
define('TXT_WPSC_GATEWAY_OPTIONS', 'Gateway Optionen');
|
424 |
+
define('TXT_WPSC_SHIPPING_COUNTRY', 'Wählen Sie Ihr Land für den Versand aus:');
|
425 |
+
define('TXT_WPSC_CONFIRM_TOTALS', 'Prüfen Sie Ihre Bestellung vor dem Absenden:');
|
426 |
+
define('TXT_WPSC_CHECKOUT_FORM_FIELDS_DESCRIPTION', 'Hier können Sie die Felder editieren, die bei einer Bestellung gefragt werden. Auf der Kasseseite können Sie wichtige Informationen ü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ählen Sie Ihre Zahlungsoptionen aus die Sie Ihren Kunden im Bestellvorgang anbieten möchten. Standardmässig können Käfer nur mit Kreditkarte/Paypal bezahlen. Wenn Sie auch manuelle Zahlungen zulassen möchten, wä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ü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ä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önigt dieses Plugin <a href=\'http://sox.sourceforge.net/\'>SoX</a> fü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ültigen');
|
482 |
+
define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Bitte geben Sie einen gültigen Vornamen ein');
|
483 |
+
define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Bitte geben Sie einen gültigen Nachnamen ein');
|
484 |
+
define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Bitte geben Sie eine gültige E-Mailadresse ein');
|
485 |
+
define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Bitte geben Sie eine gültige Adresse ein');
|
486 |
+
define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Bitte geben Sie eine gültige Telefonnummer ein');
|
487 |
+
define('TXT_WPSC_PLEASEENTERAVALIDCITY', 'Bitte geben Sie eine gü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 & MwSt ');
|
498 |
+
define('TXT_WPSC_GRID', 'Grid');
|
499 |
+
define('TXT_WPSC_CANT_MOVE_CATEGORY', 'Kategorien mit Unterkategorien können nicht verschoben werden.');
|
500 |
+
define('TXT_WPSC_SURETODELETECATEGORY', 'Sind Sie sicher, dass Sie die Kategorie löschen möchten? Falls Unterkategorien vorhanden sind, werden diese ebenfalls gelö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 & 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ügen');
|
511 |
+
// }.pe
|
512 |
+
define('TXT_WPSC_PRODUCT_CATEGORIES', 'Produkt Kategorien');
|
513 |
+
define('TXT_WPSC_THANKS_DELETED', 'Vielen Dank, der Verkaufseintrag wurde gelö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äufen');
|
517 |
+
define('TXT_WPSC_CATSANDBRAND', 'Kategorien & Marken');
|
518 |
+
define('TXT_WPSC_GOLD_DROPSHOP', 'DropShop');
|
519 |
+
define('TXT_WPSC_NEEDTOENABLEDROPSHOP', 'Sie müssen die Gold- und DropShop-Erweiterungen installieren um dies nutzen zu kö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ützt, wird eine Vorschaudatei fü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ählen');
|
535 |
+
define('TXT_WPSC_TXN_ID', 'Transactions Id');
|
536 |
+
define('TXT_WPSC_SINGLE_PRODUCTTHUMBNAILSIZE', 'Einzelprodukt Bildgrösse');
|
537 |
+
define('TXT_WPSC_RESET', 'Zurü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ä: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ü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ü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ür Geschä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önnen. Sie müssen die Zugangsrechte für diese Verzeichnisse anpassen.');
|
568 |
+
define('TXT_WPSC_RESET_API', 'API Schlüssel zurü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 Ä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ä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ü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önnen aktuell kein Sonderangebot fü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älen Sie eine downloadbare Datei zu dem Produkt:');
|
594 |
+
define('TXT_WPSC_PLEASECHOOSE', 'Bitte wa¨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üfen Sie Ihre Email und loggen Sie sich ein');
|
603 |
+
define('TXT_WPSC_SELECT_THEME', 'Theme auswä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ür Kunden, Sie mü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ä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ü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ügen');
|
625 |
+
define('TXT_WPSC_COUPON', 'Coupon');
|
626 |
+
define('TXT_WPSC_ADDCOUPONS', 'Coupon hinzufü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ü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/EL_el.php
ADDED
@@ -0,0 +1,479 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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&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 & 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-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BC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NdHbbVToxa98uIKJUJPiYGBcpcUywtpZG1ZiDvYxoWgDh4zXx4w1QcJ96OjUPkHQ3q0UWY+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 />"<?php wp_list_pages(\'title_li=<h2>Pages</h2>\' ); ?>"<br />
|
343 |
+
<br />Edit the line accordingly, for example:<br />
|
344 |
+
<br />"<?php wp_list_pages(\'title_li=<h2>Pages<h2>&exclude=3,4,5\'); ?>"<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 & 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 & 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,749 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
8 |
+
define('TXT_WPSC_FIX_CATEGORY_PERMALINKS', 'Fix Category Permalinks');
|
9 |
+
define('TXT_WPSC_ADVANCED_OPTIONS', 'Advanced Options');
|
10 |
+
define('TXT_WPSC_INVALID_COUPON', 'Invalid Coupon');
|
11 |
+
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.');
|
12 |
+
define('TXT_WPSC_GOOGLEFINANCESTATUS', 'Financial Status');
|
13 |
+
define('TXT_WPSC_GOOGLEFULFILLMENTSTATUS', 'Fulfillment Status');
|
14 |
+
define('TXT_WPSC_SURETODELETECATEGORISATION', 'Are you sure you want to delete this product group? All categories it contains will be deleted too.');
|
15 |
+
|
16 |
+
define('TXT_WPSC_CATEGORISATION', 'Product Groups');
|
17 |
+
define('TXT_WPSC_CATEGORISATIONHASBEENADDED', 'The group has been added.');
|
18 |
+
define('TXT_WPSC_CATEGORISATIONHASBEENEDITED', 'The group has been edited.');
|
19 |
+
define('TXT_WPSC_ADD_CATEGORISATION', 'Add New Group');
|
20 |
+
define('TXT_WPSC_EDIT_CATEGORISATION', 'Edit Group');
|
21 |
+
define('TXT_WPSC_ADDDETAILS', 'Add Details');
|
22 |
+
define('TXT_WPSC_EDITDETAILS', 'Edit Details');
|
23 |
+
define('TXT_WPSC_ADDNEWCATEGORY', 'Add New');
|
24 |
+
define('TXT_WPSC_VALUE', 'Value');
|
25 |
+
define('TXT_WPSC_ADD_CUSTOM_FIELD', 'Add Custom Field');
|
26 |
+
define('TXT_WPSC_EDIT_CUSTOM_FIELDS', 'Edit Custom Fields');
|
27 |
+
define('TXT_WPSC_SAVE', 'Save');
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
define('TXT_WPSC_DISPLAY_PRODUCT_CATEGORIES', 'Display [categorisation]'); // The shortcode [categorisation] is replaced with the name of the currently select categorisation
|
32 |
+
|
33 |
+
define('TXT_WPSC_PRODUCT_CATEGORIES', 'Select [categorisation]'); // The shortcode [categorisation] is replaced with the name of the currently select categorisation
|
34 |
+
|
35 |
+
define('TXT_WPSC_MANAGE_CATEGORISATION', 'Manage [categorisation]'); // The shortcode [categorisation] is replaced with the name of the currently select categorisation
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
define('TXT_WPSC_ANYONEREGISTER', 'If yes then you must also turn on the wordpress option "Any one can register"');
|
40 |
+
define('TXT_WPSC_CVN', 'Credit Verification');
|
41 |
+
define('TXT_WPSC_AVS', 'Address Verification');
|
42 |
+
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...');
|
43 |
+
|
44 |
+
define('TXT_WPSC_PERTICKED', 'Apply On Every Product');
|
45 |
+
define('TXT_WPSC_EMAILALLOWED', 'Email Allowed');
|
46 |
+
define('TXT_WPSC_EMAILNOTALLOWED', 'Email NOT Allowed');
|
47 |
+
|
48 |
+
|
49 |
+
define('TXT_WPSC_GOOGLERISK', 'Eligible for Protection');
|
50 |
+
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.');
|
51 |
+
|
52 |
+
define('TXT_WPSC_GOOGLEMARKETINGPREFERENCE', 'Google User Marketing Preference');
|
53 |
+
|
54 |
+
|
55 |
+
define('TXT_WPSC_LATEST_PRODUCTS', 'Latest Products');
|
56 |
+
define('TXT_WPSC_PICKUP', 'Pick up');
|
57 |
+
define('TXT_WPSC_DELIVERY', 'Delivery');
|
58 |
+
define('TXT_WPSC_MENU', 'e-Commerce Admin Menu');
|
59 |
+
define('TXT_WPSC_GOOGLESTORELOCATOR', 'Enable Google Store Locator');
|
60 |
+
define('TXT_WPSC_GOOGLESHIPPING', 'Google Shipping Country');
|
61 |
+
define('TXT_WPSC_POST_DEFAULT_MEMBERS_ONLY', 'This post is for members only, you must log in to view this post');
|
62 |
+
define('TXT_WPSC_BASESHIPPING', 'Base Shipping');
|
63 |
+
define('TXT_WPSC_RSS_ADDRESS', 'RSS Address');
|
64 |
+
define('TXT_WPSC_STORENAME', 'Store Name');
|
65 |
+
define('TXT_WPSC_CHECKBOX_VARIATIONS', 'Display Variations in Checkboxes');
|
66 |
+
define('TXT_WPSC_DISPLAY_PLUSTAX', 'Display "+tax"');
|
67 |
+
define('TXT_WPSC_DISPLAYHOWCUSTOMERFINDUS', 'Display How Customer Found Us Survey');
|
68 |
+
define('TXT_WPSC_HOWCUSTOMERFINDUS', 'How The Customer Found Us');
|
69 |
+
define('TXT_WPSC_ENGRAVE', 'Engrave text');
|
70 |
+
define('TXT_WPSC_FREETRIAL', 'One Month Free Trial');
|
71 |
+
define('TXT_WPSC_PROHIBITED', 'Prohibited');
|
72 |
+
define('TXT_WPSC_ADMINNOTES', 'Merchant Notes');
|
73 |
+
define('TXT_WPSC_HIDEADDNAMELINK', 'Hide Product Name Links');
|
74 |
+
define('TXT_WPSC_ADMINMENU', 'Admin Menu');
|
75 |
+
define('TXT_WPSC_USEONLYEXTERNALLINK', 'Note: Use only if you have external links');
|
76 |
+
define('TXT_WPSC_EXTERNALLINK', 'External Link');
|
77 |
+
define('TXT_WPSC_BUTTONTYPE', 'Button Type');
|
78 |
+
define('TXT_WPSC_BUYNOW', 'Buy Now');
|
79 |
+
define('TXT_WPSC_ASSOCIATEWITHFILE', 'Associate With File?(Tick one please)');
|
80 |
+
define('TXT_WPSC_SHOWLIVESEARCH', 'Use Live Search');
|
81 |
+
define('TXT_WPSC_USPS_USERID', 'USPS ID');
|
82 |
+
define('TXT_WPSC_USPS_PASSWORD', 'USPS Password');
|
83 |
+
|
84 |
+
define('TXT_WPSC_SHIPPING_DETAILS', 'Shipping Details');
|
85 |
+
define('TXT_WPSC_SHOWADVANCEDSEARCH', 'Show Advanced Search');
|
86 |
+
define('TXT_WPSC_GOOGLEMECHANTKEY', 'Google Merchant Key');
|
87 |
+
define('TXT_WPSC_GOOGLEMECHANTID', "Google Merchant ID");
|
88 |
+
define('TXT_WPSC_IMAGESIZEINFO', 'Note: if this is blank, the image will not be resized');
|
89 |
+
define('TXT_WPSC_ENDLESSSUBSCRIPTION', 'Permenant subscription?');
|
90 |
+
define('TXT_WPSC_RECEIVED', 'Order Received');
|
91 |
+
define('TXT_WPSC_ORDER_STATUS', 'Order Status');
|
92 |
+
define('TXT_WPSC_ORDER_SUMMARY', 'Order Summary');
|
93 |
+
define('TXT_WPSC_LANGUAGE', 'Language');
|
94 |
+
define('TXT_WPSC_ACCEPTED_PAYMENT', 'Accepted Payment');
|
95 |
+
define('TXT_WPSC_JOB_DISPATCHED', 'Job Dispatched');
|
96 |
+
define('TXT_WPSC_PROCESSED', 'Closed Order');
|
97 |
+
define('TXT_WPSC_ECOMMERCE', 'e-Commerce');
|
98 |
+
define('TXT_WPSC_OPTIONS', 'Shop Settings');
|
99 |
+
define('TXT_WPSC_ADDPRODUCTS', 'Add Products');
|
100 |
+
define('TXT_WPSC_SENDSMS', 'Send SMS');
|
101 |
+
define('TXT_WPSC_PRODUCTS', 'Products');
|
102 |
+
define('TXT_WPSC_ADDCATEGORY', 'Add Category');
|
103 |
+
define('TXT_WPSC_CATEGORIES', 'Categories');
|
104 |
+
define('TXT_WPSC_BRANDS', 'Brands');
|
105 |
+
define('TXT_WPSC_VARIATIONS', 'Variations');
|
106 |
+
define('TXT_WPSC_PURCHASELOG', 'Purchase Log');
|
107 |
+
define('TXT_WPSC_ORDER_LOG', 'Orders');
|
108 |
+
define('TXT_WPSC_OLDER_ORDERS', 'Older Orders');
|
109 |
+
define('TXT_WPSC_ORDER', 'Order');
|
110 |
+
define('TXT_WPSC_TOTAL_THIS_MONTH', 'Total Money Earnt this Month');
|
111 |
+
define('TXT_WPSC_MONTHLY_REPORT', 'Six Monthly Report');
|
112 |
+
define('TXT_WPSC_TOTAL_INCOME', 'Total Income');
|
113 |
+
define('TXT_WPSC_ACCEPTED_PAYMENTS', '(accepted payments)'); //text has changed slightly
|
114 |
+
define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', 'Payment Options');
|
115 |
+
define('TXT_WPSC_HELPINSTALLATION', 'Help/Upgrade');
|
116 |
+
define('TXT_WPSC_EXAMPLECATEGORY', 'Example category');
|
117 |
+
define('TXT_WPSC_EXAMPLEDETAILS', 'Example details');
|
118 |
+
define('TXT_WPSC_EXAMPLEBRAND', 'Example Brand');
|
119 |
+
define('TXT_WPSC_PRODUCTIMAGEWIDTH', 'product image width');
|
120 |
+
define('TXT_WPSC_PRODUCTIMAGEHEIGHT', 'product image height');
|
121 |
+
define('TXT_WPSC_CATEGORYIMAGEWIDTH', 'category image width');
|
122 |
+
define('TXT_WPSC_CATEGORYIMAGEHEIGHT', 'category image height');
|
123 |
+
define('TXT_WPSC_PRODUCTLISTURL', 'The location of the product list');
|
124 |
+
define('TXT_WPSC_SHOPPINGCARTURL', 'The location of the shopping cart');
|
125 |
+
define('TXT_WPSC_CHECKOUTURL', 'The location of the checkout page');
|
126 |
+
define('TXT_WPSC_TRANSACTURL', 'The location of the transaction detail page');
|
127 |
+
define('TXT_WPSC_PAYMENTGATEWAY', 'The payment gateway to use');
|
128 |
+
define('TXT_WPSC_CARTLOCATION', 'Cart Location');
|
129 |
+
define('TXT_WPSC_SHOWCATEGORYBRANDS', 'Display categories or brands or both');
|
130 |
+
define('TXT_WPSC_CURRENCYTYPE', 'Currency type');
|
131 |
+
define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Currency sign location');
|
132 |
+
define('TXT_WPSC_GSTRATE', 'the GST rate');
|
133 |
+
define('TXT_WPSC_MAXDOWNLOADS', 'the download limit');
|
134 |
+
define('TXT_WPSC_DISPLAYPNP', 'Display or hide postage and packaging');
|
135 |
+
define('TXT_WPSC_DISPLAYSPECIALS', 'Display or hide specials on the sidebar');
|
136 |
+
define('TXT_WPSC_POSTAGEAND_PACKAGING', 'Default postage and packaging');
|
137 |
+
define('TXT_WPSC_PURCHLOGEMAIL', 'Email address that purchase log is sent to');
|
138 |
+
define('TXT_WPSC_RETURNEMAIL', 'Email address that purchase reports are sent from');
|
139 |
+
define('TXT_WPSC_TERMSANDCONDITIONS', 'Checkout terms and conditions');
|
140 |
+
define('TXT_WPSC_DEFAULTBRAND', 'Default Brand');
|
141 |
+
define('TXT_WPSC_DEFAULTCATEGORY', 'Default Category');
|
142 |
+
define('TXT_WPSC_PAYPALBUSINESS', 'paypal business');
|
143 |
+
define('TXT_WPSC_PAYPALURL', 'paypal url');
|
144 |
+
define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Show Product Ratings');
|
145 |
+
define('TXT_WPSC_PRODUCTSPAGE', 'Products Page');
|
146 |
+
define('TXT_WPSC_CHECKOUT', 'Verify your Order');
|
147 |
+
define('TXT_WPSC_ENTERDETAILS', 'Enter Your Details');
|
148 |
+
define('TXT_WPSC_TRANSACTIONRESULTS', 'Transaction Results');
|
149 |
+
define('TXT_WPSC_SELECTACATEGORY', 'Select a Category');
|
150 |
+
define('TXT_WPSC_SELECTABRAND', 'Select a Brand');
|
151 |
+
define('TXT_WPSC_PRODUCTNAME', 'Product Name');
|
152 |
+
define('TXT_WPSC_PRODUCTDESCRIPTION', 'Product Description');
|
153 |
+
define('TXT_WPSC_ADDITIONALDESCRIPTION', 'Additional Description');
|
154 |
+
define('TXT_WPSC_PRICE', 'Price');
|
155 |
+
define('TXT_WPSC_TAXALREADYINCLUDED', 'Do not include tax (tax is set in shop config)'); // this text has changed and needs updating
|
156 |
+
define('TXT_WPSC_SPECIAL', 'Special / Sale Price'); // this text has changed and needs updating
|
157 |
+
define('TXT_WPSC_PRODUCT_DISPLAY', 'Product Display');
|
158 |
+
|
159 |
+
define('TXT_WPSC_PRODUCTSTOCK', 'Product Stock');
|
160 |
+
|
161 |
+
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.');
|
162 |
+
define('TXT_WPSC_LIMITED_STOCK', 'Limited Stock');
|
163 |
+
|
164 |
+
define('TXT_WPSC_CATEGORY', 'Category');
|
165 |
+
define('TXT_WPSC_BRAND', 'Brand');
|
166 |
+
define('TXT_WPSC_PRODUCT_VARS', 'Product Variations');
|
167 |
+
define('TXT_WPSC_ADD_VAR', 'Add Variation Set');
|
168 |
+
define('TXT_WPSC_EDIT_VAR', 'Edit Variation Set');
|
169 |
+
define('TXT_WPSC_SELECTAVARIATION', 'Select a Variation');
|
170 |
+
define('TXT_WPSC_NEW_VARIATION', 'Create a new Variation');
|
171 |
+
|
172 |
+
define('TXT_WPSC_PRODUCTATT', 'Product Attachments');
|
173 |
+
define('TXT_WPSC_DOWNLOADABLEPRODUCT', 'Upload File');
|
174 |
+
define('TXT_WPSC_FILETOBEPRODUCT', 'Note: if this is filled in, the file uploaded will be the product to be purchased.');
|
175 |
+
define('TXT_WPSC_RESIZEIMAGE', 'Resize Thumbnail');
|
176 |
+
define('TXT_WPSC_DONOTRESIZEIMAGE', 'do not resize thumbnail.');
|
177 |
+
// define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'use default height and width');
|
178 |
+
// define('TXT_WPSC_USE', 'use');
|
179 |
+
// define('TXT_WPSC_PXHEIGHTBY', 'px height by');
|
180 |
+
// define('TXT_WPSC_PXWIDTH', 'px width.');
|
181 |
+
|
182 |
+
// pe.{
|
183 |
+
//define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'use default height and width');
|
184 |
+
// }.pe
|
185 |
+
define('TXT_WPSC_SEPARATETHUMBNAIL', 'use separate thumbnail'); // Needs Translation
|
186 |
+
define('TXT_WPSC_USE', 'use'); // Needs Translation
|
187 |
+
// pe.{
|
188 |
+
define('TXT_WPSC_USEDEFAULTSIZE', 'use default size'); // Needs Translation
|
189 |
+
define('TXT_WPSC_USESPECIFICSIZE', 'use specific size'); // Needs Translation
|
190 |
+
define('TXT_WPSC_PXHEIGHT', 'px height'); // Needs Translation
|
191 |
+
define('TXT_WPSC_PXWIDTH', 'px width'); // Needs Translation
|
192 |
+
// }.pe
|
193 |
+
|
194 |
+
|
195 |
+
define('TXT_WPSC_UPLOADNEWIMAGE', 'Replace Image');
|
196 |
+
define('TXT_WPSC_DELETEIMAGE', 'Delete Image');
|
197 |
+
define('TXT_WPSC_EDIT', 'Edit');
|
198 |
+
define('TXT_WPSC_DELETE', 'Delete');
|
199 |
+
define('TXT_WPSC_REMOVE', 'Remove');
|
200 |
+
define('TXT_WPSC_NAME', 'Name');
|
201 |
+
define('TXT_WPSC_TYPE', 'Type');
|
202 |
+
define('TXT_WPSC_MANDATORY', 'Mandatory');
|
203 |
+
define('TXT_WPSC_DISPLAY_IN_LOG', 'Display<br /> in Log');
|
204 |
+
define('TXT_WPSC_DESCRIPTION', 'Description');
|
205 |
+
define('TXT_WPSC_CATEGORY_PARENT', 'Category Parent');
|
206 |
+
define('TXT_WPSC_IMAGE', 'Image');
|
207 |
+
define('TXT_WPSC_HEIGHT', 'Height');
|
208 |
+
define('TXT_WPSC_WIDTH', 'Width');
|
209 |
+
define('TXT_WPSC_PLEASEENTERAVALID', 'Please enter a valid');
|
210 |
+
define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Please enter a valid name');
|
211 |
+
define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Please enter a valid surname');
|
212 |
+
define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Please enter a valid email address');
|
213 |
+
define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Please enter a valid address');
|
214 |
+
define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Please enter a valid phone number');
|
215 |
+
define('TXT_WPSC_TERMSANDCONDITIONS', 'You have not agreed to the terms and conditions');
|
216 |
+
define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', 'There is nothing in your shopping cart');
|
217 |
+
define('TXT_WPSC_SPECIALS', 'Specials');
|
218 |
+
define('TXT_WPSC_BUY', 'Buy');
|
219 |
+
define('TXT_WPSC_SHOPPINGCART', 'Shopping Cart');
|
220 |
+
define('TXT_WPSC_NUMBEROFITEMS', 'Number of items');
|
221 |
+
define('TXT_WPSC_NOMOREAVAILABLE', 'This Product is out of stock.');
|
222 |
+
define('TXT_WPSC_EMPTYYOURCART', 'Empty your cart');
|
223 |
+
define('TXT_WPSC_GOTOCHECKOUT', 'Go to Checkout');
|
224 |
+
define('TXT_WPSC_CONTINUESHOPPING', 'Continue shopping');
|
225 |
+
define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', 'Your shopping cart is empty');
|
226 |
+
define('TXT_WPSC_VISITTHESHOP', 'Visit the shop');
|
227 |
+
define('TXT_WPSC_PAGES', 'Pages');
|
228 |
+
define('TXT_WPSC_OUTOF', 'Out of');
|
229 |
+
define('TXT_WPSC_VOTES', 'votes.');
|
230 |
+
define('TXT_WPSC_CLICKSTARSTORATE', 'Click stars to rate');
|
231 |
+
define('TXT_WPSC_AVERAGERATINGOF', 'Average rating of');
|
232 |
+
define('TXT_WPSC_YOURVOTE', 'Your vote');
|
233 |
+
define('TXT_WPSC_AVERAGEVOTE', 'Average vote');
|
234 |
+
define('TXT_WPSC_YOUHAVEVOTED', 'You have voted');
|
235 |
+
define('TXT_WPSC_NOVOTES', 'No Votes');
|
236 |
+
define('TXT_WPSC_1VOTE', '1 Vote');
|
237 |
+
define('TXT_WPSC_VOTES2', 'Votes');
|
238 |
+
define('TXT_WPSC_PERSONGIVEN', 'person has given this image');
|
239 |
+
define('TXT_WPSC_PERSONGIVEN2', 'stars.');
|
240 |
+
define('TXT_WPSC_PEOPLEGIVEN', 'people have given this image');
|
241 |
+
define('TXT_WPSC_PEOPLEGIVEN2', 'stars.');
|
242 |
+
define('TXT_WPSC_ITEMHASBEENADDED', 'The item has been added');
|
243 |
+
define('TXT_WPSC_ITEMHASNOTBEENADDED', 'The item has not been added');
|
244 |
+
define('TXT_WPSC_ADDNEWCATEGORY', 'Add New Category');
|
245 |
+
define('TXT_WPSC_SUBMIT', 'Submit');
|
246 |
+
define('TXT_WPSC_SELECTAVALIDCATEGORY', 'Please select a valid Category');
|
247 |
+
define('TXT_WPSC_PRODUCTNAME', 'Product Name');
|
248 |
+
define('TXT_WPSC_PRODUCTDESCRIPTION', 'Product Description');
|
249 |
+
define('TXT_WPSC_ADDNEWPRODUCT', 'Add Product');
|
250 |
+
define('TXT_WPSC_PRODUCTQUANTITY', 'Productquantity');
|
251 |
+
define('TXT_WPSC_PRODUCTIMAGE', 'Product Image');
|
252 |
+
define('TXT_WPSC_PRODUCTPRICE', 'Product Price');
|
253 |
+
define('TXT_WPSC_NOTAX', 'No tax');
|
254 |
+
define('TXT_WPSC_ABOUT', 'About');
|
255 |
+
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 />');
|
256 |
+
define('TXT_WPSC_CONTACTDETAILS', 'Please enter your contact details:');
|
257 |
+
define('TXT_WPSC_CREDITCARDHANDY', 'Note, Once you press submit, you will need to have your Credit card handy.');
|
258 |
+
define('TXT_WPSC_ASTERISK', 'Fields marked with an asterisk must be filled in.');
|
259 |
+
define('TXT_WPSC_FIRSTNAME', 'First Name');
|
260 |
+
define('TXT_WPSC_LASTNAME', 'Last Name');
|
261 |
+
define('TXT_WPSC_EMAIL', 'Email');
|
262 |
+
define('TXT_WPSC_ADDRESS', 'Address');
|
263 |
+
define('TXT_WPSC_ADDRESS1', 'Address 1');
|
264 |
+
define('TXT_WPSC_ADDRESS2', 'Address 2');
|
265 |
+
define('TXT_WPSC_CITY', 'City');
|
266 |
+
define('TXT_WPSC_STATE', 'State');
|
267 |
+
define('TXT_WPSC_COUNTRY', 'Country');
|
268 |
+
define('TXT_WPSC_PHONE', 'Phone');
|
269 |
+
define('TXT_WPSC_POSTAL_CODE', 'Postal Code');
|
270 |
+
define('TXT_WPSC_TERMS1', 'I agree to The ');
|
271 |
+
define('TXT_WPSC_TERMS2', 'Terms and Conditions');
|
272 |
+
|
273 |
+
|
274 |
+
define('TXT_WPSC_TEXT', 'Text');
|
275 |
+
define('TXT_WPSC_TEXTAREA', 'Textarea');
|
276 |
+
define('TXT_WPSC_HEADING', 'Heading');
|
277 |
+
|
278 |
+
define('TXT_WPSC_MAKEPURCHASE', 'Make Purchase');
|
279 |
+
define('TXT_WPSC_BUYPRODUCTS', 'Please buy some products before using this page');
|
280 |
+
define('TXT_WPSC_BRANDHASBEENEDITED', 'The brand has been edited.');
|
281 |
+
define('TXT_WPSC_SURETODELETEPRODUCT', 'Are you sure you want to delete this product?');
|
282 |
+
define('TXT_WPSC_ADDBRAND', 'Add Brand');
|
283 |
+
define('TXT_WPSC_DISPLAYBRANDS', 'Display Brands');
|
284 |
+
define('TXT_WPSC_EDITBRAND', 'Edit Brand');
|
285 |
+
define('TXT_WPSC_ADD', 'Add');
|
286 |
+
define('TXT_WPSC_ADD_NEW_FORM', 'Add New Form Field');
|
287 |
+
define('TXT_WPSC_SAVE_CHANGES', 'Save Changes');
|
288 |
+
|
289 |
+
define('TXT_WPSC_CATEGORYHASBEENEDITED', 'The category has been edited.');
|
290 |
+
define('TXT_WPSC_DISPLAYCATEGORIES', 'Display Categories');
|
291 |
+
define('TXT_WPSC_ADDCATEGORY', 'Add Category');
|
292 |
+
define('TXT_WPSC_EDITCATEGORY', 'Edit Category');
|
293 |
+
define('TXT_WPSC_ALLCATEGORIES', 'All Categories');
|
294 |
+
|
295 |
+
define('TXT_WPSC_DISPLAYVARIATIONS', 'Display Variations');
|
296 |
+
define('TXT_WPSC_ADDVARIATION', 'Add Variation Set');
|
297 |
+
define('TXT_WPSC_EDITVARIATION', 'Edit Variation Set');
|
298 |
+
define('TXT_WPSC_VARIATIONHASBEENEDITED', 'The variation has been edited.');
|
299 |
+
define('TXT_WPSC_VARIATION_VALUES', 'Variation Values');
|
300 |
+
define('TXT_WPSC_REMOVE_SET', 'Remove This Set'); //this needs to be translated
|
301 |
+
|
302 |
+
define('TXT_WPSC_SELECT_PARENT', 'Select Parent');
|
303 |
+
define('TXT_WPSC_PRODUCTHASBEENEDITED', 'The product has been edited.');
|
304 |
+
define('TXT_WPSC_ADDPRODUCT', 'Add Product');
|
305 |
+
define('TXT_WPSC_DISPLAYPRODUCTS', 'Display Products');
|
306 |
+
define('TXT_WPSC_PLEASESELECTACATEGORY', 'Please Select a Category');
|
307 |
+
define('TXT_WPSC_STOCK', 'Stock');
|
308 |
+
define('TXT_WPSC_PNP', 'PnP');
|
309 |
+
define('TXT_WPSC_EDITITEM', 'Edit Item');
|
310 |
+
define('TXT_WPSC_PRODUCTDETAILS', 'Product Details');
|
311 |
+
define('TXT_WPSC_SELECT_PRODUCT', 'Select an Existing Product');
|
312 |
+
define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', '(enter in your product details here)');
|
313 |
+
define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', 'Additional Product Description');
|
314 |
+
define('TXT_WPSC_ADDITEM', 'Add Item');
|
315 |
+
define('TXT_WPSC_CHOOSEACATEGORY', 'Choose a Category');
|
316 |
+
define('TXT_WPSC_CHOOSEABRAND', 'Choose a Brand');
|
317 |
+
define('TXT_WPSC_USETHEACTUALIMAGE', 'use the actual image. No resize.');
|
318 |
+
define('TXT_WPSC_DISPLAYPURCHASES', 'Purchase Log');
|
319 |
+
define('TXT_WPSC_ID', 'ID');
|
320 |
+
define('TXT_WPSC_TRANSACTIONSTATUS', 'Transaction Status');
|
321 |
+
define('TXT_WPSC_DATE', 'Date');
|
322 |
+
define('TXT_WPSC_VIEWDETAILS', 'Details'); //Text has changed - translation is needed
|
323 |
+
define('TXT_WPSC_STATUS', 'Status');
|
324 |
+
define('TXT_WPSC_SUCCESSFUL', 'Successful');
|
325 |
+
define('TXT_WPSC_FAILED', 'Failed');
|
326 |
+
define('TXT_WPSC_GST', 'GST');
|
327 |
+
define('TXT_WPSC_PP', 'P&P');
|
328 |
+
define('TXT_WPSC_TOTAL', 'Total');
|
329 |
+
define('TXT_WPSC_FINALTOTAL', 'Final Total');
|
330 |
+
define('TXT_WPSC_CUSTOMERDETAILS', 'Customer Details');
|
331 |
+
define('TXT_WPSC_USERSCARTWASEMPTY', 'This users cart was empty');
|
332 |
+
define('TXT_WPSC_GOBACK', 'Go Back');
|
333 |
+
define('TXT_WPSC_THANKSAPPLIED', 'Thanks, your changes have been applied.');
|
334 |
+
define('TXT_WPSC_FORM_FIELDS', 'Checkout Options');
|
335 |
+
define('TXT_WPSC_PAYMENTGATEWAY2', 'Payment Gateway');
|
336 |
+
define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', 'Please Select A Payment Gateway');
|
337 |
+
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).');
|
338 |
+
define('TXT_WPSC_URLSETTINGS', 'URL Settings');
|
339 |
+
define('TXT_WPSC_PRODUCTLISTURL', 'Product List URL');
|
340 |
+
define('TXT_WPSC_SHOPPINGCARTURL', 'Shopping Cart URL');
|
341 |
+
define('TXT_WPSC_CHECKOUTURL', 'Checkout URL');
|
342 |
+
define('TXT_WPSC_TRANSACTIONDETAILSURL', 'Transaction Details URL');
|
343 |
+
define('TXT_WPSC_PRESENTATIONSETTINGS', 'Presentation Settings');
|
344 |
+
define('TXT_WPSC_CARTLOCATION', 'Cart Location');
|
345 |
+
define('TXT_WPSC_SIDEBAR', 'Sidebar');
|
346 |
+
define('TXT_WPSC_PAGE', 'Page');
|
347 |
+
define('TXT_WPSC_WIDGET', 'Widget');
|
348 |
+
define('TXT_WPSC_NEEDTOENABLEWIDGET', 'You need to enable the widgets plugin to use this');
|
349 |
+
define('TXT_WPSC_MANUAL', 'Manual');
|
350 |
+
define('TXT_WPSC_SHOWCATEGORIESBRANDS', 'Show Categories/Brands');
|
351 |
+
define('TXT_WPSC_BOTH', 'Both');
|
352 |
+
define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', 'Default Product Thumbnail Size');
|
353 |
+
define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', 'Default Category Thumbnail Size');
|
354 |
+
define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', 'Show Postage and Packaging');
|
355 |
+
define('TXT_WPSC_YES', 'Yes');
|
356 |
+
define('TXT_WPSC_NO', 'No');
|
357 |
+
define('TXT_WPSC_SHOWSPECIALS', 'Show Specials in the Sidebar');
|
358 |
+
define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Show Product Ratings');
|
359 |
+
define('TXT_WPSC_CURRENCYSETTINGS', 'Currency Settings');
|
360 |
+
define('TXT_WPSC_GSTTAXRATE', 'GST/Tax Rate');
|
361 |
+
define('TXT_WPSC_CURRENCYTYPE', 'Currency Type');
|
362 |
+
define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Currency Sign Location');
|
363 |
+
define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', 'Default Postage & Packaging');
|
364 |
+
define('TXT_WPSC_ADMINISTRATIONSETTINGS', 'Administration Settings');
|
365 |
+
define('TXT_WPSC_MAXDOWNLOADSPERFILE', 'Max downloads per file');
|
366 |
+
define('TXT_WPSC_PURCHASELOGEMAIL', 'Purchase Log Email');
|
367 |
+
define('TXT_WPSC_REPLYEMAIL', 'Reply Email');
|
368 |
+
define('TXT_WPSC_BRANDNOCAP', 'brand');
|
369 |
+
define('TXT_WPSC_CATEGORYNOCAP', 'category');
|
370 |
+
define('TXT_WPSC_UDPATING', 'Updating');
|
371 |
+
define('TXT_WPSC_UPDATING', 'Updating');
|
372 |
+
define('TXT_WPSC_MOREDETAILS', 'More Details');
|
373 |
+
define('TXT_WPSC_ADDTOCART', 'Add To Cart');
|
374 |
+
define('TXT_WPSC_AVGCUSTREVIEW', 'Avg. Customer Rating');
|
375 |
+
define('TXT_WPSC_YOURRATING', 'Your Rating');
|
376 |
+
define('TXT_WPSC_RATING_SAVED', 'Saved');
|
377 |
+
define('TXT_WPSC_RATETHISITEM', 'Rate This item');
|
378 |
+
define('TXT_WPSC_PRODUCTSOLDOUT', 'This product has sold out.');
|
379 |
+
define('TXT_WPSC_NOITEMSINTHIS', 'There are no items in this');
|
380 |
+
define('TXT_WPSC_CATEGORYORBRAND', 'Category or Brand');
|
381 |
+
define('TXT_WPSC_PLEASECHOOSEA', 'Please choose a');
|
382 |
+
define('TXT_WPSC_PRODUCT', 'Product');
|
383 |
+
define('TXT_WPSC_QUANTITY', 'Quantity');
|
384 |
+
define('TXT_WPSC_QUANTITY_SHORT', 'Qty'); //translation needed
|
385 |
+
define('TXT_WPSC_APPLY', 'Apply');
|
386 |
+
define('TXT_WPSC_MAKEPAYMENT', 'Make Payment');
|
387 |
+
define('TXT_WPSC_EMPTYSHOPPINGCART', 'Empty shopping cart');
|
388 |
+
define('TXT_WPSC_TOTALPRICE', 'Total Price');
|
389 |
+
define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', 'There are no items in the shopping cart');
|
390 |
+
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");
|
391 |
+
define('TXT_WPSC_EMAILMSG2', ".\n\rThese items were ordered:\n\r\n\r");
|
392 |
+
define('TXT_WPSC_CLICKTODOWNLOAD', 'Click here to download');
|
393 |
+
define('TXT_WPSC_DOWNLOAD', 'Download');
|
394 |
+
define('TXT_WPSC_YOURTRANSACTIONID', 'Your Transaction ID');
|
395 |
+
define('TXT_WPSC_TRANSACTIONID', 'Transaction ID');
|
396 |
+
define('TXT_WPSC_PURCHASERECEIPT', 'Purchase Receipt');
|
397 |
+
define('TXT_WPSC_PURCHASEREPORT', 'Purchase Report');
|
398 |
+
define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', 'The Transaction was successful');
|
399 |
+
define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', 'The Transaction was not successful');
|
400 |
+
define('TXT_WPSC_GOBACKTOCHECKOUT', 'Go back to the checkout');
|
401 |
+
define('TXT_WPSC_SPECIALPRICE', 'Special Price');
|
402 |
+
|
403 |
+
define('TXT_WPSC_INSTRUCTIONS', '
|
404 |
+
Install Steps
|
405 |
+
<ul class=\'installation\'>
|
406 |
+
<li>Place contents of zip file in the wp-content/plugins directory.</li>
|
407 |
+
<li>Activate the plugin from the wordpress plugin page</li>
|
408 |
+
<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>
|
409 |
+
<li>Create some Categories and Products using the Categories and Products pages</li>
|
410 |
+
</ul>
|
411 |
+
|
412 |
+
<p>If you are upgrading from Previous Version we suggest you deactivate and reactivate the plugin.</p>
|
413 |
+
|
414 |
+
<h2>Upgrades and Modules</h2>
|
415 |
+
|
416 |
+
<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>
|
417 |
+
|
418 |
+
<ul class=\'installation\'>
|
419 |
+
<li>Gold</li>
|
420 |
+
<li>DropShop</li>
|
421 |
+
<li>Audio Player</li>
|
422 |
+
<li>GridView</li>
|
423 |
+
</ul>
|
424 |
+
|
425 |
+
<h2>Wishlist</h2>
|
426 |
+
<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>.
|
427 |
+
|
428 |
+
<h2>Customisation and Tips</h2>
|
429 |
+
<p><strong>Tax</strong><br />If required you can enter in Tax rates on the Options page in the "e-Commerce" tab.</p>
|
430 |
+
<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>
|
431 |
+
<p><strong>Hiding pages</strong><br />
|
432 |
+
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 />
|
433 |
+
<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 />
|
434 |
+
<br />"<?php wp_list_pages(\'title_li=<h2>Pages</h2>\' ); ?>"<br />
|
435 |
+
and replace with<br />
|
436 |
+
"<?php wp_list_pages(\'title_li=<h2>Pages<h2>&exclude=3,4,5\'); ?>"<br />
|
437 |
+
<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>
|
438 |
+
<p><strong>Image Functions</strong><br />
|
439 |
+
If your server does not have the PHP image functions installed, you will not be able to resize images once they are uploaded</p>
|
440 |
+
<p><strong>Permalinks</strong><br />
|
441 |
+
We\'re doing the best we can.
|
442 |
+
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>
|
443 |
+
<p><strong>Javascript and Ajax </strong><br />
|
444 |
+
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>
|
445 |
+
<p><strong>More on Flickr</strong><br />
|
446 |
+
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.
|
447 |
+
|
448 |
+
');
|
449 |
+
|
450 |
+
|
451 |
+
define('TXT_WPSC_SHIPPINGSETTINGS', 'Shipping Settings');
|
452 |
+
define('TXT_WPSC_BASE_LOCAL', 'Base Local Shipping');
|
453 |
+
define('TXT_WPSC_BASE_INTERNATIONAL', 'Base International Shipping');
|
454 |
+
define('TXT_WPSC_BASE_COUNTRY', 'Base Country/Region');
|
455 |
+
|
456 |
+
define('TXT_WPSC_SHIPPING_DETAILS', 'Additional Shipping Costs'); // this needs updating
|
457 |
+
define('TXT_WPSC_LOCAL_PNP', 'Local Shipping Fee'); // this needs updating
|
458 |
+
define('TXT_WPSC_INTERNATIONAL_PNP', 'International Shipping Fee'); // this needs updating
|
459 |
+
define('TXT_WPSC_SHIPPING_NOTE', 'Note: charged only once per product regardless of quantity ordered.');
|
460 |
+
define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Country Form Field');
|
461 |
+
define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the country)');
|
462 |
+
|
463 |
+
define('TXT_WPSC_SHIPPING', 'Shipping');
|
464 |
+
define('TXT_WPSC_EMAIL_FORM_FIELD', 'Email Form Field');
|
465 |
+
define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the email address)');
|
466 |
+
|
467 |
+
|
468 |
+
define('TXT_WPSC_PRODUCTIMAGES', 'Product Images');
|
469 |
+
define('TXT_WPSC_PRODUCTDOWNLOAD', 'Product Download');
|
470 |
+
define('TXT_WPSC_SHOWTHUMBNAILS', 'Show Thumbnails');
|
471 |
+
define('TXT_WPSC_ADD_ADDITIONAL_IMAGE', 'Add Additional Image');
|
472 |
+
define('TXT_WPSC_DELETE_IMAGE', 'Delete Image');
|
473 |
+
define('TXT_WPSC_GOLD_OPTIONS', 'Gold Cart Options');
|
474 |
+
define('TXT_WPSC_ACTIVATE_SETTINGS', 'Activation Settings: Gold Cart');
|
475 |
+
define('TXT_WPSC_ACTIVATION_KEY', 'Activation Key');
|
476 |
+
define('TXT_WPSC_THANKSACTIVATED', 'Thanks, the gold shopping cart has been activated.');
|
477 |
+
define('TXT_WPSC_NOTACTIVATED', 'Sorry, the API key was incorrect.');
|
478 |
+
define('TXT_WPSC_DEFAULT', 'Default');
|
479 |
+
define('TXT_WPSC_LIST', 'List');
|
480 |
+
define('TXT_WPSC_VISIBLE', 'Visible');
|
481 |
+
define('TXT_WPSC_DELETE_PRODUCT', 'Delete Product');
|
482 |
+
define('TXT_WPSC_ADDITIONAL_IMAGE', 'Additional Image');
|
483 |
+
define('TXT_WPSC_GATEWAY_OPTIONS', 'Gateway Options');
|
484 |
+
define('TXT_WPSC_SHIPPING_COUNTRY', 'Choose your shipping country');
|
485 |
+
define('TXT_WPSC_CONFIRM_TOTALS', 'Confirm your totals before making the payment:');
|
486 |
+
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...');
|
487 |
+
define('TXT_WPSC_PAYMENT_OPTIONS', 'Payment Options');
|
488 |
+
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.');
|
489 |
+
|
490 |
+
define('TXT_WPSC_DEFAULT_GATEWAY_ONLY', ' only');
|
491 |
+
define('TXT_WPSC_PLUS_MANUAL_PAYMENT', ' plus manual payment option');
|
492 |
+
define('TXT_WPSC_PAYMENT_METHOD', 'Payment Method');
|
493 |
+
define('TXT_WPSC_PAY_USING', 'Pay using');
|
494 |
+
define('TXT_WPSC_PAY_MANUALLY', 'Pay by Cheque/Bank Deposit');
|
495 |
+
define('TXT_WPSC_CREDIT_CARD', 'Credit Card');
|
496 |
+
define('TXT_WPSC_ADJUSTABLE_QUANTITY', 'Show quantity form in list view');
|
497 |
+
define('TXT_WPSC_RSS_FEED_HEADER', 'Subscribe to your orders');
|
498 |
+
define('TXT_WPSC_RSS_FEED_LINK', 'Subscribe to an RSS feed');
|
499 |
+
define('TXT_WPSC_RSS_FEED_TEXT', 'of your orders');
|
500 |
+
define('TXT_WPSC_INITIAL_SETUP', 'Created default options.');
|
501 |
+
define('TXT_WPSC_PLUGIN_NEWS_HEADER', 'Plugin News');
|
502 |
+
|
503 |
+
|
504 |
+
define('TXT_WPSC_PLUGIN_NEWS', '
|
505 |
+
|
506 |
+
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/>
|
507 |
+
|
508 |
+
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/>
|
509 |
+
|
510 |
+
<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.
|
511 |
+
|
512 |
+
');
|
513 |
+
|
514 |
+
|
515 |
+
define('TXT_WPSC_POWERED_BY', 'This shop is powered by ');
|
516 |
+
|
517 |
+
define('TXT_WPSC_NO_PURCHASES', 'There have not been any purchases yet.');
|
518 |
+
|
519 |
+
|
520 |
+
define('TXT_WPSC_DELIVERY_ADDRESS', 'Delivery Address');
|
521 |
+
define('TXT_WPSC_DELIVERY_CITY', 'Delivery City');
|
522 |
+
define('TXT_WPSC_DELIVERY_COUNTRY', 'Delivery Country');
|
523 |
+
define('TXT_WPSC_MP3_SETTINGS', 'MP3 Settings');
|
524 |
+
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.');
|
525 |
+
define('TXT_WPSC_SOX_PATH', 'SoX Path');
|
526 |
+
define('TXT_WPSC_PREVIEW', 'Preview');
|
527 |
+
define('TXT_WPSC_DOWNLOAD_CSV', 'Download CSV');
|
528 |
+
define('TXT_WPSC_PREVIEW_FILE', 'Preview File');
|
529 |
+
define('TXT_WPSC_NEW_PREVIEW_FILE', 'New Preview File');
|
530 |
+
define('TXT_WPSC_REPLACE_PRODUCT', 'Replace Product');
|
531 |
+
define('TXT_WPSC_TOTALSHIPPING', 'Total Shipping');
|
532 |
+
define('TXT_WPSC_DISPLAY_FRONT_PAGE', 'Display on Front page');
|
533 |
+
define('TXT_WPSC_SEARCH_FOR', 'Search For');
|
534 |
+
define('TXT_WPSC_YOUR_SEARCH_FOR', 'Your search for');
|
535 |
+
define('TXT_WPSC_RETURNED_NO_RESULTS', 'returned no results.');
|
536 |
+
define('TXT_WPSC_POSTAGE', 'Postage');
|
537 |
+
define('TXT_WPSC_SUBTOTAL', 'Subtotal');
|
538 |
+
|
539 |
+
|
540 |
+
//everything under here needs translations, added after 19/1/2007
|
541 |
+
|
542 |
+
define('TXT_WPSC_PLEASEENTERAVALID', 'Please enter a valid');
|
543 |
+
define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Please enter your first name.');
|
544 |
+
define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Please enter your last name.');
|
545 |
+
define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Please enter a valid email address.');
|
546 |
+
define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Please complete your address.');
|
547 |
+
define('TXT_WPSC_PLEASEENTERAVALIDCITY', 'Please enter your town or city.');
|
548 |
+
define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Please enter a valid phone number.');
|
549 |
+
define('TXT_WPSC_PLEASESELECTCOUNTRY', 'Please select your country from the list.');
|
550 |
+
define('TXT_WPSC_PLEASEAGREETERMSANDCONDITIONS', 'Please select the terms and conditions option. Unfortunately we cannot process your order otherwise.');
|
551 |
+
define('TXT_WPSC_POSITION', 'Position');
|
552 |
+
|
553 |
+
define('TXT_WPSC_DELIVERY_REGION', 'Delivery Region');
|
554 |
+
|
555 |
+
|
556 |
+
define('TXT_WPSC_GENERAL_SETTINGS', 'General Settings');
|
557 |
+
define('TXT_WPSC_TAX_SETTINGS', 'Tax Settings');
|
558 |
+
define('TXT_WPSC_POSTAGE_AND_TAX', 'Postage & Tax ');
|
559 |
+
define('TXT_WPSC_GRID', 'Grid');
|
560 |
+
define('TXT_WPSC_CANT_MOVE_CATEGORY', 'You cannot move a category with subcategories.');
|
561 |
+
define('TXT_WPSC_SURETODELETECATEGORY', 'Are you sure you want to delete this category? If the category has any subcategories, they will be deleted too.');
|
562 |
+
define('TXT_WPSC_VARIATION', 'Variation');
|
563 |
+
define('TXT_WPSC_OVER_TWO_VARIATIONS', 'Variation stock and price control does not work if you have more than two variations.');
|
564 |
+
define('TXT_WPSC_PRICE_AND_STOCK_CONTROL', 'Price and Stock Control') ;
|
565 |
+
|
566 |
+
// pe.{
|
567 |
+
define('TXT_WPSC_CATSBRANDSLOCATION', 'Categories & Brands Location');
|
568 |
+
define('TXT_WPSC_DESCITEMSEPARATOR', ' : ');
|
569 |
+
define('TXT_WPSC_SEARCHITEMSEPARATOR', ' : ');
|
570 |
+
define('TXT_WPSC_SINGLE_SHIPPING_COUNTRY', 'Shipping country:');
|
571 |
+
define('TXT_WPSC_ADD_ANOTHER_VARIATION', 'Add a variation');
|
572 |
+
// }.pe
|
573 |
+
define('TXT_WPSC_PRODUCT_CATEGORIES', 'Select Categories');
|
574 |
+
define('TXT_WPSC_THANKS_DELETED', 'Thanks, the purchase log record has been deleted');
|
575 |
+
define('TXT_WPSC_PRODUCT_IMAGE_PREVIEW', 'Product image');
|
576 |
+
define('TXT_WPSC_PRODUCT_THUMBNAIL_PREVIEW', 'Product thumbnail');
|
577 |
+
define('TXT_WPSC_REMOVE_LOG', 'Remove this record from the purchase log');
|
578 |
+
define('TXT_WPSC_CATSANDBRAND', 'Categories & Brands');
|
579 |
+
define('TXT_WPSC_GOLD_DROPSHOP', 'DropShop');
|
580 |
+
define('TXT_WPSC_NEEDTOENABLEDROPSHOP', 'You need to install the Gold and DropShop extentions to use this');
|
581 |
+
define('TXT_WPSC_DRAG_ITEM_HERE', 'Drag any item here to add it to your cart.');
|
582 |
+
define('TXT_WPSC_SHOWCATEGORYTHUMBNAILS', 'Show Category Thumbnails');
|
583 |
+
define('TXT_WPSC_SHOPPING_CART', 'Shopping Cart');
|
584 |
+
define('TXT_WPSC_SHOW_SLIDING_CART', 'Show Sliding Cart');
|
585 |
+
define('TXT_WPSC_PREVIEW_FILE', 'Upload Preview');
|
586 |
+
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.');
|
587 |
+
define('TXT_WPSC_PURCHASE_NUMBER', 'Purchase No.');
|
588 |
+
define('TXT_WPSC_FILTER_ORDER', 'Filter Orders');
|
589 |
+
define('TXT_WPSC_SHOW_SEARCH', 'Show Search');
|
590 |
+
define('TXT_WPSC_LOG_CURRENT_MONTH', 'Display results from current month');
|
591 |
+
define('TXT_WPSC_LOG_PAST_THREE_MONTHS', 'Display results from past three months');
|
592 |
+
define('TXT_WPSC_LOG_ALL', 'Display all results');
|
593 |
+
define('TXT_SHOW_IMAGES_ONLY', 'Show images only');
|
594 |
+
define('TXT_WPSC_SHOW_GALLERY', 'Show Thumbnail Gallery');
|
595 |
+
define('TXT_WPSC_PLEASE_SELECT', 'Please select');
|
596 |
+
define('TXT_WPSC_TXN_ID', 'Transaction Id');
|
597 |
+
define('TXT_WPSC_SINGLE_PRODUCTTHUMBNAILSIZE', 'Single Product Image Size');
|
598 |
+
define('TXT_WPSC_RESET', 'Reset');
|
599 |
+
define('TXT_WPSC_ORDER_PENDING', 'Thank you, the order is pending, you will be sent an email once the order clears.');
|
600 |
+
define('TXT_WPSC_ORDER_FAILED', 'We\'re Sorry, your order has not been accepted, the most likely reason is that you have insufficient funds.');
|
601 |
+
// Adrian - added for the options I added
|
602 |
+
define('TXT_WPSC_SHOW_CATEGORY_COUNT', 'Show Product Count per Category');
|
603 |
+
define('TXT_WPSC_CATSPRODS_DISPLAY_TYPE', 'Categories/Products Display');
|
604 |
+
define('TXT_WPSC_CATSPRODS_TYPE_CATONLY', 'Categories Only (All products displayed)');
|
605 |
+
define('TXT_WPSC_CATSPRODS_TYPE_SLIDEPRODS', 'Sliding Categories (1 product per page)');
|
606 |
+
// Adrian - END new added options
|
607 |
+
define('TXT_WPSC_ORDER_DETAILS', 'Order Details');
|
608 |
+
define('TXT_WPSC_SAVE_PROFILE', 'Save Profile');
|
609 |
+
define('TXT_WPSC_USERACCOUNTURL', 'User Account URL');
|
610 |
+
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.');
|
611 |
+
define('TXT_WPSC_YOUR_ACCOUNT', 'Your Account');
|
612 |
+
|
613 |
+
define('TXT_WPSC_YOU_JUST_ADDED', 'You just added "[product_name]" to your cart.');
|
614 |
+
define('TXT_WPSC_SORRY_NONE_LEFT', 'Sorry, but the item "[product_name]" is out of stock.');
|
615 |
+
|
616 |
+
define('TXT_WPSC_CONTINUE_SHOPPING', 'Continue Shopping');
|
617 |
+
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.');
|
618 |
+
define('TXT_WPSC_DISPLAY_FANCY_NOTIFICATIONS', 'Display Fancy Purchase Notifications');
|
619 |
+
define('TXT_WPSC_IF_USER_CHECKOUT', 'If you have a user account, Please ');
|
620 |
+
define('TXT_WPSC_LOG_IN', 'log in.');
|
621 |
+
define('TXT_WPSC_IS_DONATION', 'Is the product a donation?');
|
622 |
+
define('TXT_WPSC_DONATION', 'Donation');
|
623 |
+
define('TXT_WPSC_DONATION_LC', 'donation');
|
624 |
+
define('TXT_WPSC_DONATION_SHIPPING', 'No shipping for donations');
|
625 |
+
define('TXT_WPSC_DOWNLOADABLEPRODUCT_URL', 'Product Filename');
|
626 |
+
define('TXT_WPSC_FILETOBEPRODUCTURL', 'Note: Upload your file to the e-commerce files directory and enter the filename here.');
|
627 |
+
define('TXT_WPSC_DONATIONS', 'Donations');
|
628 |
+
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.');
|
629 |
+
define('TXT_WPSC_RESET_API', 'Reset API key');
|
630 |
+
define('TXT_WPSC_PRODUCTS_PER_PAGE', 'Products per Page');
|
631 |
+
define('TXT_WPSC_OPTION_PRODUCTS_PER_PAGE', 'number of products to show per page');
|
632 |
+
define('TXT_WPSC_PAGE_NUMBER_POSITION', 'Page Number position');
|
633 |
+
|
634 |
+
|
635 |
+
define('TXT_WPSC_YOUR_BILLING_CONTACT_DETAILS', '1. Your billing/contact details');
|
636 |
+
define('TXT_WPSC_DELIVER_TO_A_FRIEND', '2. Shipping details');
|
637 |
+
define('TXT_WPSC_E_COMMERCE', 'e-Commerce');
|
638 |
+
define('TXT_WPSC_THANKS_SAVED', 'Thanks, your changes have been saved.');
|
639 |
+
define('TXT_WPSC_REGISTER', 'Register');
|
640 |
+
define('TXT_WPSC_TAX', 'Tax');
|
641 |
+
|
642 |
+
define('TXT_WPSC_USE_SHIPPING', 'Use Shipping');
|
643 |
+
define('TXT_WPSC_USE_SHIPPING_DESCRIPTION', 'If you are only selling digital downloads, you should select no to disable the shipping on your site.');
|
644 |
+
|
645 |
+
define('TXT_WPSC_PAGESETTINGS', 'Pagination settings');
|
646 |
+
define('TXT_WPSC_USE_PAGINATION', 'Use Pagination');
|
647 |
+
define('TXT_WPSC_ADD_PRODUCT', 'Add Product');
|
648 |
+
define('TXT_WPSC_EDIT_PRODUCT', 'Edit Product');
|
649 |
+
define('TXT_WPSC_UPDATE_PAGE_URLS', 'Update Page URLs');
|
650 |
+
define('TXT_WPSC_VARIATIONS_AND_SPECIALS_DONT_MIX', 'Note: You cannot currently set a special price on a product with variations');
|
651 |
+
define('TXT_WPSC_PRODUCT_SPECIALS', 'Product Specials');
|
652 |
+
define('TXT_WPSC_SHOW_SHARE_THIS', 'Show Share This (Social Bookmarks)');
|
653 |
+
define('TXT_WPSC_SHOW_NO_PRODUCT', 'No Product');
|
654 |
+
define('TXT_WPSC_CHOOSE_DOWNLOADABLE_PRODUCT', 'Choose a downloadable file for this product:');
|
655 |
+
define('TXT_WPSC_PLEASECHOOSE', 'Please Choose');
|
656 |
+
|
657 |
+
define('TXT_WPSC_VARIATION_CONTROL', 'Variation Control');
|
658 |
+
define('TXT_WPSC_VARIATION_GRID_CONTROL_SINGLE', ':variation1: Control');
|
659 |
+
define('TXT_WPSC_VARIATION_GRID_CONTROL_PAIR', ':variation1: and :variation2: Control');
|
660 |
+
define('TXT_WPSC_VIEW_PREVIEW_CLIP', 'View Preview Clip');
|
661 |
+
define('TXT_WPSC_REQUIRE_REGISTRATION', 'Users must register before checking out');
|
662 |
+
define('TXT_WPSC_PLEASE_LOGIN', 'Please login or signup above to make your purchase');
|
663 |
+
define('TXT_WPSC_IF_JUST_REGISTERED', 'If you have just registered, please check your email and login before you make your purchase');
|
664 |
+
define('TXT_WPSC_SELECT_THEME', 'Select Theme');
|
665 |
+
define('TXT_WPSC_NEW_ORDER_PENDING_SUBJECT', 'New pending order');
|
666 |
+
define('TXT_WPSC_NEW_ORDER_PENDING_BODY', "There is a new order awaiting processing: \n\r ");
|
667 |
+
define('TXT_WPSC_NO_SHIPPING', "Does not use Shipping");
|
668 |
+
define('TXT_WPSC_DEFAULT_MEMBERS_ONLY', "This page is for members only, you must log in to access this page");
|
669 |
+
define('TXT_WPSC_MEMBERSHIP_CONTROL', "Membership Control");
|
670 |
+
define('TXT_WPSC_PRODUCT_MEMBER_STATUS', "Is this product a membership?");
|
671 |
+
define('TXT_WPSC_PRODUCT_MEMBERSHIP_LENGTH', "Membership Length");
|
672 |
+
define('TXT_WPSC_DAYS', "Days");
|
673 |
+
define('TXT_WPSC_MONTHS', "Months");
|
674 |
+
define('TXT_WPSC_YEARS', "Years");
|
675 |
+
define('TXT_WPSC_MEMBERS_SUBSCRIPTION_ENDED', "Your subscription has ended.");
|
676 |
+
define('TXT_WPSC_ACTIVATE_SETTINGS_MEMBERS', 'Activation Settings: Members Module');
|
677 |
+
define('TXT_WPSC_GOLD_CART', 'Gold Cart');
|
678 |
+
define('TXT_WPSC_SHOW_CATEGORY_DESCRIPTION', 'Show Category Description');
|
679 |
+
define('TXT_WPSC_ALSO_BOUGHT', 'People who bought this item also bought');
|
680 |
+
define('TXT_WPSC_MARKETING_SETTINGS', 'Marketing Settings');
|
681 |
+
define('TXT_WPSC_OPTION_ALSO_BOUGHT', 'Display Cross Sales');
|
682 |
+
define('TXT_WPSC_MARKETING', 'Marketing');
|
683 |
+
define('TXT_WPSC_DISPLAYCOUPONS', 'Coupons');
|
684 |
+
define('TXT_WPSC_ADD_COUPON', 'Add Coupon');
|
685 |
+
define('TXT_WPSC_COUPON', 'Coupon');
|
686 |
+
define('TXT_WPSC_ADDCOUPONS', 'Add Coupon');
|
687 |
+
define('TXT_WPSC_COUPON_CODE', 'Coupon Code');
|
688 |
+
define('TXT_WPSC_DISCOUNT', 'Discount');
|
689 |
+
define('TXT_WPSC_START', 'Start');
|
690 |
+
define('TXT_WPSC_EXPIRY', 'Expiry');
|
691 |
+
define('TXT_WPSC_USE_ONCE', 'Use Once');
|
692 |
+
define('TXT_WPSC_ACTIVE', 'Active');
|
693 |
+
define('TXT_WPSC_COUPONHASBEENADDED', 'Thanks, the coupon has been added.');
|
694 |
+
define('TXT_WPSC_COUPON', 'Coupon');
|
695 |
+
define('TXT_WPSC_COUPON_DOESNT_EXIST', 'That coupon has expired or does not exist.');
|
696 |
+
define('TXT_WPSC_PRODUCT_TAGS', 'Product Tags');
|
697 |
+
|
698 |
+
define('TXT_WPSC_DROPSHOPDISPLAY', 'DropShop Display');
|
699 |
+
define('TXT_WPSC_HIDEADDTOCARTBUTTON', 'Hide "Add to cart" button');
|
700 |
+
|
701 |
+
define('TXT_WPSC_PRODUCT_TAGS', 'Product Tags');
|
702 |
+
|
703 |
+
define('TXT_WPSC_SHOW_DROPSHOP_ALL', 'Show Dropshop on every page');
|
704 |
+
define('TXT_WPSC_SHOW_DROPSHOP_PRODUCT', 'Show Dropshop only on product page');
|
705 |
+
define('TXT_WPSC_PRICEAFTERDISCOUNT', 'Price after discount');
|
706 |
+
define('TXT_WPSC_ECOM_NEWS', 'e-Commerce News');
|
707 |
+
define('TXT_WPSC_SAVE_PRODUCT_ORDER', 'Save Product Order');
|
708 |
+
|
709 |
+
define('TXT_WPSC_ECOMMERCE_SUBSCRIBERS', 'e-Commerce Subscribers');
|
710 |
+
define('TXT_WPSC_USERID', 'User ID');
|
711 |
+
define('TXT_WPSC_REGISTEREDDATE', 'Registered Date');
|
712 |
+
define('TXT_WPSC_SUSPEND', 'Suspend');
|
713 |
+
define('TXT_WPSC_ACTIVATE', 'Activate');
|
714 |
+
|
715 |
+
|
716 |
+
define('TXT_WPSC_DROPSHOP_LIGHT', 'Use light Dropshop style');
|
717 |
+
define('TXT_WPSC_DROPSHOP_DARK', 'Use dark Dropshop style');
|
718 |
+
|
719 |
+
|
720 |
+
define('TXT_WPSC_MANUAL_PAYMENT', 'Manual Payment');
|
721 |
+
define('TXT_WPSC_CREDIT_CARD', 'Credit Card');
|
722 |
+
define('TXT_WPSC_CREDIT_CARD_AND_MANUAL_PAYMENT', 'Manual Payment and Credit Card');
|
723 |
+
define('TXT_WPSC_PAYMENT_INSTRUCTIONS', 'Enter the manual payment instructions that you wish to display');
|
724 |
+
|
725 |
+
define('TXT_WPSC_SHOWALL', "Show All");
|
726 |
+
define('TXT_WPSC_PRICE_RANGE', "Price Range");
|
727 |
+
define('TXT_WPSC_GOOGLE_RISK_AVS', "Address verification failed");
|
728 |
+
define('TXT_WPSC_GOOGLE_RISK_CVN', "Credit card verification failed");
|
729 |
+
define('TXT_WPSC_GOOGLE_RISK_BOTH', "Credit card and Address verification failed");
|
730 |
+
define('TXT_WPSC_GOOGLE_RISK', 'Google Risk');
|
731 |
+
define('TXT_WPSC_CANCEL_ORDER', 'Cancel this order');
|
732 |
+
define('TXT_WPSC_FIRST_NAME', 'First Name');
|
733 |
+
define('TXT_WPSC_LAST_NAME', 'Last Name');
|
734 |
+
define('TXT_WPSC_DELIVERY_FIRST_NAME', 'Delivery First Name');
|
735 |
+
define('TXT_WPSC_DELIVERY_LAST_NAME', 'Delivery Last Name');
|
736 |
+
define('TXT_WPSC_DELIVERY_STATE', 'Delivery State');
|
737 |
+
define('TXT_WPSC_SHIPWIREEMAIL', 'ShipWire Email');
|
738 |
+
define('TXT_WPSC_SHIPWIREPASSWORD', 'ShipWire Password');
|
739 |
+
define('TXT_WPSC_SHIPWIRESETTINGS', 'ShipWire Settings');
|
740 |
+
define('TXT_WPSC_NO_DOWNLOADABLES', 'You have not purchased any downloadable products yet.');
|
741 |
+
define('TXT_DISPLAY_VARIATIONS', 'Display Variations');
|
742 |
+
|
743 |
+
|
744 |
+
define('TXT_WPSC_NONAME', 'No Name');
|
745 |
+
define('TXT_WPSC_WEIGHT', 'Weight');
|
746 |
+
define('TXT_WPSC_LOG_TRANSACTIONACCEPTEDLOGS', 'Display only accepted transactions');
|
747 |
+
define('TXT_WPSC_SEARCHEMAIL', 'Search By Email');
|
748 |
+
|
749 |
+
?>
|
wp-shopping-cart/languages/FR_fr.php
ADDED
@@ -0,0 +1,642 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
This is a language file for the WP Shopping Cart plugin version 3.6.7 beta
|
4 |
+
Translation to French: semiosys@semiophore.net & http://webdeux.info
|
5 |
+
*/
|
6 |
+
define('TXT_WPSC_ADMINNOTES', 'Notes du marchand');
|
7 |
+
define('TXT_WPSC_HIDEADDNAMELINK', 'Cacher les liens des noms de produit');
|
8 |
+
define('TXT_WPSC_ADMINMENU', 'Menu Admin');
|
9 |
+
define('TXT_WPSC_USEONLYEXTERNALLINK', 'Note: Utiliser uniquement si vous avez des liens externes');
|
10 |
+
define('TXT_WPSC_EXTERNALLINK', 'Lien Externe');
|
11 |
+
define('TXT_WPSC_BUTTONTYPE', 'Type de bouton');
|
12 |
+
define('TXT_WPSC_BUYNOW', 'Acheter maintenant');
|
13 |
+
define('TXT_WPSC_ASSOCIATEWITHFILE', 'Associate With File?(Tick one please)');
|
14 |
+
define('TXT_WPSC_SHOWLIVESEARCH', 'Utiliser Live Search');
|
15 |
+
define('TXT_WPSC_USPS_USERID', 'USPS ID');
|
16 |
+
define('TXT_WPSC_SHIPPING_DETAILS', 'Détails de livraison');
|
17 |
+
define('TXT_WPSC_SHOWADVANCEDSEARCH', 'Afficher la recherche avancée');
|
18 |
+
define('TXT_WPSC_GOOGLEMECHANTKEY', 'Google Mechat Key');
|
19 |
+
define('TXT_WPSC_GOOGLEMECHANTID', "Google Mechant ID");
|
20 |
+
define('TXT_WPSC_IMAGESIZEINFO', 'Note: Si cela reste non rempli, l\'image ne sera pas redimensionnée');
|
21 |
+
define('TXT_WPSC_ENDLESSSUBSCRIPTION', 'Souscription Permanante ?');
|
22 |
+
define('TXT_WPSC_RECEIVED', 'Commande reçue');
|
23 |
+
define('TXT_WPSC_ORDER_STATUS', 'Statut de la Commande');
|
24 |
+
define('TXT_WPSC_ORDER_SUMMARY', 'Résumé de la Commande');
|
25 |
+
define('TXT_WPSC_LANGUAGE', 'Langue');
|
26 |
+
define('TXT_WPSC_ACCEPTED_PAYMENT', 'Paiement Accepté');
|
27 |
+
define('TXT_WPSC_JOB_DISPATCHED', 'Tâche Envoyé');
|
28 |
+
define('TXT_WPSC_PROCESSED', 'Commande fermée');
|
29 |
+
define('TXT_WPSC_ECOMMERCE', 'e-Commerce');
|
30 |
+
define('TXT_WPSC_OPTIONS', 'Options Magasin');
|
31 |
+
define('TXT_WPSC_ADDPRODUCTS', 'Ajouter Produits');
|
32 |
+
define('TXT_WPSC_SENDSMS', 'Envoyer SMS');
|
33 |
+
define('TXT_WPSC_PRODUCTS', 'Produits');
|
34 |
+
define('TXT_WPSC_ADDCATEGORY', 'Ajouter catégorie');
|
35 |
+
define('TXT_WPSC_CATEGORIES', 'Catégories');
|
36 |
+
define('TXT_WPSC_BRANDS', 'Marques');
|
37 |
+
define('TXT_WPSC_VARIATIONS', 'Variations');
|
38 |
+
define('TXT_WPSC_PURCHASELOG', 'Journal des Achats');
|
39 |
+
define('TXT_WPSC_ORDER_LOG', 'Commandes');
|
40 |
+
define('TXT_WPSC_OLDER_ORDERS', 'Anciennes Commandes');
|
41 |
+
define('TXT_WPSC_ORDER', 'Commande');
|
42 |
+
define('TXT_WPSC_TOTAL_THIS_MONTH', 'Revenus cumulés pour ce mois');
|
43 |
+
define('TXT_WPSC_MONTHLY_REPORT', 'Bilan des six derniers mois');
|
44 |
+
define('TXT_WPSC_TOTAL_INCOME', 'Revenu Total');
|
45 |
+
define('TXT_WPSC_ACCEPTED_PAYMENTS', '(paiements acceptés)'); //texr has changed slightly
|
46 |
+
define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', 'Options Passerelle');
|
47 |
+
define('TXT_WPSC_HELPINSTALLATION', 'Aide/Mise à Jour');
|
48 |
+
define('TXT_WPSC_EXAMPLECATEGORY', 'Catégorie Exemple');
|
49 |
+
define('TXT_WPSC_EXAMPLEDETAILS', 'Détails de l\'exemple');
|
50 |
+
define('TXT_WPSC_EXAMPLEBRAND', 'Marque Exemple');
|
51 |
+
define('TXT_WPSC_PRODUCTIMAGEWIDTH', 'largeur de l\'image du produit');
|
52 |
+
define('TXT_WPSC_PRODUCTIMAGEHEIGHT', 'hauteur de l\'image du produit');
|
53 |
+
define('TXT_WPSC_CATEGORYIMAGEWIDTH', 'largeur de l\'image de la catégorie');
|
54 |
+
define('TXT_WPSC_CATEGORYIMAGEHEIGHT', 'hauteur de l\'image de la catégorie');
|
55 |
+
define('TXT_WPSC_PRODUCTLISTURL', 'Emplacement de la liste des produits');
|
56 |
+
define('TXT_WPSC_SHOPPINGCARTURL', 'Emplacement du caddie');
|
57 |
+
define('TXT_WPSC_CHECKOUTURL', 'Emplacement de la caisse');
|
58 |
+
define('TXT_WPSC_TRANSACTURL', 'Emplacement des détails de la transaction');
|
59 |
+
define('TXT_WPSC_PAYMENTGATEWAY', 'La passerelle de paiment à utiliser');
|
60 |
+
define('TXT_WPSC_CARTLOCATION', 'Emplacement du caddie');
|
61 |
+
define('TXT_WPSC_SHOWCATEGORYBRANDS', 'Montrer les catégories ou les marques ou les deux');
|
62 |
+
define('TXT_WPSC_CURRENCYTYPE', 'Devise');
|
63 |
+
define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Position du signe de la devise');
|
64 |
+
define('TXT_WPSC_GSTRATE', 'Le taux GST'); // What's this : GST ???
|
65 |
+
define('TXT_WPSC_MAXDOWNLOADS', 'La limite de téléchargement');
|
66 |
+
define('TXT_WPSC_DISPLAYPNP', 'Montrer ou cacher les frais de port et d\'emballage');
|
67 |
+
define('TXT_WPSC_DISPLAYSPECIALS', 'Montrer ou cacher les affaires sur la sidebar');
|
68 |
+
define('TXT_WPSC_POSTAGEAND_PACKAGING', 'Frais de port et d\'emballage par defaut');
|
69 |
+
define('TXT_WPSC_PURCHLOGEMAIL', 'Adresse email à laquelle envoyer le journal d\'achat');
|
70 |
+
define('TXT_WPSC_RETURNEMAIL', 'Adresse email à laquelle envoyer le rapport d\'achat');
|
71 |
+
define('TXT_WPSC_TERMSANDCONDITIONS', 'Conditions de paiment');
|
72 |
+
define('TXT_WPSC_DEFAULTBRAND', 'Marque par défaut');
|
73 |
+
define('TXT_WPSC_DEFAULTCATEGORY', 'Catégorie par défaut');
|
74 |
+
define('TXT_WPSC_PAYPALBUSINESS', 'paypal business');
|
75 |
+
define('TXT_WPSC_PAYPALURL', 'url paypal');
|
76 |
+
define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Montrer les évaluations des produits');
|
77 |
+
define('TXT_WPSC_PRODUCTSPAGE', 'Page des Produits');
|
78 |
+
define('TXT_WPSC_CHECKOUT', 'Passer à la Caisse');
|
79 |
+
define('TXT_WPSC_ENTERDETAILS', 'Entrer vos coordonnées');
|
80 |
+
define('TXT_WPSC_TRANSACTIONRESULTS', 'Résultats de la transaction');
|
81 |
+
define('TXT_WPSC_SELECTACATEGORY', 'Sélectionner une catégorie');
|
82 |
+
define('TXT_WPSC_SELECTABRAND', 'Sélectionner une marque');
|
83 |
+
define('TXT_WPSC_PRODUCTNAME', 'Nom du Produit');
|
84 |
+
define('TXT_WPSC_PRODUCTDESCRIPTION', 'Description du Produit');
|
85 |
+
define('TXT_WPSC_ADDITIONALDESCRIPTION', 'Description Supplémentaire');
|
86 |
+
define('TXT_WPSC_PRICE', 'Prix');
|
87 |
+
define('TXT_WPSC_TAXALREADYINCLUDED', 'Ne pas inclure la TVA (La taxe est définie dans la configuration du magasin)'); // this text has changed and needs updating
|
88 |
+
define('TXT_WPSC_SPECIAL', 'Affaire / Prix soldé'); // this text has changed and needs updating
|
89 |
+
define('TXT_WPSC_PRODUCT_DISPLAY', 'Affichage du Produit');
|
90 |
+
|
91 |
+
define('TXT_WPSC_PRODUCTSTOCK', 'Stock Produits');
|
92 |
+
|
93 |
+
define('TXT_WPSC_UNTICKBOX', 'J\'ai un nombre limité de cet article en stock. Encas de rupture de stock, ce produit ne sera plus disponible dans le magasin, à moins que vous ne décochiez cette case, ou que vous rajoutiez du stock.');
|
94 |
+
define('TXT_WPSC_LIMITED_STOCK', 'Stock Limité');
|
95 |
+
|
96 |
+
define('TXT_WPSC_CATEGORY', 'Catégorie');
|
97 |
+
define('TXT_WPSC_BRAND', 'Marque');
|
98 |
+
define('TXT_WPSC_PRODUCT_VARS', 'Variations du Produit');
|
99 |
+
define('TXT_WPSC_ADD_VAR', 'Ajouter un Ensemble de Variations');
|
100 |
+
define('TXT_WPSC_EDIT_VAR', 'Modifier Ensemble de Variations');
|
101 |
+
define('TXT_WPSC_SELECTAVARIATION', 'Choisir une Variation');
|
102 |
+
define('TXT_WPSC_NEW_VARIATION', 'Créer une Nouvelle Variation');
|
103 |
+
|
104 |
+
define('TXT_WPSC_PRODUCTATT', 'Pièces jointes au produit');
|
105 |
+
define('TXT_WPSC_DOWNLOADABLEPRODUCT', 'Produits Téléchargeables');
|
106 |
+
define('TXT_WPSC_FILETOBEPRODUCT', 'Note: si ceci n\'est pas renseigné, le fichier chargé correspondra au produit à acheter.');
|
107 |
+
define('TXT_WPSC_RESIZEIMAGE', 'Redimensionner Miniature');
|
108 |
+
define('TXT_WPSC_DONOTRESIZEIMAGE', 'ne pas redimensionner la miniature.');
|
109 |
+
// define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'utiliser largeur et hauteur par défaut');
|
110 |
+
// define('TXT_WPSC_USE', 'utiliser');
|
111 |
+
// define('TXT_WPSC_PXHEIGHTBY', 'px hauteur par');
|
112 |
+
// define('TXT_WPSC_PXWIDTH', 'px largeur.');
|
113 |
+
|
114 |
+
// pe.{
|
115 |
+
//define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'use default height and width');
|
116 |
+
// }.pe
|
117 |
+
define('TXT_WPSC_SEPARATETHUMBNAIL', 'utiliser miniature séparée'); // Needs Translation
|
118 |
+
define('TXT_WPSC_USE', 'Utilsier'); // Needs Translation
|
119 |
+
// pe.{
|
120 |
+
define('TXT_WPSC_USEDEFAULTSIZE', 'utiliser la taille par défaut'); // Needs Translation
|
121 |
+
define('TXT_WPSC_USESPECIFICSIZE', 'utiliser taille spécifique'); // Needs Translation
|
122 |
+
define('TXT_WPSC_PXHEIGHT', 'px hauteur .'); // Needs Translation
|
123 |
+
define('TXT_WPSC_PXWIDTH', 'px largeur.'); // Needs Translation
|
124 |
+
// }.pe
|
125 |
+
|
126 |
+
|
127 |
+
define('TXT_WPSC_UPLOADNEWIMAGE', 'Remplacer Image');
|
128 |
+
define('TXT_WPSC_DELETEIMAGE', 'Effacer Image');
|
129 |
+
define('TXT_WPSC_EDIT', 'Modifier');
|
130 |
+
define('TXT_WPSC_DELETE', 'Effacer');
|
131 |
+
define('TXT_WPSC_REMOVE', 'Supprimer');
|
132 |
+
define('TXT_WPSC_NAME', 'Nom');
|
133 |
+
define('TXT_WPSC_TYPE', 'Type');
|
134 |
+
define('TXT_WPSC_MANDATORY', 'Obligatoire');
|
135 |
+
define('TXT_WPSC_DISPLAY_IN_LOG', 'Display<br /> in Log');
|
136 |
+
define('TXT_WPSC_DESCRIPTION', 'Description');
|
137 |
+
define('TXT_WPSC_CATEGORY_PARENT', 'Catégorie Parente');
|
138 |
+
define('TXT_WPSC_IMAGE', 'Image');
|
139 |
+
define('TXT_WPSC_HEIGHT', 'Hauteur');
|
140 |
+
define('TXT_WPSC_WIDTH', 'Largeur');
|
141 |
+
define('TXT_WPSC_PLEASEENTERAVALID', 'Merci de saisir un');
|
142 |
+
define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Merci de saisir un nom ');
|
143 |
+
define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Merci de saisir un prénom ');
|
144 |
+
define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Merci de saisir une adresse email');
|
145 |
+
define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Merci de saisir une adresse valide');
|
146 |
+
define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Merci de saisir un numéro de téléphone valide');
|
147 |
+
define('TXT_WPSC_TERMSANDCONDITIONS', 'Vous n\'avez pas accepté les conditions de vente');
|
148 |
+
define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', 'Il n\'y a rien dans votre caddie');
|
149 |
+
define('TXT_WPSC_SPECIALS', 'Affaires');
|
150 |
+
define('TXT_WPSC_BUY', 'Acheter');
|
151 |
+
define('TXT_WPSC_SHOPPINGCART', '');
|
152 |
+
define('TXT_WPSC_NUMBEROFITEMS', 'Nombre d\'articles');
|
153 |
+
define('TXT_WPSC_NOMOREAVAILABLE', 'Ce produit n\'est pas en stock.');
|
154 |
+
define('TXT_WPSC_EMPTYYOURCART', 'Vider votre caddie');
|
155 |
+
define('TXT_WPSC_GOTOCHECKOUT', 'Passer à la caisse');
|
156 |
+
define('TXT_WPSC_CONTINUESHOPPING', 'Poursuivre vos Achats');
|
157 |
+
define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', 'Votre caddie est vide');
|
158 |
+
define('TXT_WPSC_VISITTHESHOP', 'Visiter le Magasin');
|
159 |
+
define('TXT_WPSC_PAGES', 'Pages');
|
160 |
+
define('TXT_WPSC_OUTOF', 'De');
|
161 |
+
define('TXT_WPSC_VOTES', 'votes.');
|
162 |
+
define('TXT_WPSC_CLICKSTARSTORATE', 'Cliquer les étoiles pour évaluer');
|
163 |
+
define('TXT_WPSC_AVERAGERATINGOF', 'Evaluation moyenne de');
|
164 |
+
define('TXT_WPSC_YOURVOTE', 'Votre vote');
|
165 |
+
define('TXT_WPSC_AVERAGEVOTE', 'Vote moyen');
|
166 |
+
define('TXT_WPSC_YOUHAVEVOTED', 'Vous avez voté');
|
167 |
+
define('TXT_WPSC_NOVOTES', 'Pas de Vote');
|
168 |
+
define('TXT_WPSC_1VOTE', '1 Vote');
|
169 |
+
define('TXT_WPSC_VOTES2', 'Votes');
|
170 |
+
define('TXT_WPSC_PERSONGIVEN', 'personne a donné à cette image');
|
171 |
+
define('TXT_WPSC_PERSONGIVEN2', 'étoiles.');
|
172 |
+
define('TXT_WPSC_PEOPLEGIVEN', 'personnes ont donné à cette image');
|
173 |
+
define('TXT_WPSC_PEOPLEGIVEN2', 'étoiles.');
|
174 |
+
define('TXT_WPSC_ITEMHASBEENADDED', 'Cet item a été ajouté');
|
175 |
+
define('TXT_WPSC_ITEMHASNOTBEENADDED', 'Cet item n\'a pas été ajotué');
|
176 |
+
define('TXT_WPSC_ADDNEWCATEGORY', 'Ajouter nouvelle categorie');
|
177 |
+
define('TXT_WPSC_SUBMIT', 'Soumettre');
|
178 |
+
define('TXT_WPSC_SELECTAVALIDCATEGORY', 'Merci de choisir une catégorie valide');
|
179 |
+
define('TXT_WPSC_PRODUCTNAME', 'Nom du produit');
|
180 |
+
define('TXT_WPSC_PRODUCTDESCRIPTION', 'Description du produit');
|
181 |
+
define('TXT_WPSC_ADDNEWPRODUCT', 'Ajouter produit');
|
182 |
+
define('TXT_WPSC_PRODUCTQUANTITY', 'Quantité du produit');
|
183 |
+
define('TXT_WPSC_PRODUCTIMAGE', 'Image du produit');
|
184 |
+
define('TXT_WPSC_PRODUCTPRICE', 'Prix du produit');
|
185 |
+
define('TXT_WPSC_NOTAX', 'Pas de taxe');
|
186 |
+
define('TXT_WPSC_ABOUT', 'A Propos');
|
187 |
+
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 à 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épertoire de base de wordpress.<br />');
|
188 |
+
define('TXT_WPSC_CONTACTDETAILS', 'Merci d\'entrer vos coordonnées:');
|
189 |
+
define('TXT_WPSC_CREDITCARDHANDY', 'Note, Une fois que vous appuyer sur soumettre, vous devrez avoir votre carte de crédit sous la main.');
|
190 |
+
define('TXT_WPSC_ASTERISK', 'Les champs marqué avec (*) sont obligatoires.');
|
191 |
+
define('TXT_WPSC_FIRSTNAME', 'Prénom');
|
192 |
+
define('TXT_WPSC_LASTNAME', 'Nom');
|
193 |
+
define('TXT_WPSC_EMAIL', 'Email');
|
194 |
+
define('TXT_WPSC_ADDRESS', 'Addresse');
|
195 |
+
define('TXT_WPSC_ADDRESS1', 'Addresse 1');
|
196 |
+
define('TXT_WPSC_ADDRESS2', 'Addresse 2');
|
197 |
+
define('TXT_WPSC_CITY', 'Ville');
|
198 |
+
define('TXT_WPSC_STATE', 'Etat');
|
199 |
+
define('TXT_WPSC_COUNTRY', 'Pays');
|
200 |
+
define('TXT_WPSC_PHONE', 'Téléphone');
|
201 |
+
define('TXT_WPSC_POSTAL_CODE', 'Code postal');
|
202 |
+
define('TXT_WPSC_TERMS1', 'Je suis d\'accord que le ');
|
203 |
+
define('TXT_WPSC_TERMS2', 'Conditions Générales de Vente');
|
204 |
+
|
205 |
+
define('TXT_WPSC_TEXT', 'Text');
|
206 |
+
define('TXT_WPSC_TEXTAREA', 'Textarea');
|
207 |
+
define('TXT_WPSC_HEADING', 'Heading');
|
208 |
+
|
209 |
+
define('TXT_WPSC_MAKEPURCHASE', 'Acheter');
|
210 |
+
define('TXT_WPSC_BUYPRODUCTS', 'Merci d\'acheter des produits avant d\'utiliser cette page');
|
211 |
+
define('TXT_WPSC_BRANDHASBEENEDITED', 'La marque a été éditée.');
|
212 |
+
define('TXT_WPSC_SURETODELETEPRODUCT', 'Etes-vous s�r(e) de vouloir effacer ce produit ?');
|
213 |
+
define('TXT_WPSC_ADDBRAND', 'Ajouter une marque');
|
214 |
+
define('TXT_WPSC_DISPLAYBRANDS', 'Montrer les marques');
|
215 |
+
define('TXT_WPSC_EDITBRAND', 'Editer une marque');
|
216 |
+
define('TXT_WPSC_ADD', 'Ajouter');
|
217 |
+
define('TXT_WPSC_ADD_NEW_FORM', 'Ajouter un nouveau champ');
|
218 |
+
define('TXT_WPSC_SAVE_CHANGES', 'Sauver modifications');
|
219 |
+
|
220 |
+
define('TXT_WPSC_CATEGORYHASBEENEDITED', 'Cette catégorie a été modifiée.');
|
221 |
+
define('TXT_WPSC_DISPLAYCATEGORIES', 'Montrer catégories');
|
222 |
+
define('TXT_WPSC_ADDCATEGORY', 'Ajouter catégorie');
|
223 |
+
define('TXT_WPSC_EDITCATEGORY', 'Editer catégories');
|
224 |
+
define('TXT_WPSC_ALLCATEGORIES', 'Toutes les catégories');
|
225 |
+
|
226 |
+
define('TXT_WPSC_DISPLAYVARIATIONS', 'Montrer les Variations');
|
227 |
+
define('TXT_WPSC_ADDVARIATION', 'Ajouter un jeu de variations');
|
228 |
+
define('TXT_WPSC_EDITVARIATION', 'Editer Jeu de Variations');
|
229 |
+
define('TXT_WPSC_VARIATIONHASBEENEDITED', 'La variation a été éditée.');
|
230 |
+
define('TXT_WPSC_VARIATION_VALUES', 'Valeurs de la Variation');
|
231 |
+
define('TXT_WPSC_REMOVE_SET', 'Supprimer ce Jeu'); //this needs to be translated
|
232 |
+
|
233 |
+
define('TXT_WPSC_SELECT_PARENT', 'Choisir parent');
|
234 |
+
define('TXT_WPSC_PRODUCTHASBEENEDITED', 'Le produit a été modifié.');
|
235 |
+
define('TXT_WPSC_ADDPRODUCT', 'Ajouter produit');
|
236 |
+
define('TXT_WPSC_DISPLAYPRODUCTS', 'Montrer les produits');
|
237 |
+
define('TXT_WPSC_PLEASESELECTACATEGORY', 'Merci de sélectionner une catégorie');
|
238 |
+
define('TXT_WPSC_STOCK', 'Stock');
|
239 |
+
define('TXT_WPSC_PNP', 'PnP');
|
240 |
+
define('TXT_WPSC_EDITITEM', 'Editer cet article');
|
241 |
+
define('TXT_WPSC_PRODUCTDETAILS', 'Détails du produit');
|
242 |
+
define('TXT_WPSC_SELECT_PRODUCT', 'Sélectionner un produit existant');
|
243 |
+
define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', '(Entrer la description du produit ici)');
|
244 |
+
define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', 'Description supplémentaire du produit');
|
245 |
+
define('TXT_WPSC_ADDITEM', 'Ajouter un Item');
|
246 |
+
define('TXT_WPSC_CHOOSEACATEGORY', 'Choisir une catégorie');
|
247 |
+
define('TXT_WPSC_CHOOSEABRAND', 'Choisir une marque');
|
248 |
+
define('TXT_WPSC_USETHEACTUALIMAGE', 'utiliser l\'image telle quelle. Pas de redimensionnement.');
|
249 |
+
define('TXT_WPSC_DISPLAYPURCHASES', 'Journal des Achats');
|
250 |
+
define('TXT_WPSC_ID', 'ID');
|
251 |
+
define('TXT_WPSC_TRANSACTIONSTATUS', 'Statut de la Transaction');
|
252 |
+
define('TXT_WPSC_DATE', 'Date');
|
253 |
+
define('TXT_WPSC_VIEWDETAILS', 'Details'); //Text has changed - translation is needed
|
254 |
+
define('TXT_WPSC_STATUS', 'Statut');
|
255 |
+
define('TXT_WPSC_SUCCESSFUL', 'Succès');
|
256 |
+
define('TXT_WPSC_FAILED', 'Echec');
|
257 |
+
define('TXT_WPSC_GST', 'GST');
|
258 |
+
define('TXT_WPSC_PP', 'P&P');
|
259 |
+
define('TXT_WPSC_TOTAL', 'Total');
|
260 |
+
define('TXT_WPSC_FINALTOTAL', 'Total Final');
|
261 |
+
define('TXT_WPSC_CUSTOMERDETAILS', 'Détails sur le Client');
|
262 |
+
define('TXT_WPSC_USERSCARTWASEMPTY', 'Ce caddie était vide');
|
263 |
+
define('TXT_WPSC_GOBACK', 'Retour');
|
264 |
+
define('TXT_WPSC_THANKSAPPLIED', 'Merci, vos modifications ont été appliquées');
|
265 |
+
define('TXT_WPSC_FORM_FIELDS', 'Options Caisse');
|
266 |
+
define('TXT_WPSC_PAYMENTGATEWAY2', 'Passerelle de Paiement');
|
267 |
+
define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', 'Merci de Choisir une passerelle de paiement');
|
268 |
+
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).');
|
269 |
+
define('TXT_WPSC_URLSETTINGS', 'Réglage des URL');
|
270 |
+
define('TXT_WPSC_PRODUCTLISTURL', 'URL de la Liste des produits');
|
271 |
+
define('TXT_WPSC_SHOPPINGCARTURL', 'URL du caddie');
|
272 |
+
define('TXT_WPSC_CHECKOUTURL', 'URL de la caisse');
|
273 |
+
define('TXT_WPSC_TRANSACTIONDETAILSURL', 'URL des Détails de la transaction');
|
274 |
+
define('TXT_WPSC_PRESENTATIONSETTINGS', 'Réglage de présentation');
|
275 |
+
define('TXT_WPSC_CARTLOCATION', 'Emplacement du caddie');
|
276 |
+
define('TXT_WPSC_SIDEBAR', 'Sidebarre');
|
277 |
+
define('TXT_WPSC_PAGE', 'Page');
|
278 |
+
define('TXT_WPSC_WIDGET', 'Widget');
|
279 |
+
define('TXT_WPSC_NEEDTOENABLEWIDGET', 'Vous avez besoin d\'activer le plugin des widgets pour utiliser ceci');
|
280 |
+
define('TXT_WPSC_MANUAL', 'Manuel');
|
281 |
+
define('TXT_WPSC_SHOWCATEGORIESBRANDS', 'Montrer Catégories/Marques');
|
282 |
+
define('TXT_WPSC_BOTH', 'les Deux');
|
283 |
+
define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', 'Taille miniature du produit par défaut');
|
284 |
+
define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', 'Taille miniature de la catégorie par défaut');
|
285 |
+
define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', 'Montrer affranchissement et packaging');
|
286 |
+
define('TXT_WPSC_YES', 'Oui');
|
287 |
+
define('TXT_WPSC_NO', 'Non');
|
288 |
+
define('TXT_WPSC_SHOWSPECIALS', 'Montrer les affaires');
|
289 |
+
define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Montrer l\'évaluation produit');
|
290 |
+
define('TXT_WPSC_CURRENCYSETTINGS', 'Réglage devise');
|
291 |
+
define('TXT_WPSC_GSTTAXRATE', 'GST/Taux de la taxe');
|
292 |
+
define('TXT_WPSC_CURRENCYTYPE', 'Devise');
|
293 |
+
define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Placement du signe de la devise');
|
294 |
+
define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', 'Frais de port et d\'emballage par defaut');
|
295 |
+
define('TXT_WPSC_ADMINISTRATIONSETTINGS', 'Réglage de l\'Administration');
|
296 |
+
define('TXT_WPSC_MAXDOWNLOADSPERFILE', 'Téléchargements Maxi par Fichier');
|
297 |
+
define('TXT_WPSC_PURCHASELOGEMAIL', 'Email du journal des achats');
|
298 |
+
define('TXT_WPSC_REPLYEMAIL', 'Email de Réponse');
|
299 |
+
define('TXT_WPSC_BRANDNOCAP', 'marque');
|
300 |
+
define('TXT_WPSC_CATEGORYNOCAP', 'catégorie');
|
301 |
+
define('TXT_WPSC_UDPATING', 'Mise à jour');
|
302 |
+
define('TXT_WPSC_MOREDETAILS', 'Plus de Détails');
|
303 |
+
define('TXT_WPSC_ADDTOCART', 'Ajouter au caddie');
|
304 |
+
define('TXT_WPSC_AVGCUSTREVIEW', 'Evaluation moyenne des clients');
|
305 |
+
define('TXT_WPSC_YOURRATING', 'Votre évaluation');
|
306 |
+
define('TXT_WPSC_RATING_SAVED', 'Sauvé');
|
307 |
+
define('TXT_WPSC_RATETHISITEM', 'Evaluer cet article');
|
308 |
+
define('TXT_WPSC_PRODUCTSOLDOUT', 'Il ne reste plus de ce produit (tout vendu).');
|
309 |
+
define('TXT_WPSC_NOITEMSINTHIS', 'Il n\'a pas d\'article dans cet');
|
310 |
+
define('TXT_WPSC_CATEGORYORBRAND', 'Catégorie ou Marque');
|
311 |
+
define('TXT_WPSC_PLEASECHOOSEA', 'Merci de Choisir un(e)');
|
312 |
+
define('TXT_WPSC_PRODUCT', 'Produit');
|
313 |
+
define('TXT_WPSC_QUANTITY', 'Quantité');
|
314 |
+
define('TXT_WPSC_QUANTITY_SHORT', 'Qté'); //translation needed
|
315 |
+
define('TXT_WPSC_APPLY', 'Appliquer');
|
316 |
+
define('TXT_WPSC_MAKEPAYMENT', 'Payer');
|
317 |
+
define('TXT_WPSC_EMPTYSHOPPINGCART', 'Vider le caddie');
|
318 |
+
define('TXT_WPSC_TOTALPRICE', 'Prix Total');
|
319 |
+
define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', 'Il n\'y a pas d\'article dans le caddie');
|
320 |
+
define('TXT_WPSC_EMAILMSG1', "Merci, votre commande a été acceptées, tous les articles à envoyer le seront dès que possible, tous les articles téléchargeables peuvent l\'ê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é ces articles:\n\r\n\r");
|
321 |
+
define('TXT_WPSC_EMAILMSG2', ".\n\rCes articles ont été commandés:\n\r\n\r");
|
322 |
+
define('TXT_WPSC_CLICKTODOWNLOAD', 'Cliquer pour télécharger');
|
323 |
+
define('TXT_WPSC_DOWNLOAD', 'Télécharger');
|
324 |
+
define('TXT_WPSC_YOURTRANSACTIONID', 'Votre Identifiant de Transaction');
|
325 |
+
define('TXT_WPSC_TRANSACTIONID', 'Identifiant de transaction');
|
326 |
+
define('TXT_WPSC_PURCHASERECEIPT', 'Reçu d\'Achat');
|
327 |
+
define('TXT_WPSC_PURCHASEREPORT', 'Rapport d\'Achat');
|
328 |
+
define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', 'La Transaction a été effectuée');
|
329 |
+
define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', 'La Transaction a échouée');
|
330 |
+
define('TXT_WPSC_GOBACKTOCHECKOUT', 'Revenir à la caisse');
|
331 |
+
define('TXT_WPSC_SPECIALPRICE', 'Prix Spécial');
|
332 |
+
|
333 |
+
define('TXT_WPSC_INSTRUCTIONS', '
|
334 |
+
Install Steps
|
335 |
+
<ul class=\'installation\'>
|
336 |
+
<li>Place contents of zip file in the wp-content/plugins directory.</li>
|
337 |
+
<li>Activate the plugin from the wordpress plugin page</li>
|
338 |
+
<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>
|
339 |
+
<li>Create some Categories and Products using the Categories and Products pages</li>
|
340 |
+
</ul>
|
341 |
+
|
342 |
+
<p>If you are upgrading from Previous Version we suggest you deactivate and reactivate the plugin.</p>
|
343 |
+
|
344 |
+
<h2>Upgrades and Modules</h2>
|
345 |
+
|
346 |
+
<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>
|
347 |
+
|
348 |
+
<ul class=\'installation\'>
|
349 |
+
<li>Gold</li>
|
350 |
+
<li>DropShop</li>
|
351 |
+
<li>Audio Player</li>
|
352 |
+
<li>GridView</li>
|
353 |
+
</ul>
|
354 |
+
|
355 |
+
<h2>Wishlist</h2>
|
356 |
+
<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>.
|
357 |
+
|
358 |
+
<h2>Customisation and Tips</h2>
|
359 |
+
<p><strong>Tax</strong><br />If required you can enter in Tax rates on the Options page in the "e-Commerce" tab.</p>
|
360 |
+
<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>
|
361 |
+
<p><strong>Hiding pages</strong><br />
|
362 |
+
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 />
|
363 |
+
<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 />
|
364 |
+
<br />"<?php wp_list_pages(\'title_li=<h2>Pages</h2>\' ); ?>"<br />
|
365 |
+
and replace with<br />
|
366 |
+
"<?php wp_list_pages(\'title_li=<h2>Pages<h2>&exclude=3,4,5\'); ?>"<br />
|
367 |
+
<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>
|
368 |
+
<p><strong>Image Functions</strong><br />
|
369 |
+
If your server does not have the PHP image functions installed, you will not be able to resize images once they are uploaded</p>
|
370 |
+
<p><strong>Permalinks</strong><br />
|
371 |
+
We\'re doing the best we can.
|
372 |
+
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>
|
373 |
+
<p><strong>Javascript and Ajax </strong><br />
|
374 |
+
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>
|
375 |
+
<p><strong>More on Flickr</strong><br />
|
376 |
+
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.
|
377 |
+
|
378 |
+
');
|
379 |
+
|
380 |
+
|
381 |
+
define('TXT_WPSC_SHIPPINGSETTINGS', 'Réglage de l\'expédition');
|
382 |
+
define('TXT_WPSC_BASE_LOCAL', 'Base pour les frais d\'expédition en local');
|
383 |
+
define('TXT_WPSC_BASE_INTERNATIONAL', 'Base pour les frais d\'expédition à l\'international');
|
384 |
+
define('TXT_WPSC_BASE_COUNTRY', 'Pays');
|
385 |
+
|
386 |
+
define('TXT_WPSC_SHIPPING_DETAILS', 'Frais de Port Supplé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é seulement une fois par produit indépendament de la quantité commandée.');
|
390 |
+
define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Champ du Pays');
|
391 |
+
define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(sélectionner quel champ de la page du pasage en caisse vous voulez utiliser pour spécifier le pays)');
|
392 |
+
|
393 |
+
define('TXT_WPSC_SHIPPING', 'Expédition');
|
394 |
+
define('TXT_WPSC_EMAIL_FORM_FIELD', 'Champ de l\'email');
|
395 |
+
define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(sélectionner quel champ de la page du pasage en caisse vous voulez utiliser pour spécifier l\'adresse email)');
|
396 |
+
|
397 |
+
|
398 |
+
define('TXT_WPSC_PRODUCTIMAGES', 'Images du produit');
|
399 |
+
define('TXT_WPSC_PRODUCTDOWNLOAD', 'Téléchargement du produit');
|
400 |
+
define('TXT_WPSC_SHOWTHUMBNAILS', 'Montrer les Miniatures');
|
401 |
+
define('TXT_WPSC_ADD_ADDITIONAL_IMAGE', 'Ajouter une image Supplé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églage d\'Activation');
|
405 |
+
define('TXT_WPSC_ACTIVATION_KEY', 'Clef d\'Activation');
|
406 |
+
define('TXT_WPSC_THANKSACTIVATED', 'Merci, la version gold du caddie a été activée.');
|
407 |
+
define('TXT_WPSC_NOTACTIVATED', 'Désolé, la clef de l\'API était incorrecte');
|
408 |
+
define('TXT_WPSC_DEFAULT', 'Dé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é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 personnaliser le formulaire qui sera affiché sur la page du passage à la caisse. La page du passage à la caisse est celle où vous collecter les informations importantes sur le client, informations qui seront reportées dans vos journaux d\'achat, c\'est-à-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 à la caisse. Par défaut, les acheteurs peuvent seulement payer les articles avec une carte de crédit, cependant, il se peut que vous les autorisiez aussi à payer manuellement, et dans ce cas, veuillez sélectionner l\'option carte de cré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éthode de Paiement');
|
423 |
+
define('TXT_WPSC_PAY_USING', 'Payer avec ');
|
424 |
+
define('TXT_WPSC_PAY_MANUALLY', 'Payer par Chèque/Virement');
|
425 |
+
define('TXT_WPSC_CREDIT_CARD', 'Carte de Crédit');
|
426 |
+
define('TXT_WPSC_ADJUSTABLE_QUANTITY', 'Afficher le formulaire des quantités dans la vue liste');
|
427 |
+
define('TXT_WPSC_RSS_FEED_HEADER', 'S\'abonner à 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éées.');
|
431 |
+
define('TXT_WPSC_PLUGIN_NEWS_HEADER', 'Nouveautés Plugin');
|
432 |
+
|
433 |
+
define('TXT_WPSC_PLUGIN_NEWS', '
|
434 |
+
|
435 |
+
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/>
|
436 |
+
|
437 |
+
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/>
|
438 |
+
|
439 |
+
<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.
|
440 |
+
|
441 |
+
');
|
442 |
+
|
443 |
+
define('TXT_WPSC_POWERED_BY', 'Ce magasin est propulsé par ');
|
444 |
+
define('TXT_WPSC_NO_PURCHASES', 'Il n\'y a pas encore eu d\'achat.');
|
445 |
+
|
446 |
+
|
447 |
+
define('TXT_WPSC_DELIVERY_ADDRESS', 'Adresse de Livraison');
|
448 |
+
define('TXT_WPSC_DELIVERY_CITY', 'Ville de Livraison');
|
449 |
+
define('TXT_WPSC_DELIVERY_COUNTRY', 'Pays de Livraison');
|
450 |
+
define('TXT_WPSC_MP3_SETTINGS', 'Réglages MP3');
|
451 |
+
define('TXT_WPSC_MP3_SETTINGS_DESCRIPTION', 'Pour créer un clip MP3 de 30 seconds, ce plugin requiert <a href=\'http://sox.sourceforge.net/\'>SoX</a> compilé avec le support MP3, entrer le chemin vers SoX ici.');
|
452 |
+
define('TXT_WPSC_SOX_PATH', 'Chemin SoX');
|
453 |
+
define('TXT_WPSC_PREVIEW', 'Prévisualisation');
|
454 |
+
define('TXT_WPSC_DOWNLOAD_CSV', 'Télécharger CSV');
|
455 |
+
define('TXT_WPSC_PREVIEW_FILE', 'Nouveau fichier de prévisualisation');
|
456 |
+
define('TXT_WPSC_NEW_PREVIEW_FILE', 'Nouveau fichier de prévisualisation');
|
457 |
+
define('TXT_WPSC_REPLACE_PRODUCT', 'Remplacer produit');
|
458 |
+
define('TXT_WPSC_TOTALSHIPPING', 'Port total');
|
459 |
+
define('TXT_WPSC_DISPLAY_FRONT_PAGE', 'Afficher sur la page de garde');
|
460 |
+
define('TXT_WPSC_SEARCH_FOR', 'Chercher ');
|
461 |
+
define('TXT_WPSC_YOUR_SEARCH_FOR', 'Votre recherche pour');
|
462 |
+
define('TXT_WPSC_RETURNED_NO_RESULTS', 'a retourné aucun résultat.');
|
463 |
+
define('TXT_WPSC_POSTAGE', 'Affranchissement');
|
464 |
+
define('TXT_WPSC_SUBTOTAL', 'Sous-total');
|
465 |
+
|
466 |
+
|
467 |
+
//everything under here needs translations 19/1/2007
|
468 |
+
|
469 |
+
define('TXT_WPSC_PLEASEENTERAVALID', 'Merci de saisir');
|
470 |
+
define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Merci de saisir votre prénom.');
|
471 |
+
define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Merci de saisir votre nom de famille.');
|
472 |
+
define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'merci de saisir une adresse email qui fonctionne.');
|
473 |
+
define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Veuillez compléter votre adresse.');
|
474 |
+
define('TXT_WPSC_PLEASEENTERAVALIDCITY', 'Merci de saisir votre ville.');
|
475 |
+
define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Merci de saisir votre numéro de téléphone.');
|
476 |
+
define('TXT_WPSC_PLEASESELECTCOUNTRY', 'Veuillez sélectionner votre pays parmi cette liste.');
|
477 |
+
define('TXT_WPSC_PLEASEAGREETERMSANDCONDITIONS', 'Veuillez cocher/accepter les conditions de ventes. Sinon, nous ne pouvons malheureusement valider votre commande.');
|
478 |
+
define('TXT_WPSC_POSITION', 'Position');
|
479 |
+
|
480 |
+
define('TXT_WPSC_DELIVERY_REGION', 'Région de Livraison');
|
481 |
+
|
482 |
+
|
483 |
+
define('TXT_WPSC_GENERAL_SETTINGS', 'Réglages Généraux');
|
484 |
+
define('TXT_WPSC_TAX_SETTINGS', 'Réglage de la Taxe (tva)');
|
485 |
+
define('TXT_WPSC_POSTAGE_AND_TAX', 'Affranchissement et Taxe ');
|
486 |
+
define('TXT_WPSC_GRID', 'Grille');
|
487 |
+
define('TXT_WPSC_CANT_MOVE_CATEGORY', 'Vous ne pouvez pas déplacer une catégorie avec des sous-catégories.');
|
488 |
+
define('TXT_WPSC_SURETODELETECATEGORY', 'Êtes-vous sûr de vouloir supprimer cette catégorie ? Si la catégorie a des sous-catégories, elles seront supprimées aussi.');
|
489 |
+
define('TXT_WPSC_VARIATION', 'Variation');
|
490 |
+
define('TXT_WPSC_OVER_TWO_VARIATIONS', 'Variation stock and price control does not work si vous avez plus de deux variations.');
|
491 |
+
define('TXT_WPSC_PRICE_AND_STOCK_CONTROL', 'Price, Stock and Variation Control') ;
|
492 |
+
|
493 |
+
// pe.{
|
494 |
+
define('TXT_WPSC_CATSBRANDSLOCATION', 'Positionnement des catégories & marques');
|
495 |
+
define('TXT_WPSC_DESCITEMSEPARATOR', ' : ');
|
496 |
+
define('TXT_WPSC_SEARCHITEMSEPARATOR', ' : ');
|
497 |
+
define('TXT_WPSC_SINGLE_SHIPPING_COUNTRY', 'Pays d\'expédition:');
|
498 |
+
define('TXT_WPSC_ADD_ANOTHER_VARIATION', 'Ajouter une variation');
|
499 |
+
// }.pe
|
500 |
+
define('TXT_WPSC_PRODUCT_CATEGORIES', 'Catégories des produits');
|
501 |
+
define('TXT_WPSC_THANKS_DELETED', 'Merci, la log des achats a été supprimé');
|
502 |
+
define('TXT_WPSC_PRODUCT_IMAGE_PREVIEW', 'Image produit');
|
503 |
+
define('TXT_WPSC_PRODUCT_THUMBNAIL_PREVIEW', 'Prévisualisation miniature du produit');
|
504 |
+
define('TXT_WPSC_REMOVE_LOG', 'Supprimer l´enregistrement de la log des achats');
|
505 |
+
define('TXT_WPSC_CATSANDBRAND', 'Categories & Marques');
|
506 |
+
define('TXT_WPSC_GOLD_DROPSHOP', 'DropShop');
|
507 |
+
define('TXT_WPSC_NEEDTOENABLEDROPSHOP', 'Vous devez installer les extensions Gold et de DropShop pour utiliser ceci');
|
508 |
+
define('TXT_WPSC_DRAG_ITEM_HERE', 'Glisser n\'importe quel article ici pour l\'ajouter à votre caddie.');
|
509 |
+
define('TXT_WPSC_SHOWCATEGORYTHUMBNAILS', 'Afficher les catégories en miniature');
|
510 |
+
define('TXT_WPSC_SHOPPING_CART', 'Caddie');
|
511 |
+
define('TXT_WPSC_SHOW_SLIDING_CART', 'Afficher le Sliding Caddie');
|
512 |
+
define('TXT_WPSC_PREVIEW_FILE', 'Télécharger la prévisualisation');
|
513 |
+
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.');
|
514 |
+
define('TXT_WPSC_PURCHASE_NUMBER', 'Numéro de commande');
|
515 |
+
define('TXT_WPSC_FILTER_ORDER', 'Filtrer les commandes');
|
516 |
+
define('TXT_WPSC_SHOW_SEARCH', 'Afficher la recherche');
|
517 |
+
define('TXT_WPSC_LOG_CURRENT_MONTH', 'Afficher les résultats du mois courant');
|
518 |
+
define('TXT_WPSC_LOG_PAST_THREE_MONTHS', 'Afficher les résultats des trois derniers mois');
|
519 |
+
define('TXT_WPSC_LOG_ALL', 'Afficher tous les résultats');
|
520 |
+
define('TXT_SHOW_IMAGES_ONLY', 'Afficher seulement les images');
|
521 |
+
define('TXT_WPSC_SHOW_GALLERY', 'Afficher la galerie en miniature');
|
522 |
+
define('TXT_WPSC_PLEASE_SELECT', 'S\'il vous plaît, sélectionner');
|
523 |
+
define('TXT_WPSC_TXN_ID', 'Identifiant de transaction');
|
524 |
+
define('TXT_WPSC_SINGLE_PRODUCTTHUMBNAILSIZE', 'Taille unique d\'image de produit');
|
525 |
+
define('TXT_WPSC_RESET', 'Reset');
|
526 |
+
define('TXT_WPSC_ORDER_PENDING', 'Merci, la commande est en attente, vous allez recevoir un email lorsque la commande sera validée.');
|
527 |
+
define('TXT_WPSC_ORDER_FAILED', 'Nous sommes désolés, votre commande n\'a pas été accepté. Votre compte est sans insuffisamment crédité.');
|
528 |
+
// Adrian - added for the options I added
|
529 |
+
define('TXT_WPSC_SHOW_CATEGORY_COUNT', 'Afficher le nombre de produits par catégorie');
|
530 |
+
define('TXT_WPSC_CATSPRODS_DISPLAY_TYPE', 'Affichage Catégories/Produits');
|
531 |
+
define('TXT_WPSC_CATSPRODS_TYPE_CATONLY', 'Catégories Uniquement (Tous les produits affichés)');
|
532 |
+
define('TXT_WPSC_CATSPRODS_TYPE_SLIDEPRODS', 'Sliding Categories (1 produit par page)');
|
533 |
+
// Adrian - END new added options
|
534 |
+
define('TXT_WPSC_ORDER_DETAILS', 'Dés de l\'ordre');
|
535 |
+
define('TXT_WPSC_SAVE_PROFILE', 'Sauvegarder le profil');
|
536 |
+
define('TXT_WPSC_USERACCOUNTURL', 'URL du compte utilisateur');
|
537 |
+
define('TXT_WPSC_MUST_BE_LOGGED_IN', 'Vous devez être connectés pour utiliser cette page. Veuillez remplir le formulaire ci-dessous afin d\'ouvrir un compte.');
|
538 |
+
define('TXT_WPSC_YOUR_ACCOUNT', 'Votre compte');
|
539 |
+
|
540 |
+
define('TXT_WPSC_YOU_JUST_ADDED', 'Vous venez juste d\'ajouter l\'article "[product_name]" à votre caddie.');
|
541 |
+
define('TXT_WPSC_SORRY_NONE_LEFT', 'Désolé, mais cet article "[product_name]" n\'est plus en stock.');
|
542 |
+
|
543 |
+
define('TXT_WPSC_CONTINUE_SHOPPING', 'Poursuivre les achats');
|
544 |
+
define('TXT_WPSC_ITEM_GONE_OUT_OF_STOCK', 'Il apparaît qu\'un article n\'est plus en stock, veuillez modifier la liste de vos achats.');
|
545 |
+
define('TXT_WPSC_DISPLAY_FANCY_NOTIFICATIONS', 'Afficher les notifications d\'achats de mani ère fantaisiste');
|
546 |
+
define('TXT_WPSC_IF_USER_CHECKOUT', 'Si vous avez un compte utilisateur , svp ');
|
547 |
+
define('TXT_WPSC_LOG_IN', 'ouvrez une session svp.');
|
548 |
+
define('TXT_WPSC_IS_DONATION', 'Est ce une donation ?');
|
549 |
+
define('TXT_WPSC_DONATION', 'Donation');
|
550 |
+
define('TXT_WPSC_DONATION_LC', 'donation');
|
551 |
+
define('TXT_WPSC_DONATION_SHIPPING', 'Aucune expédition pour des donations');
|
552 |
+
define('TXT_WPSC_DOWNLOADABLEPRODUCT_URL', 'Nom de fichier du produit');
|
553 |
+
define('TXT_WPSC_FILETOBEPRODUCTURL', 'Note: Upload your file to the wp-shopping-cart/files directory and enter the filename here.');
|
554 |
+
define('TXT_WPSC_DONATIONS', 'Donations');
|
555 |
+
define('TXT_WPSC_WRONG_FILE_PERMS', 'Le répertoire: :directory: n\'est pas accessible en écriture. Vous ne pourrez télécharger aucun fichier ou image ici. Vous devez changer les droits d\'acces du répertoire afin de l\'autoriser en écriture. (chmod 777)');
|
556 |
+
define('TXT_WPSC_RESET_API', 'Reset API key');
|
557 |
+
define('TXT_WPSC_PRODUCTS_PER_PAGE', 'Produits par page');
|
558 |
+
define('TXT_WPSC_OPTION_PRODUCTS_PER_PAGE', 'nombre de produits à afficher par page');
|
559 |
+
define('TXT_WPSC_PAGE_NUMBER_POSITION', 'Position du numéro de page');
|
560 |
+
|
561 |
+
|
562 |
+
define('TXT_WPSC_YOUR_BILLING_CONTACT_DETAILS', '1. Adresse de facturation');
|
563 |
+
define('TXT_WPSC_DELIVER_TO_A_FRIEND', '2. Adresse de livraison');
|
564 |
+
define('TXT_WPSC_E_COMMERCE', 'e-Commerce');
|
565 |
+
define('TXT_WPSC_THANKS_SAVED', 'Merci, vos modifications ont bien été enregistrées.');
|
566 |
+
define('TXT_WPSC_REGISTER', 'Enregistrer');
|
567 |
+
define('TXT_WPSC_TAX', 'Taxe');
|
568 |
+
|
569 |
+
define('TXT_WPSC_USE_SHIPPING', 'Besoin de livrer');
|
570 |
+
define('TXT_WPSC_USE_SHIPPING_DESCRIPTION', 'Si vous vendez seulement des fichiers à téléchargements, vous devriez choisir NON pour désactiver l\'adresse de livraison.');
|
571 |
+
|
572 |
+
define('TXT_WPSC_PAGESETTINGS', 'Paramètres de pagination');
|
573 |
+
define('TXT_WPSC_USE_PAGINATION', 'Utiliser la pagination');
|
574 |
+
define('TXT_WPSC_ADD_PRODUCT', 'Ajouter un produit');
|
575 |
+
define('TXT_WPSC_EDIT_PRODUCT', 'Editer un produit');
|
576 |
+
define('TXT_WPSC_UPDATE_PAGE_URLS', 'Mettre à les URLs des pages');
|
577 |
+
define('TXT_WPSC_VARIATIONS_AND_SPECIALS_DONT_MIX', 'Note: Actuellement, vous ne pouvez pas définir un prix spécial sur un produit avec des variations');
|
578 |
+
define('TXT_WPSC_PRODUCT_SPECIALS', 'Product Specials');
|
579 |
+
define('TXT_WPSC_SHOW_SHARE_THIS', 'Afficher \'Partagez-le\' (Social Bookmarks)');
|
580 |
+
define('TXT_WPSC_SHOW_NO_PRODUCT', 'Aucun produit');
|
581 |
+
define('TXT_WPSC_CHOOSE_DOWNLOADABLE_PRODUCT', 'Choisir un fichier téléchargeable pour ce produit:');
|
582 |
+
define('TXT_WPSC_PLEASECHOOSE', 'Merci de choisir');
|
583 |
+
|
584 |
+
define('TXT_WPSC_VARIATION_CONTROL', 'Variation Control');
|
585 |
+
define('TXT_WPSC_VARIATION_GRID_CONTROL_SINGLE', ':variation1: Control');
|
586 |
+
define('TXT_WPSC_VARIATION_GRID_CONTROL_PAIR', ':variation1: and :variation2: Control');
|
587 |
+
define('TXT_WPSC_VIEW_PREVIEW_CLIP', 'View Preview Clip');
|
588 |
+
define('TXT_WPSC_REQUIRE_REGISTRATION', 'Nécessite d\'enregister');
|
589 |
+
define('TXT_WPSC_PLEASE_LOGIN', 'Merci de vous identifier ou enregistrer au-dessus pour faire vos achats');
|
590 |
+
define('TXT_WPSC_IF_JUST_REGISTERED', 'Si vous vous êtes juste enregistrés, consultez, s\'il vous plaît, votre email et identifiez vous avant que vous fassiez vos achats');
|
591 |
+
define('TXT_WPSC_SELECT_THEME', 'Sélectionner un thème');
|
592 |
+
define('TXT_WPSC_NEW_ORDER_PENDING_SUBJECT', 'Nouvelles commandes en attente');
|
593 |
+
define('TXT_WPSC_NEW_ORDER_PENDING_BODY', "Une commande est en attente de traitement: \n\r ");
|
594 |
+
define('TXT_WPSC_NO_SHIPPING', "Ne nécessite pas de livraison");
|
595 |
+
define('TXT_WPSC_DEFAULT_MEMBERS_ONLY', "Cette page est accessible uniquement par les membres, vous devez vous identifier pour accéder à cette page");
|
596 |
+
define('TXT_WPSC_MEMBERSHIP_CONTROL', "Membership Control");
|
597 |
+
define('TXT_WPSC_PRODUCT_MEMBER_STATUS', "Est ce que ce produit est une abonnement ?");
|
598 |
+
define('TXT_WPSC_PRODUCT_MEMBERSHIP_LENGTH', "Durée de l\'abonnement");
|
599 |
+
define('TXT_WPSC_DAYS', "Jours");
|
600 |
+
define('TXT_WPSC_MONTHS', "Mois");
|
601 |
+
define('TXT_WPSC_YEARS', "Années");
|
602 |
+
define('TXT_WPSC_MEMBERS_SUBSCRIPTION_ENDED', "Votre abonnement est terminé.");
|
603 |
+
define('TXT_WPSC_ACTIVATE_SETTINGS_MEMBERS', 'Paramètres d\'activation: Module Membres');
|
604 |
+
define('TXT_WPSC_GOLD_CART', 'Caddie Gold');
|
605 |
+
define('TXT_WPSC_SHOW_CATEGORY_DESCRIPTION', 'Montrer la description de la catégorie');
|
606 |
+
define('TXT_WPSC_ALSO_BOUGHT', 'Les gens qui ont acheté cet article ont également acheté');
|
607 |
+
define('TXT_WPSC_MARKETING_SETTINGS', 'Paramétres Marketing');
|
608 |
+
define('TXT_WPSC_OPTION_ALSO_BOUGHT', 'Afficher les ventes croisées');
|
609 |
+
define('TXT_WPSC_MARKETING', 'Marketing');
|
610 |
+
define('TXT_WPSC_DISPLAYCOUPONS', 'Bons de réduction');
|
611 |
+
define('TXT_WPSC_ADD_COUPON', 'Add Bon de réduction');
|
612 |
+
define('TXT_WPSC_COUPON', 'Bon de réduction');
|
613 |
+
define('TXT_WPSC_ADDCOUPONS', 'Add Bon de réduction');
|
614 |
+
define('TXT_WPSC_COUPON_CODE', 'Code Bon de réduction');
|
615 |
+
define('TXT_WPSC_DISCOUNT', 'Discount');
|
616 |
+
define('TXT_WPSC_START', 'Débute');
|
617 |
+
define('TXT_WPSC_EXPIRY', 'Expire');
|
618 |
+
define('TXT_WPSC_USE_ONCE', 'Utiliser une fois');
|
619 |
+
define('TXT_WPSC_ACTIVE', 'Actif');
|
620 |
+
define('TXT_WPSC_COUPONHASBEENADDED', 'Merci, le bon de réduction a été ajouté.');
|
621 |
+
define('TXT_WPSC_COUPON', 'Bon de réduction');
|
622 |
+
define('TXT_WPSC_COUPON_DOESNT_EXIST', 'Ce bon de réduction a expiré ou n existe pas.');
|
623 |
+
define('TXT_WPSC_PRODUCT_TAGS', 'Etiquettes produit');
|
624 |
+
|
625 |
+
define('TXT_WPSC_DROPSHOPDISPLAY', 'Affichage DropShop');
|
626 |
+
define('TXT_WPSC_HIDEADDTOCARTBUTTON', 'Cacher le bouton "Ajouter au caddie"');
|
627 |
+
|
628 |
+
define('TXT_WPSC_PRODUCT_TAGS', 'Etiquettes produit');
|
629 |
+
|
630 |
+
define('TXT_WPSC_SHOW_DROPSHOP_ALL', 'Montrer la Dropshop sur toutes les pages');
|
631 |
+
define('TXT_WPSC_SHOW_DROPSHOP_PRODUCT', 'Montrer la Dropshop seulement sur la page produit');
|
632 |
+
define('TXT_WPSC_PRICEAFTERDISCOUNT', 'Prix après réduction');
|
633 |
+
define('TXT_WPSC_ECOM_NEWS', 'Actualité e-Commerce');
|
634 |
+
define('TXT_WPSC_SAVE_PRODUCT_ORDER', 'Sauvegarder la commande produit');
|
635 |
+
|
636 |
+
define('TXT_WPSC_ECOMMERCE_SUBSCRIBERS', 'Abonné e-Commerce');
|
637 |
+
define('TXT_WPSC_USERID', 'Identifiant utilisateur');
|
638 |
+
define('TXT_WPSC_REGISTEREDDATE', 'Date d´enregistrement');
|
639 |
+
define('TXT_WPSC_SUSPEND', 'Suspendre');
|
640 |
+
define('TXT_WPSC_ACTIVATE', 'Activer');
|
641 |
+
define('TXT_WPSC_NO_STOCK', 'Epuisé');
|
642 |
+
?>
|
wp-shopping-cart/languages/HU_hu.php
ADDED
@@ -0,0 +1,494 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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&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 & 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/JYjvsd89hYgf0lob7vQoZ8X5xNtlidM3qcAx4goIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnR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BxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/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 />"<?php wp_list_pages(\'title_li=<h2>Pages</h2>\' ); ?>"<br />
|
343 |
+
<br />Edit the line accordingly, for example:<br />
|
344 |
+
<br />"<?php wp_list_pages(\'title_li=<h2>Pages<h2>&exclude=3,4,5\'); ?>"<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 & 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 & 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 & 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 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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/1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wtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/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 />"<?php wp_list_pages(\'title_li=<h2>Pages</h2>\' ); ?>"<br />
|
346 |
+
<br />Modificate la riga a seconda degli ID pagina trovati, per esempio:<br />
|
347 |
+
<br />"<?php wp_list_pages(\'title_li=<h2>Pages<h2>&exclude=3,4,5\'); ?>"<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 & 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 & 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_AC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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 & 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&P'*/'P&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 & 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+99ZtljIwtqvefC0wKdEJ0yFMGinWp9z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 |
+
<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 />"<?php wp_list_pages(\'title_li=<h2>Pages</h2>\' ); ?>"<br />
|
305 |
+
<br />Edit the line accordingly, for example:<br />
|
306 |
+
<br />"<?php wp_list_pages(\'title_li=<h2>Pages<h2>&exclude=3,4,5\'); ?>"<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+DELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBw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w1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/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 />"<?php wp_list_pages(\'title_li=<h2>Pages</h2>\' ); ?>"<br />
|
344 |
+
<br />??????????????????????:<br />
|
345 |
+
<br />"<?php wp_list_pages(\'title_li=<h2>Pages<h2>&exclude=3,4,5\'); ?>"<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><strong>Javascript and Ajax </strong><br />
|
355 |
+
e-commerce lite ? Ajax??????????????JavaScript???????????????(??????????????)????????????????????????????????JavaScript???????????(Internet Explorer 6??? Firefox 1.0?????????????????????????????)</p>
|
356 |
+
<p><strong>Contact Us</strong><br />
|
357 |
+
email us: tom@instinct.co.nz <br />
|
358 |
+
website: www.instinct.co.nz
|
359 |
+
');
|
360 |
+
|
361 |
+
define('TXT_WPSC_ORDER_STATUS', 'Order Status'); /* needs translation */
|
362 |
+
define('TXT_WPSC_ORDER_SUMMARY', 'Order Summary'); /* needs translation */
|
363 |
+
define('TXT_WPSC_LANGUAGE', 'Language'); /* needs translation */
|
364 |
+
define('TXT_WPSC_ACCEPTED_PAYMENT', 'Accepted Payment'); /* needs translation */
|
365 |
+
define('TXT_WPSC_JOB_DISPATCHED', 'Job Dispatched'); /* needs translation */
|
366 |
+
define('TXT_WPSC_TYPE', 'Type'); /* needs translation; */
|
367 |
+
define('TXT_WPSC_MANDATORY', 'Mandatory'); /* needs translation; */
|
368 |
+
define('TXT_WPSC_DISPLAY_IN_LOG', 'Display<br /> in Log'); /* needs translation; */
|
369 |
+
define('TXT_WPSC_ADDRESS1', 'Address 1'); /* needs translation; */
|
370 |
+
define('TXT_WPSC_ADDRESS2', 'Address 2'); /* needs translation; */
|
371 |
+
define('TXT_WPSC_CITY', 'City'); /* needs translation; */
|
372 |
+
define('TXT_WPSC_COUNTRY', 'Country'); /* needs translation; */
|
373 |
+
define('TXT_WPSC_TEXT', 'Text'); /* needs translation; */
|
374 |
+
define('TXT_WPSC_TEXTAREA', 'Textarea'); /* needs translation; */
|
375 |
+
define('TXT_WPSC_ADD_NEW_FORM', 'Add New Form Field'); /* needs translation; */
|
376 |
+
define('TXT_WPSC_SAVE_CHANGES', 'Save Changes'); /* needs translation; */
|
377 |
+
define('TXT_WPSC_PLEASEENTERAVALID', 'Please enter a valid'); /* needs translation; */
|
378 |
+
define('TXT_WPSC_FORM_FIELDS', 'Checkout Form Fields'); /* needs translation; */
|
379 |
+
|
380 |
+
define('TXT_WPSC_SHIPPINGSETTINGS', 'Shipping Settings');
|
381 |
+
define('TXT_WPSC_BASE_LOCAL', 'Base Local Shipping');
|
382 |
+
define('TXT_WPSC_BASE_INTERNATIONAL', 'Base International Shipping');
|
383 |
+
define('TXT_WPSC_BASE_COUNTRY', 'Base Country');
|
384 |
+
|
385 |
+
define('TXT_WPSC_SHIPPING_DETAILS', 'Additional Shipping Costs'); // this needs updating
|
386 |
+
define('TXT_WPSC_LOCAL_PNP', 'Local Shipping Fee'); // this needs updating
|
387 |
+
define('TXT_WPSC_INTERNATIONAL_PNP', 'International Shipping Fee'); // this needs updating
|
388 |
+
define('TXT_WPSC_SHIPPING_NOTE', 'Note: charged only once per product regardless of quantity ordered.');
|
389 |
+
define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Country Form Field');
|
390 |
+
define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the country)');
|
391 |
+
|
392 |
+
define('TXT_WPSC_SHIPPING', 'Shipping');
|
393 |
+
define('TXT_WPSC_EMAIL_FORM_FIELD', 'Email Form Field');
|
394 |
+
define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the email address)');
|
395 |
+
|
396 |
+
define('TXT_WPSC_QUANTITY_SHORT', 'Qty'); //translation needed
|
397 |
+
define('TXT_WPSC_PRODUCTIMAGES', 'Product Images');
|
398 |
+
define('TXT_WPSC_PRODUCTDOWNLOAD', 'Product Download');
|
399 |
+
define('TXT_WPSC_SHOWTHUMBNAILS', 'Show Thumbnails');
|
400 |
+
|
401 |
+
define('TXT_WPSC_DELIVERY_ADDRESS', 'Delivery Address'); //translation needed
|
402 |
+
define('TXT_WPSC_DELIVERY_CITY', 'Delivery City'); //translation needed
|
403 |
+
define('TXT_WPSC_DELIVERY_COUNTRY', 'Delivery Country'); //translation needed
|
404 |
+
|
405 |
+
|
406 |
+
define('TXT_WPSC_PLUGIN_NEWS', '
|
407 |
+
|
408 |
+
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/> // translation needed
|
409 |
+
|
410 |
+
');
|
411 |
+
|
412 |
+
define('TXT_WPSC_DOWNLOAD_CSV', 'Download CSV'); //translation needed
|
413 |
+
define('TXT_WPSC_PREVIEW_FILE', 'Preview File'); //translation needed
|
414 |
+
define('TXT_WPSC_REPLACE_PRODUCT', 'Replace Product'); //translation needed
|
415 |
+
?>
|
wp-shopping-cart/languages/KO_ko.php
ADDED
@@ -0,0 +1,513 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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'*/'6개월 실적');
|
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'*/'PG');
|
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 & 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 |
+
define('TXT_WPSC_PRODUCTATT', /*'Product Attachments'*/'부속품');
|
81 |
+
define('TXT_WPSC_DOWNLOADABLEPRODUCT', /*'Downloadable Product'*/'다운로드할 수 있는 상품');
|
82 |
+
define('TXT_WPSC_FILETOBEPRODUCT',/* 'Note: if this is filled in, the file uploaded will be the product to be purchased. '*/'주:업 로드된 파일은 구입이 가능하게 됩니다');
|
83 |
+
define('TXT_WPSC_RESIZEIMAGE', /*'Resize Image'*/'이미지 사이즈의 변경');
|
84 |
+
define('TXT_WPSC_DONOTRESIZEIMAGE', /*'do not resize image. '*/'이미지 사이즈를 변경할 수 없습니다');
|
85 |
+
define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', /*'use default height and width'*/'디폴트의 사이즈를 사용하는');
|
86 |
+
define('TXT_WPSC_USE', /*'use'*/'사용하는');
|
87 |
+
define('TXT_WPSC_PXHEIGHTBY', /*'px height by'*/'세로폭:픽셀');
|
88 |
+
define('TXT_WPSC_PXWIDTH', /*'px width. '*/'가로폭:픽셀');
|
89 |
+
define('TXT_WPSC_PREVIEW', /*'Preview'*/'프리뷰');
|
90 |
+
define('TXT_WPSC_UPLOADNEWIMAGE', /*'Upload New Image'*/'새로운 이미지의 업로드');
|
91 |
+
define('TXT_WPSC_DELETEIMAGE', /*'Delete Image'*/'이미지의 삭제');
|
92 |
+
define('TXT_WPSC_EDIT', /*'Edit'*/'선택');
|
93 |
+
define('TXT_WPSC_DELETE', /*'Delete'*/'삭제');
|
94 |
+
define('TXT_WPSC_REMOVE', /*'Remove'*/'소거');
|
95 |
+
define('TXT_WPSC_NAME', /*'Name'*/'이름');
|
96 |
+
define('TXT_WPSC_DESCRIPTION', /*'Description'*/'설명');
|
97 |
+
define('TXT_WPSC_CATEGORY_PARENT', /*'Category Parent'*/'상위 카테고리');
|
98 |
+
define('TXT_WPSC_IMAGE', /*'Image'*/'이미지');
|
99 |
+
define('TXT_WPSC_HEIGHT', /*'Height'*/'세로폭');
|
100 |
+
define('TXT_WPSC_WIDTH', /*'Width'*/'가로폭');
|
101 |
+
define('TXT_WPSC_PLEASEENTERAVALIDNAME', /*'Please enter a valid name'*/'이름전을 입력해 주세요');
|
102 |
+
define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', /*'Please enter a valid surname'*/'성씨를 입력해 주세요');
|
103 |
+
define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', /*'Please enter a valid email address'*/'e-mail 주소를 입력해 주세요');
|
104 |
+
define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', /*'Please enter a valid address'*/'주소를 입력해 주세요');
|
105 |
+
define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', /*'Please enter a valid phone number'*/'전화번호를 입력해 주세요');
|
106 |
+
define('TXT_WPSC_TERMSANDCONDITIONS', /*'You have not agreed to the terms and conditions'*/'조건에의 동의가 되고 있지 않습니다');
|
107 |
+
define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', /*'There is nothing in your shopping cart'*/'쇼핑이나 가 하늘입니다');
|
108 |
+
define('TXT_WPSC_SPECIALS', /*'Specials'*/'특기');
|
109 |
+
define('TXT_WPSC_BUY', /*'Buy'*/'사는');
|
110 |
+
define('TXT_WPSC_SHOPPINGCART', /*'Shopping Cart'*/'쇼핑이나 ');
|
111 |
+
define('TXT_WPSC_NUMBEROFITEMS', /*'항목수'*/'');
|
112 |
+
define('TXT_WPSC_NOMOREAVAILABLE', /*'There are no more of that item available.'*/'더 이상의 항목은 없습니다. ');
|
113 |
+
define('TXT_WPSC_EMPTYYOURCART', /*'Empty your cart'*/'쇼핑이나 를 하늘');
|
114 |
+
define('TXT_WPSC_GOTOCHECKOUT', /*'Go to Checkout'*/'결제에');
|
115 |
+
define('TXT_WPSC_CONTINUESHOPPING', /*'Continue shopping'*/'쇼핑을 계속하고');
|
116 |
+
define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', /*'Your shopping cart is empty'*/'쇼핑이나 는 하늘입니다');
|
117 |
+
define('TXT_WPSC_VISITTHESHOP', /*'Visit the shop'*/'가게에 가는');
|
118 |
+
define('TXT_WPSC_PAGES', /*'Pages'*/'페이지');
|
119 |
+
define('TXT_WPSC_OUTOF', /*'Out of'*/'밖에');
|
120 |
+
define('TXT_WPSC_VOTES', /*'votes. '*/'투표');
|
121 |
+
define('TXT_WPSC_CLICKSTARSTORATE', /*'Click stars to rate'*/'별을 클릭 해 평가해 주세요');
|
122 |
+
define('TXT_WPSC_AVERAGERATINGOF', /*'Average rating of'*/'평가의 평균');
|
123 |
+
define('TXT_WPSC_YOURVOTE', /*'Your vote'*/'당신의 투표');
|
124 |
+
define('TXT_WPSC_AVERAGEVOTE', /*'Average vote'*/'투표의 평균');
|
125 |
+
define('TXT_WPSC_YOUHAVEVOTED', /*'You have voted'*/'당신은 투표했습니다');
|
126 |
+
define('TXT_WPSC_NOVOTES', /*'No Votes'*/'투표가 없습니다');
|
127 |
+
define('TXT_WPSC_1VOTE', /*'1 Vote'*/'1표');
|
128 |
+
define('TXT_WPSC_VOTES2', /*'Votes'*/'표');
|
129 |
+
define('TXT_WPSC_PERSONGIVEN', /*'person has given this image'*/'이 이미지를 받았던');
|
130 |
+
define('TXT_WPSC_PERSONGIVEN2', /*'stars. '*/'별. ');
|
131 |
+
define('TXT_WPSC_PEOPLEGIVEN', /*'people have given this image'*/'이 획상을 받았던');
|
132 |
+
define('TXT_WPSC_PEOPLEGIVEN2', /*'stars. '*/'별. ');
|
133 |
+
define('TXT_WPSC_ITEMHASBEENADDED', /*'The item has been added'*/'항목이추가되었던');
|
134 |
+
define('TXT_WPSC_ITEMHASNOTBEENADDED', /*'The item has not been added'*/'항눈은 추가되지 않았습니다');
|
135 |
+
define('TXT_WPSC_ADDNEWCATEGORY', /*'Add New Category'*/'새로운 분류 추가');
|
136 |
+
define('TXT_WPSC_SUBMIT', /*'Submit'*/'송신');
|
137 |
+
define('TXT_WPSC_SELECTAVALIDCATEGORY', /*'Please select a valid Category'*/'카테고리를 선택해 주세요');
|
138 |
+
define('TXT_WPSC_PRODUCTNAME', /*'Product Name'*/'상품명');
|
139 |
+
define('TXT_WPSC_PRODUCTDESCRIPTION', /*'Product Description'*/'상품 설명');
|
140 |
+
define('TXT_WPSC_ADDNEWPRODUCT', /*'Add Product'*/'상품 추가');
|
141 |
+
define('TXT_WPSC_PRODUCTQUANTITY', /*'Productquantity'*/'상품량');
|
142 |
+
define('TXT_WPSC_PRODUCTIMAGE', /*'Product Image'*/'상품 이미지');
|
143 |
+
define('TXT_WPSC_PRODUCTPRICE', /*'Product Price'*/'상품 가격');
|
144 |
+
define('TXT_WPSC_NOTAX', /*'No tax'*/'비과세');
|
145 |
+
define('TXT_WPSC_ABOUT', /*'About'*/'개요');
|
146 |
+
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 />');
|
147 |
+
define('TXT_WPSC_CONTACTDETAILS', /*'Please enter your contact details:'*/'련락처의 상세를 입력해 주세요');
|
148 |
+
define('TXT_WPSC_CREDITCARDHANDY', /*'Note, Once you press submit, you willneed to have your Credit card handy. '*/'주:송신시에는 크레디트 카드를준비해 주세요. ');
|
149 |
+
define('TXT_WPSC_ASTERISK', /*'Fields marked with an asterisk must be filled in. '*/'*가 붙어있는 항목은 반드시 기입해 주세요. ');
|
150 |
+
define('TXT_WPSC_FIRSTNAME', /*'First Name'*/'성씨');
|
151 |
+
define('TXT_WPSC_LASTNAME', /*'Last Name'*/'이름');
|
152 |
+
define('TXT_WPSC_EMAIL', /*'Email'*/'e-mail 주소');
|
153 |
+
define('TXT_WPSC_ADDRESS', /*'Address'*/'주소');
|
154 |
+
define('TXT_WPSC_PHONE', /*'Phone'*/'전화번호');
|
155 |
+
define('TXT_WPSC_TERMS1', /*'I agree to The '*/'동의 합니다');
|
156 |
+
define('TXT_WPSC_TERMS2', /*'Terms and Conditions'*/'조건');
|
157 |
+
define('TXT_WPSC_MAKEPURCHASE', /*'Make Purchase'*/'쇼핑을 해 주세요');
|
158 |
+
define('TXT_WPSC_BUYPRODUCTS', /*'Please buy some products before using
|
159 |
+
this page'*/'이 페이지를 사용하기 전에 상품을 구입해 주세요');
|
160 |
+
define('TXT_WPSC_BRANDHASBEENEDITED', /*'The shape has been edited. '*/'형태상태의 편집이 되었습니다. ');
|
161 |
+
define('TXT_WPSC_SURETODELETEPRODUCT', /*'Are you sure you want to delete
|
162 |
+
this product? '*/'이 상품을 삭제해도 좋습니까? ');
|
163 |
+
define('TXT_WPSC_ADDBRAND', /*'Add Shape'*/'브랜드 추가');
|
164 |
+
define('TXT_WPSC_DISPLAYBRANDS', /*'Display Shapes'*/'브랜드 표시');
|
165 |
+
define('TXT_WPSC_EDITBRAND', /*'Edit Shape'*/'브랜드 편집');
|
166 |
+
define('TXT_WPSC_ADD', /*'Add'*/'추가');
|
167 |
+
define('TXT_WPSC_CATEGORYHASBEENEDITED', /*'The category has been edited. '*/'이 카테고리는 편집되었습니다. ');
|
168 |
+
define('TXT_WPSC_DISPLAYCATEGORIES', /*'Display Categories'*/'분류 표시');
|
169 |
+
define('TXT_WPSC_ADDCATEGORY', /*'Add Category'*/'분류 추가');
|
170 |
+
define('TXT_WPSC_EDITCATEGORY', /*'Edit Category'*/'분류 편집');
|
171 |
+
define('TXT_WPSC_ALLCATEGORIES', /*'All Categories'*/'모든 카테고리');
|
172 |
+
|
173 |
+
define('TXT_WPSC_DISPLAYVARIATIONS', /*'Display Variations'*/'종류의 표시
|
174 |
+
');
|
175 |
+
define('TXT_WPSC_ADDVARIATION', /*'Add Variation Set'*/'종류의 추가');
|
176 |
+
define('TXT_WPSC_EDITVARIATION', /*'Edit Variation Set'*/'종류의 편집');
|
177 |
+
define('TXT_WPSC_VARIATIONHASBEENEDITED', /*'The variation has been edited. '*
|
178 |
+
/'이 종류는 편집되었습니다. ');
|
179 |
+
define('TXT_WPSC_VARIATION_VALUES', /*'Variation Values'*/'종류의 값');
|
180 |
+
define('TXT_WPSC_REMOVE_SET', /*'Remove Set'*/'삭제');
|
181 |
+
|
182 |
+
define('TXT_WPSC_SELECT_PARENT', /*'Select Parent'*/'상위 선택');
|
183 |
+
define('TXT_WPSC_PRODUCTHASBEENEDITED', /*'The product has been edited. '*/'와의 상품은 편집되었습니다. ');
|
184 |
+
define('TXT_WPSC_ADDPRODUCT', /*'Add Product'*/'상품 추가');
|
185 |
+
define('TXT_WPSC_DISPLAYPRODUCTS', /*'Display Products'*/'상품 표시');
|
186 |
+
define('TXT_WPSC_PLEASESELECTACATEGORY', /*'Please Select a Category'*/'카테고리를 선택해 주세요');
|
187 |
+
define('TXT_WPSC_STOCK', /*'Stock'*/'재고');
|
188 |
+
define('TXT_WPSC_PNP', /*'PnP'*/'PnP');
|
189 |
+
define('TXT_WPSC_EDITITEM', /*'Edit Item'*/'항목의 편집');
|
190 |
+
define('TXT_WPSC_PRODUCTDETAILS', /*'Product Details'*/'상품 설명');
|
191 |
+
define('TXT_WPSC_SELECT_PRODUCT', /*'Select an Existing Product'*/'기존 상품 선택');
|
192 |
+
define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', /*'(enter in your product details
|
193 |
+
here)'*/'(여기에 당신의 상품 설명을 입력해 주세요)');
|
194 |
+
define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', /*'Additional Product Description'
|
195 |
+
*/'상품 설명의 추가');
|
196 |
+
define('TXT_WPSC_ADDITEM', /*'Add Item'*/'항목의 추가');
|
197 |
+
define('TXT_WPSC_CHOOSEACATEGORY', /*'Choose a Category'*/'분류 선거택');
|
198 |
+
define('TXT_WPSC_CHOOSEABRAND', /*'Choose a Shape'*/'브랜드 선택');
|
199 |
+
define('TXT_WPSC_USETHEACTUALIMAGE', /*'use the actual image. No resize. '*/'열매이미지을 사용해 주세요. 사이즈의 변경은 할 수 없습니다. ');
|
200 |
+
define('TXT_WPSC_DISPLAYPURCHASES', /*'Display Purchases'*/'쇼핑의 표시');
|
201 |
+
define('TXT_WPSC_ID', /*'ID'*/'ID');
|
202 |
+
define('TXT_WPSC_TRANSACTIONSTATUS', /*'Transaction Status'*/'거래 상태');
|
203 |
+
define('TXT_WPSC_DATE', /*'Date'*/'일자');
|
204 |
+
define('TXT_WPSC_VIEWDETAILS', /*'View Details'*/'외형의 상세');
|
205 |
+
define('TXT_WPSC_STATUS', /*'Status'*/'상태');
|
206 |
+
define('TXT_WPSC_SUCCESSFUL', /*'Successful'*/'성공');
|
207 |
+
define('TXT_WPSC_FAILED', /*'Failed'*/'실패');
|
208 |
+
define('TXT_WPSC_GST', /*'GST'*/'GST');
|
209 |
+
define('TXT_WPSC_PP', /*'P&P'*/'P&P');
|
210 |
+
define('TXT_WPSC_TOTAL', /*'Total'*/'총액');
|
211 |
+
define('TXT_WPSC_FINALTOTAL', /*'Final Total'*/'최종 총액');
|
212 |
+
define('TXT_WPSC_CUSTOMERDETAILS', /*'Customer Details'*/'고객의 상세');
|
213 |
+
define('TXT_WPSC_USERSCARTWASEMPTY', /*'This users cart was empty'*/'카드가 비어있습니다');
|
214 |
+
define('TXT_WPSC_GOBACK', /*'Go Back'*/'돌아오는');
|
215 |
+
define('TXT_WPSC_THANKSAPPLIED', /*'Thanks, your changes have been applied. '*
|
216 |
+
/'감사합니다. 당신의 거래는 적용되었습니다. ');
|
217 |
+
define('TXT_WPSC_OPTIONS', /*'Shop Options'*/'가게의 옵션');
|
218 |
+
define('TXT_WPSC_PAYMENTGATEWAY2', /*'Payment Gateway'*/'지불 창구');
|
219 |
+
define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', /*'Please Select A Payment
|
220 |
+
Gateway'*/'지불 창구를 선택해 주세요');
|
221 |
+
define('TXT_WPSC_PAYMENTGATEWAYNOTE', /*'<strong>Note:</strong> This lite
|
222 |
+
version of the e-Commerce plugin only allows you to interface with PayPal. <br
|
223 |
+
/><br />If you are looking for a more profesional "non paypal solution"
|
224 |
+
then we have a gold version of e-Commerce available that interfaces seamlessly
|
225 |
+
with DPS (www.dps.co.nz), and paystation (www.paystation.co.nz). <br /><br
|
226 |
+
/>Contact info@instinct.co.nz for more information or check out www.instinct.
|
227 |
+
co.nz/plugins/ <br /><br />Ciao! '*/'<strong>주:</strong> 이 lite version의
|
228 |
+
e-Commerce plugin는 PayPal에 연결할 뿐입니다. <br /><br />만약 PayPal는 아닌을
|
229 |
+
찾아라면 DPS (www.dps.co.nz)나 paystation (www.paystation.co.nz)를 사용해
|
230 |
+
주세요. <br /><br />컨택트 info@instinct.co.nz 혹은 www.instinct.co.
|
231 |
+
nz/plugins/ <br /><br />Ciao! ');
|
232 |
+
define('TXT_WPSC_URLSETTINGS', /*'URL Settings'*/'URL의 설정');
|
233 |
+
define('TXT_WPSC_PRODUCTLISTURL', /*'Product List URL'*/'상품 리스트의 URL');
|
234 |
+
define('TXT_WPSC_SHOPPINGCARTURL', /*'Shopping Cart URL'*/'쇼핑이나 의 URL');
|
235 |
+
define('TXT_WPSC_CHECKOUTURL', /*'Checkout URL'*/'결제의 URL');
|
236 |
+
define('TXT_WPSC_TRANSACTIONDETAILSURL', /*'Transaction Details URL'*/'취인 상세한 URL');
|
237 |
+
define('TXT_WPSC_PRESENTATIONSETTINGS', /*'Presentation Settings'*/'소개설정');
|
238 |
+
define('TXT_WPSC_CARTLOCATION', /*'Cart Location'*/'쇼핑이나 의 장소');
|
239 |
+
define('TXT_WPSC_SIDEBAR', /*'Sidebar'*/'사이드바');
|
240 |
+
define('TXT_WPSC_PAGE', /*'Page'*/'페이지');
|
241 |
+
define('TXT_WPSC_WIDGET', /*'Widget'*/'대표 상품');
|
242 |
+
define('TXT_WPSC_NEEDTOENABLEWIDGET', /*'You need to enable the widgets
|
243 |
+
plugin to use this'*/'이것을 사용하기 위해서(때문에)는 플러그 인이 필요합니다');
|
244 |
+
define('TXT_WPSC_MANUAL', /*'Manual'*/'설명서');
|
245 |
+
define('TXT_WPSC_SHOWCATEGORIESBRANDS', /*'Show Categories/Shapes'*/'양식고리/속성을 보는');
|
246 |
+
define('TXT_WPSC_BOTH', /*'Both'*/'양쪽 모두');
|
247 |
+
define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', /*'Default Product Thumbnail Size'*/'디폴트의 간결한 상품 사이즈');
|
248 |
+
define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', /*'Default Category Thumbnail Size'*
|
249 |
+
/'디폴트의 간결의 카테고리 사이즈');
|
250 |
+
define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', /*'Show Postage and Packaging'*/'송료와 포장비의 표시');
|
251 |
+
define('TXT_WPSC_YES', /*'Yes'*/'네');
|
252 |
+
define('TXT_WPSC_NO', /*'No'*/'아니오');
|
253 |
+
define('TXT_WPSC_SHOWSPECIALS', /*'Show Specials'*/'특기');
|
254 |
+
define('TXT_WPSC_SHOWPRODUCTRATINGS', /*'Show Product Ratings'*/'상품 각 청구서를 표시');
|
255 |
+
define('TXT_WPSC_CURRENCYSETTINGS', /*'Currency Settings'*/'통화의 설정');
|
256 |
+
define('TXT_WPSC_GSTTAXRATE', /*'GST/Tax Rate'*/'GST/과세율');
|
257 |
+
define('TXT_WPSC_CURRENCYTYPE', /*'Currency Type'*/'통화의 종류');
|
258 |
+
define('TXT_WPSC_CURRENCYSIGNLOCATION', /*'Currency Sign Location'*/'통화 기호의 위치');
|
259 |
+
define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', /*'Default Postage & Packaging'*/'기본 배송료와 포장비');
|
260 |
+
define('TXT_WPSC_ADMINISTRATIONSETTINGS', /*'Administration Settings'*/'관리설정');
|
261 |
+
define('TXT_WPSC_MAXDOWNLOADSPERFILE', /*'Max downloads per file'*/'다운로드파일 최대 크기');
|
262 |
+
define('TXT_WPSC_PURCHASELOGEMAIL', /*'Purchase Log Email'*/'쇼핑 로그의 메일');
|
263 |
+
define('TXT_WPSC_ORDER_LOG', 'Orders'); /* needs translation */
|
264 |
+
define('TXT_WPSC_ORDER', 'Order'); /* needs translation */
|
265 |
+
define('TXT_WPSC_REPLYEMAIL', /*'Reply Email'*/'회답 메일');
|
266 |
+
define('TXT_WPSC_BRANDNOCAP', /*'shape'*/'속성');
|
267 |
+
define('TXT_WPSC_CATEGORYNOCAP', /*'category'*/'카테고리');
|
268 |
+
define('TXT_WPSC_UDPATING', /*'Updating'*/'갱신');
|
269 |
+
define('TXT_WPSC_MOREDETAILS', /*'More Details'*/'한층 더 상세');
|
270 |
+
define('TXT_WPSC_ADDTOCART', /*'Add To Cart'*/'찜하기');
|
271 |
+
define('TXT_WPSC_AVGCUSTREVIEW', /*'Avg. Customer Rating'*/'고객의 평가평균');
|
272 |
+
define('TXT_WPSC_YOURRATING', /*'Your Rating'*/'상품 평가');
|
273 |
+
define('TXT_WPSC_RATING_SAVED', /*'Saved'*/'등록');
|
274 |
+
define('TXT_WPSC_RATETHISITEM', /*'Rate This item'*/'이 항목의 평가');
|
275 |
+
define('TXT_WPSC_PRODUCTSOLDOUT', /*'This product has sold out. '*/'품절 ');
|
276 |
+
define('TXT_WPSC_NOITEMSINTHIS', /*'There are no items in this'*/'항목이 없습니다');
|
277 |
+
define('TXT_WPSC_CATEGORYORBRAND', /*'Category or Shape'*/'카테고리/속성');
|
278 |
+
define('TXT_WPSC_PLEASECHOOSEA', /*'Please choose a'*/'선택해 주세요');
|
279 |
+
define('TXT_WPSC_PRODUCT', /*'Product'*/'상품');
|
280 |
+
define('TXT_WPSC_QUANTITY', /*'Quantity'*/'수량');
|
281 |
+
define('TXT_WPSC_APPLY', /*'Apply'*/'적용');
|
282 |
+
define('TXT_WPSC_MAKEPAYMENT', /*'Make Payment'*/'지불');
|
283 |
+
define('TXT_WPSC_EMPTYSHOPPINGCART', /*'Empty shopping cart'*/'빈 쇼핑카트');
|
284 |
+
define('TXT_WPSC_TOTALPRICE', /*'Total Price'*/'총액');
|
285 |
+
define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', /*'There are no items in the
|
286 |
+
shopping cart'*/'쇼핑카트가 비어 있습니다');
|
287 |
+
define('TXT_WPSC_EMAILMSG1', /*"Thank you, the order has been accepted,
|
288 |
+
any items to be shipped will be processed as soon as possible, any items
|
289 |
+
that can be downloaded can be downloaded using the links on this page. \n\r\n\rAll
|
290 |
+
prices include tax and postage and packaging where applicable. \n\r\n\rYou
|
291 |
+
ordered these items:\n\r\n\r"*/"감사합니다. 주문을 접수했습니다
|
292 |
+
. 빠른 배송을 약속드립니다. \n\r\n\r 모든 가격에 세금, 배송료 및 포장비를 포함하고 있습니다 :\n\r\n\r");
|
293 |
+
define('TXT_WPSC_EMAILMSG2', /*". \n\rThese items were ordered:\n\r\n\r"*/". \n\r 주문 상품 이력 :\n\r\n\r");
|
294 |
+
define('TXT_WPSC_CLICKTODOWNLOAD', /*'Click here to download'*/'여기를 클릭해 다운로드해 주세요');
|
295 |
+
define('TXT_WPSC_DOWNLOAD', /*'Download'*/'다운로드');
|
296 |
+
define('TXT_WPSC_YOURTRANSACTIONID', /*'Your Transaction ID'*/'승인ID');
|
297 |
+
define('TXT_WPSC_TRANSACTIONID', /*'Transaction ID'*/'거래 ID');
|
298 |
+
define('TXT_WPSC_PURCHASERECEIPT', /*'Purchase Receipt'*/'쇼핑 영수증');
|
299 |
+
define('TXT_WPSC_PURCHASEREPORT', /*'Purchase Report'*/'쇼핑 리포트');
|
300 |
+
define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', /*'The Transaction was successful'*/'거래 완료');
|
301 |
+
define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', /*'The Transaction was not successful'*/'거래 실패');
|
302 |
+
define('TXT_WPSC_GOBACKTOCHECKOUT', /*'Go back to the checkout'*/'결제로 가기');
|
303 |
+
define('TXT_WPSC_SPECIALPRICE', /*'Special Price'*/'특별 가격');
|
304 |
+
|
305 |
+
define('TXT_WPSC_INSTRUCTIONS', /*'
|
306 |
+
To complete the installation you need to create the Product, Shopping
|
307 |
+
Cart, Checkout and Transaction Result pages, and then hide the Shopping
|
308 |
+
Cart, Checkout and Transaction Result pages so that they do not appear in
|
309 |
+
the pages list.
|
310 |
+
<ul class=\'installation\'>
|
311 |
+
<li>Place contents of zip file in the wp-content/plugins directory. </li>
|
312 |
+
<li>Activate the plugin from the wordpress plugin page</li>
|
313 |
+
<li>Go to the "Payment Gateway Options" page in the "e-Commerce" tab,
|
314 |
+
and enter in the appropriate details. (the default paypal gateway accessed
|
315 |
+
is the paypal sandbox)</li>
|
316 |
+
<li>Create some Categories and Products using the Categories and Products
|
317 |
+
pages</li>
|
318 |
+
</ul>
|
319 |
+
Expecting more? That\'s it. </p>
|
320 |
+
<h2>Wishlist Tip Jar</h2>
|
321 |
+
<p>Donations are in no way mandatory. <br /><br />
|
322 |
+
Yet, we have been spending considerable amounts of time writing, supporting
|
323 |
+
and debugging WP e-commerce. Therefore, if you like what you see, and want
|
324 |
+
to see more of it, feel free to help finance future releases by dropping
|
325 |
+
a buck or two in the tip jar...</p>
|
326 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
327 |
+
<input type="hidden" name="cmd" value="_s-xclick">
|
328 |
+
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif"
|
329 |
+
border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free
|
330 |
+
and secure!">
|
331 |
+
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAh/
|
332 |
+
vca+S7Em1KNH3rhwBRD1h4c0DdQSgmknr8mKQU7KfG5jSYXu5DD9oriGfYSDg+99ZtljIwtqvefC0wKdEJ0yFMGinWp9zGw2Xvu1s4S+
|
333 |
+
pcH5IGax9KQo1WosnzA99F04MHQnqkxcfpTXCG8VLSf/r/rx8+++vVsYWNYN717+DELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIHATWqFYRAjeAgaB2F/
|
334 |
+
F90mbYo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AgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/
|
340 |
+
zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+
|
341 |
+
XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/
|
342 |
+
cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDYwMzA5MjA0ODA4WjAjBgkqhkiG9w0BCQQxFgQUCBfIACnHn+
|
343 |
+
V2COlj8DDv2MsFJRIwDQYJKoZIhvcNAQEBBQAEgYCMXnxnBNyUy7axfHh9EDVq7HFzTvTsGwtmAUVesOyRNGwESXpukrX4rDOMNdHbbVToxa98uIKJUJPiYGBcpcUywtpZG1ZiDvYxoWgDh4zXx4w1QcJ96OjUPkHQ3q0UWY+
|
344 |
+
p9GRxl+buhyjK62BxU5I0UaKc0H3QuATQB5+lbZdlgw==-----END PKCS7-----">
|
345 |
+
</form>
|
346 |
+
<h2>Customisation and Tips</h2>
|
347 |
+
<p><strong>GST & Tax</strong><br />If required you can enter in a default
|
348 |
+
GST/Tax rate on the Options page in the "e-Commerce" tab. </p>
|
349 |
+
<p><strong>Email purchase Logs</strong><br />If you add an email address
|
350 |
+
for the purchase log on the Purchase Log page this will be the email address
|
351 |
+
that is sent a purchase notification each time something is bought. </p>
|
352 |
+
<p><strong>Hiding pages</strong><br />
|
353 |
+
To prevent the Shopping Cart, Checkout and Transaction Results pages from
|
354 |
+
being displayed in the page list you must first find out their ID numbers.
|
355 |
+
<br />
|
356 |
+
<br />Then you have to edit the file in the theme you use that displays
|
357 |
+
pages. <br />
|
358 |
+
<br />This is normally found in sidebar.php, find the line similar to:<br
|
359 |
+
/>
|
360 |
+
<br />"<? php wp_list_pages(\'title_li=<h2>Pages</h2>\'
|
361 |
+
); ? >"<br />
|
362 |
+
<br />Edit the line accordingly, for example:<br />
|
363 |
+
<br />"<? php wp_list_pages(\'title_li=<h2>Pages<h2>&exclude=3,
|
364 |
+
4,5\'); ? >"<br />
|
365 |
+
<br />The word exclude tells it to exclude the pages from the list, and
|
366 |
+
the numbers after the word exclude are the ID numbers of the pages to exclude.
|
367 |
+
</p>
|
368 |
+
<p><strong>Upgrading from Previous Version</strong><br />
|
369 |
+
If you are upgrading from a previous version, you will need to deactivate
|
370 |
+
and reactivate the plugin. </p>
|
371 |
+
<p><strong>Image Functions</strong><br />
|
372 |
+
If your server does not have the PHP image functions installed, you will
|
373 |
+
not be able to resize images once they are uploaded</p>
|
374 |
+
<p><strong>Permalinks</strong><br />
|
375 |
+
We\'re doing the best we can.
|
376 |
+
I have not been able to find a really good way to pass the required variables
|
377 |
+
from page to page using permalinks that dont use mod_rewrite, if you cant
|
378 |
+
use mod_rewrite, the plugin may not work with permalinks turned on. </p>
|
379 |
+
<p><strong>Javascript and Ajax </strong><br />
|
380 |
+
e-commerce lite uses Ajax, the shopping cart that the user sees will work
|
381 |
+
without Javascript, but the Administration pages (specifically the Products
|
382 |
+
and Categories pages) will not. To use the Administration section you will
|
383 |
+
need to use a reasonably modern browser and have Javascript turned on. (Internet
|
384 |
+
Explorer 6 or better, or Firefox 1.0 or better, older versions have not
|
385 |
+
been tested for and may or may not work)</p>
|
386 |
+
<p><strong>Contact Us</strong><br />
|
387 |
+
email us: tom@instinct.co.nz <br />
|
388 |
+
website: www.instinct.co.nz
|
389 |
+
'*/'
|
390 |
+
상품,쇼핑이나 결제 및 거래 결과 페이지를 작성후 페이지를 숨기면 리스트에 나타나지 않습니다.
|
391 |
+
<ul class=\'installation\'>
|
392 |
+
<li>wp-content/plugins 디렉토리내의 zip파일 컨텐츠 위치. </li>
|
393 |
+
<li>wordpress 플러그 인 페이지로부터 플러그 인을 이동해 주세요</li>
|
394 |
+
<li>「e-Commerce」탭의 「Payment Gateway Options」페이지로가 주세요. (paypal게이트웨이 디폴트는 paypal sandbox입니다)</li>
|
395 |
+
<li>카테고리나 상품 신규 입력은 카테고리 또는 상품 페이지로 가
|
396 |
+
주세요</li>
|
397 |
+
</ul>
|
398 |
+
Expecting more? That\'s it. </p>
|
399 |
+
<h2>Wishlist Tip Jar</h2>
|
400 |
+
<p>기부는 결코 의무가 아닙니다. <br /><br />
|
401 |
+
그러나 우리는 상당한 양의 시간에 WP e-commerce를 지원하고
|
402 |
+
디버그 하는데 소비하고 있습니다. Tip jar에 1달러나 2달러를 지원해 향후
|
403 |
+
릴리스를 도와 주세요…</p>
|
404 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
405 |
+
<input type="hidden" name="cmd" value="_s-xclick">
|
406 |
+
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif"
|
407 |
+
border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free
|
408 |
+
and secure!">
|
409 |
+
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQ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vcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDYwMzA5MjA0ODA4WjAjBgkqhkiG9w0BCQQxFgQUCBfIACnHn+
|
421 |
+
V2COlj8DDv2MsFJRIwDQYJKoZIhvcNAQEBBQAEgYCMXnxnBNyUy7axfHh9EDVq7HFzTvTsGwtmAUVesOyRNGwESXpukrX4rDOMNdHbbVToxa98uIKJUJPiYGBcpcUywtpZG1ZiDvYxoWgDh4zXx4w1QcJ96OjUPkHQ3q0UWY+
|
422 |
+
p9GRxl+buhyjK62BxU5I0UaKc0H3QuATQB5+lbZdlgw==-----END PKCS7-----">
|
423 |
+
</form>
|
424 |
+
<h2>변경과 팁</h2>
|
425 |
+
<p><strong>GST & Tax</strong><br />필요하면 「e-Commerce」탭에서
|
426 |
+
기본 설정된 GST/과세율 페이지에 들어갈 수가 있습니다. </p>
|
427 |
+
<p><strong>Email purchase Logs</strong><br />상품 구매시에 거래 상황이 기록되어 이메일로 보내 집니다.</p>
|
428 |
+
<p><strong>페이지 숨기기</strong><br />쇼핑이나 결제, 거래 결과 페이
|
429 |
+
지가 페이지 리스트에 출력되지 않게 하려면 해당 페이지의 ID를 알고 있어야 합니다.<br />
|
430 |
+
<br />그리고 테마의 해당 페이지를 편집해야 합니다. <br />
|
431 |
+
<br />보통 sidebar.php를 편집하는 경우입니다:<br />
|
432 |
+
<br />"<? php wp_list_pages(\'title_li=<h2>Pages</h2>\'
|
433 |
+
); ? >"<br />
|
434 |
+
<br />위와 같이 다양하게 편집할 수 있습니다. />"<? php wp_list_pages(\'title_li=<h2>Pages<h2>&exclude=3,
|
435 |
+
4,5\'); ? >"<br />
|
436 |
+
<br />exclude는 리스트에 넣지않을 페이지 ID와 함께 쓰면됩니다.
|
437 |
+
<p><strong>구버젼에서 업그레이드</strong><br />
|
438 |
+
구버젼에서 업그레이드 하기 위해서는 플러그 인을 무효로 한 후 다시 유효화 시키시면 됩니다.</p>
|
439 |
+
<p><strong>Image function</strong><br />
|
440 |
+
현재버가 PHP의 mage function를 인지원하지 않으면 업로드된이미지의 사이즈를 변경할 수가 없습니다. </p>
|
441 |
+
<p><strong>Permalinks</strong><br />
|
442 |
+
우리는 다할 수가 있는 최선을 다하고 있습니다.
|
443 |
+
mod_rewrite를 이용하지 않고 permalinks를 이용한 페이지로부터 페이지로 필요한
|
444 |
+
변수를 건네주기 위한 정말로 좋은 방법을 찾아낼 수가 없었습니다, 만약 mod_rewrite가
|
445 |
+
사용할 수 없으면, permalinks를 유효하게 하지 않으면 플러그 인은 동작하지 않습니다.
|
446 |
+
</p>
|
447 |
+
<p><strong>Javascript and Ajax </strong><br />
|
448 |
+
e-commerce lite 는 Ajax를 이용하고 있습니다. 쇼핑화면은 JavaScript없이 동작
|
449 |
+
하지만 관리 화면(특히 상품이나 분류 페이지)은 그렇지는 않습니다.
|
450 |
+
관리 화면을 조작하기 위해서는 브라우저의 설정에 JavaScript를 유효하게 해 주세요.
|
451 |
+
(Internet Explorer 6이상, Firefox 1.0이상으로 동작합니다)</p>
|
452 |
+
<p><strong>Contact Us</strong><br />
|
453 |
+
email us: tom@instinct.co.nz <br />
|
454 |
+
website: www.instinct.co.nz
|
455 |
+
');
|
456 |
+
|
457 |
+
define('TXT_WPSC_ORDER_STATUS', '주문 현황'); /* needs translation
|
458 |
+
*/
|
459 |
+
define('TXT_WPSC_ORDER_SUMMARY', '주문 요약'); /* needs translation
|
460 |
+
*/
|
461 |
+
define('TXT_WPSC_LANGUAGE', '언어'); /* needs translation */
|
462 |
+
define('TXT_WPSC_ACCEPTED_PAYMENT', '지원되는 결제방법'); /* needs translation
|
463 |
+
*/
|
464 |
+
define('TXT_WPSC_JOB_DISPATCHED', 'Job Dispatched'); /* needs translation
|
465 |
+
*/
|
466 |
+
define('TXT_WPSC_TYPE', 'Type'); /* needs translation; */
|
467 |
+
define('TXT_WPSC_MANDATORY', 'Mandatory'); /* needs translation; */
|
468 |
+
define('TXT_WPSC_DISPLAY_IN_LOG', 'Display<br /> in Log'); /* needs translation;
|
469 |
+
*/
|
470 |
+
define('TXT_WPSC_ADDRESS1', '주소 1'); /* needs translation; */
|
471 |
+
define('TXT_WPSC_ADDRESS2', '주소 2'); /* needs translation; */
|
472 |
+
define('TXT_WPSC_CITY', '시/군/구'); /* needs translation; */
|
473 |
+
define('TXT_WPSC_COUNTRY', 'Country'); /* needs translation; */
|
474 |
+
define('TXT_WPSC_TEXT', 'Text'); /* needs translation; */
|
475 |
+
define('TXT_WPSC_TEXTAREA', 'Textarea'); /* needs translation; */
|
476 |
+
define('TXT_WPSC_ADD_NEW_FORM', '새 폼필드 추가'); /* needs translation;
|
477 |
+
*/
|
478 |
+
define('TXT_WPSC_SAVE_CHANGES', '변경사항 저장'); /* needs translation;
|
479 |
+
*/
|
480 |
+
define('TXT_WPSC_PLEASEENTERAVALID', '잘못 입력하셨습니다'); /* needs
|
481 |
+
translation; */
|
482 |
+
define('TXT_WPSC_FORM_FIELDS', 'Checkout Form Fields'); /* needs translation;
|
483 |
+
*/
|
484 |
+
|
485 |
+
define('TXT_WPSC_SHIPPINGSETTINGS', '배송 설정');
|
486 |
+
define('TXT_WPSC_BASE_LOCAL', '국내 배송');
|
487 |
+
define('TXT_WPSC_BASE_INTERNATIONAL', '해외 배송');
|
488 |
+
define('TXT_WPSC_BASE_COUNTRY', 'Base Country');
|
489 |
+
|
490 |
+
define('TXT_WPSC_SHIPPING_DETAILS', '추가 배송비'); // this needs updating
|
491 |
+
define('TXT_WPSC_LOCAL_PNP', '국내 배송비'); // this needs updating
|
492 |
+
define('TXT_WPSC_INTERNATIONAL_PNP', '국제 배송비'); // this needs updating
|
493 |
+
define('TXT_WPSC_SHIPPING_NOTE', 'Note: charged only once per product regardless of quantity ordered. ');
|
494 |
+
define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Country Form Field');
|
495 |
+
define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the country)');
|
496 |
+
|
497 |
+
define('TXT_WPSC_SHIPPING', '배송');
|
498 |
+
define('TXT_WPSC_EMAIL_FORM_FIELD', 'Email Form Field');
|
499 |
+
define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(select which form field on the checkout page you want to use for specifying the email address)');
|
500 |
+
|
501 |
+
define('TXT_WPSC_QUANTITY_SHORT', '수량'); //translation needed
|
502 |
+
define('TXT_WPSC_PRODUCTIMAGES', '상품 이미지');
|
503 |
+
define('TXT_WPSC_PRODUCTDOWNLOAD', '상품 다운로드');
|
504 |
+
define('TXT_WPSC_SHOWTHUMBNAILS', '썸네일 보여주기');
|
505 |
+
|
506 |
+
define('TXT_WPSC_DELIVERY_ADDRESS', '배송 주소'); //translation needed
|
507 |
+
define('TXT_WPSC_DELIVERY_CITY', '배송지(시)'); //translation needed
|
508 |
+
define('TXT_WPSC_DELIVERY_COUNTRY', '배송 국가'); //translation needed
|
509 |
+
|
510 |
+
define('TXT_WPSC_DOWNLOAD_CSV', 'CSV파일 다운로드'); //translation needed
|
511 |
+
define('TXT_WPSC_PREVIEW_FILE', '파일 미리보기'); //needed
|
512 |
+
define('TXT_WPSC_REPLACE_PRODUCT', 'Relace Product'); //translation needed
|
513 |
+
?>
|
wp-shopping-cart/languages/RU_ru.php
ADDED
@@ -0,0 +1,476 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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', 'Примечание: если оставить пустым, размеры изображения изменяться не будут');
|
7 |
+
define('TXT_WPSC_RECEIVED', 'Заказ получен');
|
8 |
+
define('TXT_WPSC_ORDER_STATUS', 'Состояние заказа');
|
9 |
+
define('TXT_WPSC_ORDER_SUMMARY', 'Заказ полностью');
|
10 |
+
define('TXT_WPSC_ORDER_DETAILS','Заказ детально');
|
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_EXAMPLECATEGORY', 'Пример категории');
|
29 |
+
define('TXT_WPSC_TOTAL_THIS_MONTH', 'Заработано денег в этом месяце');
|
30 |
+
define('TXT_WPSC_MONTHLY_REPORT', 'Отчет за полугодие');
|
31 |
+
define('TXT_WPSC_TOTAL_INCOME', 'Общий доход');
|
32 |
+
define('TXT_WPSC_ACCEPTED_PAYMENTS', '(полученных оплат)'); //texr has changed slightly
|
33 |
+
define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', 'Настройки оплаты');
|
34 |
+
define('TXT_WPSC_HELPINSTALLATION', 'Помощь/Обновление');
|
35 |
+
define('TXT_WPSC_EXAMPLECATEGORY', 'Пример категории');
|
36 |
+
define('TXT_WPSC_EXAMPLEDETAILS', 'Пример описания');
|
37 |
+
define('TXT_WPSC_EXAMPLEBRAND', 'Пример бренда(производителя)');
|
38 |
+
define('TXT_WPSC_PRODUCTIMAGEWIDTH', 'ширина изображения товара');
|
39 |
+
define('TXT_WPSC_PRODUCTIMAGEHEIGHT', 'высота изображения товара');
|
40 |
+
define('TXT_WPSC_CATEGORYIMAGEWIDTH', 'ширина изображения категории');
|
41 |
+
define('TXT_WPSC_CATEGORYIMAGEHEIGHT', 'высота изображения категории');
|
42 |
+
define('TXT_WPSC_PRODUCTLISTURL', 'Место расположения списка товаров');
|
43 |
+
define('TXT_WPSC_SHOPPINGCARTURL', 'Место расположения корзины');
|
44 |
+
define('TXT_WPSC_CHECKOUTURL', 'Место расположения журнала проверки');
|
45 |
+
define('TXT_WPSC_TRANSACTURL', 'Позиция в журнале транзакций');
|
46 |
+
define('TXT_WPSC_PAYMENTGATEWAY', 'Используемый gateway для оплаты');
|
47 |
+
define('TXT_WPSC_CARTLOCATION', 'Место расположения корзины');
|
48 |
+
define('TXT_WPSC_SHOWCATEGORYBRANDS', 'Отображать категории или бренды(производителей), или оба');
|
49 |
+
define('TXT_WPSC_CURRENCYTYPE', 'Тип валюты');
|
50 |
+
define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Положение значка валюты');
|
51 |
+
define('TXT_WPSC_GSTRATE', 'ставка GST');
|
52 |
+
define('TXT_WPSC_MAXDOWNLOADS', 'Ограничение на скачивание до');
|
53 |
+
define('TXT_WPSC_DISPLAYPNP', 'Отображать/не отображать отправку почтой и упаковку');
|
54 |
+
define('TXT_WPSC_DISPLAYSPECIALS', 'Отображать/не отображать специальное в боковой колонке');
|
55 |
+
define('TXT_WPSC_POSTAGEAND_PACKAGING', 'Отправка почтой и упаковка по умолчанию');
|
56 |
+
define('TXT_WPSC_PURCHLOGEMAIL', 'Email куда будет отправлен отчет о покупке');
|
57 |
+
define('TXT_WPSC_RETURNEMAIL', 'Email с которго будет прислан отчет о покупке');
|
58 |
+
define('TXT_WPSC_TERMSANDCONDITIONS', 'Checkout terms and conditions');
|
59 |
+
define('TXT_WPSC_DEFAULTBRAND', 'Бренд(производитель) по умолчанию');
|
60 |
+
define('TXT_WPSC_DEFAULTCATEGORY', 'Категория по умолчанию');
|
61 |
+
define('TXT_WPSC_PAYPALBUSINESS', 'paypal имя');
|
62 |
+
define('TXT_WPSC_PAYPALURL', 'paypal url');
|
63 |
+
define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Показывать рейтинг товаров');
|
64 |
+
define('TXT_WPSC_PRODUCTSPAGE', 'Страница товаров');
|
65 |
+
define('TXT_WPSC_CHECKOUT', 'Проверка заказа');
|
66 |
+
define('TXT_WPSC_ENTERDETAILS', 'Введите Ваши данные');
|
67 |
+
define('TXT_WPSC_TRANSACTIONRESULTS', 'Результаты транзакции');
|
68 |
+
define('TXT_WPSC_SELECTACATEGORY', 'Выберите категорию');
|
69 |
+
define('TXT_WPSC_SELECTABRAND', 'Выберите бренд(производителя)');
|
70 |
+
define('TXT_WPSC_PRODUCTNAME', 'Имя товара');
|
71 |
+
define('TXT_WPSC_PRODUCTDESCRIPTION', 'Описание товара');
|
72 |
+
define('TXT_WPSC_ADDITIONALDESCRIPTION', 'Дополнительное описание');
|
73 |
+
define('TXT_WPSC_PRICE', 'Цена');
|
74 |
+
define('TXT_WPSC_TAXALREADYINCLUDED', 'Налог уже включен (налог устанавливается на странице настройки магазина)'); // this text has changed and needs updating
|
75 |
+
define('TXT_WPSC_SPECIAL', 'Скидка'); // this text has changed and needs updating
|
76 |
+
define('TXT_WPSC_PRODUCT_DISPLAY', 'Показать товар');
|
77 |
+
define('TXT_WPSC_POSTAGE', 'Пересылка');
|
78 |
+
define('TXT_WPSC_SUBTOTAL', 'Промежуточная сумма');
|
79 |
+
define('TXT_WPSC_TOTALSHIPPING','Доставка');
|
80 |
+
define('TXT_WPSC_PRODUCTSTOCK', 'Количество на складе');
|
81 |
+
define('TXT_WPSC_PURCHASE_NUMBER','Номер заказа');
|
82 |
+
define('TXT_WPSC_UNTICKBOX', 'На складе ограниченное количество этого товара. Если склад опустеет, этот продукт не будет доступен в магазине пока эта птичка не будет снята или не пополнен склад.');
|
83 |
+
define('TXT_WPSC_LIMITED_STOCK', 'Ограничение запаса');
|
84 |
+
|
85 |
+
define('TXT_WPSC_CATEGORY', 'Категория');
|
86 |
+
define('TXT_WPSC_BRAND', 'Бренд(производитель)');
|
87 |
+
define('TXT_WPSC_PRODUCT_VARS', 'Изменения товара');
|
88 |
+
define('TXT_WPSC_ADD_VAR', 'Добавить набор изменений');
|
89 |
+
define('TXT_WPSC_EDIT_VAR', 'Редактировать набор изменений');
|
90 |
+
define('TXT_WPSC_SELECTAVARIATION', 'Выбрать изменения');
|
91 |
+
define('TXT_WPSC_NEW_VARIATION', 'Создать новое изменение');
|
92 |
+
|
93 |
+
define('TXT_WPSC_PRODUCTATT', 'Приложения к товару');
|
94 |
+
define('TXT_WPSC_DOWNLOADABLEPRODUCT', 'Товар можно скачать');
|
95 |
+
define('TXT_WPSC_FILETOBEPRODUCT', 'Примечание: если заполненено, загруженный файл будет продуктом, который можно будет купить.');
|
96 |
+
define('TXT_WPSC_RESIZEIMAGE', 'Изменить размеры превью');
|
97 |
+
define('TXT_WPSC_DONOTRESIZEIMAGE', 'не изменять размеры превью.');
|
98 |
+
define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', 'использовать ширину и высоту по умолчанию');
|
99 |
+
define('TXT_WPSC_USE', 'использовать');
|
100 |
+
define('TXT_WPSC_PXHEIGHTBY', 'высота в px');
|
101 |
+
define('TXT_WPSC_PXHEIGHT', 'высота в px'); // Needs Translation
|
102 |
+
define('TXT_WPSC_PXWIDTH', 'ширина в px');
|
103 |
+
define('TXT_WPSC_PREVIEW', 'Предпросомтр');
|
104 |
+
define('TXT_WPSC_UPLOADNEWIMAGE', 'Заменить изображение');
|
105 |
+
define('TXT_WPSC_DELETEIMAGE', 'Удалить изображение');
|
106 |
+
define('TXT_WPSC_EDIT', 'Редактировать');
|
107 |
+
define('TXT_WPSC_DELETE', 'Удалить');
|
108 |
+
define('TXT_WPSC_REMOVE', 'Убрать');
|
109 |
+
define('TXT_WPSC_NAME', 'Имя');
|
110 |
+
define('TXT_WPSC_TYPE', 'Тип');
|
111 |
+
define('TXT_WPSC_MANDATORY', 'Принудительно');
|
112 |
+
define('TXT_WPSC_DISPLAY_IN_LOG', 'Выводить <br /> в журнале');
|
113 |
+
define('TXT_WPSC_DESCRIPTION', 'Описание');
|
114 |
+
define('TXT_WPSC_CATEGORY_PARENT', 'Родительская категория');
|
115 |
+
define('TXT_WPSC_IMAGE', 'Изображение');
|
116 |
+
define('TXT_WPSC_HEIGHT', 'Высота');
|
117 |
+
define('TXT_WPSC_WIDTH', 'Ширина');
|
118 |
+
define('TXT_WPSC_PLEASEENTERAVALID', 'Пожалуйста, вводите правильно');
|
119 |
+
define('TXT_WPSC_PLEASEENTERAVALIDNAME', 'Пожалуйста, введите правильно имя');
|
120 |
+
define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', 'Пожалуйста, введите правильно фамилию');
|
121 |
+
define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', 'Пожалуйста, введите верный E-MAIL');
|
122 |
+
define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', 'Пожалуйста, введите верный адрес');
|
123 |
+
define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', 'Пожалуйста, введите верный номер телефона');
|
124 |
+
define('TXT_WPSC_TERMSANDCONDITIONS', 'Вы не согласились со сроками и условиями');
|
125 |
+
define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', 'Ваша корзина пуста');
|
126 |
+
define('TXT_WPSC_SPECIALS', 'Специальное');
|
127 |
+
define('TXT_WPSC_BUY', 'Купить');
|
128 |
+
define('TXT_WPSC_SHOPPINGCART', 'Корзина покупок');
|
129 |
+
define('TXT_WPSC_NUMBEROFITEMS', 'Количество товаров');
|
130 |
+
define('TXT_WPSC_NOMOREAVAILABLE', 'В данный момент продкт отсутствует.');
|
131 |
+
define('TXT_WPSC_EMPTYYOURCART', 'Очистить корзину');
|
132 |
+
define('TXT_WPSC_GOTOCHECKOUT', 'Перейти к проверке');
|
133 |
+
define('TXT_WPSC_CONTINUESHOPPING', 'Продолжить покупки');
|
134 |
+
define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', 'Ваша корзина пуста');
|
135 |
+
define('TXT_WPSC_VISITTHESHOP', 'Посетите магазин');
|
136 |
+
define('TXT_WPSC_PAGES', 'Страницы');
|
137 |
+
define('TXT_WPSC_OUTOF', 'Из');
|
138 |
+
define('TXT_WPSC_VOTES', 'голосов.');
|
139 |
+
define('TXT_WPSC_CLICKSTARSTORATE', 'Нажмите на звездочки для голосования');
|
140 |
+
define('TXT_WPSC_AVERAGERATINGOF', 'Средний рейтинг');
|
141 |
+
define('TXT_WPSC_YOURVOTE', 'Ваш голос');
|
142 |
+
define('TXT_WPSC_AVERAGEVOTE', 'Среднее');
|
143 |
+
define('TXT_WPSC_YOUHAVEVOTED', 'Вы уже голосовали');
|
144 |
+
define('TXT_WPSC_NOVOTES', 'Нет голосов');
|
145 |
+
define('TXT_WPSC_1VOTE', 'Один голос');
|
146 |
+
define('TXT_WPSC_VOTES2', 'Голоса');
|
147 |
+
define('TXT_WPSC_PERSONGIVEN', 'person has given this image');
|
148 |
+
define('TXT_WPSC_PERSONGIVEN2', 'stars.');
|
149 |
+
define('TXT_WPSC_PEOPLEGIVEN', 'люди дали это изображение');
|
150 |
+
define('TXT_WPSC_PEOPLEGIVEN2', 'звезды.');
|
151 |
+
define('TXT_WPSC_ITEMHASBEENADDED', 'Успешно добавлено');
|
152 |
+
define('TXT_WPSC_ITEMHASNOTBEENADDED', 'Не удалось добавить');
|
153 |
+
define('TXT_WPSC_ADDNEWCATEGORY', 'Добавить новую категорию');
|
154 |
+
define('TXT_WPSC_SUBMIT', 'Отправить');
|
155 |
+
define('TXT_WPSC_SELECTAVALIDCATEGORY', 'Подалуйста, выберите верную категорию');
|
156 |
+
define('TXT_WPSC_PRODUCTNAME', 'Имя товара');
|
157 |
+
define('TXT_WPSC_PRODUCTDESCRIPTION', 'Описание товара');
|
158 |
+
define('TXT_WPSC_ADDNEWPRODUCT', 'Добавить новый товар');
|
159 |
+
define('TXT_WPSC_PRODUCTQUANTITY', 'Количество товара');
|
160 |
+
define('TXT_WPSC_PRODUCTIMAGE', 'Изображение товара');
|
161 |
+
define('TXT_WPSC_PRODUCTPRICE', 'Цена товара');
|
162 |
+
define('TXT_WPSC_NOTAX', 'Без налога');
|
163 |
+
define('TXT_WPSC_ABOUT', 'О магазине');
|
164 |
+
define('TXT_WPSC_ABOUTCONTENT', 'Добро пожаловать в панель e-commerce. <br /><br /><strong>Примечание:</strong> при некоторых установках, корзина магазина может пустеть при загружзках страницы, если это случается, Вы должны добавить эту строку: <br /><br />session_start();<br /><br /> в файл index.php в wordpress.<br />');
|
165 |
+
define('TXT_WPSC_CONTACTDETAILS', 'Пожалуйста, заполните контактную информацию:');
|
166 |
+
define('TXT_WPSC_CREDITCARDHANDY', 'Примечание, как только Вы нажмете "Отправить", Ваша кредитная карта должна быть под руками.');
|
167 |
+
define('TXT_WPSC_ASTERISK', 'Области, отмеченные звездочкой, должны быть заполненны.');
|
168 |
+
define('TXT_WPSC_FIRSTNAME', 'Имя');
|
169 |
+
define('TXT_WPSC_LASTNAME', 'Фамилия');
|
170 |
+
define('TXT_WPSC_EMAIL', 'Email');
|
171 |
+
define('TXT_WPSC_ADDRESS', 'Адрес');
|
172 |
+
define('TXT_WPSC_ADDRESS1', 'Адрес 1');
|
173 |
+
define('TXT_WPSC_ADDRESS2', 'Адрес 2');
|
174 |
+
define('TXT_WPSC_CITY', 'Город');
|
175 |
+
define('TXT_WPSC_COUNTRY', 'Страна');
|
176 |
+
define('TXT_WPSC_PHONE', 'Телефон');
|
177 |
+
define('TXT_WPSC_TERMS1', 'Я согласен со ');
|
178 |
+
define('TXT_WPSC_TERMS2', 'Сроками и Условиями');
|
179 |
+
|
180 |
+
|
181 |
+
define('TXT_WPSC_TEXT', 'Текст');
|
182 |
+
define('TXT_WPSC_TEXTAREA', 'Поле ввода текста');
|
183 |
+
define('TXT_WPSC_HEADING', 'Заголовок');
|
184 |
+
|
185 |
+
define('TXT_WPSC_MAKEPURCHASE', 'Сделать заказ');
|
186 |
+
define('TXT_WPSC_BUYPRODUCTS', 'Пожалуйста, приобретите какие-либо товары, прежде чем использовать эту страницу');
|
187 |
+
define('TXT_WPSC_BRANDHASBEENEDITED', 'Бренд(производитель) отредактирован.');
|
188 |
+
define('TXT_WPSC_SURETODELETEPRODUCT', 'Вы уверены, что хотите удалить этот товар?');
|
189 |
+
define('TXT_WPSC_ADDBRAND', 'Добавить бренд(производителя)');
|
190 |
+
define('TXT_WPSC_DISPLAYBRANDS', 'Бренды(производители)');
|
191 |
+
define('TXT_WPSC_EDITBRAND', 'Редактировать бренд(производителя)');
|
192 |
+
define('TXT_WPSC_ADD', 'Добавить');
|
193 |
+
define('TXT_WPSC_ADD_NEW_FORM', 'Добавить новую форму к заполнению');
|
194 |
+
define('TXT_WPSC_SAVE_CHANGES', 'Сохранить изменения');
|
195 |
+
|
196 |
+
define('TXT_WPSC_CATEGORYHASBEENEDITED', 'Категория отредактирована.');
|
197 |
+
define('TXT_WPSC_DISPLAYCATEGORIES', 'Категории');
|
198 |
+
define('TXT_WPSC_ADDCATEGORY', 'Добавить категорию');
|
199 |
+
define('TXT_WPSC_EDITCATEGORY', 'Редактировать категорию');
|
200 |
+
define('TXT_WPSC_ALLCATEGORIES', 'Все категории');
|
201 |
+
|
202 |
+
define('TXT_WPSC_DISPLAYVARIATIONS', 'Варианты опси');
|
203 |
+
define('TXT_WPSC_ADDVARIATION', 'Добавить ');
|
204 |
+
define('TXT_WPSC_EDITVARIATION', 'Edit Variation Set');
|
205 |
+
define('TXT_WPSC_VARIATIONHASBEENEDITED', 'The variation has been edited.');
|
206 |
+
define('TXT_WPSC_VARIATION_VALUES', 'Variation Values');
|
207 |
+
define('TXT_WPSC_REMOVE_SET', 'Remove This Set'); //this needs to be translated
|
208 |
+
|
209 |
+
define('TXT_WPSC_SELECT_PARENT', 'Выбрать родительскую');
|
210 |
+
define('TXT_WPSC_PRODUCTHASBEENEDITED', 'Товар отредактирован.');
|
211 |
+
define('TXT_WPSC_ADDPRODUCT', 'Добавить товар');
|
212 |
+
define('TXT_WPSC_DISPLAYPRODUCTS', 'Товары');
|
213 |
+
define('TXT_WPSC_PLEASESELECTACATEGORY', 'Пожалуйста, выберите категорию');
|
214 |
+
define('TXT_WPSC_STOCK', 'Склад');
|
215 |
+
define('TXT_WPSC_PNP', 'PnP');
|
216 |
+
define('TXT_WPSC_EDITITEM', 'Редактировать');
|
217 |
+
define('TXT_WPSC_PRODUCTDETAILS', 'Детальное описание товара');
|
218 |
+
define('TXT_WPSC_SELECT_PRODUCT', 'Выбрать существуюший товар');
|
219 |
+
define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', '(введите здесь детальное описание товара)');
|
220 |
+
define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', 'Дополнительное описание товара');
|
221 |
+
define('TXT_WPSC_ADDITEM', 'Добавить');
|
222 |
+
define('TXT_WPSC_CHOOSEACATEGORY', 'Выберитье категорию');
|
223 |
+
define('TXT_WPSC_CHOOSEABRAND', 'Выберите бренд(производителя)');
|
224 |
+
define('TXT_WPSC_USETHEACTUALIMAGE', 'использовать текущее изображение. Размеры не изменять.');
|
225 |
+
define('TXT_WPSC_DISPLAYPURCHASES', 'Журнал покупок');
|
226 |
+
define('TXT_WPSC_ID', 'ID');
|
227 |
+
define('TXT_WPSC_TRANSACTIONSTATUS', 'Статус транзакции');
|
228 |
+
define('TXT_WPSC_DATE', 'Дата');
|
229 |
+
define('TXT_WPSC_VIEWDETAILS', 'Детально'); //Text has changed - translation is needed
|
230 |
+
define('TXT_WPSC_STATUS', 'Статус');
|
231 |
+
define('TXT_WPSC_SUCCESSFUL', 'Успешно');
|
232 |
+
define('TXT_WPSC_FAILED', 'Ошибка');
|
233 |
+
define('TXT_WPSC_GST', 'GST');
|
234 |
+
define('TXT_WPSC_PP', 'P&P');
|
235 |
+
define('TXT_WPSC_TOTAL', 'Всего');
|
236 |
+
define('TXT_WPSC_FINALTOTAL', 'Итого');
|
237 |
+
define('TXT_WPSC_CUSTOMERDETAILS', 'Customer Details');
|
238 |
+
define('TXT_WPSC_USERSCARTWASEMPTY', 'Корзина пользователя была пустой');
|
239 |
+
define('TXT_WPSC_GOBACK', 'Возврат');
|
240 |
+
define('TXT_WPSC_THANKSAPPLIED', 'Спасибо, Ваши изменения сохранены.');
|
241 |
+
define('TXT_WPSC_FORM_FIELDS', 'Настройки контроля');
|
242 |
+
define('TXT_WPSC_PAYMENTGATEWAY2', 'Gateway оплаты');
|
243 |
+
define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', 'Пожалуйста, выберите Gateway для оплаты');
|
244 |
+
define('TXT_WPSC_PAYMENTGATEWAYNOTE', '<strong>Примечание:</strong> Это не полная версия e-Commerce работающая только с PayPal.<br /><br />Если Вам необходима более профессиональная "не paypal" версия, то она она доступна как <a href="http://www.instinct.co.nz/blogshop">золотая версия Gold e-Commerce</a> с доступом к authorize.net, DPS (www.dps.co.nz), и (www.paystation.co.nz).');
|
245 |
+
define('TXT_WPSC_URLSETTINGS', 'Установки URL');
|
246 |
+
define('TXT_WPSC_PRODUCTLISTURL', 'URL списка товаров');
|
247 |
+
define('TXT_WPSC_SHOPPINGCARTURL', 'URL корзины');
|
248 |
+
define('TXT_WPSC_CHECKOUTURL', 'URL проверки');
|
249 |
+
define('TXT_WPSC_TRANSACTIONDETAILSURL', 'URL информации о транзакции');
|
250 |
+
define('TXT_WPSC_PRESENTATIONSETTINGS', 'Настройки презентации');
|
251 |
+
define('TXT_WPSC_CARTLOCATION', 'Место размещения корзины');
|
252 |
+
define('TXT_WPSC_SIDEBAR', 'Боковая колонка');
|
253 |
+
define('TXT_WPSC_PAGE', 'Страница');
|
254 |
+
define('TXT_WPSC_WIDGET', 'Widget');
|
255 |
+
define('TXT_WPSC_NEEDTOENABLEWIDGET', 'У Вас должен быть активным плагин для работы с widgetми, чтобы воспользоваться этой настройкой');
|
256 |
+
define('TXT_WPSC_MANUAL', 'В ручную');
|
257 |
+
define('TXT_WPSC_SHOWCATEGORIESBRANDS', 'Отобразить Категории/Бренды(производителей)');
|
258 |
+
define('TXT_WPSC_BOTH', 'Оба');
|
259 |
+
define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', 'Размеры превью товара по умолчанию');
|
260 |
+
define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', 'Размеры превью категории по умолчанию');
|
261 |
+
define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', 'Показывать стоимость пересылки и упаковки');
|
262 |
+
define('TXT_WPSC_YES', 'Да');
|
263 |
+
define('TXT_WPSC_NO', 'Нет');
|
264 |
+
define('TXT_WPSC_SHOWSPECIALS', 'Показывать специальное');
|
265 |
+
define('TXT_WPSC_SHOWPRODUCTRATINGS', 'Показывать рейтинг товара');
|
266 |
+
define('TXT_WPSC_CURRENCYSETTINGS', 'Установки валюты');
|
267 |
+
define('TXT_WPSC_GSTTAXRATE', 'GST/Tax');
|
268 |
+
define('TXT_WPSC_CURRENCYTYPE', 'Тип валюты');
|
269 |
+
define('TXT_WPSC_CURRENCYSIGNLOCATION', 'Положение значка валюты');
|
270 |
+
define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', 'Отправка и упаковка по умолчанию');
|
271 |
+
define('TXT_WPSC_ADMINISTRATIONSETTINGS', 'Администрирование');
|
272 |
+
define('TXT_WPSC_MAXDOWNLOADSPERFILE', 'Максимальное число скачиваний для файла');
|
273 |
+
define('TXT_WPSC_PURCHASELOGEMAIL', 'Email для отправки журнала покупок');
|
274 |
+
define('TXT_WPSC_REPLYEMAIL', 'Email для ответа');
|
275 |
+
define('TXT_WPSC_BRANDNOCAP', 'бренд(производитель)');
|
276 |
+
define('TXT_WPSC_CATEGORYNOCAP', 'категория');
|
277 |
+
define('TXT_WPSC_UDPATING', 'Обновление');
|
278 |
+
define('TXT_WPSC_MOREDETAILS', 'Более детально');
|
279 |
+
define('TXT_WPSC_ADDTOCART', 'Добавить в корзину');
|
280 |
+
define('TXT_WPSC_AVGCUSTREVIEW', 'Средний рейтинг покупателей');
|
281 |
+
define('TXT_WPSC_YOURRATING', 'Ваш рейтинг');
|
282 |
+
define('TXT_WPSC_RATING_SAVED', 'Сохранено');
|
283 |
+
define('TXT_WPSC_RATETHISITEM', 'Голосуйте за товар');
|
284 |
+
define('TXT_WPSC_PRODUCTSOLDOUT', 'Этот товар был продан.');
|
285 |
+
define('TXT_WPSC_NOITEMSINTHIS', 'Здесь нет ничего');
|
286 |
+
define('TXT_WPSC_CATEGORYORBRAND', 'Категория или Бренд(производитель)');
|
287 |
+
define('TXT_WPSC_PLEASECHOOSEA', 'Пожалуйста, выберите');
|
288 |
+
define('TXT_WPSC_PRODUCT', 'Товар');
|
289 |
+
define('TXT_WPSC_QUANTITY', 'Количество');
|
290 |
+
define('TXT_WPSC_QUANTITY_SHORT', 'Шт'); //translation needed
|
291 |
+
define('TXT_WPSC_APPLY', 'Применить');
|
292 |
+
define('TXT_WPSC_MAKEPAYMENT', 'Оплатить');
|
293 |
+
define('TXT_WPSC_EMPTYSHOPPINGCART', 'Чистая корзина');
|
294 |
+
define('TXT_WPSC_TOTALPRICE', 'Общая стоимость');
|
295 |
+
define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', 'В корзине ничего нет.');
|
296 |
+
define('TXT_WPSC_EMAILMSG1', "Спасибо, заказ приянт, что-то будет отправлено при первой же возможности, что-то Вы можете скачать воспользовавшись ссылками на этой странице.\n\r\n\rВ цены уже включены налоги и стоимость отправки и упаковки.\n\r\n\rВы заказали следующее:\n\r\n\r");
|
297 |
+
define('TXT_WPSC_EMAILMSG2', ".\n\rБыли заказы следующие товары:\n\r\n\r");
|
298 |
+
define('TXT_WPSC_CLICKTODOWNLOAD', 'Нажмите здесь чтобы скачать');
|
299 |
+
define('TXT_WPSC_DOWNLOAD', 'Скачать');
|
300 |
+
define('TXT_WPSC_YOURTRANSACTIONID', 'ID Вашей транзакции');
|
301 |
+
define('TXT_WPSC_TRANSACTIONID', 'ID транзакции');
|
302 |
+
define('TXT_WPSC_PURCHASERECEIPT', 'Чек');
|
303 |
+
define('TXT_WPSC_PURCHASEREPORT', 'Отчет по оплате');
|
304 |
+
define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', 'Транзакция осуществлена успешно');
|
305 |
+
define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', 'Транзакция не была осуществлена');
|
306 |
+
define('TXT_WPSC_GOBACKTOCHECKOUT', 'Вернитесь к проверке');
|
307 |
+
define('TXT_WPSC_SPECIALPRICE', 'Специальная цена');
|
308 |
+
define('TXT_WPSC_USERACCOUNTURL', 'URL аккаунта пользователя');
|
309 |
+
// дополнения к файлу
|
310 |
+
define('TXT_WPSC_TAX_SETTINGS', 'Процент налога');
|
311 |
+
define('TXT_WPSC_GENERAL_SETTINGS', 'Основные установки');
|
312 |
+
define('TXT_WPSC_GOLD_DROPSHOP', 'DropShop');
|
313 |
+
define('TXT_WPSC_NEEDTOENABLEDROPSHOP', 'Вам необходимо установить Gold и DropShop расширения для использования этой настройки');
|
314 |
+
define('TXT_WPSC_CATSBRANDSLOCATION', 'Местоположение категорий и брендов(производителей)');
|
315 |
+
define('TXT_WPSC_DISPLAY_FRONT_PAGE', 'Показывать на главной странице');
|
316 |
+
define('TXT_WPSC_IS_DONATION', 'Это пожертвование');
|
317 |
+
define('TXT_WPSC_ADD_ANOTHER_VARIATION', 'Добавить другой вариант');
|
318 |
+
define('TXT_WPSC_SEPARATETHUMBNAIL', 'использовать разделитель превью'); // Needs Translation
|
319 |
+
define('TXT_WPSC_USESPECIFICSIZE', 'использовать специальный размер'); // Needs Translation
|
320 |
+
define('TXT_WPSC_DOWNLOADABLEPRODUCT_URL', 'Файл товара');
|
321 |
+
define('TXT_WPSC_FILETOBEPRODUCTURL', 'Примечание: Загрузите файл в директорию wp-shopping-cart/files и впишите его имя тут.');
|
322 |
+
define('TXT_WPSC_ADD_PRODUCT', 'Добавить товар');
|
323 |
+
define('TXT_WPSC_PRODUCT_CATEGORIES', 'Категории товаров');
|
324 |
+
define('TXT_WPSC_PRICE_AND_STOCK_CONTROL', 'Контроль цен, запаса') ;
|
325 |
+
define('TXT_WPSC_SINGLE_PRODUCTTHUMBNAILSIZE', 'Изображение превью товара');
|
326 |
+
define('TXT_WPSC_SHOWCATEGORYTHUMBNAILS', 'Показывать превью категории');
|
327 |
+
define('TXT_WPSC_SHOW_SLIDING_CART', 'Показывать двигающуюся корзину');
|
328 |
+
define('TXT_WPSC_SHOW_CATEGORY_COUNT', 'Показывать количество товаров в категории');
|
329 |
+
define('TXT_WPSC_CATSPRODS_DISPLAY_TYPE', 'Показывать Категория/товар ');
|
330 |
+
define('TXT_WPSC_CATSPRODS_TYPE_CATONLY', 'Только категории(Все товары будут показаны)');
|
331 |
+
define('TXT_WPSC_CATSPRODS_TYPE_SLIDEPRODS', 'Двигающаяся категория (один товар на страницу)');
|
332 |
+
define('TXT_WPSC_DISPLAY_FANCY_NOTIFICATIONS', 'Показывать смешные уведомления о покупках');
|
333 |
+
define('TXT_WPSC_PAGESETTINGS', 'Настройка нумерации страниц');
|
334 |
+
define('TXT_WPSC_USE_PAGINATION', 'Использовать нумерацию страниц');
|
335 |
+
define('TXT_WPSC_PAGE_NUMBER_POSITION', 'Место размещения номеров страниц');
|
336 |
+
define('TXT_WPSC_USE_SHIPPING', 'Использовать отправку');
|
337 |
+
define('TXT_WPSC_USE_SHIPPING_DESCRIPTION', 'Если Вы продаете цифровые товары, Вы не должны выключать ее на Вашем сайте.');
|
338 |
+
define('TXT_WPSC_LOG_CURRENT_MONTH', 'Показывать с текущего месяца');
|
339 |
+
define('TXT_WPSC_LOG_PAST_THREE_MONTHS', 'Показывать за прошедшие три месяца');
|
340 |
+
define('TXT_WPSC_LOG_ALL', 'Показывать все результаты');
|
341 |
+
define('TXT_WPSC_FILTER_ORDER', 'Фильтр заказов');
|
342 |
+
define('TXT_WPSC_CATSANDBRAND', 'Категории и производители');
|
343 |
+
define('TXT_WPSC_E_COMMERCE', 'e-Commerce');
|
344 |
+
define('TXT_WPSC_POSITION', 'Позиция');
|
345 |
+
define('TXT_WPSC_USEDEFAULTSIZE', 'Использовать размеры установленные по умолчанию'); // Needs Translation
|
346 |
+
define('TXT_WPSC_PRODUCT_IMAGE_PREVIEW', 'Изображение товара');
|
347 |
+
define('TXT_WPSC_EDIT_PRODUCT', 'Сохранить');
|
348 |
+
define('TXT_WPSC_CHECKOUT', 'Ваш заказ');
|
349 |
+
define('TXT_WPSC_POSTAGE_AND_TAX', 'Отсылка и налог');
|
350 |
+
|
351 |
+
define('TXT_WPSC_INSTRUCTIONS', '
|
352 |
+
Для установки Вам необходимо создать страницы с товарами, корзиной, проверки и результатов транзакции, затем скрыть страницы с корзиной, проверкой и результатами транзакции, чтобы они не выводилсь в списке страниц.
|
353 |
+
<h2>Установка</h2>
|
354 |
+
<ul class=\'installation\'>
|
355 |
+
<li>Распакуйте zip-файл в wp-content/plugins директорию Вашего сайта.</li>
|
356 |
+
<li>Активируйте плагин на странице работы с плагинами</li>
|
357 |
+
<li>Перейдите к "Настройкам оплаты" в закладке "e-Commerce" и введите данные.</li>
|
358 |
+
<li>Создайте какие-либо категории и товары используя соответствующие разделы</li>
|
359 |
+
</ul>
|
360 |
+
Хотите большего? Вот.</p>
|
361 |
+
<h2>Пожертвования</h2>
|
362 |
+
<p>Пожертвования никоим образом не принудительны.<br /><br />
|
363 |
+
Все же, мы затратили значительное время на написание, поддержку и отладку WP e-Commerce. Поэтому, если Вам нравиться, что Вы видите и хотите видеть больше - не стесняйтесь помогать финансировать будущие выпуски, пожертвовав доллар или два...</p>
|
364 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
365 |
+
<input type="hidden" name="cmd" value="_s-xclick">
|
366 |
+
<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!">
|
367 |
+
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYD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AjBgkqhkiG9w0BCQQxFgQUCBfIACnHn+V2COlj8DDv2MsFJRIwDQYJKoZIhvcNAQEBBQAEgYCMXnxnBNyUy7axfHh9EDVq7HFzTvTsGwtmAUVesOyRNGwESXpukrX4rDOMNdHbbVToxa98uIKJUJPiYGBcpcUywtpZG1ZiDvYxoWgDh4zXx4w1QcJ96OjUPkHQ3q0UWY+p9GRxl+buhyjK62BxU5I0UaKc0H3QuATQB5+lbZdlgw==-----END PKCS7-----">
|
368 |
+
</form>
|
369 |
+
<h2>Настройки и подсказки</h2>
|
370 |
+
<p><strong>GST & Tax</strong><br />Если необходимо Вы можете задать ставку GST/Tax на странице настроек магазина в закладке "e-Commerce".</p>
|
371 |
+
<p><strong>Отправка журналов на Email</strong><br />Если Вы добавите email адрес для отправки журналов покупок на закладке "Журнал покупок", Вам будет высылаться на него сообщение при каждой производимой покупке.</p>
|
372 |
+
<p><strong>Сокрытие страниц</strong><br />
|
373 |
+
Чтобы скрыть страницы с корзиной, проверкой и результатами транзакции из списка видимых страниц Вы должны найти их ID. <br />
|
374 |
+
<br />Затем отредактируйте файл Вашей темы где происходит вывод страниц. <br />
|
375 |
+
<br />Обычно это sidebar.php, найдите там:<br />
|
376 |
+
<br />"<?php wp_list_pages(\'title_li=<h2>Pages</h2>\' ); ?>"<br />
|
377 |
+
<br />Отредактируйте, например, так::<br />
|
378 |
+
<br />"<?php wp_list_pages(\'title_li=<h2>Pages<h2>&exclude=3,4,5\'); ?>"<br />
|
379 |
+
<br />Слово "exclude" говорит о том, чтобы исключить страницы из списка, а цифры после exclude - это ID исключаемых страниц.</p>
|
380 |
+
<p><strong>Обновление с предыдущей версии</strong><br />
|
381 |
+
Если Вы обновляете с предыдущей версии, то необходимо первоначально деактивировать плагин, а затем - активировать заново.</p>
|
382 |
+
<p><strong>Работа с изображениями</strong><br />
|
383 |
+
Если Ваш сервер не поддерживает PHP-функций для работы с изображениями, то у вас не будет возможности изменить размеры изображений после загрузки.</p>
|
384 |
+
<p><strong>Ссылки</strong><br />
|
385 |
+
Мы прилагаем все усилия, которые только мы можем.
|
386 |
+
Я не смог найти действительно хороший способ передавать обязательные переменные от страницы к странице используя постоянные ссылки, которые не используют mod_rewrite, если Вы не можете использовать mod_rewrite, возможно плагин не работает со включенным постоянными ссылками.</p>
|
387 |
+
<p><strong>Javascript и Ajax </strong><br />
|
388 |
+
e-commerce lite использует Ajax, корзина работает без использования Javascript, но страницы администрирования (страницы Товары и Категории) не без них могут. При использования секции администрирования Вы должны пользоваться современным браузером и поддержка Javascript должна быть включена. (Internet Explorer 6 или выше, или Firefox 1.0 или выше, на старых версиях не тестировалось и может не рабоать)</p>
|
389 |
+
<p><strong>Контакты</strong><br />
|
390 |
+
Website: <a href="http://www.instinct.co.nz">www.instinct.co.nz</a></p>
|
391 |
+
Перевод на русский: <a href="http://www.mikolka.info">mikolka</a>
|
392 |
+
<p><strong>Credits:</strong><br />
|
393 |
+
Этот проект использует модифицированную версию Lightbox: <a href="http://www.huddletogether.com/projects/lightbox2/">Lightbox можно взять здесь.</a>
|
394 |
+
</p>
|
395 |
+
');
|
396 |
+
|
397 |
+
|
398 |
+
define('TXT_WPSC_SHIPPINGSETTINGS', 'Установки отправки');
|
399 |
+
define('TXT_WPSC_BASE_LOCAL', 'Локальная пересылка');
|
400 |
+
define('TXT_WPSC_BASE_INTERNATIONAL', 'Международная пересылка');
|
401 |
+
define('TXT_WPSC_BASE_COUNTRY', 'Страна');
|
402 |
+
|
403 |
+
define('TXT_WPSC_SHIPPING_DETAILS', 'Дополнительные цены пересылки'); // this needs updating
|
404 |
+
define('TXT_WPSC_LOCAL_PNP', 'Комиссия за локальную пересылку'); // this needs updating
|
405 |
+
define('TXT_WPSC_INTERNATIONAL_PNP', 'Комиссия за международную пересылку'); // this needs updating
|
406 |
+
define('TXT_WPSC_SHIPPING_NOTE', 'Примечание: устанавливается единожды для продукта вне зависимости от заказанного количества.');
|
407 |
+
define('TXT_WPSC_COUNTRY_FORM_FIELD', 'Поле "Страна"');
|
408 |
+
define('TXT_WPSC_COUNTRY_FORM_FIELD_EXPLANATION', '(выберите поле формы на странице контроля, которое Вы хотите использовать для того, чтобы определять страну)');
|
409 |
+
define('TXT_WPSC_SHIPPING', 'Отправка');
|
410 |
+
define('TXT_WPSC_EMAIL_FORM_FIELD', 'Поле "Email"');
|
411 |
+
define('TXT_WPSC_EMAIL_FORM_FIELD_EXPLANATION', '(выберите поле формы на странице контроля, которое Вы хотите использовать для того, чтобы определять email-адрес)');
|
412 |
+
|
413 |
+
|
414 |
+
|
415 |
+
|
416 |
+
define('TXT_WPSC_PRODUCTIMAGES', 'Изображение товара');
|
417 |
+
define('TXT_WPSC_PRODUCTDOWNLOAD', 'Скачать товар');
|
418 |
+
define('TXT_WPSC_SHOWTHUMBNAILS', 'Показывать превью');
|
419 |
+
define('TXT_WPSC_ADD_ADDITIONAL_IMAGE', 'Добавить дополнительное изображение');
|
420 |
+
define('TXT_WPSC_DELETE_IMAGE', 'Удалить изображение');
|
421 |
+
define('TXT_WPSC_GOLD_OPTIONS', 'Настройки золотой корзины');
|
422 |
+
define('TXT_WPSC_ACTIVATE_SETTINGS', 'Настройки активации');
|
423 |
+
define('TXT_WPSC_ACTIVATION_KEY', 'Ключ активации');
|
424 |
+
define('TXT_WPSC_THANKSACTIVATED', 'Спасибо, золотая корзина успешно активирована.');
|
425 |
+
define('TXT_WPSC_NOTACTIVATED', 'Извините, API-ключ не верный.');
|
426 |
+
define('TXT_WPSC_DEFAULT', 'По умолчанию');
|
427 |
+
define('TXT_WPSC_LIST', 'Список');
|
428 |
+
define('TXT_WPSC_VISIBLE', 'Отображать');
|
429 |
+
define('TXT_WPSC_DELETE_PRODUCT', 'Удалить товар');
|
430 |
+
define('TXT_WPSC_ADDITIONAL_IMAGE', 'Дополнительное изображение');
|
431 |
+
define('TXT_WPSC_GATEWAY_OPTIONS', 'Настройки Gateway');
|
432 |
+
define('TXT_WPSC_SHIPPING_COUNTRY', 'Выберите страну отправки');
|
433 |
+
define('TXT_WPSC_CONFIRM_TOTALS', 'Проверьте все данные перед произведением оплаты:');
|
434 |
+
define('TXT_WPSC_CHECKOUT_FORM_FIELDS_DESCRIPTION', 'Здесь Вы можете настроить поля формы, которые будут показаны на Вашей странице контроля. Страница контроля - то, где Вы собираете важную информацию о пользователях, которая будет хрангиться в Ваших журналах покупок, например, адреса покупателей, и имена...');
|
435 |
+
define('TXT_WPSC_PAYMENT_OPTIONS', 'Настройки оплаты');
|
436 |
+
define('TXT_WPSC_PAYMENT_DESCRIPTION', 'Выберите, какие варианты оплаты Вы хотите сделать доступными на странице контроля. По умолчанию покупатели могут платить за товары используя кредитную карточку, но Вы можете также позволить им производить плату вручную и тогда Вы должны выбрать кредитную карточку + возможность ручной оплаты.');
|
437 |
+
|
438 |
+
define('TXT_WPSC_DEFAULT_GATEWAY_ONLY', ' только');
|
439 |
+
define('TXT_WPSC_PLUS_MANUAL_PAYMENT', ' плюс возможность ручной оплаты');
|
440 |
+
define('TXT_WPSC_PAYMENT_METHOD', 'Метод оплаты');
|
441 |
+
define('TXT_WPSC_PAY_USING', 'Используемая оплата');
|
442 |
+
define('TXT_WPSC_PAY_MANUALLY', 'Оплата чеком/банковским депозитом');
|
443 |
+
define('TXT_WPSC_CREDIT_CARD', 'Кредитная карта');
|
444 |
+
define('TXT_WPSC_ADJUSTABLE_QUANTITY', 'Show quantity form in list view');
|
445 |
+
define('TXT_WPSC_RSS_FEED_HEADER', 'Подписаться на Ваши заказы');
|
446 |
+
define('TXT_WPSC_RSS_FEED_LINK', 'Подписаться на RSS feed');
|
447 |
+
define('TXT_WPSC_RSS_FEED_TEXT', 'ваших заказов');
|
448 |
+
define('TXT_WPSC_INITIAL_SETUP', 'Создать настройки по умолчанию.');
|
449 |
+
define('TXT_WPSC_PLUGIN_NEWS_HEADER', 'Новости плагина');
|
450 |
+
define('TXT_WPSC_REMOVE_LOG','Удалить журнал');
|
451 |
+
define('TXT_WPSC_PLUGIN_NEWS', '
|
452 |
+
|
453 |
+
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/>
|
454 |
+
|
455 |
+
|
456 |
+
|
457 |
+
');
|
458 |
+
|
459 |
+
|
460 |
+
|
461 |
+
|
462 |
+
define('TXT_WPSC_POWERED_BY', 'Магазин управляется ');
|
463 |
+
define('TXT_WPSC_NO_PURCHASES', 'Пока никаких покупок не было.');
|
464 |
+
|
465 |
+
|
466 |
+
define('TXT_WPSC_DELIVERY_ADDRESS', 'Адрес доставки');
|
467 |
+
define('TXT_WPSC_DELIVERY_CITY', 'Город доставки');
|
468 |
+
define('TXT_WPSC_DELIVERY_COUNTRY', 'Страна доставки');
|
469 |
+
define('TXT_WPSC_MP3_SETTINGS', 'Настройки MP3');
|
470 |
+
define('TXT_WPSC_MP3_SETTINGS_DESCRIPTION', 'Для создания 30 секундного MP3 файла, необходим плагин <a href=\'http://sox.sourceforge.net/\'>SoX</a> скомпилированный с поддержкой MP3, введите путь к SoX здесь.');
|
471 |
+
define('TXT_WPSC_SOX_PATH', 'SoX Path');
|
472 |
+
define('TXT_WPSC_PREVIEW', 'Предпросмотр');
|
473 |
+
define('TXT_WPSC_DOWNLOAD_CSV', 'Скачать CSV');
|
474 |
+
define('TXT_WPSC_PREVIEW_FILE', 'Предпросмотр файла');
|
475 |
+
define('TXT_WPSC_REPLACE_PRODUCT', 'Заменить товар');
|
476 |
+
?>
|
wp-shopping-cart/languages/SP_sp.php
ADDED
@@ -0,0 +1,433 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
This is a language file for the WP Shopping Cart plugin version 2.6.5 beta
|
4 |
+
Do not save this in Quanta+, if you do, all the special characters will break.
|
5 |
+
*/
|
6 |
+
|
7 |
+
define('TXT_WPSC_IMAGESIZEINFO', utf8_encode('Nota: si est� en blanco, la imagen no ser� dimensionada'));
|
8 |
+
define('TXT_WPSC_RECEIVED', utf8_encode('Pedido recivido'));
|
9 |
+
define('TXT_WPSC_ORDER_STATUS', utf8_encode('Estado del pedido'));
|
10 |
+
define('TXT_WPSC_ORDER_SUMMARY', utf8_encode('Sumario del pedido'));
|
11 |
+
define('TXT_WPSC_LANGUAGE', utf8_encode('Lenguaje'));
|
12 |
+
define('TXT_WPSC_ACCEPTED_PAYMENT', utf8_encode('Pago aceptado'));
|
13 |
+
define('TXT_WPSC_JOB_DISPATCHED', utf8_encode('Pedido enviado'));
|
14 |
+
define('TXT_WPSC_PROCESSED', utf8_encode('Pedido terminado'));
|
15 |
+
define('TXT_WPSC_ECOMMERCE', utf8_encode('e-Commerce'));
|
16 |
+
define('TXT_WPSC_OPTIONS', utf8_encode('Opciones de tienda'));
|
17 |
+
define('TXT_WPSC_ADDPRODUCTS', utf8_encode('A�adir productos'));
|
18 |
+
define('TXT_WPSC_SENDSMS', utf8_encode('Enviar SMS'));
|
19 |
+
define('TXT_WPSC_PRODUCTS', utf8_encode('Productos'));
|
20 |
+
define('TXT_WPSC_ADDCATEGORY', utf8_encode('A�adir Categor�a'));
|
21 |
+
define('TXT_WPSC_CATEGORIES', utf8_encode('Categor�as'));
|
22 |
+
define('TXT_WPSC_BRANDS', utf8_encode('Tipos'));
|
23 |
+
define('TXT_WPSC_VARIATIONS', utf8_encode('Opciones de producto'));
|
24 |
+
define('TXT_WPSC_PURCHASELOG', utf8_encode('Log de compra'));
|
25 |
+
define('TXT_WPSC_ORDER_LOG', utf8_encode('Pedidos'));
|
26 |
+
define('TXT_WPSC_OLDER_ORDERS', utf8_encode('Pedidos antiguos'));
|
27 |
+
define('TXT_WPSC_ORDER', utf8_encode('Pedido'));
|
28 |
+
define('TXT_WPSC_TOTAL_THIS_MONTH', utf8_encode('Cantidad total ganada este mes'));
|
29 |
+
define('TXT_WPSC_MONTHLY_REPORT', utf8_encode('Informe de 6 meses'));
|
30 |
+
define('TXT_WPSC_TOTAL_INCOME', utf8_encode('Importe total'));
|
31 |
+
define('TXT_WPSC_ACCEPTED_PAYMENTS', utf8_encode('(pagos aceptados)')); //texr has changed slightly
|
32 |
+
define('TXT_WPSC_PAYMENTGATEWAYOPTIONS', utf8_encode('Opciones de pasarela'));
|
33 |
+
define('TXT_WPSC_HELPINSTALLATION', utf8_encode('Ayuda/Actualizar'));
|
34 |
+
define('TXT_WPSC_EXAMPLECATEGORY', utf8_encode('Categor�a ejemplo'));
|
35 |
+
define('TXT_WPSC_EXAMPLEDETAILS', utf8_encode('Detalles ejemplo'));
|
36 |
+
define('TXT_WPSC_EXAMPLEBRAND', utf8_encode('Clase ejemplo'));
|
37 |
+
define('TXT_WPSC_PRODUCTIMAGEWIDTH', utf8_encode('Ancho imagen producto'));
|
38 |
+
define('TXT_WPSC_PRODUCTIMAGEHEIGHT', utf8_encode('Alto imagen producto'));
|
39 |
+
define('TXT_WPSC_CATEGORYIMAGEWIDTH', utf8_encode('Ancho imagen categor�a'));
|
40 |
+
define('TXT_WPSC_CATEGORYIMAGEHEIGHT', utf8_encode('Alto imagen categor�a'));
|
41 |
+
define('TXT_WPSC_PRODUCTLISTURL', utf8_encode('Posici�n de la lista de productos'));
|
42 |
+
define('TXT_WPSC_SHOPPINGCARTURL', utf8_encode('Posici�n del carrito de compra'));
|
43 |
+
define('TXT_WPSC_CHECKOUTURL', utf8_encode('Posici�n de la p�gina de compra'));
|
44 |
+
define('TXT_WPSC_TRANSACTURL', utf8_encode('Posici�n de la p�gina de detalle de transacci�n'));
|
45 |
+
define('TXT_WPSC_PAYMENTGATEWAY', utf8_encode('Pasarela de pago a usar'));
|
46 |
+
define('TXT_WPSC_CARTLOCATION', utf8_encode('Posici�n de carrito'));
|
47 |
+
define('TXT_WPSC_SHOWCATEGORYBRANDS', utf8_encode('Mostrar categor�as o tipos o ambos'));
|
48 |
+
define('TXT_WPSC_CURRENCYTYPE', utf8_encode('Tipo de moneda'));
|
49 |
+
define('TXT_WPSC_CURRENCYSIGNLOCATION', utf8_encode('Posici�n del s�mbolo de moneda'));
|
50 |
+
define('TXT_WPSC_GSTRATE', utf8_encode('GST'));
|
51 |
+
define('TXT_WPSC_MAXDOWNLOADS', utf8_encode('L�mite de descarga'));
|
52 |
+
define('TXT_WPSC_DISPLAYPNP', utf8_encode('Mostrar u ocultar franqueo y empaquetado'));
|
53 |
+
define('TXT_WPSC_DISPLAYSPECIALS', utf8_encode('Mostrar u ocultar ofertas en la barra de men�'));
|
54 |
+
define('TXT_WPSC_POSTAGEAND_PACKAGING', utf8_encode('Franqueo y empaquetado por defecto'));
|
55 |
+
define('TXT_WPSC_PURCHLOGEMAIL', utf8_encode('Direcci�n de correo donde se env�a el registro de compra'));
|
56 |
+
define('TXT_WPSC_RETURNEMAIL', utf8_encode('Direcci�n de correo desde donde se env�an los informes'));
|
57 |
+
define('TXT_WPSC_TERMSANDCONDITIONS', utf8_encode('Comprobar condiciones'));
|
58 |
+
define('TXT_WPSC_DEFAULTBRAND', utf8_encode('Tipo por defecto'));
|
59 |
+
define('TXT_WPSC_DEFAULTCATEGORY', utf8_encode('Categor�a por defecto'));
|
60 |
+
define('TXT_WPSC_PAYPALBUSINESS', utf8_encode('Negocio paypal'));
|
61 |
+
define('TXT_WPSC_PAYPALURL', utf8_encode('URL paypal'));
|
62 |
+
define('TXT_WPSC_SHOWPRODUCTRATINGS', utf8_encode('Mostrar tarifas de producto'));
|
63 |
+
define('TXT_WPSC_PRODUCTSPAGE', utf8_encode('P�gina de productos'));
|
64 |
+
define('TXT_WPSC_CHECKOUT', utf8_encode('Validar'));
|
65 |
+
define('TXT_WPSC_ENTERDETAILS', utf8_encode('Introduzca sus datos'));
|
66 |
+
define('TXT_WPSC_TRANSACTIONRESULTS', utf8_encode('Resultados de transacci�n'));
|
67 |
+
define('TXT_WPSC_SELECTACATEGORY', utf8_encode('Seleccione una categor�a'));
|
68 |
+
define('TXT_WPSC_SELECTABRAND', utf8_encode('Seleccione un tipo'));
|
69 |
+
define('TXT_WPSC_PRODUCTNAME', utf8_encode('Nombre de producto'));
|
70 |
+
define('TXT_WPSC_PRODUCTDESCRIPTION', utf8_encode('Descripci�n de producto'));
|
71 |
+
define('TXT_WPSC_ADDITIONALDESCRIPTION', utf8_encode('Descripci�n adicional'));
|
72 |
+
define('TXT_WPSC_PRICE', utf8_encode('Precio'));
|
73 |
+
define('TXT_WPSC_TAXALREADYINCLUDED', utf8_encode('No incluye tasas (las tasas son introducidas en la configuraci�n de la tienda)')); // this text has changed and needs updating
|
74 |
+
define('TXT_WPSC_SPECIAL', utf8_encode('Oferta')); // this text has changed and needs updating
|
75 |
+
define('TXT_WPSC_PRODUCT_DISPLAY', utf8_encode('Mostrar producto'));
|
76 |
+
|
77 |
+
define('TXT_WPSC_PRODUCTSTOCK', utf8_encode('Stock de producto'));
|
78 |
+
|
79 |
+
define('TXT_WPSC_UNTICKBOX', utf8_encode('Existe un n�mero limitado de este art�culo en stock. Si el sotck se agota, este producto no estar� disponible en la tienda a no ser que usted quite esta opci�n o a�ada m�s stock.'));
|
80 |
+
define('TXT_WPSC_LIMITED_STOCK', utf8_encode('Stock limitado'));
|
81 |
+
|
82 |
+
define('TXT_WPSC_CATEGORY', utf8_encode('Categor�a'));
|
83 |
+
define('TXT_WPSC_BRAND', utf8_encode('Tipo'));
|
84 |
+
define('TXT_WPSC_PRODUCT_VARS', utf8_encode('Opciones de producto'));
|
85 |
+
define('TXT_WPSC_ADD_VAR', utf8_encode('A�adir opci�n'));
|
86 |
+
define('TXT_WPSC_EDIT_VAR', utf8_encode('Editar opci�n'));
|
87 |
+
define('TXT_WPSC_SELECTAVARIATION', utf8_encode('Seleccione una opci�n'));
|
88 |
+
define('TXT_WPSC_NEW_VARIATION', utf8_encode('Crear nueva opci�n'));
|
89 |
+
|
90 |
+
define('TXT_WPSC_PRODUCTATT', utf8_encode('Accesorios de producto'));
|
91 |
+
define('TXT_WPSC_DOWNLOADABLEPRODUCT', utf8_encode('Producto descargable'));
|
92 |
+
define('TXT_WPSC_FILETOBEPRODUCT', utf8_encode('Nota: Si est� completado, el archivo subido ser� el producto para ser comprado.'));
|
93 |
+
define('TXT_WPSC_RESIZEIMAGE', utf8_encode('Redimensionar Thumbnail'));
|
94 |
+
define('TXT_WPSC_DONOTRESIZEIMAGE', utf8_encode('No dimensione el thumbnail.'));
|
95 |
+
define('TXT_WPSC_USEDEFAULTHEIGHTANDWIDTH', utf8_encode('Usar alto y ancho por defecto'));
|
96 |
+
define('TXT_WPSC_USE', utf8_encode('Usar'));
|
97 |
+
define('TXT_WPSC_PXHEIGHTBY', utf8_encode('px alto por'));
|
98 |
+
define('TXT_WPSC_PXWIDTH', utf8_encode('px ancho.'));
|
99 |
+
define('TXT_WPSC_PREVIEW', utf8_encode('Previsualizar'));
|
100 |
+
define('TXT_WPSC_UPLOADNEWIMAGE', utf8_encode('Reemplazar imagen'));
|
101 |
+
define('TXT_WPSC_DELETEIMAGE', utf8_encode('Borrar imagen'));
|
102 |
+
define('TXT_WPSC_EDIT', utf8_encode('Editar'));
|
103 |
+
define('TXT_WPSC_DELETE', utf8_encode('Borrar'));
|
104 |
+
define('TXT_WPSC_REMOVE', utf8_encode('Eliminar'));
|
105 |
+
define('TXT_WPSC_NAME', utf8_encode('Nombre'));
|
106 |
+
define('TXT_WPSC_TYPE', utf8_encode('Tipo'));
|
107 |
+
define('TXT_WPSC_MANDATORY', utf8_encode('Obligatorio'));
|
108 |
+
define('TXT_WPSC_DISPLAY_IN_LOG', utf8_encode('Mostrar<br /> en Log'));
|
109 |
+
define('TXT_WPSC_DESCRIPTION', utf8_encode('Descripci�n'));
|
110 |
+
define('TXT_WPSC_CATEGORY_PARENT', utf8_encode('Categor�a padre'));
|
111 |
+
define('TXT_WPSC_IMAGE', utf8_encode('Imagen'));
|
112 |
+
define('TXT_WPSC_HEIGHT', utf8_encode('Alto'));
|
113 |
+
define('TXT_WPSC_WIDTH', utf8_encode('Ancho'));
|
114 |
+
define('TXT_WPSC_PLEASEENTERAVALID', utf8_encode('Por favor introduzca un/a'));
|
115 |
+
define('TXT_WPSC_PLEASEENTERAVALIDNAME', utf8_encode('Por favor introduzca un nombre v�lido'));
|
116 |
+
define('TXT_WPSC_PLEASEENTERAVALIDSURNAME', utf8_encode('Por favor introduzca un apellido v�lido'));
|
117 |
+
define('TXT_WPSC_PLEASEENTERAVALIDEMAILADDRESS', utf8_encode('Por favor introduzca una direcci�n de correo v�lida'));
|
118 |
+
define('TXT_WPSC_PLEASEENTERAVALIDADDRESS', utf8_encode('Por favor introduzca una direcci�n v�lida'));
|
119 |
+
define('TXT_WPSC_PLEASEENTERAVALIDPHONENUMBER', utf8_encode('Por favor introduzca un n�mero de tel�fono v�lido'));
|
120 |
+
define('TXT_WPSC_TERMSANDCONDITIONS', utf8_encode('Usted no est� de acuerdo con las condiciones'));
|
121 |
+
define('TXT_WPSC_NOTHINGINYOURSHOPPINGCART', utf8_encode('No hay nada en su carrito'));
|
122 |
+
define('TXT_WPSC_SPECIALS', utf8_encode('Ofertas'));
|
123 |
+
define('TXT_WPSC_BUY', utf8_encode('Comprar'));
|
124 |
+
define('TXT_WPSC_SHOPPINGCART', utf8_encode('Carrito de compra'));
|
125 |
+
define('TXT_WPSC_NUMBEROFITEMS', utf8_encode('N�mero de art�culos'));
|
126 |
+
define('TXT_WPSC_NOMOREAVAILABLE', utf8_encode('Este producto est� fuera de stock'));
|
127 |
+
define('TXT_WPSC_EMPTYYOURCART', utf8_encode('Vaciar carrito'));
|
128 |
+
define('TXT_WPSC_GOTOCHECKOUT', utf8_encode('Validar compra'));
|
129 |
+
define('TXT_WPSC_CONTINUESHOPPING', utf8_encode('Continuar comprando'));
|
130 |
+
define('TXT_WPSC_YOURSHOPPINGCARTISEMPTY', utf8_encode('Su carrito de compra est� vac�o'));
|
131 |
+
define('TXT_WPSC_VISITTHESHOP', utf8_encode('Visitar tienda'));
|
132 |
+
define('TXT_WPSC_PAGES', utf8_encode('P�ginas'));
|
133 |
+
define('TXT_WPSC_OUTOF', utf8_encode('M�s de'));
|
134 |
+
define('TXT_WPSC_VOTES', utf8_encode('votos.'));
|
135 |
+
define('TXT_WPSC_CLICKSTARSTORATE', utf8_encode('A�ada estrellas para calificar'));
|
136 |
+
define('TXT_WPSC_AVERAGERATINGOF', utf8_encode('Grado medio de'));
|
137 |
+
define('TXT_WPSC_YOURVOTE', utf8_encode('Su votaci�n'));
|
138 |
+
define('TXT_WPSC_AVERAGEVOTE', utf8_encode('Media de votos'));
|
139 |
+
define('TXT_WPSC_YOUHAVEVOTED', utf8_encode('Usted ha votado'));
|
140 |
+
define('TXT_WPSC_NOVOTES', utf8_encode('Ning�n voto'));
|
141 |
+
define('TXT_WPSC_1VOTE', utf8_encode('1 voto'));
|
142 |
+
define('TXT_WPSC_VOTES2', utf8_encode('Votos'));
|
143 |
+
define('TXT_WPSC_PERSONGIVEN', utf8_encode('una persona ha dado a esta imagen'));
|
144 |
+
define('TXT_WPSC_PERSONGIVEN2', utf8_encode('estrellas.'));
|
145 |
+
define('TXT_WPSC_PEOPLEGIVEN', utf8_encode('los visitantes han dado a esta imagen'));
|
146 |
+
define('TXT_WPSC_PEOPLEGIVEN2', utf8_encode('estrellas.'));
|
147 |
+
define('TXT_WPSC_ITEMHASBEENADDED', utf8_encode('El art�culo se ha a�adido'));
|
148 |
+
define('TXT_WPSC_ITEMHASNOTBEENADDED', utf8_encode('El art�culo no se ha a�adido'));
|
149 |
+
define('TXT_WPSC_ADDNEWCATEGORY', utf8_encode('A�adir nueva categor�a'));
|
150 |
+
define('TXT_WPSC_SUBMIT', utf8_encode('Enviar'));
|
151 |
+
define('TXT_WPSC_SELECTAVALIDCATEGORY', utf8_encode('Por favor seleccione una categor�a v�lida'));
|
152 |
+
define('TXT_WPSC_PRODUCTNAME', utf8_encode('Nombre del producto'));
|
153 |
+
define('TXT_WPSC_PRODUCTDESCRIPTION', utf8_encode('Descripci�n del producto'));
|
154 |
+
define('TXT_WPSC_ADDNEWPRODUCT', utf8_encode('A�adir producto'));
|
155 |
+
define('TXT_WPSC_PRODUCTQUANTITY', utf8_encode('Cantidad del producto'));
|
156 |
+
define('TXT_WPSC_PRODUCTIMAGE', utf8_encode('Imagen del producto'));
|
157 |
+
define('TXT_WPSC_PRODUCTPRICE', utf8_encode('Precio del producto'));
|
158 |
+
define('TXT_WPSC_NOTAX', utf8_encode('Sin tasas'));
|
159 |
+
define('TXT_WPSC_ABOUT', utf8_encode('Sobre nosotros'));
|
160 |
+
define('TXT_WPSC_ABOUTCONTENT', utf8_encode('Bienvenido al panel e-commerce. <br /><br /><strong>Nota:</strong> en algunas configuraciones, el carrito de compra puede estar vac�o en cada carga de p�gina, si esto sucede, tendr� que a�adir esta l�nea:<br /><br />session_start();<br /><br />a index.php en el directorio base de wordpress.<br />'));
|
161 |
+
define('TXT_WPSC_CONTACTDETAILS', utf8_encode('Por favor introduzca sus datos de contacto:'));
|
162 |
+
define('TXT_WPSC_CREDITCARDHANDY', utf8_encode('Nota, una vez que presione enviar, necesitar� tener a mano su tarjeta de cr�dito.'));
|
163 |
+
define('TXT_WPSC_ASTERISK', utf8_encode('Los campos marcados con un asterisco son obligatorios.'));
|
164 |
+
define('TXT_WPSC_FIRSTNAME', utf8_encode('Nombre'));
|
165 |
+
define('TXT_WPSC_LASTNAME', utf8_encode('Apellidos'));
|
166 |
+
define('TXT_WPSC_EMAIL', utf8_encode('E-mail'));
|
167 |
+
define('TXT_WPSC_ADDRESS', utf8_encode('Direcci�n'));
|
168 |
+
define('TXT_WPSC_ADDRESS1', utf8_encode('Direcci�n 1'));
|
169 |
+
define('TXT_WPSC_ADDRESS2', utf8_encode('Direcci�n 2'));
|
170 |
+
define('TXT_WPSC_CITY', utf8_encode('Ciudad'));
|
171 |
+
define('TXT_WPSC_COUNTRY', utf8_encode('Pa�s'));
|
172 |
+
define('TXT_WPSC_PHONE', utf8_encode('Tel�fono'));
|
173 |
+
define('TXT_WPSC_TERMS1', utf8_encode('Acepto las '));
|
174 |
+
define('TXT_WPSC_TERMS2', utf8_encode('Condiciones'));
|
175 |
+
|
176 |
+
|
177 |
+
define('TXT_WPSC_TEXT', utf8_encode('Texto'));
|
178 |
+
define('TXT_WPSC_TEXTAREA', utf8_encode('�rea de texto'));
|
179 |
+
define('TXT_WPSC_HEADING', utf8_encode('T�tulo'));
|
180 |
+
|
181 |
+
define('TXT_WPSC_MAKEPURCHASE', utf8_encode('Hacer compra'));
|
182 |
+
define('TXT_WPSC_BUYPRODUCTS', utf8_encode('Por favor compre alg�n producto antes de utilizar esta p�gina'));
|
183 |
+
define('TXT_WPSC_BRANDHASBEENEDITED', utf8_encode('El tipo ha sido modificado.'));
|
184 |
+
define('TXT_WPSC_SURETODELETEPRODUCT', utf8_encode('�Est� seguro de eliminar este producto?'));
|
185 |
+
define('TXT_WPSC_ADDBRAND', utf8_encode('A�adir tipo'));
|
186 |
+
define('TXT_WPSC_DISPLAYBRANDS', utf8_encode('Mostrar tipos'));
|
187 |
+
define('TXT_WPSC_EDITBRAND', utf8_encode('Editar tipo'));
|
188 |
+
define('TXT_WPSC_ADD', utf8_encode('A�adir'));
|
189 |
+
define('TXT_WPSC_ADD_NEW_FORM', utf8_encode('A�adir nuevo campo en el formulario'));
|
190 |
+
define('TXT_WPSC_SAVE_CHANGES', utf8_encode('Guardar cambios'));
|
191 |
+
|
192 |
+
define('TXT_WPSC_CATEGORYHASBEENEDITED', utf8_encode('La categor�a ha sido modificada'));
|
193 |
+
define('TXT_WPSC_DISPLAYCATEGORIES', utf8_encode('Mostrar categor�as'));
|
194 |
+
define('TXT_WPSC_ADDCATEGORY', utf8_encode('A�adir categor�a'));
|
195 |
+
define('TXT_WPSC_EDITCATEGORY', utf8_encode('Editar categor�a'));
|
196 |
+
define('TXT_WPSC_ALLCATEGORIES', utf8_encode('Todas las categor�as'));
|
197 |
+
|
198 |
+
define('TXT_WPSC_DISPLAYVARIATIONS', utf8_encode('Mostrar opciones'));
|
199 |
+
define('TXT_WPSC_ADDVARIATION', utf8_encode('A�adir opci�n'));
|
200 |
+
define('TXT_WPSC_EDITVARIATION', utf8_encode('Editar opci�n'));
|
201 |
+
define('TXT_WPSC_VARIATIONHASBEENEDITED', utf8_encode('La opci�n ha sido modificada'));
|
202 |
+
define('TXT_WPSC_VARIATION_VALUES', utf8_encode('Valores de opci�n'));
|
203 |
+
define('TXT_WPSC_REMOVE_SET', utf8_encode('Eliminar')); //this needs to be translated
|
204 |
+
|
205 |
+
define('TXT_WPSC_SELECT_PARENT', utf8_encode('Seleccionar padre'));
|
206 |
+
define('TXT_WPSC_PRODUCTHASBEENEDITED', utf8_encode('El producto ha sido modificado.'));
|
207 |
+
define('TXT_WPSC_ADDPRODUCT', utf8_encode('A�adir producto'));
|
208 |
+
define('TXT_WPSC_DISPLAYPRODUCTS', utf8_encode('Mostrar productos'));
|
209 |
+
define('TXT_WPSC_PLEASESELECTACATEGORY', utf8_encode('Por favor seleccione una categor�a'));
|
210 |
+
define('TXT_WPSC_STOCK', utf8_encode('Stock'));
|
211 |
+
define('TXT_WPSC_PNP', utf8_encode('PnP'));
|
212 |
+
define('TXT_WPSC_EDITITEM', utf8_encode('Editar art�culo'));
|
213 |
+
define('TXT_WPSC_PRODUCTDETAILS', utf8_encode('Detalles del producto'));
|
214 |
+
define('TXT_WPSC_SELECT_PRODUCT', utf8_encode('Seleccione un producto existente'));
|
215 |
+
define('TXT_WPSC_ENTERPRODUCTDETAILSHERE', utf8_encode('(Introduzca su detalle del producto aqu�)'));
|
216 |
+
define('TXT_WPSC_ADDITIONALPRODUCTDESCRIPTION', utf8_encode('Descripci�n del producto adicional'));
|
217 |
+
define('TXT_WPSC_ADDITEM', utf8_encode('A�adir art�culo'));
|
218 |
+
define('TXT_WPSC_CHOOSEACATEGORY', utf8_encode('Elija una categor�a'));
|
219 |
+
define('TXT_WPSC_CHOOSEABRAND', utf8_encode('Elija un tipo'));
|
220 |
+
define('TXT_WPSC_USETHEACTUALIMAGE', utf8_encode('Use la imagen actual. No la dimensione.'));
|
221 |
+
define('TXT_WPSC_DISPLAYPURCHASES', utf8_encode('Log de compra'));
|
222 |
+
define('TXT_WPSC_ID', utf8_encode('ID'));
|
223 |
+
define('TXT_WPSC_TRANSACTIONSTATUS', utf8_encode('Estado de la transacci�n'));
|
224 |
+
define('TXT_WPSC_DATE', utf8_encode('Fecha'));
|
225 |
+
define('TXT_WPSC_VIEWDETAILS', utf8_encode('Detalles')); //Text has changed - translation is needed
|
226 |
+
define('TXT_WPSC_STATUS', utf8_encode('Estado'));
|
227 |
+
define('TXT_WPSC_SUCCESSFUL', utf8_encode('Satisfactorio'));
|
228 |
+
define('TXT_WPSC_FAILED', utf8_encode('Err�neo'));
|
229 |
+
define('TXT_WPSC_GST', utf8_encode('GST'));
|
230 |
+
define('TXT_WPSC_PP', utf8_encode('P&P'));
|
231 |
+
define('TXT_WPSC_TOTAL', utf8_encode('Total'));
|
232 |
+
define('TXT_WPSC_FINALTOTAL', utf8_encode('Total final'));
|
233 |
+
define('TXT_WPSC_CUSTOMERDETAILS', utf8_encode('Detalles del cliente'));
|
234 |
+
define('TXT_WPSC_USERSCARTWASEMPTY', utf8_encode('Este carrito esta vac�o'));
|
235 |
+
define('TXT_WPSC_GOBACK', utf8_encode('Volver'));
|
236 |
+
define('TXT_WPSC_THANKSAPPLIED', utf8_encode('Gracias, sus cambios han sido guardados.'));
|
237 |
+
define('TXT_WPSC_FORM_FIELDS', utf8_encode('Opciones de validar compra'));
|
238 |
+
define('TXT_WPSC_PAYMENTGATEWAY2', utf8_encode('Pasarela de pago'));
|
239 |
+
define('TXT_WPSC_PLEASESELECTAPAYMENTGATEWAY', utf8_encode('Por favor seleccione una pasarela de pago'));
|
240 |
+
define('TXT_WPSC_PAYMENTGATEWAYNOTE', utf8_encode('<strong>Nota:</strong> Esta versi�n del plugin e-Commerce s�lo te permite conectar con PayPal.<br /><br />Si est� buscando una pasarela profesional que no sea PayPal entonces tenemos la<a href="http://www.instinct.co.nz/blogshop">versi�n e-Commerce oro </a> disponible con pasarelas como authorize.net, DPS (www.dps.co.nz), y paystation (www.paystation.co.nz).'));
|
241 |
+
define('TXT_WPSC_URLSETTINGS', utf8_encode('URL de opciones'));
|
242 |
+
define('TXT_WPSC_PRODUCTLISTURL', utf8_encode('URL de lista de productos'));
|
243 |
+
define('TXT_WPSC_SHOPPINGCARTURL', utf8_encode('URL de carrito de la compra'));
|
244 |
+
define('TXT_WPSC_CHECKOUTURL', utf8_encode('URL de validar compra'));
|
245 |
+
define('TXT_WPSC_TRANSACTIONDETAILSURL', utf8_encode('URL de detalles de la transacci�n'));
|
246 |
+
define('TXT_WPSC_PRESENTATIONSETTINGS', utf8_encode('Opciones de presentaci�n'));
|
247 |
+
define('TXT_WPSC_CARTLOCATION', utf8_encode('Posici�n del carrito'));
|
248 |
+
define('TXT_WPSC_SIDEBAR', utf8_encode('Barra de men�'));
|
249 |
+
define('TXT_WPSC_PAGE', utf8_encode('P�gina'));
|
250 |
+
define('TXT_WPSC_WIDGET', utf8_encode('Widget'));
|
251 |
+
define('TXT_WPSC_NEEDTOENABLEWIDGET', utf8_encode('Necesita activar el plugin de widgets para usar esto'));
|
252 |
+
define('TXT_WPSC_MANUAL', utf8_encode('Manual'));
|
253 |
+
define('TXT_WPSC_SHOWCATEGORIESBRANDS', utf8_encode('Mostrar categor�as/Tipos'));
|
254 |
+
define('TXT_WPSC_BOTH', utf8_encode('Ambos'));
|
255 |
+
define('TXT_WPSC_PRODUCTTHUMBNAILSIZE', utf8_encode('Tama�o por defecto del thumbnail producto'));
|
256 |
+
define('TXT_WPSC_CATEGORYTHUMBNAILSIZE', utf8_encode('Tama�o por defecto del thumbnail categor�a'));
|
257 |
+
define('TXT_WPSC_SHOWPOSTAGEANDPACKAGING', utf8_encode('Mostrar gastos de env�o'));
|
258 |
+
define('TXT_WPSC_YES', utf8_encode('Si'));
|
259 |
+
define('TXT_WPSC_NO', utf8_encode('No'));
|
260 |
+
define('TXT_WPSC_SHOWSPECIALS', utf8_encode('Mostrar ofertas'));
|
261 |
+
define('TXT_WPSC_SHOWPRODUCTRATINGS', utf8_encode('Mostrar medidas de productos'));
|
262 |
+
define('TXT_WPSC_CURRENCYSETTINGS', utf8_encode('Opciones de moneda'));
|
263 |
+
define('TXT_WPSC_GSTTAXRATE', utf8_encode('Tasas (Ej. IVA)'));
|
264 |
+
define('TXT_WPSC_CURRENCYTYPE', utf8_encode('Tipo de moneda'));
|
265 |
+
define('TXT_WPSC_CURRENCYSIGNLOCATION', utf8_encode('S�mbolo de moneda del pa�s'));
|
266 |
+
define('TXT_WPSC_DEFAULTPOSTAGEPACKAGING', utf8_encode('Franqueo y embalaje por defecto'));
|
267 |
+
define('TXT_WPSC_ADMINISTRATIONSETTINGS', utf8_encode('Opciones de administraci�n'));
|
268 |
+
define('TXT_WPSC_MAXDOWNLOADSPERFILE', utf8_encode('Descargas m�ximas por fichero'));
|
269 |
+
define('TXT_WPSC_PURCHASELOGEMAIL', utf8_encode('Email de Log de compra'));
|
270 |
+
define('TXT_WPSC_REPLYEMAIL', utf8_encode('Repetir Email'));
|
271 |
+
define('TXT_WPSC_BRANDNOCAP', utf8_encode('tipo'));
|
272 |
+
define('TXT_WPSC_CATEGORYNOCAP', utf8_encode('categor�a'));
|
273 |
+
define('TXT_WPSC_UDPATING', utf8_encode('Actualizando'));
|
274 |
+
define('TXT_WPSC_MOREDETAILS', utf8_encode('M�s detalles'));
|
275 |
+
define('TXT_WPSC_ADDTOCART', utf8_encode('A�adir al carrito'));
|
276 |
+
define('TXT_WPSC_AVGCUSTREVIEW', utf8_encode('Media de tarifas de clientes'));
|
277 |
+
define('TXT_WPSC_YOURRATING', utf8_encode('Tu tarifa'));
|
278 |
+
define('TXT_WPSC_RATING_SAVED', utf8_encode('Guardado'));
|
279 |
+
define('TXT_WPSC_RATETHISITEM', utf8_encode('Tarifica este art�culo'));
|
280 |
+
define('TXT_WPSC_PRODUCTSOLDOUT', utf8_encode('Este producto es el m�s vendido.'));
|
281 |
+
define('TXT_WPSC_NOITEMSINTHIS', utf8_encode('No hay ning�n art�culo en esta'));
|
282 |
+
define('TXT_WPSC_CATEGORYORBRAND', utf8_encode('Categor�a o tipo'));
|
283 |
+
define('TXT_WPSC_PLEASECHOOSEA', utf8_encode('Por favor seleccione un'));
|
284 |
+
define('TXT_WPSC_PRODUCT', utf8_encode('Producto'));
|
285 |
+
define('TXT_WPSC_QUANTITY', utf8_encode('Cantidad'));
|
286 |
+
define('TXT_WPSC_QUANTITY_SHORT', utf8_encode('Cant')); //translation needed
|
287 |
+
define('TXT_WPSC_APPLY', utf8_encode('Aplicar'));
|
288 |
+
define('TXT_WPSC_MAKEPAYMENT', utf8_encode('Pagar'));
|
289 |
+
define('TXT_WPSC_EMPTYSHOPPINGCART', utf8_encode('Vaciar carrito'));
|
290 |
+
define('TXT_WPSC_TOTALPRICE', utf8_encode('Precio total'));
|
291 |
+
define('TXT_WPSC_NOITEMSINTHESHOPPINGCART', utf8_encode('No hay ning�n art�culo en el carrito'));
|
292 |
+
define('TXT_WPSC_EMAILMSG1', "Gracias, el pedido ha sido aceptado, ser� procesado y enviado lo m�s pronto posible, los elementos pueden ser descargados usando los enlaces.\n\r\n\rTodos los precios incluyen tasas y gastos de env�o.\n\r\n\rDetalle de tu pedido:\n\r\n\r");
|
293 |
+
define('TXT_WPSC_EMAILMSG2', ".\n\rEstos art�culos fueron pedidos:\n\r\n\r");
|
294 |
+
define('TXT_WPSC_CLICKTODOWNLOAD', utf8_encode('Pinche aqu� para descargar'));
|
295 |
+
define('TXT_WPSC_DOWNLOAD', utf8_encode('Descargar'));
|
296 |
+
define('TXT_WPSC_YOURTRANSACTIONID', utf8_encode('N�mero de tu pedido'));
|
297 |
+
define('TXT_WPSC_TRANSACTIONID', utf8_encode('ID de pedido'));
|
298 |
+
define('TXT_WPSC_PURCHASERECEIPT', utf8_encode('Recibo de compra'));
|
299 |
+
define('TXT_WPSC_PURCHASEREPORT', utf8_encode('Informe de la compra'));
|
300 |
+
define('TXT_WPSC_THETRANSACTIONWASSUCCESSFUL', utf8_encode('Transacci�n correcta'));
|
301 |
+
define('TXT_WPSC_THETRANSACTIONWASNOTSUCCESSFUL', utf8_encode('Hubo un error en la transacci�n'));
|
302 |
+
define('TXT_WPSC_GOBACKTOCHECKOUT', utf8_encode('Volver a validar la compra'));
|
303 |
+
define('TXT_WPSC_SPECIALPRICE', utf8_encode('Precio especial'));
|
304 |
+
|
305 |
+
define('TXT_WPSC_INSTRUCTIONS', utf8_encode('
|
306 |
+
Para completar la instalaci�n usted tiene que crear los productos, el carrito de compra, las p�ginas de la comprobaci�n y el resultado de transacci�n, y luego ocultar la p�gina del carrito, de la comprobaci�n y de resultado de la transacci�n, de modo que no aparezcan en la lista de p�ginas.
|
307 |
+
<ul class=\'installation\'>
|
308 |
+
<li>Subir el contenido del archivo zip dentro del directorio wp-content/plugins</li>
|
309 |
+
<li>Activar el plugin desde la p�gina de plugins de wordpress</li>
|
310 |
+
<li>Ir a "Opciones de pasarela de pago", e introducir los datos correspondientes. (la pasarela de pago por defecto es PayPal)</li>
|
311 |
+
<li>Crear las categor�as y productos</li>
|
312 |
+
</ul>
|
313 |
+
Esto es todo.</p>
|
314 |
+
<h2>Donaciones</h2>
|
315 |
+
<p>Las donaciones no son obligadas.<br /><br />
|
316 |
+
Hemos terminado el desarrollo en un tiempo considerable, a pesar de todo hay que apoyar la eliminaci�n de fallos de WP-E-commerce. Por lo tanto, si le gusta lo que usted ve, y quiere ver m�s de ello, puede ayudar a financiar futuras versiones es dejando caer un d�lar o dos en el dep�sito de donaciones...</p>
|
317 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
|
318 |
+
<input type="hidden" name="cmd" value="_s-xclick">
|
319 |
+
<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!">
|
320 |
+
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYAh/vca+S7Em1KNH3rhwBRD1h4c0DdQSgmknr8mKQU7KfG5jSYXu5DD9oriGfYSDg+99ZtljIwtqvefC0wKdEJ0yFMGinWp9zGw2Xvu1s4S+pcH5IGax9KQo1WosnzA99F04MHQnqkxcfpTXCG8VLSf/r/rx8+++vVsYWNYN717+DELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIHATWqFYRAjeAgaB2F/F90mbYo/5zGY/1AYtsQ35nRDtelewxW7iLHF41rzB3NidYEs2h+t/HS0MoGTBsAfVc94mxIzInI1pQt9n/hpF67XAr357KVwIoIOq52jDfDFlZV92BPMv00MHuj4LNtNq5I752I3SsNamhl1DfAqlWxnJsIibA1D3l8k67ccc04/JYjvsd89hYgf0lob7vQoZ8X5xNtlidM3qcAx4goIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcN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