0

I have product titles all with this structure:

NAPAPIJRI
Men's organic cotton crewneck T-shirt

Live example: https://www.push96.com/en/napapijri---mens-organic-cotton-crewneck-t-shirt-np0a4eob041.html

I want to link the brand name (in this case the word "NAPAPIJRI") to the "view all products of this brand" (in this case "storeurl/brands/napapijri.html". Is this possible?

PS: the brand name is always before 'br' tag

2
  • Yes, possible, did you know from where currently that brand name show> Commented Jun 9, 2021 at 13:42
  • It's the tilte of the item, imported from csv. I need a php solution for product view, the brand name is always the word in the first line (before br tag). I.E. "NAPAPIJRI" should be "storeurl/brands/napapijri.html, while "TIMBERLAND" shuld be "storeurl/brands/timberland.html. Sometimes brand name is setup from 2/3 words like "POLO RALPH LAUREN" and in this case the url should be "storeurl/brands/polo_ralph_lauren.html"
    – Silver
    Commented Jun 11, 2021 at 21:45

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.