Forums / All Other Contributions/Addons / Reward Suite Problem with Sidebox

Reward Suite Problem with Sidebox

Locked

Started by nbordeau on 1 Sep 2010, 4:43 AM · Views: 910

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
1 Sep 2010, 4:43 AM
#1
nbordeau avatar

nbordeau

Zen Follower

Join Date:
Apr 2010
Location:
Rochester, New York
Posts:
97
Plugin Contributions:
0

Reward Suite Problem with Sidebox

Ok,

So I have just installed the reward suite, but the problem is that I think I am having trouble with the text that appears in the side-boxes.

Here is the code that must be edited:

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>'; 
?>

My website is http://www.outplaypoker.com. You will see on the top left the rewards box that I am having problems with.

Any Suggestions?

Best Regards,
Nick

1 Sep 2010, 6:30 AM
#2
richphitzwell avatar

richphitzwell

Zen Follower

Join Date:
Jul 2010
Location:
My heart will always be in the NorEast
Posts:
110
Plugin Contributions:
0

Re: Reward Suite Problem with Sidebox

thats going to be in your language file and you just need to define it

for instance
define('TEXT_GV_NAMES','Gift Certificates');

in /includes/laguage/english.php

and in your case
define('CUSTOMER_NOT_LOGGED_IN_TAG','Log In to see rewards');

The other route is
http://www.zen-cart.com/forum/showthread.php?p=929428#post929428

of course the best route would be to put the login button there if the person is not logged in, but at least that would get you going while im in my drunken state

1 Sep 2010, 4:50 PM
#3
nbordeau avatar

nbordeau

Zen Follower

Join Date:
Apr 2010
Location:
Rochester, New York
Posts:
97
Plugin Contributions:
0

Re: Reward Suite Problem with Sidebox

Ok,

Well I renamed the folder and it worked out better.

But now I would like to hyper link the login or register part that you see to the correct page.

How would I go about doing this?

Best Regards,
Nick

1 Sep 2010, 5:38 PM
#4
richphitzwell avatar

richphitzwell

Zen Follower

Join Date:
Jul 2010
Location:
My heart will always be in the NorEast
Posts:
110
Plugin Contributions:
0

Re: Reward Suite Problem with Sidebox

It appears to be going to the correct place now.