category name raw code?

  • Posts: 8
  • Thank you received: 0
11 years 6 days ago #130172

Thank you, thank you Nicolas, works fine but how to create a link for that category?

and for the this "plugins\system\hikashopproducttag\hikashopproducttag.php" how to i can make modification? can you explain me or write me where to insert this script?

 <?php 
  foreach($this->categories as $category){
  echo ($category->category_name).' - ';
   
  }
     
  ?>

thank you for your adivice


if i insert this code in plugins\system\hikashopproducttag\hikashopproducttag.php nothing happens, i get empty div

please help me
thank you

Last edit: 11 years 6 days ago by marius1234.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 days ago #130229

Xavier wrote: The file to edit is:
"plugins\system\hikashopproducttag\hikashopproducttag.php"


The plugin files to edit was "plugins\system\hikashopproductinsert", but you'll need some development skill to do what you want.

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

  • Posts: 8
  • Thank you received: 0
11 years 6 days ago #130231

Thank you Mohamed
but can you try to explain me how to.

So I'm got some development skill

thank you...

Last edit: 11 years 6 days ago by marius1234.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 5 days ago #130476

Ok, you'll have to load your product's category informations through the file "plugins\system\hikashopproductinsert\hikashopproductinsert.php", and display it through the file "plugins\system\hikashopproductinsert\hikashopproductinsert_view.php".

The following user(s) said Thank You: marius1234

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

  • Posts: 8
  • Thank you received: 0
10 years 11 months ago #131177

mmm I do not think I'm able to create the code to make load of the name of categories, could you help me please?

can you write me the code that i will insert? :blush: :S

thank you

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

  • Posts: 8
  • Thank you received: 0
10 years 11 months ago #131213

I want to say that you made the module should not be hard to write the code to enter to initialize the category..

please help me :(

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

  • Posts: 13201
  • Thank you received: 2322
10 years 11 months ago #131221

Hi,

That need a MySQL request, to get the categories id of the product, then get the info in the category table to get the name.
If you need a link on the categories, it's a little bit more complex because you need to know which menu is displaying the category, to make it easy you can create a menu which display all the categories, and have a default category path.

It's a support forum, to correct bug and help in configurations, so we don't provide code for customizations. We have no time for that ;)

If you are not able to develop this feature, you can use the commercial jobs section of this forum.

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

  • Posts: 8
  • Thank you received: 0
10 years 11 months ago #131223

ok, thank you for your advice.. ;)

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

Time to create page: 0.085 seconds
Powered by Kunena Forum