If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread

Started by countrycharm on 11 Nov 2014, 12:33 AM · Views: 72,686

Results 301 to 320 of 371
12 Mar 2019, 3:12 AM
#301
mariemeh avatar

mariemeh

New Zenner

Join Date:
Mar 2019
Location:
Montreal
Posts:
39
Plugin Contributions:
0

Post #301 by mariemeh

v156 with Reward Points v2.5f

I've been updating my site from 155e to v156 and see that my points are being added and all apparently works as it should. But when I try to access admin/reward_points.php page which is under the catalog menu, I get the following error:

PHP Fatal error: require(): Failed opening required 'includes/modules/prod_cat_header_code.php'

But when I check my files, I have no such file since it seems to have been removed with this new udpate. I've also searched this thread for this and an Advanced search of the site... and can't find what I am looking for. Any ideas?

12 Mar 2019, 3:23 AM
#302
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Post #302 by jeking

What is the rest of the error?

Jim
Wheaton Website Services

12 Mar 2019, 3:29 AM
#303
mariemeh avatar

mariemeh

New Zenner

Join Date:
Mar 2019
Location:
Montreal
Posts:
39
Plugin Contributions:
0

Post #303 by mariemeh

It wants to go to the prod_cat_header_code.php file because on line 13 of the admin/reward_points.php it says this:
require(DIR_WS_MODULES . 'prod_cat_header_code.php');

But that file isn't in the latest version of the cart so I'm presuming that this code needs to be changed but sadly, my presuming ends here. lol

PHP Warning: require(includes/modules/prod_cat_header_code.php): failed to open stream: No such file or directory in /home/.../public_html/shop/admin/reward_points.php on line 13.

[11-Mar-2019 22:45:45 America/Montreal] PHP Fatal error: require(): Failed opening required 'includes/modules/prod_cat_header_code.php' (include_path='.:/opt/alt/php71/usr/share/pear') in /home/.../public_html/shop/admin/reward_points.php on line 13

