<?php
/*
  www.oscGold.com (C) Kamelia-Net Jacek Krysiak
  modul oscGold wer 4.0
*/
// Initialisation of some required parameters for the FAQ answers
 if (tep_not_null(POINTS_AUTO_EXPIRES)){
   $answer_expire = 'The collected items will expire within ' . POINTS_AUTO_EXPIRES . ' months from the date of calculation.';
 } else {
   $answer_expire = 'The collected points do not expire and you can collect them until they want to use them.';
 }

if (POINTS_PER_AMOUNT_PURCHASE > 1) {
  $point_or_answer = 'points';
} else {
  $point_or_answer = 'points';
}

// Definition if the navigation bar and page title
define('NAVBAR_TITLE', 'Help Points System');
define('HEADING_TITLE', 'Help Points System');

// Definitions of the FAQ questions
	
define('POINTS_FAQ_1', 'What is a points system ?');
define('POINTS_FAQ_2', 'How does the points system ?');
define('POINTS_FAQ_3', 'Points and their value');
define('POINTS_FAQ_4', 'The issue of Points for purchases');
define('POINTS_FAQ_5', 'Required minimum of points');
define('POINTS_FAQ_6', 'The minimum purchase value');
define('POINTS_FAQ_7', 'The maximum number of points to issue an order');
define('POINTS_FAQ_8', 'Will I get points for the shipping costs ?');
define('POINTS_FAQ_9', 'Will I get points for the amount of the tax?');
define('POINTS_FAQ_10', 'Will I get points for discount products?');
define('POINTS_FAQ_11', 'Will I get points for the contract paid points ?');
define('POINTS_FAQ_12', 'Earning points for the shop to refer a friend');
define('POINTS_FAQ_13', 'Earning points for writing reviews');
define('POINTS_FAQ_14', 'reservations about the products');
define('POINTS_FAQ_15', 'Restricting the price of products');
define('POINTS_FAQ_16', 'Terms of Use');
define('POINTS_FAQ_17', 'When a problem occurs ?');

// Definition of the answer for each of the questions:

