fahadmahmood8 / stock-locations-for-woocommerce

This plugin will help you manage WooCommerce Products stocks through locations and also different traditional barcodes.
https://pt.wordpress.org/plugins/stock-locations-for-woocommerce/
GNU General Public License v3.0
22 stars 14 forks source link

Variations and add to cart not shown on product page for variable products #131

Closed keesheddes closed 2 years ago

keesheddes commented 2 years ago

In class-slw-shortcodes.php on row 218, the variable $product is used to load the variation. That variable name is already used, because of this, the variations and add to cart button are not shown on variable product pages. Renaming that variable and also use it on row 224 fixes this issue.

fahadmahmood8 commented 2 years ago

@keesheddes I am releasing the next version with this fix.