Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

### POINTS AND REWARDS MODULE V1.00 ###


Recommended Posts

  • 4 weeks later...

Hello.

 

Once more we are having a problem to integrate this add-on (that we love!) with another function... this time is PayPal. When the costumer chooses to pay with PayPal the Reward Points are not attributed neither discounted, as if there was not be made any order. With all other payment methods, this add-on works perfectly. Can someone help please? If there's already a post about this can someone indicate me where? Thanks!

Link to comment
Share on other sites

  • 1 month later...

Hello,

 

I've been trying to install this great contri, think I'm almost done,

however when I want to add the module in the admin sector - total order

(so points can be seen in the checkout_confirmation page)

 

I get this error :

 

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/lilijewel/domains/pretty-juwelen.com/public_html/prettyadmin/modules.php on line 240

 

Warning: Variable passed to each() is not an array or object in /home/lilijewel/domains/pretty-juwelen.com/public_html/prettyadmin/modules.php on line 241

 

 

There are many topics about this but I can't find a solution to fix this.

 

this is what's in admin/modules.php around lines 240/241

 

switch ($action) {
case 'edit':
 $keys = '';
 reset($mInfo->keys);
 while (list($key, $value) = each($mInfo->keys)) {
 $keys .= '<strong>' . $value['title'] . '</strong><br />' . $value['description'] . '<br />';[/b]
[b]	 if ($value['set_function']) {
	 eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
 } else {
	 $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']);
 }
 $keys .= '<br /><br />';
 }
 $keys = substr($keys, 0, strrpos($keys, '<br /><br />'));[/b]
[b]	 $heading[] = array('text' => '<strong>' . $mInfo->title . '</strong>');[/b]
[b]	 $contents = array('form' => tep_draw_form('modules', FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'] . '&action=save'));
 $contents[] = array('text' => $keys);
 $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'])));
 break;

 

can anyone help me out here?

Thanks in advance

Lili

 

Did you or anyone find a solution for this problem?

I have the same problem, I tried to send Satish a message, but he can't receive messages anymore. Hope someone can help with this.

Link to comment
Share on other sites

  • 4 weeks later...

Hello,

 

Has anyone implemented this contribution successfully for v2.3.1 following the guide?

 

The documentation on http://addons.oscommerce.com/info/3220 states it was tested on Version 2.2MS2 yet on the history page the most recent entry states "Complete Package for 2.3x".

 

yes. it work. I install it before.

Link to comment
Share on other sites

Hi

 

I installed the points and rewards add on but am getting the following error when I click on edit for Points Redeemptions in the order total under modules

 

 

Hi

 

I installed the points and rewards add on but am getting the following error when I click on edit for Points Redeemptions in the order total under modules

 

Warning: reset() expects parameter 1 to be array, null given in /customers/d/a/8/worldofcosmetics.co.uk/httpd.www/admin/modules.php on line 227 Warning: Variable passed to each() is not an array or object in /customers/d/a/8/worldofcosmetics.co.uk/httpd.www/admin/modules.php on line 228

 

Also when I click save I get the following error

 

 

Warning: reset() expects parameter 1 to be array, null given in /customers/d/a/8/worldofcosmetics.co.uk/httpd.www/admin/modules.php on line 35 Warning: Variable passed to each() is not an array or object in /customers/d/a/8/worldofcosmetics.co.uk/httpd.www/admin/modules.php on line 36 Warning: Cannot modify header information - headers already sent by (output started at /customers/d/a/8/worldofcosmetics.co.uk/httpd.www/admin/modules.php:35) in /customers/d/a/8/worldofcosmetics.co.uk/httpd.www/admin/includes/functions/general.php on line 34

 

Please help me as I really want this on my website

 

Also I am getting no text regarding the points redeem as on my other customers website I am, instead on my website I am getting a long rectangle with a border and nothing in it

 

Please help me

 

Kind regards

 

Ian

Edited by ianhaney
Link to comment
Share on other sites

  • 5 weeks later...

hi i have install the new package for the 2.3.x

 

working very fine but i have a question,

 

how a member can refer another member if there is no referrals link and/or referral ID box in create_account.php

 

thank you very much and great job

  • v2.3.4 Bootstrap

Age_rectricted_category_v2.3.1.rar

Ajax categories caroussel.rar

ajax content.rar

Ajax whats new and promo.rar

Create Account & Manual Order Maker For OSC 2.3.4 V3.1.rar

install seperate taxe pricing..rar

Link to comment
Share on other sites

  • 1 month later...

Hi

 

I installed the points and rewards add on but am getting the following error when I click on edit for Points Redeemptions in the order total under modules

 

 

Hi

 

I installed the points and rewards add on but am getting the following error when I click on edit for Points Redeemptions in the order total under modules

 

Warning: reset() expects parameter 1 to be array, null given in /customers/d/a/8/worldofcosmetics.co.uk/httpd.www/admin/modules.php on line 227 Warning: Variable passed to each() is not an array or object in /customers/d/a/8/worldofcosmetics.co.uk/httpd.www/admin/modules.php on line 228

 

Also when I click save I get the following error

 

 

Warning: reset() expects parameter 1 to be array, null given in /customers/d/a/8/worldofcosmetics.co.uk/httpd.www/admin/modules.php on line 35 Warning: Variable passed to each() is not an array or object in /customers/d/a/8/worldofcosmetics.co.uk/httpd.www/admin/modules.php on line 36 Warning: Cannot modify header information - headers already sent by (output started at /customers/d/a/8/worldofcosmetics.co.uk/httpd.www/admin/modules.php:35) in /customers/d/a/8/worldofcosmetics.co.uk/httpd.www/admin/includes/functions/general.php on line 34

 

Please help me as I really want this on my website

 

Also I am getting no text regarding the points redeem as on my other customers website I am, instead on my website I am getting a long rectangle with a border and nothing in it

 

Please help me

 

Kind regards

 

Ian

 

Hi there

 

I had the same issue and resolved it by removing the module and re-installing it

 

A big thanks to the developers for this addon, it's awesome

Link to comment
Share on other sites

  • 4 weeks later...

I am having trouble with this step..

 

CATALOG STEP = 21. open catalog/includes/languages/english.php

 

I can not find

 

define('BOX_INFORMATION_CONTACT', 'Contact Us');

 

I am trying to install this on v2.3.3, I seen someone said they got it all working. Could you point me in the right direction?

 

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

I had successfully installed this addon, points and rewards to my website.

Then I decided to upgrade the look, bought a template, now the points are not redeeming at checkout :( I have double checked the installation and am at a total loss. Any suggestions?

Link to comment
Share on other sites

Hello,

 

I've been trying to install this great contri, think I'm almost done,

however when I want to add the module in the admin sector - total order

(so points can be seen in the checkout_confirmation page)

 

I get this error :

 

Warning: reset() [function.reset]: Passed variable is not an array or object in /home/lilijewel/domains/pretty-juwelen.com/public_html/prettyadmin/modules.php on line 240

 

Warning: Variable passed to each() is not an array or object in /home/lilijewel/domains/pretty-juwelen.com/public_html/prettyadmin/modules.php on line 241

 

 

There are many topics about this but I can't find a solution to fix this.

 

this is what's in admin/modules.php around lines 240/241

 

switch ($action) {
case 'edit':
 $keys = '';
 reset($mInfo->keys);
 while (list($key, $value) = each($mInfo->keys)) {
 $keys .= '<strong>' . $value['title'] . '</strong><br />' . $value['description'] . '<br />';[/b]
[b]	 if ($value['set_function']) {
	 eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
 } else {
	 $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']);
 }
 $keys .= '<br /><br />';
 }
 $keys = substr($keys, 0, strrpos($keys, '<br /><br />'));[/b]
[b]	 $heading[] = array('text' => '<strong>' . $mInfo->title . '</strong>');[/b]
[b]	 $contents = array('form' => tep_draw_form('modules', FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'] . '&action=save'));
 $contents[] = array('text' => $keys);
 $contents[] = array('align' => 'center', 'text' => '<br />' . tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary') . tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'])));
 break;

 

can anyone help me out here?

Thanks in advance

Lili

 

I'm having the same problem. Anyone know the solution to this problem?

Link to comment
Share on other sites

  • 3 weeks later...

Hi all,

 

Does this module work for v2.3.1 ? When I browse to http://www.YOUR DOMAIN NAME / YOUR CATALOG DIR / admin/installer.php I get to the Points/RewardsV2.1beta - DataBase Setup interface.

 

When I click Install This Module an error message is displayed stating:

 

Warning: Cannot modify header information - headers already sent by (output started at /home/.../public_html/....com/admin/installer.php:31) in /home/.../public_html/......com/admin/installer.php on line 242

 

Any ideas?

Link to comment
Share on other sites

  • 5 months later...

Hello,

 

I have installed this module but i have a problem.

On the check-out page i only can choose to use the maximum number of points and not enter a value.

 

The attached file shows a screenprint of that part of the checkout page.

 

What am i doing wrong???

 

Thank you

post-14230-0-33865500-1379332690_thumb.jpg

Greetings,

 

Henk Bartels

Link to comment
Share on other sites

  • 1 month later...

Hi there,

 

I've installed this awesome module, but on checkout-payment.php, I can't see the payment by points methode.

There's the usual payment options, like credit cards, but nothing else.

 

In the admin:

USE_POINTS_SYSTEM is set to 'true' & the same for USE_REDEEM_SYSTEM

 

ot_redemptions.php is there in my order_total modules

This module is set to 40, shipping is 50 and voucher code is 30.

 

Code is pasted and merged everywhere...

 

BUT I'm not using the paypal module -> is that tricky?

 

Anyway, I've spend many hours to understand why nobady can pay with points on my website, without success.

 

Please help !

Thx ;)

Link to comment
Share on other sites

  • 2 months later...
  • 10 months later...

Hi,

 

I know this thread is old and may not be monitored anymore, but I have recently installed this addon and have 2 issues.

 

  1. There are 2 instances of the module in my admin configuration box
  2. When using points as payment (full or partial) and utilizing Paypal as my means of payment, I see the following:
  • the detailed invoice disappears
  • just a grand total that correctly reflects the redemption of points

 

There may be more involved than just this addon module, because in the Paypal invoice window all I normally see is the detail item descriptions with price and a total not reflecting tax / shipping. The shipping / tax / discounts do not show even though I have all of that configured in my admin site.

 

Any help / advice would be greatly appreciated.

Link to comment
Share on other sites

  • 1 month later...

anyone know how to get this module to work with this payment module?

cardstream_form.php

<?php



class cardstream_form {



    var $code, $title, $description, $enabled;



    // class constructor

    function cardstream_form() {

	

	global $order;



	$this->code = 'cardstream_form';

	$this->version = "Cardstream";



	// Perform error checking of module's configuration ////////////////////////////////////////

	$critical_config_problem = false;



	$this->form_action_url = "https://gateway.cardstream.com/hosted/";



	$cardstream_form_config_messages = '';



	$cardstream_form_config_messages .= '<fieldset style="background: #d0d0d0; margin-bottom: 1.5em"><legend style="font-size: 1.2em; font-weight: bold">Module Version Information</legend>';

	$cardstream_form_config_messages .= '<p>File Version: ' . $this->version;

	$this->description = '';



	$this->title = "Credit or Debit Card";





	$this->enabled = ((MODULE_PAYMENT_CARDSTREAM_FORM_STATUS == 'True') ? true : false);

	$this->sort_order = MODULE_PAYMENT_CARDSTREAM_FORM_SORT_ORDER;



	if ((int) MODULE_PAYMENT_CARDSTREAM_FORM_ORDER_STATUS_ID > 0) {

	    $this->order_status = MODULE_PAYMENT_CARDSTREAM_FORM_ORDER_STATUS_ID;

	}



	if (is_object($order)) {

	    $this->update_status();

	}



	}



	function update_status() {

      global $order;



      if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_CARDSTREAM_FORM_ZONE > 0) ) {

        $check_flag = false;

        $check = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_CARDSTREAM_FORM_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id");

        while (!$check->EOF) {

          if ($check->fields['zone_id'] < 1) {

            $check_flag = true;

            break;

          } elseif ($check->fields['zone_id'] == $order->billing['zone_id']) {

            $check_flag = true;

            break;

          }

          $check->MoveNext();

        }



        if ($check_flag == false) {

          $this->enabled = false;

        }

      }

    }



	function javascript_validation() {

	    return false;

	}



	function selection() {

	    return array('id' => $this->code,

		'module' => $this->title);

	}



	function pre_confirmation_check() {

	    return false;

	}



	function confirmation() {

	    return false;

	}



	function process_button() {

	    global $order, $currencies, $currency, $customer_id, $cart, $products, $contents;



	    $amount = round($order->info['total']*100);



		$transU = md5(mktime());

		$retURL = tep_href_link(FILENAME_CHECKOUT_PROCESS, tep_session_name() . '=' . tep_session_id(), 'SSL', false);

	    $process_button_string = '';



		$fields = array(

			'transactionUnique' => $transU,

			'amount' => $amount,

			'merchantID' => MODULE_PAYMENT_CARDSTREAM_FORM_MERCHANT_ID,

			'countryCode' => MODULE_PAYMENT_CARDSTREAM_FORM_COUNTRY_ID,

			'currencyCode' => MODULE_PAYMENT_CARDSTREAM_FORM_CURRENCY_ID,

			'redirectURL' => $retURL,

			'customerName' => $order->customer['firstname'].' '.$order->customer['lastname'],

			'customerAddress' => $order->customer['street_address']."\n".$order->customer['city']."\n".$order->customer['state'],

			'customerPostcode' => $order->customer['postcode'],

			'customerPhone' => $order->customer['telephone'],

			'customerEmail' => $order->customer['email_address']

		);



		ksort($fields);

		$fields['signature'] = hash('SHA512',http_build_query($fields, '', '&').MODULE_PAYMENT_CARDSTREAM_FORM_PRE_SHARED_KEY).'|'.implode(',',array_keys($fields));



		foreach($fields as $k => $v){

			$process_button_string .= tep_draw_hidden_field($k, $v);

		}



	    return $process_button_string;

	}



	function after_order_create($zf_order_id)

	{

		global $order, $currencies, $currency, $customer_id, $cart, $products, $contents;

		// Save response from cardstream in the database

		$cardstream_form_response_array = array(

			'transid' => $_POST['transactionUnique'],

			'zen_order_id' => $zf_order_id,

			'received' => $_POST['amountReceived'],

			);

		zen_db_perform("cardstream_form", $cardstream_form_response_array);

	}



	function get_error(){

	    return array('title' => "Payment Error",

		 'error' => "There has been an error with your payment. Please try again.");

	}



	function admin_notification($zf_order_id)

	{



		$sql = "

			SELECT

				*

			FROM

				cardstream_form

			WHERE

				zen_order_id = '" . $zf_order_id . "'";



		$cardstream_form_transaction_info = tep_db_query($sql);



		require(DIR_FS_CATALOG. DIR_WS_MODULES .

			'payment/cardstream_form/cardstream_form_admin_notification.php');



		return $output;

	}

	

	function before_process() {

	    global  $messageStack,$order,$code;



	    $amount = round($order->info['total']*100);



	    if (($_POST["responseCode"] != "0") || ($_POST["amountReceived"] != $amount)) {

		    //$errorcode = "Payment Failed. Please try again.";



		    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=' . $this->code . (tep_not_null($error) ? '&error=' . $error : ''), 'SSL'));

	    }



	}



	function after_process() {

	    return false;

	}



	function check() {

	    if (!isset($this->_check)) {

		$check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_CARDSTREAM_FORM_STATUS'");

		$this->_check = tep_db_num_rows($check_query);

	    }

	    return $this->_check;

	}



	function install() {

	    // General Config Options

	    $background_colour = '#d0d0d0';

	    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('</b><fieldset style=\"background: " . $background_colour . "; margin-bottom: 1.5em;\"><legend style=\"font-size: 1.4em; font-weight: bold\">General Config</legend><b>Enable Cardstream Module', 'MODULE_PAYMENT_CARDSTREAM_FORM_STATUS', 'True', 'Do you want to accept Cardstream payments?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");

	    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Merchant ID', 'MODULE_PAYMENT_CARDSTREAM_FORM_MERCHANT_ID', '', '', '2', '1', now())");

	    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Merchant Signature Key', 'MODULE_PAYMENT_CARDSTREAM_FORM_PRE_SHARED_KEY', '', '', '2', '1', now())");

	    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Front End Name', 'MODULE_PAYMENT_CARDSTREAM_FORM_CATALOG_TEXT_TITLE', '', '', '3', '1', now())");

	    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Currency ID', 'MODULE_PAYMENT_CARDSTREAM_FORM_CURRENCY_ID', '', '', '4', '1', now())");

	    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Country ID', 'MODULE_PAYMENT_CARDSTREAM_FORM_COUNTRY_ID', '', '', '5', '1', now())");

	    $background_colour = '#eee';

	}



	function remove() {

	    tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");

	}



	function keys() {

	    return array(

		'MODULE_PAYMENT_CARDSTREAM_FORM_MERCHANT_ID',

		'MODULE_PAYMENT_CARDSTREAM_FORM_CURRENCY_ID',

		'MODULE_PAYMENT_CARDSTREAM_FORM_PRE_SHARED_KEY',

		'MODULE_PAYMENT_CARDSTREAM_FORM_CATALOG_TEXT_TITLE',

		'MODULE_PAYMENT_CARDSTREAM_FORM_COUNTRY_ID',

		'MODULE_PAYMENT_CARDSTREAM_FORM_STATUS'

	    );

	}



    }



?>
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...