[QUOTE=jeking;1355837]What is the rest of the error?[/Q

12 Mar 2019, 3:45 AM
#304
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Post #304 by jeking

This is installed on a client site which was upgraded so includes/modules/prod_cat_header_code.php is still there. By all reports, it's working fine.

Jim
Wheaton Website Services

12 Mar 2019, 3:51 AM
#305
mariemeh avatar

mariemeh

New Zenner

Join Date:
Mar 2019
Location:
Montreal
Posts:
39
Plugin Contributions:
0

Post #305 by mariemeh

I just went and redowloaded v1.5.6 in case I had goofed and nope, that file is no longer there. And in all appearances, this plug in is still working. The only 2 things that aren't is access to the page under the catalog menu and also, even if I have it configured to calculate the points on the subtotal meaning after sale and discounts, it is awarding the points on regular price. ex: reg price 45$, sale price is 22.50... the cart is giving 45 points instead of 22.5 like it used to.

jeking:

This is installed on a client site which was upgraded so includes/modules/prod_cat_header_code.php is still there. By all reports, it's working fine.

12 Mar 2019, 4:03 AM
#306
mariemeh avatar

mariemeh

New Zenner

Join Date:
Mar 2019
Location:
Montreal
Posts:
39
Plugin Contributions:
0

Post #306 by mariemeh

oops my bad, there was a new setting to me that I overlooked. It is now calculating properly. Still can't get to the catalog Reward Points page.

mariemeh:

I just went and redowloaded v1.5.6 in case I had goofed and nope, that file is no longer there. And in all appearances, this plug in is still working. The only 2 things that aren't is access to the page under the catalog menu and also, even if I have it configured to calculate the points on the subtotal meaning after sale and discounts, it is awarding the points on regular price. ex: reg price 45$, sale price is 22.50... the cart is giving 45 points instead of 22.5 like it used to.

10 Apr 2019, 10:29 PM
#307
sammirah avatar

sammirah

Zen Follower

Join Date:
Apr 2012
Location:
Los Angeles, CA
Posts:
185
Plugin Contributions:
2

Post #307 by sammirah

Hi, I am using this on ZC 1.5.5f and it works really great. My question is: Is there a way to make it so that rewards points can not be redeemed in the purchase of a gift card? Perhaps there is some coding which can be changed to prevent this. This is based on my test account, I awarded 100 pts and when I go in to purchase a $10 gift card, it allows me to redeem $5 of rewards (based on my settings) at the time of that purchase.

13 Apr 2019, 8:18 PM
#308
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Post #308 by mvstudio

izar74:

Hi again,

I've got this error:

[25-May-2015 15:22:01] PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '2')
OR (p.products_id=p2c.products_id AND prp.scope_id=p2c.categories_id A' at line 3 :: SELECT prp.point_ratio*p.products_price AS reward_points, prp.point_ratio, p.products_price, p.products_priced_by_attribute
FROM reward_master prp, products p, products_to_categories p2c
WHERE p.products_id='101'"'
AND p2c.products_id='101'"'
AND ((prp.scope_id=p.products_id AND prp.scope='2')
OR (p.products_id=p2c.products_id AND prp.scope_id=p2c.categories_id AND prp.scope='1')
OR (prp.scope='0'))
ORDER BY prp.scope DESC LIMIT 1; ==> (as called by) /var/www/vhosts/.../httpdocs/includes/functions/extra_functions/reward_points_functions.php on line 62 <== in /var/www/vhosts/.../httpdocs/includes/classes/db/mysql/query_factory.php on line 155

> 
> Check the file but it seem all fine... the line 51 to 62 of reward_points_functions.php look like this:
> 
> ```php
if(zen_get_products_price_is_free($products_id)==false || REWARD_POINTS_ALLOW_ON_FREE=='1') // Allow RP on free items (Admin settable)
	{
		$sql = "SELECT prp.point_ratio*p.products_price AS reward_points, prp.point_ratio, p.products_price, p.products_priced_by_attribute 
				FROM ".TABLE_REWARD_MASTER." prp, ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_TO_CATEGORIES." p2c 
				WHERE p.products_id='" . $products_id . "'
				AND p2c.products_id='" . $products_id . "'
				AND ((prp.scope_id=p.products_id AND prp.scope='".SCOPE_PRODUCT."') 
				OR (p.products_id=p2c.products_id AND prp.scope_id=p2c.categories_id AND prp.scope='".SCOPE_CATEGORY."')
				OR (prp.scope='".SCOPE_GLOBAL."'))
				ORDER BY prp.scope DESC LIMIT 1;";

		$result=$db->Execute($sql);

The specific of the server are:
Database: MySQL 5.1.73
Versione PHP: 5.3.3 (Zend: 2.3.0) PHP Memory Limit: 128M

I'm a little bit unsure of what that error could be... any guess would be helpful :smile:

I'm getting a similar error. ZC 1.5.6a. fresh installation. Any ideas?

PHP Fatal error: 1146:Table 'XXX.TABLE_REWARD_MASTER' doesn't exist :: 
SELECT prp.point_ratio FROM TABLE_REWARD_MASTER prp WHERE prp.scope='SCOPE_GLOBAL' LIMIT 1; ==> 
(as called by) /includes/functions/extra_functions/reward_points_functions.php on line 119 
<== in /includes/classes/db/mysql/query_factory.php on line 171.

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

13 Apr 2019, 8:37 PM
#309
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Post #309 by mvstudio

For anyone that is having the same issue. Re-upload the files in the same order. It seems that somehow I managed to get the files "mixed" and in the wrong place. All is good! =)

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

18 Apr 2019, 11:50 PM
#310
hanachi avatar

hanachi

New Zenner

Join Date:
Apr 2019
Location:
Yokohama JAPAN
Posts:
8
Plugin Contributions:
0

Post #310 by hanachi

Help me please.
I am an user of zen1.3.0.2. Now I want to make new install zen1.55
After install zen1.55, installed Reward Points Full Suite v2.5.
I set Admin->Customer->Reward Points then occured an error at Customers->Orders.

"LEGEND: Billing and Shipping does not match Billing and Shipping does not match
WARNING: An Error occurred, please refresh the page and try again."

logs as follow:

[18-Apr-2019 18:56:24 Asia/Tokyo] Request URI: /shop155/cAtch-utS-fLour/orders.php, IP address: ::1
#1 trigger_error() called at [C:\xampp\htdocs\shop155\includes\classes\db\mysql\query_factory.php:171]
#2 queryFactory->show_error() called at [C:\xampp\htdocs\shop155\includes\classes\db\mysql\query_factory.php:143]
#3 queryFactory->set_error() called at [C:\xampp\htdocs\shop155\includes\classes\db\mysql\query_factory.php:270]
#4 queryFactory->Execute() called at [C:\xampp\htdocs\shop155\cAtch-utS-fLour\orders.php:844]
[18-Apr-2019 18:56:24 Asia/Tokyo] PHP Fatal error: 1054:Unknown column 'o.customers_wholesale' in 'field list' :: SELECT o.orders_id, s.orders_status_name, o.customers_wholesale, opa.orders_id, opa.products_options, opa.options_values_price, opa.options_values_price_w FROM orders_products_attributes opa left join orders o LEFT JOIN orders_status s on (o.orders_status = s.orders_status_id and s.language_id = 1) ON (opa.orders_id = o.orders_id) WHERE opa.products_options = 'CORE Charge' ==> (as called by) C:\xampp\htdocs\shop155\cAtch-utS-fLour\orders.php on line 844 <== in C:\xampp\htdocs\shop155\includes\classes\db\mysql\query_factory.php on line 171

I still not have done any customizations.
Have I made anything wrong ?
Win10 64bit, Xampp7.0.3, zencart:zen-cart-v1.5.5f-12312017b
Reward Points :Reward_Points_Full_Suite_25g_for_155f.zip

18 Apr 2019, 11:56 PM
#311
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Post #311 by jeking

The error is due to a missing column, customers_wholesale. This is not part of the Rewards Point plugin. There is a Dual Pricing plugin that uses a similar name, but not that.

Are you using any wholesale plugins?
Look at your cAtch-utS-fLour\orders.php file compared to the 1.5.5 default version. customers_wholesale is not mentioned in the default or this plugins' version of that file.

Jim
Wheaton Website Services

21 Apr 2019, 6:08 AM
#312
hanachi avatar

hanachi

New Zenner

Join Date:
Apr 2019
Location:
Yokohama JAPAN
Posts:
8
Plugin Contributions:
0

Post #312 by hanachi

Thank you for your reply.

I was able to install with past version reward_point_full_suite_2.5f.
I tried to install several times and operated it and confirmed the duplicability.

This is brand new install of zen155 and reward_point.
I also tried to install reward_point_full_suite_2.5g On the basis of XAMPP7.1.18 and zen1.55f.
It occured same error "WARNING: An Error occurred, please refresh the page and try again.".
I wonder it concern with php version.
Because of my ability, I give up on pursuing the installation of 2.5g even 2.5f have some inconsistencies.

Thank you.

7 May 2019, 8:55 PM
#313
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Post #313 by mvstudio

Hello everyone!

I'm running into a possibly minor issue (?). New install 1.5.6a, customer just first placed an order and on the admin I see reward points earned with this order as $0.00 when it should be 6. Any ideas on how to fix this one??

And also, I'm giving customers 100 points for signing in, they are not added to their accounts.

Any help would be appreciated.

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

8 May 2019, 1:25 PM
#314
mvstudio avatar

mvstudio

Zen Follower

Join Date:
Apr 2008
Posts:
447
Plugin Contributions:
1

Post #314 by mvstudio

For anyone running ZC 1.5.6a getting either a blank page or a $ on admin/orders.php I was able to make it work.

Locate

                    <tr>
                      <td class="<?php echo str_replace('_', '-', $order->totals[$i]['class']); ?>-Text text-right">
                          <?php echo $order->totals[$i]['title']; ?>
                      </td>
                      <td class="<?php echo str_replace('_', '-', $order->totals[$i]['class']); ?>-Amount text-right">
                          <?php echo $currencies->format($order->totals[$i]['value'], true, $order->info['currency'], $order->info['currency_value']); ?>
                      </td>
                    </tr>

Replace for

<!-- bof Reward Points -->
<?php
      if ($order_total['class'] = "ot_reward_points_display") { ?>
                    <tr>
                      <td class="<?php echo str_replace('_', '-', $order->totals[$i]['class']); ?>-Text text-right">
                          <?php echo $order->totals[$i]['title']; ?>
                      </td>
                      <td class="<?php echo str_replace('_', '-', $order->totals[$i]['class']); ?>-Amount text-right">
                          <?php echo $order->totals[$i]['text']; ?>
                      </td>
                    </tr>
<?php } else { ?>
<!-- eof Reward Points -->
                    <tr>
                      <td class="<?php echo str_replace('_', '-', $order->totals[$i]['class']); ?>-Text text-right">
                          <?php echo $order->totals[$i]['title']; ?>
                      </td>
                      <td class="<?php echo str_replace('_', '-', $order->totals[$i]['class']); ?>-Amount text-right">
                          <?php echo $currencies->format($order->totals[$i]['value'], true, $order->info['currency'], $order->info['currency_value']); ?>
                      </td>
                    </tr>
                    <?php
//<!-- bof Reward Points -->
					}
//<!-- eof Reward Points -->

Still haven't figure out why the Reward Points aren't awarded when opening an account.

M.Valenti
Contemporary Artist - Entrepreneur
http://www.manuelavalenti.com - http://www.byvalenti.com

14 Aug 2019, 7:55 PM
#315
stellarweb avatar

stellarweb

Zen Follower

Join Date:
May 2006
Location:
Montana
Posts:
293
Plugin Contributions:
8

Post #315 by stellarweb

I someone going to upgrade this for 1.5.6c? I have a customer who is needing something like this but I know just about enough about coding to get me into dangerous waters! LOL

I can try to update it but don't want to step on anyone's toes.

24 Aug 2019, 2:32 AM
#316
tmccaff avatar

tmccaff

Zen Follower

Join Date:
Jan 2018
Posts:
157
Plugin Contributions:
0

Post #316 by tmccaff

stellarweb:

I someone going to upgrade this for 1.5.6c? I have a customer who is needing something like this but I know just about enough about coding to get me into dangerous waters! LOL

I can try to update it but don't want to step on anyone's toes.

I am working on it.. or you can make a github repo.. when I get time

24 Aug 2019, 4:27 AM
#317
chibipaw avatar

chibipaw

Zen Follower

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

Post #317 by chibipaw

I thought I posted it before. Maybe I didnt as I don see a post from me lately, so I'll post it again.

I'm still at ZC 1.5.5f with Reward Point Full Suite Version: 2.5f. Is the current 2.5f and 2.5g versions definitively compatible with ZC 1.5.6c ? With or without hackery?

Thanks

9 Oct 2019, 5:12 AM
#318
sammirah avatar

sammirah

Zen Follower

Join Date:
Apr 2012
Location:
Los Angeles, CA
Posts:
185
Plugin Contributions:
2

Post #318 by sammirah

While this worked seamlessly with my ZC 155f it doesn't even work at all in ZC156c is anyone planning to update?

9 Oct 2019, 5:19 AM
#319
chibipaw avatar

chibipaw

Zen Follower

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

Post #319 by chibipaw

Oof..

Guess Im going to hold off in upgrading to ZC 156* Im not going to say to my customers: "All your points are gone. LOL"

sammirah:

While this worked seamlessly with my ZC 155f it doesn't even work at all in ZC156c is anyone planning to update?

19 Nov 2019, 7:23 PM
#320
montanag avatar

montanag

New Zenner

Join Date:
Feb 2019
Location:
Kamloops, BC
Posts:
9
Plugin Contributions:
0

Post #320 by montanag

I have downloaded v2.5 twice and when opening docs/RewardPoints_Readme it opens the overview page but all the hot links from Installation, How to use etc. just go to a blank blocked page even when they are from a downloaded file on my own system and I configure Chrome to ask then allow Flash

What am I doing wrong please