SQL=SELECT category_id FROM xxxx_hikashop

  • Posts: 24
  • Thank you received: 0
11 years 11 months ago #81300

Hello,

I got error 0????
SQL=SELECT category_id FROM nelkies101212_hikashop_product_category WHERE product_id=4 OR product_parent_id=4 ORDER BY product_category_id ASC

by clicking/showing product details.
I have only 1 category and 1 product.

System: Joomla 3.02
Hikashop: Latest stable version : 2.0.0


Thanks Hubert

Last edit: 11 years 11 months ago by hnelke.

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

  • Posts: 24
  • Thank you received: 0
11 years 11 months ago #81345

Hello I'm again.

I test the sql query direct over PHPadmin and I got the following result!!!

SQL-Befehl:

SELECT category_id
FROM nelkies101212_hikashop_product_category
WHERE product_id =4
OR product_parent_id =4
ORDER BY product_category_id ASC
LIMIT 0 , 30

MySQL meldet:

#1054 - Unknown column 'product_parent_id' in 'where clause'

I think there is something wrong in the Hikashop code! I touch no hika-file!!

Hubert

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

  • Posts: 24
  • Thank you received: 0
11 years 11 months ago #81351

Hi,

I'am again.
I fixed it by alter the table (add field product_category_id / table xxx_product_category)!
I hope there are no dependencies to other querys or code??

But I wonder, that this happens with a "commercial" software!!

Regards Hubert

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 11 months ago #81382

Hi,

The column "product_parent_id" is include in the "tables.sql" file which is used during the first installation.
Otherwise, when you update HikaShop, some script and query are processed. You can see them into the file "install.hikashop.php".
If your column "product_parent_id" is missing, it is highly possible that other new columns are missing too (like "order_invoice_id" and "order_invoice_number").

Did you have problems during the HikaShop update ?

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: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 11 months ago #81383

hnelke wrote: I got error 0????
SQL=SELECT category_id FROM nelkies101212_hikashop_product_category WHERE product_id=4 OR product_parent_id=4 ORDER BY product_category_id ASC

Joomla 3.0 have a bug which has been reported by the HikaShop team. Our patch should be include in the future release.
You can use "hikamysqli" module if you want to have complete SQL error description in Joomla 3.
www.hikashop.com/en/forum/2-general-talk...p-20-beta.html#72321

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: 24
  • Thank you received: 0
11 years 11 months ago #81391

Hello,

thanks for the reply.
I do not understand exactly, what I have to do
But I think it is better to do not use hikashop 2.x with Joomla 3.x?
Do you or Hika recommend hikashop 2.x with Joomla 3.x??

Hubert

Last edit: 11 years 11 months ago by hnelke.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 11 months ago #81406

Hi,

Older versions of HikaShop (less than 2.0) are not compatible with Joomla 3.0
When installing HikaShop 2.0, the tables are created and the column "product_parent_id" is right present in the SQL script.
So, I am wondering how HikaShop has been installed on your website. Is there a beta version before ?

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: hnelke

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

Time to create page: 0.048 seconds
Powered by Kunena Forum