how to redirect depending on visitor device model?

  • Posts: 112
  • Thank you received: 1
1 month 5 days ago #359970

-- HikaShop version -- : 5.0.3
-- Joomla version -- : 5
-- PHP version -- : 8.2
-- Browser(s) name and version -- : android chrome

Hello,

i am planning to build web-shop for smartphone accessories, such as cases, protective glass..etc
Other competition has this nifty trick, where their web-shop redirects visitor to specific product list once web-shop is visited.

For example, if website visitor has Samsung A53 5G, web-shop will automatically redirect to all products related to this phone....can Hikashop do this?


thank you

Last edit: 1 month 4 days ago by dado023.

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 month 4 days ago #359972

Hi,

You can do that with any ecommerce solution I think.

With HikaShop you want to :
- create different categories for different smartphones
- add the categories to the products
- create a menu item of the type "products listing" for each smartphone category, and select the corresponding category in the "main category" setting of the menu. You can hide these menu items if you don't want them to appear on your main menu.
- You can add htaccess rules on the user-agent and the referrer to redirect the user to the corresponding menu item.
arjunphp.com/htaccess-redirect-specific-...in-based-user-agent/
deviceatlas.com/blog/list-of-user-agent-strings
So something like this:
https://htaccess.madewithlove.com?share=c2c40e2a-26c3-4f16-915e-ce7b3528f5ba
How to modify the htaccess:
www.knownhost.com/kb/how-to-modify-the-htaccess-file/

Please Log in or Create an account to join the conversation.

  • Posts: 112
  • Thank you received: 1
1 month 4 days ago #359985

thank you for quick response and for the detailed solution

Please Log in or Create an account to join the conversation.

  • Posts: 112
  • Thank you received: 1
1 month 4 days ago #359986

btw, seems like this forum doesnt allow thumbs up character, emojipedia.org/thumbs-up
gives me this error i.imgur.com/t87We3m.png

Last edit: 1 month 4 days ago by dado023. Reason: thumbs up

Please Log in or Create an account to join the conversation.

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 month 3 days ago #359990

Hi,

Indeed. It is not allowed by the forum system we're using on our website.

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum