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

Reward Points Module for ZC v13x

Locked

Views: 470,642

Results 1,861 to 1,880 of 2,476
This thread is locked. New replies are disabled.
14 Jul 2011, 6:59 PM
#1861
hardwiredtemplates avatar

hardwiredtemplates

Zen Follower

Join Date:
Sep 2008
Posts:
211
Plugin Contributions:
0

Reward Points Module for ZC v13x

Athens Collectibles:

You may also change most of colours, fonts, borders etc from within the reward.css file.

All the changes were made in the reward.css file, yet the color, font-size, weight do not change at all. Any suggestion by anyone out there... I am trying to change the color and font-size of the reward points side box information.

again please look at https://www.megasaveonline.com

14 Jul 2011, 7:34 PM
#1862
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

You are (mostly) correct. I have made extensive changes to the mod's stylesheet_reward.css to control the sidebox and how the reward points appear in various pages (product listing, shopping cart and checkout pages). You may view how the sidebox displays on my site Athens Collectibles, place an item into the cart and proceed to checkout, without of course confirming the order.

If you use Firefox with the Web Developer add-on, you will be able to replace the contents of the default stylesheet_reward.css with mine and make changes on the spot, viewing their effect. Not everything will be suitable for you because of possibly different product listing and checkout layouts but you will get the idea. My css is:

/**
 * Reward Points CSS Stylesheet
 *
 * @package templateSystem
 * @copyright Copyright 2007 Andrew Moore
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 */

/*Override inputLabel style to get rid of ugly label word wrapping*/

label.inputLabel {
	float:left;
	width:20em;
}

.inputLabel {
	font-size:1.1em;
	line-height:1.5em;
	vertical-align: middle;
	padding:0.2em;	
	float:left;
	width:20em;
}

.inputField {
	font-size:1.1em;
	line-height:1.5em;
	vertical-align: middle;
	padding:0.2em;	
	float:left;
}

/*wrappers - page or section containers*/

#rewardWrapper {
	background-color: #ffffff;
	text-align: left;
	width: 1000px;
	vertical-align: top;
	border: 0px solid #9a9a9a;
	border-bottom: 5px solid #330099;
}

.productRewardPoints {
	margin-bottom:1em;
	padding-top:3px;
	padding-bottom:3px;
	border:1px solid #00ff00;
	background-color:#ffffe0;
	color: #ff0000;
}

.cartBoxRewardPoints {
	margin:0pt;
	padding:0.2em 0em;
	color: #FF0000;
	font-weight:bold;
	text-align:right;
}

.cartBoxEarnedPoints {
	margin:0pt;
	padding:0.2em 0em;
	color: #FF0000;
	font-weight:bold;
	text-align:right;
}

.cartBoxPendingPoints {
	margin:0pt;
	padding:0.2em 0em;
	color: #FF8040;
	font-weight:bold;
	text-align:right;
}

#rewardpoints {
	border:1px solid #00ff00!important;
	background-color:#ffffe0!important;
}

#shoppingcartwithrewards {
	border:1px solid #00ff00!important;
	background-color:#ffffe0!important;
}

#cartBoxEmpty {
	text-align:left;
	font-weight:normal;
}

#otrewardpointsdisplay {
	float:right;
}

#otrewardpointsdisplay .lineTitle {
	text-align:left;
	font-weight:bold;
	color:#0000ff;
	padding-right:10px;
	padding-left:10px;
	background-color:#ffffdd!important;
	border:1px solid #0000ff;
	margin-top:6px;
}

#otrewardpointsdisplay .totalBox {
	width:70px;
	text-align:center;
	font-weight:bold;
	color:#ffffff;
	background-color:#0000ff!important;
	border:1px solid #0000ff;
	margin-top:6px;
}

#shoppingcartwithrewardsContent .cartBoxRewardPoints {
	margin-bottom:-12px;
}

.rewardexplain {
	font-weight:normal;
	font-size:10px;
}

#rewardpoints .leftBoxHeading {
	display:block;
	border-bottom:1px solid #00ff00!important;
	background-color:#ffffe0;
	font-size:11px;
}

#shoppingcartwithrewards .leftBoxHeading {
	display:block;
	border-bottom:1px solid #00ff00!important;
	background-color:#ffffe0;
	font-size:11px;
}

Compare my stylesheet to the one included with the mod and you will see my additions and changes.

Good luck and post back if and when you manage to do what you want. Cheers for now.

