Issue with Serial Stats in HikaMarket Frontend

  • Posts: 128
  • Thank you received: 2
8 years 3 months ago #247462

-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.7.1
-- Joomla version -- : 3.6.0
-- PHP version -- : 5.5.30
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : INVALID_DATA

Hi there,

I'm using Hikaserial and HikaMarket multi-vendor and I'm having an issue with vendors managing serials from the front end.

In this case, when a vendor goes to into “Serials” from his Vendor Account then it is presented with the screen like the one in the attachment. It shows the packs and the products that are linked with that pack. That's fine, but when I click on the stats icon for any of the products I get an error message INVALID_DATA.

In the attachment I show you where I click (the stats icon) and the URL that the stats icons points to (when I hover over the icon).

In the backend the vendors have all the permits enabled in the “Default Store Access”.

Any idea what might be going wrong?

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 3 months ago #247467

Hi,

The message "INVALID_DATA" is provided by HikaSerial.
That can happen if there is no "product_id" or "pack_id" parameter ; If the pack or the product do not belong to the vendor.

I can see the "edit" button for the pack, so can you please confirm that the product with id " 3 "is right assigned to the vendor you're currently using ?

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: 128
  • Thank you received: 2
8 years 3 months ago #247609

Hi,

Yes, product with ID=3 and the rest of the products are correctly assigned to the vendor I am logged in with when showing the screenshot.

The same error message occurs when trying to see the stats for the other products as well.

Can you reproduce the error?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 3 months ago #247636

Hi,

I am not able to reproduce the issue.
In my test website, I have a vendor with pack and products. I can display the stats with that vendor.
When I implemented the feature in HikaSerial, I perform these tests. That's why I am surprise of your problem.
So I think that I'll need an access to your website to check the data. But if you are still under "localhost", it will be difficult.

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: 128
  • Thank you received: 2
8 years 2 months ago #249811

Hi,

I did more troubleshooting on this issue and I found out the following:

- The issue appears when there are more than 1 product linked with a particular Pack of serials.

- If I only have one product linked with a particular pack then the stats show fine.

- Please see the attachment for further clarity

Is this the way it is supposed to work? So, if we want to see the detailed serial stats for one product in the front end of Hikamarket, then we need to create one pack per product?

Please advise, thanks!

Attachments:

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 months ago #249819

Hi,

Thanks !

Please edit the file "administrator/components/com_hikaserial/classes/pack.php" and replace the line

$vendorPackCache[$vendor_id][$pack_id] = ((int)$db->loadResult() == 1);
By
$vendorPackCache[$vendor_id][$pack_id] = ((int)$db->loadResult() > 0);
And it will fix the issue for the vendor pack detection.

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: 128
  • Thank you received: 2
8 years 2 months ago #249843

Hi,

Thanks, that sorts out the issue.

Will that change be applied to future versions of Hikaserial?

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 months ago #249844

Hi,

Yes, it will.

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.
The following user(s) said Thank You: sabroso

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

Moderators: Obsidev
Time to create page: 0.077 seconds
Powered by Kunena Forum