Forums / All Other Contributions/Addons / Reward Points Module for ZC v13x

Reward Points Module for ZC v13x

Locked

Views: 472,165

Results 2,421 to 2,440 of 2,476
This thread is locked. New replies are disabled.
30 Apr 2014, 8:40 AM
#2421
izar74 avatar

izar74

Zen Follower

Join Date:
Mar 2009
Location:
Italy
Posts:
155
Plugin Contributions:
0

Reward Points Module for ZC v13x

Hi lhungil,
thanks for the advice. I sometimes got the error but dunno where it was generated. Just to be sure not to do stupid changes could you please confirm that the following code is correct:
Unmodified file customers_reward_points.php

  switch ($action) //line 317
  {                     //line 318
    case 'edit':      //line 319
	case 'update':

Modified:

if(zen_not_null($current_customer)) { //line 316 added by lhungil
switch ($action)  //line 317
  {                     //line 318
    case 'edit':      //line 319
	case 'update':

Then in the end:
Unmodified

if((zen_not_null($heading)) && (zen_not_null($contents))) //line 381
  {                                                                           //line 382
    echo '            <td width="25%" valign="top">' . "\n";    //line 383

modified:

} else { echo '<div class="alert">No Customer (or invalid customer) selected. No action performed!</div>'; } //line 380
if((zen_not_null($heading)) && (zen_not_null($contents))) //line 381
  {                                                                           //line 382
    echo '            <td width="25%" valign="top">' . "\n";    //line 383

Sorry but that "around line xxx" put me in danger zone, i prefer to be sure before making any modification :P (i know it for dummy but be patient :blink:)

4 May 2014, 4:42 AM
#2422
bvgolf avatar

bvgolf

New Zenner

Join Date:
Oct 2013
Location:
Orlando, FL
Posts:
8
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi,

I would like to show the reward points below product price on the main page, categories, featured items, new products, etc., but not for "call for price" items. Do you think that this is possible?

Thank you,

6 May 2014, 3:47 PM
#2423
lhungil avatar

lhungil

Totally Zenned

Join Date:
Feb 2012
Location:
mostly harmless
Posts:
1,818
Plugin Contributions:
4

Re: Reward Points Module for ZC v13x

izar74:

... could you please confirm that the following code is correct: ...
"/admin/customers_reward_points.php" (changes in red):

315:	$contents = array();
316:
	  if(zen_not_null($current_customer)) {
317:	    switch ($action) { // Combined w/ line 318
319:	      case 'edit':
320:	      case 'update':
321:	      case 'handle_point_list':

...

376:	          $record_contents[]=array('text' => '</form>');
377:	        }
378:	        break;
379:	    } // End of switch statement
	  } else {
	    echo '<div class="alert">No Customer (or invalid customer) selected. No action performed!</div>';
	  }
380:
381:	  if((zen_not_null($heading)) && (zen_not_null($contents)))

The glass is not half full. The glass is not half empty. The glass is simply too big!
Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

12 May 2014, 8:38 PM
#2424
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

Re: Reward Points Module for ZC v13x

Is there a way to store the total points to be earned as dollars and cents (or rather whole and part numbers) instead of the rounding to the nearest whole number?

4 Jun 2014, 8:24 PM
#2425
donrichardsonnh avatar

donrichardsonnh

New Zenner

Join Date:
Oct 2006
Posts:
25
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I am new to all of this and have a question regarding the installation of the Rewards Points Module.

The instructions state to install all files with a path "custom" to my custom folder. I have no custom folders, and use a plug-in theme other than Classic. \Can you please elaborate on what "custom" really refers to? I want to be sure that these files get in the right folders.

Thanks for the feedback and clarification.

5 Jun 2014, 2:14 AM
#2426
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Reward Points Module for ZC v13x

DonRichardsonNH:

I am new to all of this and have a question regarding the installation of the Rewards Points Module.

The instructions state to install all files with a path "custom" to my custom folder. I have no custom folders, and use a plug-in theme other than Classic. \Can you please elaborate on what "custom" really refers to? I want to be sure that these files get in the right folders.

Thanks for the feedback and clarification.

Change the name of the custom folder to the name of the template you are using and then ftp upload it to your server.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

16 Jun 2014, 3:52 PM
#2427
joe_robot avatar

joe_robot

New Zenner

Join Date:
Dec 2013
Posts:
17
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Is it possible to make a reward points unusable on a particular item?

19 Jun 2014, 12:54 PM
#2428
pxtures avatar

pxtures

New Zenner

Join Date:
Mar 2012
Location:
Singapore
Posts:
14
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I am using V1.5.0

Reward Points sidebox not showing in my web store. Even after a purchase, it only show in Payment into step 2/3. When I turned it on under Configuration Reward Point Sidebox Display = 1 or 2, it doesn't show as a sidebox. I have checked, everything seems to be there in the server. Reward Points system works well, except that it is not display on sidebox, can anyone advise? Many thanks in advance.

19 Jun 2014, 5:09 PM
#2429
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Reward Points Module for ZC v13x

Pxtures:

I am using V1.5.0

Reward Points sidebox not showing in my web store. Even after a purchase, it only show in Payment into step 2/3. When I turned it on under Configuration Reward Point Sidebox Display = 1 or 2, it doesn't show as a sidebox. I have checked, everything seems to be there in the server. Reward Points system works well, except that it is not display on sidebox, can anyone advise? Many thanks in advance.

GO back check your installation files. Check and make sure the sidebox files uploaded to there correct place.
Always show a link to your site so someone can help,

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

19 Jun 2014, 5:29 PM
#2430
joe_robot avatar

joe_robot

New Zenner

Join Date:
Dec 2013
Posts:
17
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Joe Robot:

Is it possible to make a reward points unusable on a particular item?
Hmm...let's try again.

I have some pre-order items that I would like to make "cash only", so they can't be purchased with rewards points. Is there a way to do this from the Admin?

If not the admin, any other ideas about this can be achieved? I am using v1.3.9h

19 Jun 2014, 11:06 PM
#2431
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Reward Points Module for ZC v13x

Joe Robot:

Hmm...let's try again.

I have some pre-order items that I would like to make "cash only", so they can't be purchased with rewards points. Is there a way to do this from the Admin?

If not the admin, any other ideas about this can be achieved? I am using v1.3.9h

That would require custom coding to get reward points to do what you are asking. It can be done.... but if it was me I would upgrade my store if I was still using zen cart 1.3.9. Zen cart 1.5.3 is hopefully coming out pretty soon.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

23 Jun 2014, 5:53 PM
#2432
joe_robot avatar

joe_robot

New Zenner

Join Date:
Dec 2013
Posts:
17
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Thanks for responding :)

An upgrade is in the works, thanks again.

23 Jun 2014, 11:59 PM
#2433
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Reward Points Module for ZC v13x

Joe Robot:

Thanks for responding :)

An upgrade is in the works, thanks again.

No problem

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

4 Jul 2014, 10:09 AM
#2434
cameron14 avatar

cameron14

New Zenner

Join Date:
Jun 2014
Location:
UK
Posts:
14
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi..

I have just installed this module and I'm trying to set the global points ratio in the section "Customers >Group Reward Redeem". By default it is 0.0100 but I want it as 0.1000. Every time I alter it (and then go back to that page) it still says 0.0100. Can anyone tell me what I'm doing wrong please? Thank you in advance!

Attachment 14237

13 Jul 2014, 5:24 PM
#2435
cameron14 avatar

cameron14

New Zenner

Join Date:
Jun 2014
Location:
UK
Posts:
14
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Ok I got this one...after tearing my hair out, it was a very simple case of hitting the enter key. In hindsight, very obvious and basic.

17 Jul 2014, 10:10 PM
#2436
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hello group.. I am having a problem and I don't know how to fix it.. see attached.

I have check the files in the lnaguage files and under the templates and sideboxes and I can figure out why it is doing as attachecd.

what do you need from my my website is below
thank you for reading.
noppie

My Multi_Site Zen Carts
http://herasonlinemarket.com

18 Jul 2014, 12:06 AM
#2437
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Reward Points Module for ZC v13x

Cameron14:

Ok I got this one...after tearing my hair out, it was a very simple case of hitting the enter key. In hindsight, very obvious and basic.

Make sure when you edited the files you didn't miss anything. I think that error would come from one of these files.
\includes\languages\english\extra_definitions\custom\reward_points.php or
\includes\templates\custom\sideboxes\tpl_reward_points.php

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

19 Jul 2014, 9:40 PM
#2438
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I have been to both files
\includes\languages\english\extra_definitions\custom\reward_points.php

here is the code
"<?php
define('BOX_REWARD_POINTS', 'Magic Bucks');

define('PRODUCT_REWARD_POINT_TAG', 'magic bucks');
define('REWARD_POINTS_IN_CART_TAG', 'magic bucksin cart');
define('CUSTOMER_EARNED_POINT_TAG', 'magic bucks earned');
define('CUSTOMER_PENDING_POINT_TAG', 'magic bucks pending');
define('MINIMUM_POINT_LEVEL_TAG', 'magic bucks minimum');
define('MAXIMUM_POINT_LEVEL_TAG', 'magic bucks maximum');
define('CUSTOMER_TOTAL_POINT_TAG', 'magic bucks total');
define('NO_REWARD_magic bucks_IN_CART_TAG','No rewards earned.');
define('CUSTOMER_NOT_LOGGED_IN_TAG','Log in to see rewards earned');
define('REWARD_POINT_TITLE','Reward magic bucks');
define('REWARD_POINT_PROMPT','Total  magic bucks: ');
define('REWARD_POINT_VALUE_PROMPT','Total Magic Bucks Value: ');

?>

and here is the \includes\templates\custom\sideboxes\tpl_reward_points.php

<?php /** * Side Box Template for reward points * * @package templateSystem * @copyright Copyright 2008 Andrew Moore * @copyright Portions Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ $reward_points=GetRewardPoints($_SESSION['cart']->get_products()); $warning=''; $content='<div id="'.str_replace('_', '-', $box_id . 'Content').'" class="sideBoxContent">'; /* foreach($_SESSION['cart']->get_products() as $product) // if($products[$i]['products_priced_by_attribute']) $reward_points+=GetRewardPoints($product['id'],$product['attributes'])*$product['quantity']; // else // $reward_points+=GetRewardPoints($product['id'])*$product['quantity']; */ if($reward_points>0) $content.='<div class="cartBoxRewardPoints">'.(int)$reward_points.' '.REWARD_POINTS_IN_CART_TAG.'</div>'; else $warning.=NO_REWARD_POINTS_IN_CART_TAG; if(isset($_SESSION['customer_id'])) $content.='<div class="cartBoxEarnedPoints">'.GetCustomersRewardPoints($_SESSION['customer_id']).' '.CUSTOMER_EARNED_POINT_TAG.'</div><div class="cartBoxPendingPoints">'.GetCustomersPendingPoints($_SESSION['customer_id']).' '.CUSTOMER_PENDING_POINT_TAG.'</div>'; else $warning.=($warning?'<br />':'').CUSTOMER_NOT_LOGGED_IN_TAG; if($warning) $content.='<div id="cartBoxEmpty">'.$warning.'</div>'; $content.='</div>'; ?>

can anyone help

My Multi_Site Zen Carts
http://herasonlinemarket.com

20 Jul 2014, 11:10 PM
#2439
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Reward Points Module for ZC v13x

noppie:

I have been to both files
\includes\languages\english\extra_definitions\custom\reward_points.php

here is the code
"<?php
define('BOX_REWARD_POINTS', 'Magic Bucks');

define('PRODUCT_REWARD_POINT_TAG', 'magic bucks');
define('REWARD_POINTS_IN_CART_TAG', 'magic bucksin cart');
define('CUSTOMER_EARNED_POINT_TAG', 'magic bucks earned');
define('CUSTOMER_PENDING_POINT_TAG', 'magic bucks pending');
define('MINIMUM_POINT_LEVEL_TAG', 'magic bucks minimum');
define('MAXIMUM_POINT_LEVEL_TAG', 'magic bucks maximum');
define('CUSTOMER_TOTAL_POINT_TAG', 'magic bucks total');
define('NO_REWARD_magic bucks_IN_CART_TAG','No rewards earned.');
define('CUSTOMER_NOT_LOGGED_IN_TAG','Log in to see rewards earned');
define('REWARD_POINT_TITLE','Reward magic bucks');
define('REWARD_POINT_PROMPT','Total  magic bucks: ');
define('REWARD_POINT_VALUE_PROMPT','Total Magic Bucks Value: ');

?>

and here is the \includes\templates\custom\sideboxes\tpl_reward_points.php

<?php /** * Side Box Template for reward points * * @package templateSystem * @copyright Copyright 2008 Andrew Moore * @copyright Portions Copyright 2003-2005 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license <http://www.zen-cart.com/license/2_0.txt> GNU Public License V2.0 */ $reward_points=GetRewardPoints($_SESSION['cart']->get_products()); $warning=''; $content='<div id="'.str_replace('_', '-', $box_id . 'Content').'" class="sideBoxContent">'; /* foreach($_SESSION['cart']->get_products() as $product) // if($products[$i]['products_priced_by_attribute']) $reward_points+=GetRewardPoints($product['id'],$product['attributes'])*$product['quantity']; // else // $reward_points+=GetRewardPoints($product['id'])*$product['quantity']; */ if($reward_points>0) $content.='<div class="cartBoxRewardPoints">'.(int)$reward_points.' '.REWARD_POINTS_IN_CART_TAG.'</div>'; else $warning.=NO_REWARD_POINTS_IN_CART_TAG; if(isset($_SESSION['customer_id'])) $content.='<div class="cartBoxEarnedPoints">'.GetCustomersRewardPoints($_SESSION['customer_id']).' '.CUSTOMER_EARNED_POINT_TAG.'</div><div class="cartBoxPendingPoints">'.GetCustomersPendingPoints($_SESSION['customer_id']).' '.CUSTOMER_PENDING_POINT_TAG.'</div>'; else $warning.=($warning?'<br />':'').CUSTOMER_NOT_LOGGED_IN_TAG; if($warning) $content.='<div id="cartBoxEmpty">'.$warning.'</div>'; $content.='</div>'; ?>

can anyone help

<?php define('BOX_REWARD_POINTS', 'Magic Bucks'); define('PRODUCT_REWARD_POINT_TAG', 'magic bucks'); define('REWARD_POINTS_IN_CART_TAG', 'magic bucksin cart'); define('CUSTOMER_EARNED_POINT_TAG', 'magic bucks earned'); define('CUSTOMER_PENDING_POINT_TAG', 'magic bucks pending'); define('MINIMUM_POINT_LEVEL_TAG', 'magic bucks minimum'); define('MAXIMUM_POINT_LEVEL_TAG', 'magic bucks maximum'); define('CUSTOMER_TOTAL_POINT_TAG', 'magic bucks total'); define('NO_REWARD_magic bucks_IN_CART_TAG','No rewards earned.'); define('CUSTOMER_NOT_LOGGED_IN_TAG','Log in to see rewards earned'); define('REWARD_POINT_TITLE','Reward magic bucks'); define('REWARD_POINT_PROMPT','Total magic bucks: '); define('REWARD_POINT_VALUE_PROMPT','Total Magic Bucks Value: '); ?>

Your problem is with the line in red. Fix the line and things should work.

Is your site Upgraded to the current version 1.5.4 Yet?
zencart-upgrades-website-installation

21 Jul 2014, 12:28 AM
#2440
noppie avatar

noppie

Zen Follower

Join Date:
Mar 2004
Posts:
210
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

countrycharm:

Your problem is with the line in red. Fix the line and things should work.
thank you so much.. duh.. No I reaLLY FEEL STUPID.
THANK YOU SO MUCH.

My Multi_Site Zen Carts
http://herasonlinemarket.com