15 Jul 2011, 4:05 AM
#1863
hardwiredtemplates avatar

hardwiredtemplates

Zen Follower

Join Date:
Sep 2008
Posts:
211
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Athens Collectibles:

You may also change most of colours, fonts, borders etc from within the reward.css file.

Athens Collectibles:

You are (mostly) correct. I have made extensive changes to the mod's stylesheet_reward.css to control the sidebox and how the reward points appear in various pages (product listing, shopping cart and checkout pages). You may view how the sidebox displays on my site Athens Collectibles, place an item into the cart and proceed to checkout, without of course confirming the order.

If you use Firefox with the Web Developer add-on, you will be able to replace the contents of the default stylesheet_reward.css with mine and make changes on the spot, viewing their effect. Not everything will be suitable for you because of possibly different product listing and checkout layouts but you will get the idea. My css is:

/**

/Override inputLabel style to get rid of ugly label word wrapping/

label.inputLabel {
float:left;
width:20em;
}

.inputLabel {
font-size:1.1em;
line-height:1.5em;
vertical-align: middle;
padding:0.2em;
float:left;
width:20em;
}

.inputField {
font-size:1.1em;
line-height:1.5em;
vertical-align: middle;
padding:0.2em;
float:left;
}

/wrappers - page or section containers/

#rewardWrapper {
background-color: #ffffff;
text-align: left;
width: 1000px;
vertical-align: top;
border: 0px solid #9a9a9a;
border-bottom: 5px solid #330099;
}

.productRewardPoints {
margin-bottom:1em;
padding-top:3px;
padding-bottom:3px;
border:1px solid #00ff00;
background-color:#ffffe0;
color: #ff0000;
}

.cartBoxRewardPoints {
margin:0pt;
padding:0.2em 0em;
color: #FF0000;
font-weight:bold;
text-align:right;
}

.cartBoxEarnedPoints {
margin:0pt;
padding:0.2em 0em;
color: #FF0000;
font-weight:bold;
text-align:right;
}

.cartBoxPendingPoints {
margin:0pt;
padding:0.2em 0em;
color: #FF8040;
font-weight:bold;
text-align:right;
}

#rewardpoints {
border:1px solid #00ff00!important;
background-color:#ffffe0!important;
}

#shoppingcartwithrewards {
border:1px solid #00ff00!important;
background-color:#ffffe0!important;
}

#cartBoxEmpty {
text-align:left;
font-weight:normal;
}

#otrewardpointsdisplay {
float:right;
}

#otrewardpointsdisplay .lineTitle {
text-align:left;
font-weight:bold;
color:#0000ff;
padding-right:10px;
padding-left:10px;
background-color:#ffffdd!important;
border:1px solid #0000ff;
margin-top:6px;
}

#otrewardpointsdisplay .totalBox {
width:70px;
text-align:center;
font-weight:bold;
color:#ffffff;
background-color:#0000ff!important;
border:1px solid #0000ff;
margin-top:6px;
}

#shoppingcartwithrewardsContent .cartBoxRewardPoints {
margin-bottom:-12px;
}

.rewardexplain {
font-weight:normal;
font-size:10px;
}

#rewardpoints .leftBoxHeading {
display:block;
border-bottom:1px solid #00ff00!important;
background-color:#ffffe0;
font-size:11px;
}

#shoppingcartwithrewards .leftBoxHeading {
display:block;
border-bottom:1px solid #00ff00!important;
background-color:#ffffe0;
font-size:11px;
}

> Compare my stylesheet to the one included with the mod and you will see my additions and changes.
> 
> Good luck and post back if and when you manage to do what you want. Cheers for now.

Athens thank you so much for assisting. It seems that something else is controlling this side box. Try adding an item in your cart and see that the reward points do not turn red as they should do. I use FF dev tools and that section is styled with:

.cartBoxRewardPoints {
	margin:0pt;
	padding:0.2em 0em;
	color: #FF0000;
	font-weight:bold;
	text-align:right;
}

Clearly it should be red and bold but never does. When I use the FF developers tools to view CSS information on that section this is what it shows.

.sideBoxContent a, .sideBoxContent div, .rightBoxContainer div, .leftBoxContainer div (line 989)

{
font-family: arial,verdana;
font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: 11px;
font-size-adjust: none;
font-stretch: normal;
-x-system-font: none;
color: #454545;
line-height: 17px;

}

Also shows this:
.cartBoxRewardPoints {
	margin:0pt;
	padding:0.2em 0em;
	color: #FF0000;
	font-weight:bold;
	text-align:right;
}

It seems that something else is overwriting and I haven't got the slightest clue as to where to change next, please help:frusty:

again site is <https://www.megasaveonline.com>
15 Jul 2011, 6:09 AM
#1864
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Add the red bold bits and it works:

.cartBoxRewardPoints {
	margin:0pt[B]!important[/B];
	padding:0.2em 0em[B]!important[/B];
	color: #FF0000[B]!important[/B];
	font-weight:bold[B]!important[/B];
	text-align:right[B]!important[/B];
}

Happy now? :D As you said, something else might overwrite your code. In general, if you see this happening with other parts of your code, add the "!important" before the ";" character to force the css to execute your code despite other lines overwriting it.

16 Jul 2011, 4:20 AM
#1865
hardwiredtemplates avatar

hardwiredtemplates

Zen Follower

Join Date:
Sep 2008
Posts:
211
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Athens Collectibles:

Add the red bold bits and it works:

.cartBoxRewardPoints {
margin:0pt[B]!important[/B];
padding:0.2em 0em[B]!important[/B];
color: #FF0000[B]!important[/B];
font-weight:bold[B]!important[/B];
text-align:right[B]!important[/B];
}

> 
> Happy now? :D As you said, something else might overwrite your code. In general, if you see this happening with other parts of your code, add the "!important" before the ";" character to force the css to execute your code despite other lines overwriting it.

Athens I am more then Happy now:D. Thank you so much, and you've taught me something new today which always better then having the job done for you. 

Much appreciation
16 Jul 2011, 7:06 AM
#1866
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Glad it worked for you. However, when I try to load your side, I get the following error:

1146 Table 'webship7_zc1.zen_products_to_categories' doesn't exist
in:
[select distinct m.manufacturers_id as id, m.manufacturers_name as name from zen_products p, zen_products_to_categories p2c, zen_manufacturers m where p.products_status = 1 and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '0' order by m.manufacturers_name]

Are you aware of this?

16 Jul 2011, 12:58 PM
#1867
hardwiredtemplates avatar

hardwiredtemplates

Zen Follower

Join Date:
Sep 2008
Posts:
211
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Athens Collectibles:

Glad it worked for you. However, when I try to load your side, I get the following error:

Are you aware of this?

Yes Athens I accidentally dropped that table from the database and for hours I could not get it back. I went to bed late at night and today it was not that difficult to add the table back to my database and it's:D all good now..

Moral of story: If you spend hours on something, take a walk, do something else, go to bed an revisit later.

Thanks for the update Athens.

18 Jul 2011, 3:26 AM
#1868
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I just did an upgrade of this module, I'm having an odd problem.

My pending points account is now filled with numbers, it looks as if it's added the earned points to the pending points column when I look at the db. Before, customer ID 7977 had 130 earned points, they now have 130 points plus 130 pending points.

This is happening for all my customers, when I look at the old db the column for pending points all say 0 points. Not anymore. I have no idea how this happened or what could have caused it, any ideas?

20 Jul 2011, 3:35 PM
#1869
jamint avatar

jamint

New Zenner

Join Date:
Mar 2011
Posts:
59
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

At the moment we have reward points calculated at 1 point per £1 spent. So if a customer buys a product for £75 they receive 75 points. When a customer receives 500 points they will receive a £5 voucher to be redeemed against a future order.

My question is.... we have lots of products, some with VAT, and some without. At the moment we are being told that reward points can either be calculated at “non-taxable” or “taxable” price. So this means that even if a product is non-taxable if we have to set the reward points to “taxable price” and that product is for instance £20 they are being give 24 points. And the same vice-versa.

Is there a way to set the reward points so that they are calculated at the price the customer is paying? So if a product that is non-taxable and is £20 and there is a product that is £20 including tax they are given the same amount of points either way.
Thanks,

27 Jul 2011, 9:36 AM
#1870
lopi avatar

lopi

New Zenner

Join Date:
Jan 2009
Posts:
45
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hello,
I have one question I installed the reward points module and I would like to ask. Is it posible to use rewards point (earned) to older completed orders ? Or It is for only new orders ? Thank you for reply....

Zen 1.3.9h - Rewards point Version: 1.33a

27 Jul 2011, 10:11 AM
#1871
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

From your Admin page, go to Customers > Reward Points, find the customer and click on the "e" icon. Find "Add or Subtract Points" in the new window on the right side, Add or Subtract the desired number of points in the left box and select "Add extra points to Earned" from the drop-down box on the right. Simple, isn't it? (you may select to add the points to Pending or subtract points if you have your own reasons). :smile:

27 Jul 2011, 10:51 AM
#1872
lopi avatar

lopi

New Zenner

Join Date:
Jan 2009
Posts:
45
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I have 2000 customers who bought during 365 days I need to give them reward points ... manual giving rewards point is my death :) ...

27 Jul 2011, 11:25 AM
#1873
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

If I had 2000 customers over the last year, I could probably afford to pay somebody and do it manually within a couple of weeks.

In any case, I'm not the author of the mod, just a user like you, so I can't think of an automated solution, sorry. :(

27 Jul 2011, 12:26 PM
#1874
lopi avatar

lopi

New Zenner

Join Date:
Jan 2009
Posts:
45
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I find folow code but I dont what is in connections.php (replace the top line for connections with your own DB connection info).

Please help

bumba000:

<?php // hour minute second month day year require 'connections.php'; $sunrises = (30 * 24 * 60 * 60); //days x hours x minutes x seconds $now = time(); $issue_rewards = array(); $query = mysql_query("SELECT * FROM orders_total WHERE class ='ot_subtotal'"); etc... ```
29 Jul 2011, 11:40 AM
#1875
lopi avatar

lopi

New Zenner

Join Date:
Jan 2009
Posts:
45
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hello, I need help :)

example
now is set - 5000 points = 5%
10000 points = 10%
etc...

= customer had 10500 points and he used them = he get 10% and He left 500 points. ....

but I need if customer have 10000 points he will be added to the group with 10% discount and over and over and last added points will have the expiration of 365 days

is it set or is it possible to extend it?

29 Jul 2011, 11:57 PM
#1876
lovelyland avatar

lovelyland

New Zenner

Join Date:
Jul 2011
Posts:
7
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Hi,

I have installed the reward module and everything worked fine. I made a test order and received pending points. After changing the status to dispatched the points were moved to earned points. I then made a 2nd order and successfully redeemed the points but noticed I didn't get any points for the 2nd order.
I have tried to make a lot of test orders as a different customer, when I put an item to the shopping basket I can see a number of points for products in basket. However, when I place an order I receive no points at all.
I have tried all different settings (point status single/advance etc.) but cannot get it work. I get no error message at all. Please help as I have no idea what to do now.:blush:
I can't see to find Reward Point Mod Diagnostic Tool anywhere. The link http://www.omnicia.com/rpd.zip doesn't work though.

Thanks a lot

1 Aug 2011, 12:32 PM
#1877
lopi avatar

lopi

New Zenner

Join Date:
Jan 2009
Posts:
45
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I've got it, please help me how can I limiting the deduction of bonus points after use?

1 Aug 2011, 1:05 PM
#1878
lovelyland avatar

lovelyland

New Zenner

Join Date:
Jul 2011
Posts:
7
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

Lopi:

I've got it, please help me how can I limiting the deduction of bonus points after use?
You can add or subtract points in Customer / Rewards Points

1 Aug 2011, 1:11 PM
#1879
lovelyland avatar

lovelyland

New Zenner

Join Date:
Jul 2011
Posts:
7
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

lovelyland:

Hi,

I have installed the reward module and everything worked fine. I made a test order and received pending points. After changing the status to dispatched the points were moved to earned points. I then made a 2nd order and successfully redeemed the points but noticed I didn't get any points for the 2nd order.
I have tried to make a lot of test orders as a different customer, when I put an item to the shopping basket I can see a number of points for products in basket. However, when I place an order I receive no points at all.
I have tried all different settings (point status single/advance etc.) but cannot get it work. I get no error message at all. Please help as I have no idea what to do now.:blush:
I can't see to find Reward Point Mod Diagnostic Tool anywhere. The link http://www.omnicia.com/rpd.zip doesn't work though.

Thanks a lot
Sorted.
I had the reward points display module (in order total) turned off. When I turned it on it worked fine.
However, for some reason I can't have the two modules (reward points and reward points discount) in use together.
When I turn one module on the other one is automatically disabled. Any idea why?

1 Aug 2011, 1:18 PM
#1880
lopi avatar

lopi

New Zenner

Join Date:
Jan 2009
Posts:
45
Plugin Contributions:
0

Re: Reward Points Module for ZC v13x

I need all automatic I have too many customers I dont have time to check it...

lovelyland:

You can add or subtract points in Customer / Rewards Points