Skip to Content

New J2Commerce 6.6.5 is out. Here is everything in the release.

See What’s New
Account
Enter the email address on your account.
Forgot your username?
Enter your password.
Forgot your password?

Or continue with

Pending Public Category: Technical Support / Bugs Ticket #1131

how to add year custom field

This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

J2Commerce

Version
J2Store/J2Commerce v4

Conversation

sky

Hi

I want to create a Custom Field for input year value for products with multilangauge support for label.

  1. where should I create this custom field?
  2. How to assign the field to product detail page position where I want, and hide the label, only show value
  3. possible to sort the product listing based on year?

by the way, the new look of your site really professional.

Olivier Buisard Staff

Hello,

can you explain the use case, that will help us better understand what you are looking for. Thank you!

Olivier.

sky

my use case is too add a year field for product watch detail page so that user knows it's from 2026, 2025, etc...

Filter by year is good to have, but not a must.

I wonder if I should use the joomla core custom field or j2store custom field for this use case.

Olivier Buisard Staff

Ok, what you could do:

Create a filter (Catalog -> Filters), give it a language key for the filter name, like JYEAR so it gets translated automatically by Joomla. Add the years you want to make available.

In each product, set the filter according to the values you need. For instance, go to the 'Filters' tab, search for JYEAR and select the year(s) you need to set your product to.

Now, if you need to show the year in each product as a custom field, you could try the add-on https://www.j2commerce.com/extensions/apps/content-custom-fields.

 

Olivier.