Custom Text Fields not showing in Admin

  • Posts: 259
  • Thank you received: 22
10 years 9 months ago #180604

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 2.5.27
-- PHP version -- : 5.3.28

I have created three custom fields in the Order table. One is a text Area field the other Text fields. All work correctly on the front end and all store the text in the database tables. The configuration for each is identical except that the Text Area field is not "Required". All are published and set to display in the frontend and backend.

All display correctly on order emails.

The problem is that the two text fields can't be viewed in the backend while the text area field appears. What am I missing?



Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #180643

Hi,

I just tried on my end and the input text fields are well displayed in order edition.
Do you have edited the view "order / edit_additional" view in the backend template ?

In that view there is the code:

	if(!empty($this->fields['order'])) {
		$editCustomFields = false;
		if(isset($this->edit) && $this->edit === true) {
			$editCustomFields = true;
		}
		foreach($this->fields['order'] as $fieldName => $oneExtraField) {
?>
		<dt class="hikashop_order_additional_customfield hikashop_order_additional_customfield_<?php echo $fieldName; ?>"><?php echo $this->fieldsClass->getFieldName($oneExtraField);?></dt>
		<dd class="hikashop_order_additional_customfield hikashop_order_additional_customfield_<?php echo $fieldName; ?>"><span><?php
			if($editCustomFields) {
				echo $this->fieldsClass->display($oneExtraField, @$this->order->$fieldName, 'data[orderfields]['.$fieldName.']');
			} else {
				echo $this->fieldsClass->show($oneExtraField, @$this->order->$fieldName);
			}
		?></span></dd>
<?php
		}
	}

As you can see it list all the custom order fields, so please check via phpMyAdmin in the table order if the columns with the custom field name are well created.

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

  • Posts: 259
  • Thank you received: 22
10 years 9 months ago #180872

That view has not been edited and the code looks the same as yours.

What do you mean "the columns are well created? They exist and the data is stored in them - what else would I check?

Attachments:
Last edit: 10 years 9 months ago by rodfarrell.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #180899

Hi,

As we are not able to reproduce the issue on our end, please give us a backend and a ftp access to debug that directly on your website. You can send the informations via private message or via our contact form.
Don't forget to give us the url of that topic in the message ;)

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

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #182018

Hi,

I tried different things, force the load of the custom fields values in the view directly but it's not able to load the content.
Could you give us a phpMyAdmin access in order to check the database content directly ?

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

  • Posts: 259
  • Thank you received: 22
10 years 9 months ago #182043

Rather than give you cpanel access to the live site (my client would have kittens - their issue not yours) I will send you access to the development site which displays the same issue. If you can identify the problem you will need to explain what I need to do to fix it.

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

  • Posts: 259
  • Thank you received: 22
10 years 9 months ago #182613

Any feedback yet?

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

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #182640

Hi,

Sorry but I am not able to connect to the cpanel with the given login informations.

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

  • Posts: 259
  • Thank you received: 22
10 years 9 months ago #182708

OK I'll resend them

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

Time to create page: 0.092 seconds
Powered by Kunena Forum