Point system not working on HK 2.5.0

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
9 years 2 months ago #212832

-- HikaShop version -- : 2.5.0_2015-08-30_00-54-51
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.35
-- Error-message(debug-mod must be tuned on) -- : No error message shown

Please help to verify if this is a bug

Point earned and existing point are shown during checkout process

Both HK and AUP are not getting points after order changed to confirmed

Database order table do not have serialize point parameter

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 2 months ago #212843

Hi,

I'm sorry but I don't understand your explanation.
Can you please be more specific about the issue and your configuration ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
9 years 2 months ago #212871

The problem is that the point are not genarated to both AUP and HK system

We install the latest version alphauserpoint released few days ago 2.0.2

We install your latest package and genarate the order_validation rule

We make new instance of plugin point rule for both hika point and aup point as screen shot below

We tested for all setting combination, price rate to point/ point /point for categories, but none of them work


Symptoms:
Points calculation correct at front end as screen shot 2

But in database, the point value are not store in order
O:8:"stdClass":1:{s:6:"prices";a:1:{s:3:"2@0";O:8:"stdClass":2:{s:14:"price_with_tax";s:7:"7.00000";s:3:"tax";d:0;}}}

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 2 months ago #212927

Hi,

O:8:"stdClass":1:{s:6:"prices";a:1:{s:3:"2@0";O:8:"stdClass":2:{s:14:"price_with_tax";s:7:"7.00000";s:3:"tax";d:0;}}}
That data is the data from the column "order_shipping_params" ; the points are stored in the column "order_payment_params".
Like :
O:8:"stdClass":2:{s:10:"userpoints";O:8:"stdClass":2:{s:10:"use_points";i:0;s:11:"earn_points";a:1:{s:2:"hk";d:11;}}}

We have to be sure that the data in the order is right stored ; then we will be able to investigate in the right direction.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
9 years 2 months ago #212966

Hi Jerome

I checked the column order_payment_param but it is totally empty

I tried a backup copy of live site before update to 2.5 0831 on localhost and update to the latest version you provided, it is working fine

think smnthg is corrupted =="

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 2 months ago #213002

Hi,

What is/was your previous version ?
It looks weird because the plugin has just two modifications during May and nothing after.

The last modification for the plugin is the code to re-create the missing AUP rule.
The other is the replacement of the line

if(isset($user->user_points) || in_array('user_points', array_keys(get_object_vars($user))))
Into
if(isset($user->user_points) || ($user != null && in_array('user_points', array_keys(get_object_vars($user)))))
In order to avoid a warning.. But we can use
if(isset($user->user_points) || (!empty($user) && is_object($user) && in_array('user_points', array_keys(get_object_vars($user)))))
instead.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Last edit: 9 years 2 months ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
9 years 2 months ago #213014

I also find weird ....
However unable to replicate the problem now as I restore live site back to 2.4 backup amd upgrade to latest 2.5 directly. This method work fine

The earlier problem was by the step 2.4 upgrade to 2.5 without aup plugin, and then upgrade to the latest 2.5

Mayb other user will encounter the problem in near future

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 2 months ago #213017

Hi,

Okay.
Let us know if the problem come again.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum