Keyword

joomla k2 echo category id nombor in php

  • Majdy
  • Majdy's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 9 months ago #121820 by Majdy
I need urgent help please
I'm building a company catalog all products (around 9000 products ) system can produce any product that is added to the catalog number is based on the connection of a ID number of the first category and ID number sub category and the ID number of sub sub category and at the end of the Item ID number, for example if there is a first category ID= 8 sub- category ID= 15 sub- sub- category ID=26 and Item ID=156 then the number codes will be 81526156 and if we assume that there is no sub- category then the representation is zero of that category ID, example, assuming the sub sub category does not exist then the number codes will be 81500156 , I'm building a system based on K2 and I adds another field that contains the number codes, ideas are welcome including payment if needed

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 9 months ago #121821 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: joomla k2 echo category id nombor in php
Hello Massarweh Majdy,

Why don't you try
<?php var_dump($this->item); ?>

inside the item view so you can all your available options.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • Majdy
  • Majdy's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 9 months ago #121822 by Majdy

Krikor Boghossian wrote: Hello Massarweh Majdy,

Why don't you try

<?php var_dump($this->item); ?>

inside the item view so you can all your available options.


Krikor Boghossian thanks for your help
I'm not pretty sure how to do it I'm not PHP pro, I need more Specify what to do and where to modify the code, as I post I need to grab the categories ID's with ITEM ID to make the desire product code
again thanks a lot

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

  • olsen
  • olsen's Avatar
  • Offline
  • Elite Member
  • Joomla and K2 Freelancer
More
10 years 9 months ago #121823 by olsen
Hello Massaarweh,

Please contact me to talk about your requierements. I can do it for you.

Thank you
regards

Didn't solve your issues?? Why dont you consider hire me? Email me or contact me www.xevedigital.com for details

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 9 months ago #121824 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: joomla k2 echo category id nombor in php
This code should be placed in the item.php file.

You then need to get the values from the $item object eg:

<?php echo $this->item->id; ?>

To locate the template files please read the following tutorial:
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum