item custom field not shown

  • Posts: 17
  • Thank you received: 0
9 years 7 months ago #199455

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.27
-- Browser(s) name and version -- : Firefox 37.0.1
-- Error-message(debug-mod must be tuned on) -- : none

Hi,

I have some doubts about custom fields configuration that I have not been able to solve reading the docs.

at my shop I configured J! ACL in this manner: auto-registered users can Add items to wishlist but not to cart; in other side only "registered customers" with some privileges are able to Add to Cart (In Hikashop Config the ACL is configured as default)

In Hikashop I configured one custom field at the item table. ( it's name "talla"=size of the piece). This custom field is configured to Displays at Front-end, back-end Form and B.E. Listings, and restricted to some categories. In Hika config, the "Display custom item fields" is set to yes.

I have 2 issues:
1. Selected categories where this field should be applied dissapear when I close the config and then reopen it, so I'm not able to check where the c.field is being aplied. It's necessary to open the PHP table (in myPHPadmin) to see that the field is being aplied to categories X, Y, or Z.

2. The custom field is showed only to customers that are able to add to cart, not to the registered users adding to wishlist. Note that at the c.field config the Access level is configured to "All".
For me it's neccessary this field being showed to all registered users because when they add to wishlist I need to know which size they choose. Moreover, if they save the wishlist, and I upgrade their privileges, when they convert the wishlist to Cart the c.field is neccessary.

Any help, please.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 7 months ago #199539

Hi,

1.That's a bug we fixed on our end. Download the latest version install package on our website via the menu My account>My subscriptions and install it on yours and it will add the patch.

2. I don't see how that's possible looking at the code displaying the fields. Custom fields should display regardless of whether you have the add to cart or the add to wishlist buttons.
So there must be something else. We would need a backend access and a link to a product page where the have the issue so that we could understand the issue.

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

  • Posts: 17
  • Thank you received: 0
9 years 7 months ago #199604

Ok Nicolas, I'll send you a private

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

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #199712

Hi,

It seems that you have an issue when editing the settings of the custom fields.
Do you have updated HikaShop as Nicolas asked ?

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

  • Posts: 17
  • Thank you received: 0
9 years 7 months ago #199745

yes, I did. So related to point 1. it's ok . BUT, right now the field "State" dissapeared in the new address input form (I'm not sure that was related to this update) and I'm quite sure that the field State was functional before :(

Related to point 2. : I send Nicolas a username and password, and mention him that I noticed that you can add tho cart the products eventhough the mandatory custom field was empty.

I supposse you say something here to know what happens. Thanks!

Last edit: 9 years 7 months ago by alejandrojaramiranda.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 6 months ago #199901

Hi,

1. I've found the issue. That's because you had selected "states" in the zone setting of your city field when you had changed it to a zone field instead of a text field and that value was picked up by the system. So when you were selecting a country, the system when then trying to update the city field, which is why it didn't work. It works now that I reconfigured the city field on your website.
We'll add a patch to avoid that in the future.

2. I've checked your backend and the issue is that you turned off the "display add to cart button for free products" option of the HikaShop configuration so the custom fields won't display in that case.
You would have to change the line:

if (!$this->params->get('catalogue') && ($this->config->get('display_add_to_cart_for_free_products') || !empty($this->element->prices))) {
to:
if (!$this->params->get('catalogue') && ($this->config->get('display_add_to_cart_for_free_products') || ($this->config->get('display_add_to_wishlist_for_free_products', 1) && hikashop_level(1) && $this->params->get('add_to_wishlist') && $config->get('enable_wishlist', 1)) || !empty($this->element->prices))) {
in the file show_default via the menu Display>Views in order to allow for that.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum