Jump to content

How to seyrch products by EAN


guest*

Recommended Posts

Do you want to be able to use the "Search box" to search by EAN13 or just add the option to sort a category by EAN13?

PrestaShop lets you use the search box to search by Reference, but not EAN13. You'd have to add them add a feature to search by EAN13.

To add a new "sort by" option to sort by EAN13, edit product-sort.tpl in your theme's directory and add a new option like the following:

<option value="{$link->addSortDetails($request, 'ean13', 'asc')|escape:'htmlall':'UTF-8'}" {if $orderby eq 'ean13' AND $orderway eq 'ASC' }selected="selected"{/if}>{l s='ean13'}

Link to comment
Share on other sites

Hi Rocky,

no I want to have the field on BO ! When you open a category you will see listed all products contained there. There are the fields ID, product picture, name, ref....
There is also a field named position. This one I don't need. I want to have instead a field called EAN/UPC and want allow sorting in this fiels by EAN/UPC (for coming version, When UPC is integrated).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...