Skip to content
Advertisement

Combining multiple cart item permalink changes in WooCommerce

I would like to change the permalinks of my cart item using the WooCommerce framework.

I have the following:

JavaScript

However only the second cart permalink is changed using this method. If I delete it, then the first one gets changed.

How can I combine the two functions into one and expand on that (as I have multiple products where the permalinks will need to be changed?)

Advertisement

Answer

You could apply it this way

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement