• Resolved rivkadr

    (@rivkadr)


    We have a placeholder category in our shop that we would like to go to an external store URL (non-ECWID) when clicked. See included page URL – we would like “Groceries” to link to another site; we’ve added the URL into the category description so if you go into the category, then you’ll eventually find the desired link, but we want to make it so that if you click on the Groceries category on the shop index, you get taken immediately to the desired URL.

    This is not an option in ECWID apparently, and I’ve been trying to find some way to make it so that you can click the “Groceries” category and go to a different URL – various jQuery/JS solutions, but the problem is that because of how you write the content to the page with JS, I can’t seem to tap into the click events or something – nothing I do will prevent going into that category, rather than elsewhere.

    I tried a redirection URL plugin as well, but that didn’t work when clicking the category (still went inside the category). The redirect only worked with a forced refresh.

    Any suggestions on how to make this work, no matter how hacky?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support ecwid_team

    (@ecwid_team)

    Hey there!

    Yes, at the moment there’s no built-in way to add external URL’s to the category thumbnails. It might be possible to do this using the Ecwid API:

    https://api-docs.ecwid.com/

    Another way would be to use the workaround that you mentioned — adding a custom image with a link into the category description. After this you can create a custom CSS theme in Ecwid to change its appearance and position to make look similar to other category thumbnails. Here’s an article from our Help Center with more info on adding CSS codes to Ecwid:

    https://support.ecwid.com/hc/en-us/articles/360000160869-Adding-CSS-codes-to-your-store

    Hope this helps! Should you have any questions, feel free to ask!

    Plugin Support ecwid_team

    (@ecwid_team)

    Continuing the previous post, here’s some more details on using Ecwid API to redirect category thumbnails to custom URLs.

    We have an open and very flexible API which you can access by registering a free custom app for your store — more info on this can be found here:

    https://api-docs.ecwid.com/reference/access-ecwid-api

    I can recommend creating a custom script to subscribe to the “Ecwid.OnPageLoad” event and specify the “CATEGORY” type as well as the required category ID — this way the script will launch upon trying to open this category in your store. You can then use the script to redirect the user to another URL. Here’s an article from our API documentation on this event:

    https://api-docs.ecwid.com/reference/subscribe-to-events#ecwidonpageloadecwidonpageloaded

    If you need help with API, you can get in touch with our API support team via apps@ecwid.com — this email is used for all API related questions. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Way to redirect URL when you click on a category?’ is closed to new replies.