// FAQ1
define('TEXT_FAQ_1', 'For the sake of satisfaction of our customers we have created a point system. The purchase of products in our shop is a premium points. The number of points gained depends on the value of products purchased.
All points scored in a shop '. STORE_NAME. 'Have a monetary value and can be used to pay for a range available in the store.
<br> <br>Points system was last updated: '. tep_get_last_date('USE_POINTS_SYSTEM'). '. All transactions carried out before updating the system remain unchanged.');

// FAQ2
define('TEXT_FAQ_2', 'Points for purchases made are credited to each client after the finalization of purchases. The skills learned in previous sections can be orders to spend on other products offer '. STORE_NAME. '.
To check the status and number of points you must log in to your store. Current state credits and transaction history is available on the <a class="boxLink" href="my_points.php"> <u> My Points </u> </a>.
When submitting subsequent contracts in the future if the customer has approved the possibility of points you receive payment for the goods when they are used.');

// FAQ3
define('TEXT_FAQ_3', 'Currently, for every ' .  $currencies->format(1) . ' issued ' . STORE_NAME . ' will be charged ' . number_format(POINTS_PER_AMOUNT_PURCHASE,POINTS_DECIMAL_PLACES)  . ' ' . $point_or_answer . '
<br>For example:<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>The value of purchase:</b>&nbsp; ' .  $currencies->format(100) . '<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>The value of the credits:</b>&nbsp; ' .  $currencies->format(tep_calc_shopping_pvalue(100 * POINTS_PER_AMOUNT_PURCHASE)) . '<br><br>
We reserve the right to change the amount of credits granted, and their conversion without prior notice. Convertidor shown here always current.
<p align="right"><small>Last updated: ' . tep_get_last_date('REDEEM_POINT_VALUE') . '</small><p>');

// FAQ4
define('TEXT_FAQ_4', 'If you have accepted the items you can use to make purchases in our shop '. STORE_NAME. '.
During the process of ordering, on the same page on which we choose the form of the payment window will appear with the option to choose to pay points.
If the number of points will be sufficient to cover the entire value of the contract there is no need to dial an additional form of payment. If, however, points
does not cover the entire amount of the contract will need to select an additional form of payment. After you select the option to pay points in the order confirmation will show the amount of the contract less the value of credits, and points will be deducted from the points account.');

// FAQ5 - conditionnal depending on the point limit value set in admin
if (POINTS_LIMIT_VALUE  > 0)  {
	define('TEXT_FAQ_5', 'Currently, the minimum level needed to achieve the client to pay points to: <b>' . number_format(POINTS_LIMIT_VALUE) . '</b> points <b>(' . $currencies->format(tep_calc_shopping_pvalue(POINTS_LIMIT_VALUE)) . ')' . '</b>.
	<br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('POINTS_LIMIT_VALUE') . '</small></p>');
} else {
	define('TEXT_FAQ_5', 'At this point it is determined to have no limit points to be able to pay for purchased products.
	<p align="right"><small>Last updated: ' . tep_get_last_date('POINTS_LIMIT_VALUE') . '</small></p>');
}

// FAQ6 - conditionnal depending on the point min amount value set in admin
if(tep_not_null(POINTS_MIN_AMOUNT))  {
	define('TEXT_FAQ_6', 'Minimum order to be able to use the collected points are: <b>' . $currencies->format(POINTS_MIN_AMOUNT) . '</b>.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('POINTS_MIN_AMOUNT') . '</small></p>');
} else {
	define('TEXT_FAQ_6', 'At this time, it is the minimum value of the contract to be able to use the collected points.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('POINTS_MIN_AMOUNT') . '</small></p>');
}

// FAQ7
define('TEXT_FAQ_7', 'When a single contract can be used up <b>' . number_format(POINTS_MAX_VALUE) . '</b> points <b>(' . $currencies->format(tep_calc_shopping_pvalue(POINTS_MAX_VALUE)) . ')' . '</b>.
<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
<p align="right"><small>Last updated: ' . tep_get_last_date('POINTS_MAX_VALUE') . '</small></p>');

// FAQ8 - conditionnal depending on the use point for shipping value set in admin
if(USE_POINTS_FOR_SHIPPING == 'false')  {
	define('TEXT_FAQ_8', 'No. When calculating the points for the contract are not included shipping costs.
	<p align="right"><small>Last updated: ' . tep_get_last_date('USE_POINTS_FOR_SHIPPING') . '</small></p>');
} else {
#---------------------- DO NOT EDIT  EOF ----------------------------  
 	define('TEXT_FAQ_8', 'Yes. When calculating the points for the contract are taken into account shipping costs.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('USE_POINTS_FOR_SHIPPING') . '</small></p>');
}

// FAQ9 - conditionnal depending on the value set in admin for ginving point for tax value
if(USE_POINTS_FOR_TAX == 'false')  {
	define('TEXT_FAQ_9', 'No. The tax is not included in the amount of points gained.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('USE_POINTS_FOR_TAX') . '</small></p>');
} else {
	define('TEXT_FAQ_9', 'Yes. When calculating the number of points is taken into account the full amount which the customer pays for products in the contract, so the tax.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('USE_POINTS_FOR_TAX') . '</small></p>');
}	 

// FAQ10 - conditionnal depending on value set in admin for giving point on specials
if(USE_POINTS_FOR_SPECIALS == 'false')  {
	define('TEXT_FAQ_10', 'No. In the process of calculating the credits are not taken into account the products whose price is the price promotion.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('USE_POINTS_FOR_SPECIALS') . '</small></p>');
} else {
	define('TEXT_FAQ_10', 'Yes. In the process of calculating the credits are taken into account the products whose price is the price promotion.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('USE_POINTS_FOR_SPECIALS') . '</small></p>');
}

// FAQ11
if(USE_POINTS_FOR_REDEEMED == 'false')  {
	define('TEXT_FAQ_11', 'No. In the process of calculating the credits are not taken into consideration for the contract that paid points from the current pool of points.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('USE_POINTS_FOR_REDEEMED') . '</small></p>');
} else {
	define('TEXT_FAQ_11', 'Yes. In the process of charging points are also taken into consideration for the contract that paid points from the current pool of points.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('USE_POINTS_FOR_REDEEMED') . '</small></p>');
}

// FAQ12
if (tep_not_null(USE_REFERRAL_SYSTEM)){
	define('TEXT_FAQ_12', 'Share purchases in our shop to your friends. In return you will receive points for use in the shop.
When your friend is an order on the form of payment you will be the place to enter your code, which is your e-mail address registered in our shop.
When we receive the order from your friend with your completed code of recommendation (e-mail) and when the contract is completed you will receive a positive <b>' .  USE_REFERRAL_SYSTEM . '</b> points. 		
	<p align="right"><small>Last updated: ' . tep_get_last_date('USE_REFERRAL_SYSTEM') . '</small></p>');
} else {
	define('TEXT_FAQ_12', 'At this point, this option is grayed out.
	<p align="right"><small>Last updated: ' . tep_get_last_date('USE_REFERRAL_SYSTEM') . '</small></p>');
}

// FAQ13
if (tep_not_null(USE_POINTS_FOR_REVIEWS)){
	define('TEXT_FAQ_13', 'Customer feedback about our product mix helps us improve the offer. In addition there are other simplify life for customers dokunujących shopping in our store.
        Therefore, as an expression of our gratitude for all the reviews reward customers by expanding the state credits on their accounts for the equivalent <b> '. $currencies->format(tep_calc_shopping_pvalue(USE_POINTS_FOR_REVIEWS)). '</b>.
        <br> <br> Review must meet all the following conditions:
        <ol>
        <li> must be original, </li>
        <li> must be brief and focus on the product, </li>
        <li> can not duplicate content already published, </li>
        <li> be objective, </li>
        <li> text can not contain advertising or commercial links </li>
        <li> can not be vulgar, offensive or in any way violate any applicable laws. </li>
        </ol>
		<br>' . STORE_NAME .' reserves the right to remove or nieopublikowania review if we feel that it is incompatible with the above conditions. We also reserve the right to correct spelling and grammatical errors.
		' . STORE_NAME .' is not responsible for the content of the review and assessment of clients.
	<p align="right"><small>Last updated: ' . tep_get_last_date('USE_POINTS_FOR_REVIEWS') . '</small></p>');
} else {
	define('TEXT_FAQ_13', 'We do not currently reward for reviews.
	<p align="right"><small>Last updated: ' . tep_get_last_date('USE_POINTS_FOR_REVIEWS') . '</small></p>');
}

// FAQ14
if (tep_not_null(RESTRICTION_MODEL)) {
	define('TEXT_FAQ_14', 'Currently, only as a product of the number <b> catalog [ '. RESTRICTION_MODEL. '] </b>, you can pay points.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('RESTRICTION_MODEL') . '</small></p>');
}
if (tep_not_null(RESTRICTION_PID)) { 
	$p_ids = split("[,]", RESTRICTION_PID);
	for ($i = 0; $i < count($p_ids); $i++) {
		$prods_query = tep_db_query("SELECT * FROM products, products_description WHERE products.products_id = products_description.products_id and products_description.language_id = '" . $languages_id . "'and products.products_id = '" . $p_ids[$i] . "'");
		if ($list = tep_db_fetch_array($prods_query)) {
			$prods .= '<li>' . $list['products_name'] .'</li>';
		}
	}
	
	define('TEXT_FAQ_14', 'Currently only for the products listed below can pay points.<br>&nbsp;<ol>' . $prods . '</ol>
	<br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('RESTRICTION_PID') . '</small></p>');
}
if (tep_not_null(RESTRICTION_PATH)) {
	$cat_path = split("[,]", RESTRICTION_PATH);
        for ($i = 0; $i < count($cat_path); $i++) {
        	$cat_path_query = tep_db_query("select * from " . TABLE_CATEGORIES . ", " . TABLE_CATEGORIES_DESCRIPTION . " WHERE categories.categories_id = categories_description.categories_id and categories_description.language_id = '" . $languages_id . "' and categories.categories_id='" . $cat_path[$i] . "'");
        	if ($list = tep_db_fetch_array($cat_path_query)) {
        		$cats .= '<li>' . $list['categories_name'] .'</li>';
        	}
        }
	define('TEXT_FAQ_14', 'Currently only with the products of the categories listed below, you can pay points.<br>&nbsp;<ol>' . $cats . '</ol>
	<br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('RESTRICTION_PATH') . '</small></p>');
 } else {
	define('TEXT_FAQ_14', 'Currently there are no restrictions as to the products purchased using credits.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('RESTRICTION_PATH') . '</small></p>');
}

// FAQ15
if (REDEMPTION_DISCOUNTED == 'true') {
	define('TEXT_FAQ_15', 'For products in the promotion, you can not pay points.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('REDEMPTION_DISCOUNTED') . '</small></p>');
} else {
	define('TEXT_FAQ_15', 'At this point there are no restrictions for the purchase of items and products promoted przecenionych in our store.
	<br><br>We invite you from time to time to check out this site, because it spotlights the conditions may change.
	<p align="right"><small>Last updated: ' . tep_get_last_date('REDEMPTION_DISCOUNTED') . '</small></p>');
}

// FAQ16
define('TEXT_FAQ_16', '
<ol>
     <li> Points are earned only registered customers '. STORE_NAME. '. </li>
     <li> Points gained can be used only in '. STORE_NAME. '. </li>
     <li> The resulting points <li> not be exchanged for cash. </li>
     <li> Received no points can be shared with other store customers. </li>
     <li> Points obtained can be used only turning them on the products purchased '. STORE_NAME. '. </li>
     <li> Points will not be refunded in case of withdrawal or non-contract. </li>
     <li> In case of withdrawal or non-implementation of the credits received for the contract to the contract will be eliminated from the client. </li>
     <li> When you make a purchase using points konieczney is to select another payment method if the credits do not cover the entire cost of the contract. </li>
</ol>
We invite you from time to time to check out this site, because it spotlights the conditions may change.');

// FAQ17
define('TEXT_FAQ_17', 'If you have any questions, problems or concerns related to the points system, please <a class="boxLink" href="' . tep_href_link(FILENAME_CONTACT_US) . '">contact</a> our shop.');

// Below is the section that will actually displax on the FAQ page
define('TEXT_INFORMATION', '<a name="Top"></a>
<b> Is it worth to register with '. STORE_NAME. '</b> <br> <br>
It is! With an account with us, when submitting each order you will receive points. Each item has a specific value of quota.
As a result, when shopping in our store you will be able to pay the points for products. The number of points received after logging in, you can easily check in the settings of your account.
<br> <br>
Detailed information about the points system catalog '. STORE_NAME. ' See below:
<br> <br>
<b> Please select one of the following topics: </b>
<ol>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q1\');">'. POINTS_FAQ_1 .'</a><br>
	<div id="answer_q1" style="padding:10px">'.
		TEXT_FAQ_1	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q2\');">'. POINTS_FAQ_2 .'</a><br>
	<div id="answer_q2" style="padding:10px">'.
		TEXT_FAQ_2
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q3\');">'. POINTS_FAQ_3 .'</a><br>
	<div id="answer_q3" style="padding:10px">'.
		TEXT_FAQ_3	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q4\');">'. POINTS_FAQ_4 .'</a><br>
	<div id="answer_q4" style="padding:10px">'.
		TEXT_FAQ_4	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q5\');">'. POINTS_FAQ_5 .'</a><br>
	<div id="answer_q5" style="padding:10px">'.
		TEXT_FAQ_5	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q6\');">'. POINTS_FAQ_6 .'</a><br>
	<div id="answer_q6" style="padding:10px">'.
		TEXT_FAQ_6	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q7\');">'. POINTS_FAQ_7 .'</a><br>
	<div id="answer_q7" style="padding:10px">'.
		TEXT_FAQ_7	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q8\');">'. POINTS_FAQ_8 .'</a><br>
	<div id="answer_q8" style="padding:10px">'.
		TEXT_FAQ_8	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q9\');">'. POINTS_FAQ_9 .'</a><br>
	<div id="answer_q9" style="padding:10px">'.
		TEXT_FAQ_9	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q10\');">'. POINTS_FAQ_10 .'</a><br>
	<div id="answer_q10" style="padding:10px">'.
		TEXT_FAQ_10	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q11\');">'. POINTS_FAQ_11 .'</a><br>
	<div id="answer_q11" style="padding:10px">'.
		TEXT_FAQ_11	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q12\');">'. POINTS_FAQ_12 .'</a><br>
	<div id="answer_q12" style="padding:10px">'.
		TEXT_FAQ_12	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q13\');">'. POINTS_FAQ_13 .'</a><br>
	<div id="answer_q13" style="padding:10px">'.
		TEXT_FAQ_13	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q14\');">'. POINTS_FAQ_14 .'</a><br>
	<div id="answer_q14" style="padding:10px">'.
		TEXT_FAQ_14	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q15\');">'. POINTS_FAQ_15 .'</a><br>
	<div id="answer_q15" style="padding:10px">'.
		TEXT_FAQ_15	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q16\');">'. POINTS_FAQ_16 .'</a><br>
	<div id="answer_q16" style="padding:10px">'.
		TEXT_FAQ_16	
	.'</div>
<li><a class="boxLink" style="font-weight:bold" href="javascript:show_help(\'answer_q17\');">'. POINTS_FAQ_17 .'</a><br>
	<div id="answer_q17" style="padding:10px">'.
		TEXT_FAQ_17	
	.'</div></ol>');
?>