Custom Fields missing

  • Posts: 63
  • Thank you received: 1
  • Hikashop Business
5 years 11 months ago #301596

-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.1
-- PHP version -- : 7.1

Hello,

We have custom fields showing in the product page people fill them out add product to cart great. All shows in the cart and on the order confirmation page, on confirming order all but two of the fields are lost. All fields are identical setting wise, we cannot see where it's loosing them.

Currently debugging the code, but struggling to see where you fetch the values and input them into the product order class.

Many thanks
Tony

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

  • Posts: 63
  • Thank you received: 1
  • Hikashop Business
5 years 11 months ago #301597

We have been able to implement a workaround fix for now,

In:

/administrator/components/com_hikashop/classes/order.php

line: 660 change:
$orderProduct->$namekey = $product->$namekey;
to
$cartProduct = $cart->cart_products[$product->cart_product_id];
$orderProduct->$namekey = $cartProduct->$namekey;

This then gets the values correctly from the cart, I'm not sure where else you may be getting them from as at this point two are set in product but the rest are not.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
5 years 11 months ago #301599

Hi,

I suppose that this is linked to the column name of the custom field which is something we must use for something else.
Could you provide screenshots of the settings of these custom fields ?

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

  • Posts: 63
  • Thank you received: 1
  • Hikashop Business
5 years 11 months ago #301625

See images attached

Attachments:

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
5 years 11 months ago #301628

Hello,

So far your settings seems correct, can you provide more elements like :
- A step by step procedure in order to reproduce your issue
- An Url Link to process some tests directly on your website
- Any elements that can help us to better understand context

Awaiting news from you
Regards

Last edit: 5 years 11 months ago by Philip.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum