Req. Category Specific Custom Field Alway Required

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
9 years 5 months ago #203584

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.40
-- Browser(s) name and version -- : any
-- Error-message(debug-mod must be tuned on) -- : None

We've have a custom order field setup set for a specific a category only.

It has worked fine since the site launched with 2.1.x a couple of years back.

However we have found with the 2.4.0 upgrade, that althougth the custom field may not be displayed, it is always being required.

If you put a product in that is not in the custom fields category and try go to the next step in checkout (to payment in our case), it does nothing. No error. It just takes you back to the same step you were on before (3 in our case).

Now if you add a product that the required field applies to, you can enter a value for the field and proceed.
You can then go back to step 1 of checkout, remove that product, and proceed with a product that is not in that category.

The cart apparently is keeping the "required" field value even thought it isn't being displayed any more.

We have plenty over orders where over the past 2 years that it worked just fine.
That is the field only displayed and was only required when a product in the select category was in the order.

Now it is being required on all orders regardless of the products in the order yet is not displayed nor gives an error message.

I just uploaded today (6/2/2015) the latest version of 2.4.0 and the problem persist.
I thought it might related to another issue I saw here but apparently not.

Last edit: 9 years 5 months ago by jazzmang.

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

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

Hi,

That problem is a known problem. The required option doesn't work well with custom order fields if they are restricted to categories/products as the required is enforced regardless of whether they are displayed or not on the checkout.

I however doubt that it worked before as the capability to restrict custom order fields to categories and products has only been added to HikaShop with the 2.4.0 version. Before, you couldn't restrict custom order fields to categories and products and thus that problem could not happen since the feature was not there at all.
You must be mistaking with either not having any category restriction on your fields before, or using custom item fields which could already be restricted to products and categories before.

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

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
9 years 5 months ago #203808

I believe I followed instructions from here on the forum to do it way back when. I'd have to hunt them down again as I don't think it was a post I contributed too. It was the first Hikashop site we did a 2+ years back but I would think modifications would have been in a view and not actual to a file on the server itself.

My only guess is the updates overwrote the modifications but if you are aware of the issue and working on it, then we can wait.

There are so few such orders where the products in question are ordered alone, it isn't a big deal at this time.

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

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

If you did modifications to views to add that capability then it's possible that the update changed something which break your modifications. Not knowing what was modified, I can't say much.

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

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
9 years 5 months ago #203908

I've reviewed the checkout views and I don't see anything in any of the customization that are still there that might do this.

The view version actually got back to version 2.1.3 and 2.2.1, so a bit longer than I remembered.

There is a customization for "step" but I don't see anything that would deal with fields.
I would have expected it under custom_fields but that is stock.

Any idea other view where you think something like that might be? I just looked under checkout views as I didn't think it would be any where else.

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

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

Hi,

It could potentially be any file of the "checkout" view if it was done as a view customization.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum