- Posts: 25
COMMUNITY FORUM
joomla k2 echo category id nombor in php
- Majdy
-
Topic Author
- Offline
- Junior Member
Less
More
11 years 5 months ago #121820
by Majdy
joomla k2 echo category id nombor in php was created 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
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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 5 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
inside the item view so you can all your available options.
Why don't you try
<?php var_dump($this->item); ?>
inside the item view so you can all your available options.
Please Log in or Create an account to join the conversation.
- Majdy
-
Topic Author
- Offline
- Junior Member
Less
More
- Posts: 25
11 years 5 months ago #121822
by Majdy
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
Replied by Majdy on topic Re: joomla k2 echo category id nombor in php
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
-
- Offline
- Elite Member
- Joomla and K2 Freelancer
11 years 5 months ago #121823
by olsen
Didn't solve your issues?? Why dont you consider hire me? Email me or contact me www.xevedigital.com for details
Replied by olsen on topic Re: joomla k2 echo category id nombor in php
Hello Massaarweh,
Please contact me to talk about your requierements. I can do it for you.
Thank you
regards
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
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 5 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
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
Please Log in or Create an account to join the conversation.