product categories tree view

  • Posts: 540
  • Thank you received: 49
10 years 4 months ago #130619

How to make next - when vendor open categories tree he see all folders of categories rolled like in attach (2) now by default they opened each time when vendor try to choose some category

maybe its more request feature but if its possible make little changes now i wanna in product name field (3) make next - when vendor begin type product name he see variants of product name from current products in db (like now release related product field) and choose this product to replace him for himself in him store but vendor can change another fields like he wish

(1) how to make next - when click on the field (quantity) word UNLIMITED automatically gone (missed). now each time need to delete him..


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Attachments:
Last edit: 10 years 4 months ago by master_b.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
10 years 4 months ago #130621

Hi,

I have the impression that, more I read you, less I understand.
So, I don't know what I can answer you except that : I do not understand anything of what you are talking about.
Sorry, it is a something that I tell you often but.. It's not an English problem. The words are understandable, but the sentence, the all phrases.. not.

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: 540
  • Thank you received: 49
10 years 4 months ago #130707

ok try explain
by default all categories opened in tree (attach1) i wanna make categories tree view by default like in attach2 (all categories closed). let vendor open that category which he need, now he must scroll and looking


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Attachments:
Last edit: 10 years 4 months ago by master_b.

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

  • Posts: 540
  • Thank you received: 49
10 years 4 months ago #130708

about quantity field:
When the cursor is in the field "Quantity" the word Unlimited does not disappear and you should delete it. I want to when the cursor was in the field "Quantity" word Unlimited automatically disappeared and the field remained empty


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Attachments:
Last edit: 10 years 4 months ago by master_b.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
10 years 4 months ago #130754

Hi,

The category selector uses the "oTree" library.
In the HikaMarket "shop_category" type you will see this code

			$status = 4;
			if(!empty($next) && $next->category_parent_id == $element->category_id)
				$status = 2;
It set the node state where the different states are:
 * 	0 - final node
 * 	1 - directory node closed
 * 	2 - directory node open
 * 	3 - directory node dynamic (closed)
 * 	4 - empty directory node
 *	5 - root final node
So, if you replace the $status 2 by the value 1, you will close all directory nodes.
There is not option in the type object for such modification, I will see what is possible without breaking all the structure.

For the quantity, the best for you is to override the view in order to add some javascript which will catch the "onfocus" and "onblur" events for the quantity input.

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: 540
  • Thank you received: 49
10 years 4 months ago #131513

no changes after add value 1


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Attachments:
Last edit: 10 years 4 months ago by master_b.

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
10 years 4 months ago #131529

Hi,

You are not editing the right file. I said that you need to edit a "type" are you are editing a view.
So you have to edit a "core file", in "administrator/components/com_hikamarket/types/shop_category.php".

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: 540
  • Thank you received: 49
10 years 4 months ago #131534

yep for category changed but in related products still open tree

note: not forget change it again after next update))


сайт з перекладами www.benefit.in.ua
PS. спасибо переводить Webmoney : Z207635098627 R152456839841 или ЯД 410011027999056
Last edit: 10 years 4 months ago by master_b.
The following user(s) said Thank You: Jerome

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
10 years 4 months ago #131557

Hi,

For related products it is not the same type, it is "products".

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.079 seconds
Powered by Kunena Forum