[Skip to main content](#vessel-content)

#   How show a product custom field date picker

##

- **[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")**
- [![Jabatec's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5180.png)](/forum/user/5180-jabatec "View Jabatec's Profile") Topic Author
- [ Offline](/forum/user/5180-jabatec)

Less More

- Posts: 91
- Thank you received: 15
-
- [](https://jabatec.com)
-

11 years 5 months ago [\#202862](#202862) by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")  *[How show a product custom field date picker](/forum/26-product-category-display/877178-how-show-a-product-custom-field-date-picker#202862 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.4.1 -- PHP version -- : 2.4. -- Browser(s) name and version -- : Chrome 43.0  Hi, I have a product custom field date picker that work fine with a product view. My problem is that I need show this custom field in a product listing category view, but not show. I have reviewed next options;  - custom field is ok for category selected in display / custom field - custom field work fine in backend when I edit a product . custom field show ok in a view product in front end - display custom item fields is Ok for display / content menus  but in front end, when I select listing products , custom field not show  Thank you Javier")* was created by *[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")*

-- HikaShop version -- : 3.4
-- Joomla version -- : 3.4.1
-- PHP version -- : 2.4.
-- Browser(s) name and version -- : Chrome 43.0

Hi,
I have a product custom field date picker that work fine with a product view.
My problem is that I need show this custom field in a product listing category view, but not show.
I have reviewed next options;

- custom field is ok for category selected in display / custom field
- custom field work fine in backend when I edit a product
. custom field show ok in a view product in front end
- display custom item fields is Ok for display / content menus

but in front end, when I select listing products , custom field not show

Thank you
Javier

---

Javier Ballester

- [ ![display-content-menu.png](/forum/attachment/24614) ](/forum/attachment/24614 "...ntent-menu.png") [ ](/forum/attachment/24614?download=1 "...ntent-menu.png")
- [ ![custom-field.png](/forum/attachment/24615) ](/forum/attachment/24615 "custom-field.png") [ ](/forum/attachment/24615?download=1 "custom-field.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcxNzgtaG93LXNob3ctYS1wcm9kdWN0LWN1c3RvbS1maWVsZC1kYXRlLXBpY2tlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14300
-
-

11 years 5 months ago [\#202880](#202880) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How show a product custom field date picker](/forum/26-product-category-display/877178-how-show-a-product-custom-field-date-picker#202880 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.4.1 -- PHP version -- : 2.4. -- Browser(s) name and version -- : Chrome 43.0  Hi, I have a product custom field date picker that work fine with a product view. My problem is that I need show this custom field in a product listing category view, but not show. I have reviewed next options;  - custom field is ok for category selected in display / custom field - custom field work fine in backend when I edit a product . custom field show ok in a view product in front end - display custom item fields is Ok for display / content menus  but in front end, when I select listing products , custom field not show  Thank you Javier")*

Hi,

There is no option to display the value of a custom product field on a listing of products.

The "Display custom item fields" option is there to display custom item fields on listings of products, not custom product fields.
That would require customizing the view file of the product display on the listing to add the code to display the value of the field.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcxNzgtaG93LXNob3ctYS1wcm9kdWN0LWN1c3RvbS1maWVsZC1kYXRlLXBpY2tlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")**
- [![Jabatec's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5180.png)](/forum/user/5180-jabatec "View Jabatec's Profile") Topic Author
- [ Offline](/forum/user/5180-jabatec)

Less More

- Posts: 91
- Thank you received: 15
-
- [](https://jabatec.com)
-

11 years 5 months ago -  11 years 5 months ago [\#202906](#202906) by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")  Replied by *[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")* on topic *[How show a product custom field date picker](/forum/26-product-category-display/877178-how-show-a-product-custom-field-date-picker#202906 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.4.1 -- PHP version -- : 2.4. -- Browser(s) name and version -- : Chrome 43.0  Hi, I have a product custom field date picker that work fine with a product view. My problem is that I need show this custom field in a product listing category view, but not show. I have reviewed next options;  - custom field is ok for category selected in display / custom field - custom field work fine in backend when I edit a product . custom field show ok in a view product in front end - display custom item fields is Ok for display / content menus  but in front end, when I select listing products , custom field not show  Thank you Javier")*

Hi Nicolas, thank you,
Through the "listing_img_title" file of the "product" view of your front-end template, it show Ok.
Code:

&lt;?php echo $this-&gt;row-&gt;CUSTOMFILED_NAME; ?&gt;

[ hikashop.com/forum/install-update/869869...product-listing.html](https://hikashop.com/forum/install-update/869869-display-custom-fields-in-product-listing.html)

but date format not show the format of custom field.
Format Custom field (OK) &gt; %d-%m-%Y
Format Edit Product &gt; %Y-%m-%d
Format category listing product &gt; %Y-%m-%d

Thank you
Javier

---

Javier Ballester

- [ ![format&#95;date.png](/forum/attachment/24622) ](/forum/attachment/24622 "format&#95;date.png") [ ](/forum/attachment/24622?download=1 "format&#95;date.png")
- [ ![edit&#95;product.png](/forum/attachment/24624) ](/forum/attachment/24624 "edit&#95;product.png") [ ](/forum/attachment/24624?download=1 "edit&#95;product.png")
- [ ![date-correct.png](/forum/attachment/24625) ](/forum/attachment/24625 "date-correct.png") [ ](/forum/attachment/24625?download=1 "date-correct.png")

Last edit: 11 years 5 months ago by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcxNzgtaG93LXNob3ctYS1wcm9kdWN0LWN1c3RvbS1maWVsZC1kYXRlLXBpY2tlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14300
-
-

11 years 5 months ago -  11 years 5 months ago [\#202920](#202920) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How show a product custom field date picker](/forum/26-product-category-display/877178-how-show-a-product-custom-field-date-picker#202920 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.4.1 -- PHP version -- : 2.4. -- Browser(s) name and version -- : Chrome 43.0  Hi, I have a product custom field date picker that work fine with a product view. My problem is that I need show this custom field in a product listing category view, but not show. I have reviewed next options;  - custom field is ok for category selected in display / custom field - custom field work fine in backend when I edit a product . custom field show ok in a view product in front end - display custom item fields is Ok for display / content menus  but in front end, when I select listing products , custom field not show  Thank you Javier")*

Hi,

That's normal with the code you used.
You'll need more complex code to do the conversion: Code:

&lt;?php $fieldsClass = hikashop_get('class.field'); $element=null; $fields = $fieldsClass-&gt;getFields('',$element,'item'); echo $fieldsClass-&gt;show($fields['CUSTOMFILED_NAME'], $this-&gt;row-&gt;CUSTOMFILED_NAME); ?&gt;

Last edit: 11 years 5 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcxNzgtaG93LXNob3ctYS1wcm9kdWN0LWN1c3RvbS1maWVsZC1kYXRlLXBpY2tlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")**
- [![Jabatec's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5180.png)](/forum/user/5180-jabatec "View Jabatec's Profile") Topic Author
- [ Offline](/forum/user/5180-jabatec)

Less More

- Posts: 91
- Thank you received: 15
-
- [](https://jabatec.com)
-

11 years 5 months ago [\#203008](#203008) by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")  Replied by *[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")* on topic *[How show a product custom field date picker](/forum/26-product-category-display/877178-how-show-a-product-custom-field-date-picker#203008 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.4.1 -- PHP version -- : 2.4. -- Browser(s) name and version -- : Chrome 43.0  Hi, I have a product custom field date picker that work fine with a product view. My problem is that I need show this custom field in a product listing category view, but not show. I have reviewed next options;  - custom field is ok for category selected in display / custom field - custom field work fine in backend when I edit a product . custom field show ok in a view product in front end - display custom item fields is Ok for display / content menus  but in front end, when I select listing products , custom field not show  Thank you Javier")*

Hi Nicolas,
replaced the custom field, but web page is not built well.

Code with custom field column -&gt; fecha_ruta
Code:

&lt;!-- MOSTRAMOS FECHA CUSTOM FIELD --&gt; &lt;?php echo "Fecha; "; ?&gt; &lt;?php $fieldsClass = hikashop_get('class.field'); $element=null; $fields = $fieldsClass-&gt;getFields('',$element,'item'); echo $this-&gt;fieldsClass-&gt;show($fields['fecha_ruta'], $this-&gt;row-&gt;fecha_ruta); ?&gt; &lt;!-- FIN FECHA CUSTOM FIELD --&gt;

Thank you very much
Javier

---

Javier Ballester

- [ ![date-custom-field.png](/forum/attachment/24635) ](/forum/attachment/24635 "...stom-field.png") [ ](/forum/attachment/24635?download=1 "...stom-field.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcxNzgtaG93LXNob3ctYS1wcm9kdWN0LWN1c3RvbS1maWVsZC1kYXRlLXBpY2tlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14300
-
-

11 years 5 months ago [\#203017](#203017) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How show a product custom field date picker](/forum/26-product-category-display/877178-how-show-a-product-custom-field-date-picker#203017 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.4.1 -- PHP version -- : 2.4. -- Browser(s) name and version -- : Chrome 43.0  Hi, I have a product custom field date picker that work fine with a product view. My problem is that I need show this custom field in a product listing category view, but not show. I have reviewed next options;  - custom field is ok for category selected in display / custom field - custom field work fine in backend when I edit a product . custom field show ok in a view product in front end - display custom item fields is Ok for display / content menus  but in front end, when I select listing products , custom field not show  Thank you Javier")*

Hi,

I made a typo.
It should be:
$fieldsClass
instead of:
$this-&gt;fieldsClass
on the last line of the code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcxNzgtaG93LXNob3ctYS1wcm9kdWN0LWN1c3RvbS1maWVsZC1kYXRlLXBpY2tlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")**
- [![Jabatec's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5180.png)](/forum/user/5180-jabatec "View Jabatec's Profile") Topic Author
- [ Offline](/forum/user/5180-jabatec)

Less More

- Posts: 91
- Thank you received: 15
-
- [](https://jabatec.com)
-

11 years 5 months ago [\#203064](#203064) by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")  Replied by *[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")* on topic *[How show a product custom field date picker](/forum/26-product-category-display/877178-how-show-a-product-custom-field-date-picker#203064 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.4.1 -- PHP version -- : 2.4. -- Browser(s) name and version -- : Chrome 43.0  Hi, I have a product custom field date picker that work fine with a product view. My problem is that I need show this custom field in a product listing category view, but not show. I have reviewed next options;  - custom field is ok for category selected in display / custom field - custom field work fine in backend when I edit a product . custom field show ok in a view product in front end - display custom item fields is Ok for display / content menus  but in front end, when I select listing products , custom field not show  Thank you Javier")*

Sorry Nicolas, but the result its the same with next code
Code:

&lt;?php echo "Fecha; "; ?&gt; &lt;?php $fieldsClass = hikashop_get('class.field'); $element=null; $fields = $fieldsClass-&gt;getFields('',$element,'item'); echo $fieldsClass-&gt;show($fields['fecha_ruta'], $this-&gt;row-&gt;fecha_ruta); ?&gt;

Thank you
Javier

---

Javier Ballester

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcxNzgtaG93LXNob3ctYS1wcm9kdWN0LWN1c3RvbS1maWVsZC1kYXRlLXBpY2tlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86540
- Thank you received: 14300
-
-

11 years 5 months ago [\#203082](#203082) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How show a product custom field date picker](/forum/26-product-category-display/877178-how-show-a-product-custom-field-date-picker#203082 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.4.1 -- PHP version -- : 2.4. -- Browser(s) name and version -- : Chrome 43.0  Hi, I have a product custom field date picker that work fine with a product view. My problem is that I need show this custom field in a product listing category view, but not show. I have reviewed next options;  - custom field is ok for category selected in display / custom field - custom field work fine in backend when I edit a product . custom field show ok in a view product in front end - display custom item fields is Ok for display / content menus  but in front end, when I select listing products , custom field not show  Thank you Javier")*

Try like that: Code:

&lt;?php echo "Fecha; "; ?&gt; &lt;?php $fieldsClass = hikashop_get('class.field'); $element=null; $fields = $fieldsClass-&gt;getFields('',$element,'product'); echo $fieldsClass-&gt;show($fields['fecha_ruta'], $this-&gt;row-&gt;fecha_ruta); ?&gt;

The following user(s) said Thank You: [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcxNzgtaG93LXNob3ctYS1wcm9kdWN0LWN1c3RvbS1maWVsZC1kYXRlLXBpY2tlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")**
- [![Jabatec's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5180.png)](/forum/user/5180-jabatec "View Jabatec's Profile") Topic Author
- [ Offline](/forum/user/5180-jabatec)

Less More

- Posts: 91
- Thank you received: 15
-
- [](https://jabatec.com)
-

11 years 5 months ago -  11 years 5 months ago [\#203148](#203148) by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")  Replied by *[Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile")* on topic *[How show a product custom field date picker](/forum/26-product-category-display/877178-how-show-a-product-custom-field-date-picker#203148 "-- HikaShop version -- : 3.4 -- Joomla version -- : 3.4.1 -- PHP version -- : 2.4. -- Browser(s) name and version -- : Chrome 43.0  Hi, I have a product custom field date picker that work fine with a product view. My problem is that I need show this custom field in a product listing category view, but not show. I have reviewed next options;  - custom field is ok for category selected in display / custom field - custom field work fine in backend when I edit a product . custom field show ok in a view product in front end - display custom item fields is Ok for display / content menus  but in front end, when I select listing products , custom field not show  Thank you Javier")*

Hi Nicolas, Go to infinity and beyond.
Work Fine.

1 - I test new code.-
2 - Edit a Product and go to product custom field
3 - Del date and save
4 - Select new date and save with the new format.
5 - Date custom field of a product, show ok in category listing product

Joomla! Rocks :blink: :silly: ![;)](/media/kunena/emoticons/24.png ";)")

---

Javier Ballester

Last edit: 11 years 5 months ago by [Jabatec](/forum/user/5180-jabatec "View Jabatec's Profile").

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzcxNzgtaG93LXNob3ctYS1wcm9kdWN0LWN1c3RvbS1maWVsZC1kYXRlLXBpY2tlcj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.101 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
