Translated cart item name doesn't account for product visibility
-
The translated_cart_item_name filter always adds a link to the cart item name. Products that are invisible shouldn’t have a link (see cart.php template).
translated_cart_item_name should have something like this:
if ($values['data']->is_visible()) { $title = sprintf('<a href="%s">%s</a>', $values['data']->get_permalink(), $title); }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Translated cart item name doesn't account for product visibility’ is closed to new replies.