Product Quantity Not Exporting

  • Posts: 6
  • Thank you received: 0
  • Hikashop Multisite
2 years 7 months ago #340445

-- HikaShop version -- : 4.5.0
-- Joomla version -- : 4.10
-- PHP version -- : 7.4.28
-- Browser(s) name and version -- : Chrome 99.0.4844.83 (Official Build) (x86_64)

I am using Mass Action to export to xls file of a full list of products. All of the data seems to be exporting properly with the exception of the product quantity (product_quantity) field. The field is column is present, but there is no data in any of the rows of any of the products. I am not using any filters just a straight export of all products.

Attachments:
Last edit: 2 years 7 months ago by kenryanjr.

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

  • Posts: 6
  • Thank you received: 0
  • Hikashop Multisite
2 years 7 months ago #340446

I have also just realized product_id is also empty in the export.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 7 months ago #340504

Hi,

I'm not able to reproduce the problem on my end.
I tried all the exports, and I tried both CSV, XLS and XLSX, and these two columns were properly filled.

I'm afraid we'll need a backend and a FTP access to your website to be able to look into the issue.
Could you provide that along with a link to this thread via our contact form ?
www.hikashop.com/support/contact-us.html

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

  • Posts: 6
  • Thank you received: 0
  • Hikashop Multisite
2 years 7 months ago #340510

I sent the information requested via the contact form. Thanks is advance.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 7 months ago #340524

Hi,

Thank you for the access.
I was able to find the issue.
I had to change the code:

if(isset($element->$column) && ($key===$k1 || $key===$params->table) && is_string($this->displayByType($params->types,$element,$column,$params->action['date_format'], true ))){
							$square .= $this->displayByType($params->types,$element,$column,$params->action['date_format'], true);
to:
$result = $this->displayByType($params->types,$element,$column,$params->action['date_format'], true );
						if(isset($element->$column) && ($key===$k1 || $key===$params->table) && (is_string($result) || is_numeric($result))){
							$square .= $result;
in the file administrator/components/com_hikashop/classes/massaction.php
I'm not sure why I didn't had the problem on my end. Maybe because of a different version of PHP.
Anyways, I'll add that patch for the next version of HikaShop so you won't have to do anything when you update.

The following user(s) said Thank You: kenryanjr

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

  • Posts: 6
  • Thank you received: 0
  • Hikashop Multisite
2 years 7 months ago #340531

Thank you!

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

Time to create page: 0.052 seconds
Powered by Kunena Forum