Jump to content
Sign in to follow this  
bluephoenix

Points/Rewards Module

Recommended Posts

I have follow problem when I edit/reresh in admin Modules>>Order Total> Points redemtion

 

 

 

Warning: Variable passed to each() is not an array or object in /var/www/web1/html/commerce/admin/modules.php on line 46

 

Warning: Cannot add header information - headers already sent by (output started at /var/www/web1/html/commerce/admin/modules.php:46) in /var/www/web1/html/commerce/admin/includes/functions/general.php on line 18

 

 

 

 

regards

rainer

Share this post


Link to post
Share on other sites

So only items that are in the REDEMPTION category can be bought with points? So let's say you want the points to be good towards all of your products. Do you have to put a copy of them all under the REDEMPTION category and change the model name?

Share this post


Link to post
Share on other sites

My points get awarded to customers, but I have no control in the admin area and just the constant error message:

 

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/renesam/public_html/home/admin/configuration.php(125) : eval()'d code on line 1

 

But I think it works

Share this post


Link to post
Share on other sites

I found the way to install this module.

 

I think this module is based on the Credit Class/Gift Vouchers/Discount Coupons (ccgv).

And Points/Rewards Module doesn't have the Credit Class.

 

I tried to cut and paste the Credit Class from the ccgv to the OSC, and It seems working.

 

But there were still problems on the admin area.

I coudn't change the status, etc.

So I saw the other order total modules and edited the ot_redemptions.php.

Then it worked.

 

Now I'm working on the award automatically thing. I'm testing but it doesn't seem working well.

Share this post


Link to post
Share on other sites

@ Hiroyuki

 

when the contrib works fine, please make a update in oscommerce.com.

 

thanks

regards

rainer

Share this post


Link to post
Share on other sites

Hiroyuki! If you figured this out you're a GENIOUS! ... BUT, could you please be a little more specific in your solution or just post exactly which files you edited and which parts? THANK YOU IN ADVANCE!!!

Share this post


Link to post
Share on other sites

Will this work with the credit class and gift voucher modules installed and activated? For some reason, I think it will mess with the gift voucher module if it is activated.

Share this post


Link to post
Share on other sites

I managed to get this working ok - it even had a tick box coming up asking if you wanted to use the reward points to pay for the item...

 

All looked good - except - it wouldn't deduct the points once the purchase was made. The points would add when they purchased products, could then use them, but the amounts stays the same.

 

And yes, it needs the credit class gift module to get this far.

 

Anyone got any further?

Share this post


Link to post
Share on other sites

Cly,

 

Can you please post what you have so far or what you did for it to give you the tick box and let you redeem. This may be helpful in troubleshooting the rest.

 

Thanks. :)

Share this post


Link to post
Share on other sites
So only items that are in the REDEMPTION category can be bought with points? So let's say you want the points to be good towards all of your products. Do you have to put a copy of them all under the REDEMPTION category and change the model name?

Everything seems to work but I don't understand how it works...

When a customer buy something, points are well credited to his account.

 

1) But how can he have access to his points status ?

2) How do we declare a product as being part of the redemption products ?

 

When you say "Redemption Category", what does it mean ? A directory called "redemption" ???

 

If anybody could help me because I'm not so far ... :(

Share this post


Link to post
Share on other sites

OK,

 

Now I have everything working fine but I have still the same problem than everybody here : No possibility to redeem my points...

 

Could you tell us how you did that cly ? ;)

 

Please...

Share this post


Link to post
Share on other sites

how the category does name have read exactly and how must the article name be called exact?

Share this post


Link to post
Share on other sites

I have found how to have it work, for the people here that are trying to redeem their points and can not.

 

well, here it is:

 

The readme stated that the contributor had the redemptions store as a parallel store, and that gave me a hint of the source of the following $_SESSION variable, ie $_SESSION['cot_redemptions'] in the OT_REDEMPTIONS.PHP file.

 

This seems to indicate that the actual session is "special" somehow. Probably a tweak for the parallel store.

 

So, I disabled the checks for the 4 if ($_SESSION['cot_redemptions'])

 

simply by adding a NOT operator. it is now

(!$_SESSION['cot_redemptions']) (note the"!" - NOT operator)

 

and I can redeem my points.

 

Be aware that there is a ill written form at one place, where it is actually spelled "$SESSION", with no underscore. you must change this one too.

 

You also might want to change an other place where it checks if the products is redeemable by the model name. In the same file (OT_REDEMPTIONS.PHP), function selection_test()

 

change

 

  if (!(substr($order->products[$i]['model'], 0, 10) == 'REDEMPTION'))
 {
	 return false;
 }

 

