- Posts: 14
- Thank you received: 0
custom field on productlisting
- Jimmy Business
-
Topic Author
- Offline
Less
More
8 years 4 weeks ago #298795
by Jimmy Business
custom field on productlisting was created by Jimmy Business
How to show a custom field (text area) at the bottom of a productlisting page?
Please Log in or Create an account to join the conversation.
8 years 4 weeks ago #298806
by nicolas
Replied by nicolas on topic custom field on productlisting
Hi,
There is no option to display a text area on the products listing.
What would you use it for ? Could you please provide more information on what you're trying to do so that we could have a better understanding of your situation ? Maybe we could be able to provide a solution then.
There is no option to display a text area on the products listing.
What would you use it for ? Could you please provide more information on what you're trying to do so that we could have a better understanding of your situation ? Maybe we could be able to provide a solution then.
Please Log in or Create an account to join the conversation.
- Jimmy Business
-
Topic Author
- Offline
Less
More
- Posts: 14
- Thank you received: 0
8 years 4 weeks ago #298813
by Jimmy Business
Replied by Jimmy Business on topic custom field on productlisting
By default the category description box is showed at the top of the page. Which is good, but I would like to create a second category description box underneat the page, just above the pagination (see screenshot). I managed to realize this at former websites, unfortunatly i could not provide an example. I used this threat to accomplish this:
www.hikashop.com/forum/product-category-...e-category-page.html
. But at the latest version of hikashop this solution provides me an error. So help is much needed.
i created a custom field with table: category, field type: text area.
But i need it to show at the productlisting page. Which i probabaly need to edit the com_hikashop/views/product/tmpl/listing.php ?
i created a custom field with table: category, field type: text area.
But i need it to show at the productlisting page. Which i probabaly need to edit the com_hikashop/views/product/tmpl/listing.php ?
Please Log in or Create an account to join the conversation.
8 years 4 weeks ago #298816
by nicolas
Replied by nicolas on topic custom field on productlisting
Hi,
The solution on this post www.hikashop.com/forum/product-category-...ory-page.html#140434 is still valid even with the latest version of HikaShop (4.0.0).
So you must have done something wrong with your modification.
What error did you get ? And could you provide a screenshot of the code modification you made ?
Note also that you want to edit the view file via the menu Display>Views and not directly the file components/com_hikashop/views/product/tmpl/listing.php
That way, you won't loose the change when you update your HikaShop.
The solution on this post www.hikashop.com/forum/product-category-...ory-page.html#140434 is still valid even with the latest version of HikaShop (4.0.0).
So you must have done something wrong with your modification.
What error did you get ? And could you provide a screenshot of the code modification you made ?
Note also that you want to edit the view file via the menu Display>Views and not directly the file components/com_hikashop/views/product/tmpl/listing.php
That way, you won't loose the change when you update your HikaShop.
Please Log in or Create an account to join the conversation.
- Jimmy Business
-
Topic Author
- Offline
Less
More
- Posts: 14
- Thank you received: 0
8 years 3 weeks ago #298922
by Jimmy Business
Replied by Jimmy Business on topic custom field on productlisting
Im using this code: <?php echo $this->element->custom_field;?>
“custom_field” is the actual column name of my custom field with table category.
Ive added this line to the following file: listing.php of the view product.
Ive placed this line at the bottom of the document. Right after:
</div>
<?php
}
It leads me to the following error message when trying to acces the productlisting page:
Parse error: syntax error, unexpected <path\components\com_hikashop\views\product\tmpl\listing.php on line 375
Line 375 = end of the file where i put the above line of code
“custom_field” is the actual column name of my custom field with table category.
Ive added this line to the following file: listing.php of the view product.
Ive placed this line at the bottom of the document. Right after:
</div>
<?php
}
It leads me to the following error message when trying to acces the productlisting page:
Parse error: syntax error, unexpected <path\components\com_hikashop\views\product\tmpl\listing.php on line 375
Line 375 = end of the file where i put the above line of code
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
8 years 3 weeks ago #298938
by Mohamed Thelji
Replied by Mohamed Thelji on topic custom field on productlisting
Hello,
Your issue is coming from the way you have added your code customization, can you send us the file "listing.php" of the product view so that we can directly check it ? Thank you.
Kind regards,
Mohamed Thelji.
Your issue is coming from the way you have added your code customization, can you send us the file "listing.php" of the product view so that we can directly check it ? Thank you.
Kind regards,
Mohamed Thelji.
Please Log in or Create an account to join the conversation.
- Jimmy Business
-
Topic Author
- Offline
Less
More
- Posts: 14
- Thank you received: 0
8 years 3 weeks ago #299213
by Jimmy Business
Replied by Jimmy Business on topic custom field on productlisting
I would love to but since it is not allowed to upload any php files it would difficult.
According to the following message i receive when trying to upload the requested file:
'You need to use allowde file extension (.jpg, etc)
So, can i send it by e-mail or?
According to the following message i receive when trying to upload the requested file:
'You need to use allowde file extension (.jpg, etc)
So, can i send it by e-mail or?
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
8 years 2 weeks ago #299220
by Mohamed Thelji
Replied by Mohamed Thelji on topic custom field on productlisting
Hello,
In that case, can you show us screenshots of the code around the line 375 "components\com_hikashop\views\product\tmpl\listing.php" so that we can directly check it ? Thank you.
Kind regards,
Mohamed Thelji.
In that case, can you show us screenshots of the code around the line 375 "components\com_hikashop\views\product\tmpl\listing.php" so that we can directly check it ? Thank you.
Kind regards,
Mohamed Thelji.
Please Log in or Create an account to join the conversation.
Time to create page: 0.076 seconds