Product edit issues

  • Posts: 134
  • Thank you received: 6
9 years 8 months ago #195406

-- HikaShop version -- : 2.4.0
-- HikaMarket version -- : 1.6.1
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.4.16

Hi, Jerome

A fiew more things, concerning product edit form in frontend:

1. Characteristics are added via ajax and are visible but are not being saved on form submission. If added by the backend they are visible in the frontend
2. Related products and options are not visible in the frontend after form submission, although they exist in DB

I switched off JoomSEF extension for HikaMarket in order to be sure it doesn't cause the bug, but no change happened.
If you need access you may use credentials that I sent you several days ago for the category tree problem.

Regards!

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #195410

Hi,

1. What part of the characteristic ? The global characteristic or the values ?
When you edit a characteristic or when you create a new one ?
Please provide a process so I will be able to reproduce it in my local website.

2. It is an issue with the new "product namebox".
Please edit the file "administrator/components/com_hikamarket/classes/product.php" and replace

		if(!empty($value)) {
			if(!is_array($value))
				$value = array($value);
By
		if(!empty($value)) {
			if(!is_array($value))
				$value = array($value);

			if(is_object(reset($value))) {
				$values = array();
				foreach($value as $v) {
					$values[] = (int)$v->product_id;
				}
				$value = $values;
			}
It will handle objects as values for the getNameboxData function.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 134
  • Thank you received: 6
9 years 8 months ago #195414

Hi, Jerome.

It is about the global characteristics and is the same for the add and the edit process.
If you add them in the backend they are present in the frontend, but none of them are present if added from the frontend.

The process is:

1. In product edit form (frontend) new characteristic is added by ajax
2. It appears in the grid as expected - bellow the existing ones (if any)
3. When you submit the form the newly created characteristic(s) are no longer present. Only the already existing ones (added by the backend) are available.

No problems with the values for the existing characteristics.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 8 months ago #195428

Hi,

I didn't understand that the issue was when you edited a product ; I though it was when editing a characteristic.
I'm currently performing some tests and I already fix an issue with the "search" in the product edition ; I also reproduce the issue when creating a new value for a characteristic but I'm still debugging it.

I think that I will release a new version (HikaMarket 1.6.2) ; it affect several files and there are also some little modifications in the javascript (specially for the namebox javascript lib).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Moderators: Obsidev
Time to create page: 0.060 seconds
Powered by Kunena Forum