for

  if (!(substr($order->products[$i]['model'], 0, 10) == 'REDEMPTION'))
 {
	 return true;
 }

 

Now, I understand that this is not pretty, and does not reflect good coding practices. But it works, and as I'm short on time, I'll leave it that way and maybe recode it later in a more fashionable way. I just wanted to let people here that I had found a way to have it work.

 

Bye,

 

Spou

Share this post


Link to post
Share on other sites

Thanks for the post. Now however, I can redeem points in the payment area, but can't redeem gift vouchers or certificates in payments. Plus, I still can't use points to purchase items in the Redemption section.

 

How can I get the option to have points and or gift voucher at checkout?

Share this post


Link to post
Share on other sites

Thanks for figuring that out, spou

 

I'm having the same problem. For some reason, the max points available are redeemed automatically towards any and all items in the shopping cart upon checkout (e.g. the customer does not have to add any items from the 'Redemptions' category w/ model 'REDEMPTIONS' in order to redeem his points).

 

The rewards points module also overrides the coupon/gv redemptions.

 

Anyone figured this part out yet? :blink:

Share this post


Link to post
Share on other sites

pLIZ I NEEDDDD HELPPPPPP, IS THERE EXIST A WORK FILES THAT CAN I GET FROM POINTS AND REWARDS,

 

I TRY TO INSTALL THIS MOD BUT IS COMING A IMPOSSIBLE MISSION, EVERS GET AN WARNING OR DOES NOT WORK KOOL!!!!!!!!

 

 

PLIZ IF SOMEBODY HELPS ME I WILL BE VERY HAPPY AGAIN

Share this post


Link to post
Share on other sites

Hmm, i think it is a shame when i see the lack of help from the original auther, dunno if it is beacuse he hasnt got the time or just dont care.

 

Its a awesome module, just needs some poishing and i have just asked our php coder to install it in to our shop, but when i see this thread, i doubt he should even bother, since it doesnt work and there is no support.

 

Why isnt there anyone that can re compile this and fix the bugs, aught to be plente of skilled coders in here that can fix the minor bugs in this script.

Share this post


Link to post
Share on other sites

Has anyone btw found a way to fix thsese things or got it to work standalone, i mean without any other giftvouchers etc, but just this mod?

Share this post


Link to post
Share on other sites

Incredible than no one can help in this thread :/

 

I have the problem now, that in "Order Total Modules", i see "points redemption - 800", wtf is that? Is it not supposed to say "true" or "false" there?, If i edit it, i cant, there is just a button that says "update" and if i press that nothing happens...

 

Anyone else had this problem?

 

Btw after i implemented the bugfix from spou like 99% works, now i onnly have this above issue, and then the question why i got a "redemption" in my main menu in the shop? Cant be true that i have to add all products once more to that point in the menu, i got like 300 products....will take forever. Anyone with a solution for that?

Share this post


Link to post
Share on other sites
Incredible than no one can help in this thread :/

 

I have the problem now, that in "Order Total Modules", i see  "points redemption - 800", wtf is that? Is it not supposed to say "true" or "false" there?, If i edit it, i cant, there is just a button that says "update" and if i press that nothing happens...

 

Anyone else had this problem?

 

Btw after i implemented the bugfix from spou like 99% works, now i onnly have this above issue, and then the question why i got a "redemption" in my main menu in the shop? Cant be true that i have to add all products once more to that point in the menu, i got like 300 products....will take forever. Anyone with a solution for that?

 

No one has been able to fully fix this contribution. The 800 in redemptions can stay that way, it wont effect anything. Problem is, if you have credit voucher installed (which you need for contribution to work) you can't use them at checkout if the points module is activated. Also, it works ont he whole catalog, not just those items with model # redemption. That's all I've found out. There seem to be too mant errors to fully use this contribution yet.

 

Hope this helped somewhat.

 

Rene

Share this post


Link to post
Share on other sites
No one has been able to fully fix this contribution. The 800 in redemptions can stay that way, it wont effect anything. Problem is, if you have credit voucher installed (which you need for contribution to work) you can't use them at checkout if the points module is activated. Also, it works ont he whole catalog, not just those items with model # redemption. That's all I've found out. There seem to be too mant errors to fully use this contribution yet.

 

Hope this helped somewhat.

 

Rene

 

Rene I installed and followed the directions from everyone in this list and it seems to be working now except for the problems you mentioned...

 

Biggest problem is the points can be used for any product, not just redemptions.

 

Also, the points redemption box appears even if the user doesn't have enough points to redeem.

 

I don't know enough about php or oscommerce to make a fix, but if anyone has any questions about how I got as far as I did I'll try to help.

 

-Mike

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×