Skip to main content

Custom Fields missing

More
7 years 9 months ago #301596 by mikekiy
-- 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.

More
7 years 9 months ago #301597 by mikekiy
Replied by mikekiy on topic Custom Fields missing
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.

More
7 years 9 months ago #301599 by nicolas
Replied by nicolas on topic Custom Fields missing
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.

More
7 years 9 months ago #301625 by mikekiy
Replied by mikekiy on topic Custom Fields missing
See images attached

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

More
7 years 9 months ago - 7 years 9 months ago #301628 by Philip
Replied by Philip on topic Custom Fields missing
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: 7 years 9 months ago by Philip.

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

Time to create page: 0.172 seconds
Powered by Kunena Forum