Title: Broken functionality
Last modified: February 2, 2017

---

# Broken functionality

 *  [jainp](https://wordpress.org/support/users/jainp/)
 * (@jainp)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/broken-functionality-2/)
 * Hi there,
 * I have used your handy plugin and it works really well. But it somehow has broken
   our functionality in another plugin where we use wc_get_product_id_by_sku() and
   add_product_to_cart() functions to add product in the cart based on a sku?
 * Instead of adding the product in the cart, it takes user to the product page.
   Above functionality works successfully if I deactivate your plugin.
 * Any idea why this would be?
 * Thanks,

The topic ‘Broken functionality’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sku-shortlink-for-woocommerce_6992fe.
   svg)
 * [SKU Shortlink For WooCommerce](https://wordpress.org/plugins/sku-shortlink-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/sku-shortlink-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/sku-shortlink-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sku-shortlink-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sku-shortlink-for-woocommerce/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jainp](https://wordpress.org/support/users/jainp/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/broken-functionality-2/)
 * Status: not resolved