Custom fields for Item are missing in order table.

  • Posts: 3
  • Thank you received: 0
9 years 5 months ago #204947

-- HikaShop version -- : 2.5.0 Business

Hello.

Once I'm creating custom field for Item table I'm getting appropriate fields both in my hikashop_cart_product table and hikashop_order_product table respectively. So I assume custom fields of that type should be copied for every item of the cart to every item within the order as soon as an actual order was made... but in my case they're just getting lost. Although I can see values for those fields in my hikashop_cart_product table prior checkout, right after checkout items are moving to the hikashop_order_product but with empty values for custom fields.

Am I missing something? :unsure:

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
9 years 5 months ago #204978

Hi,

I've never seen what you describe.
As you say, the copy from the cart_product to the order_product table is automatic.
It's done in the after_confirm function of the components/com_hikashop/controllers/checkout.php file.
As it works fine on our end, there must be something on your website and we would have to investigate directly on your website in order to understand what's going on.

The following user(s) said Thank You: TrolHambriento

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

  • Posts: 3
  • Thank you received: 0
9 years 5 months ago #205092

Sorry, was my fault.
I was filling custom fields in cart_products table "manually" (from my component just after an item was added to the cart), but those fields was still disabled on the Front-End and such fields are just not getting copied to the order_products after checkout... didn't thought that Front-End option would be that important as for this case ;)

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

Time to create page: 0.055 seconds
Powered by Kunena Forum