Hi Sormano,
That’s unfortunate but understandable.
I ran into an issue with the Genesis framework, seeing the following notices:
NOTICE: UNDEFINED PROPERTY: STDCLASS::$TERM_ID IN /.../.../WOOCOMMERCE-PRODUCTS-PER-PAGE/OBJECTS/WPPP-DROPDOWN.PHP ON LINE 30
NOTICE: UNDEFINED INDEX: BEHAVIOUR IN /.../.../WOOCOMMERCE-PRODUCTS-PER-PAGE/OBJECTS/WPPP-DROPDOWN.PHP ON LINE 32
NOTICE: UNDEFINED VARIABLE: ACTION IN /.../.../WOOCOMMERCE-PRODUCTS-PER-PAGE/OBJECTS/WPPP-DROPDOWN.PHP ON LINE 40
These do not show up with two other themes I have tested it with so I assume it might be Genesis specific. Either way, changing the if/esleif in wppp_create_object() a bit helped:
$action = '';
if ( isset($cat->term_id) && true == $cat->term_id && isset($this->options['behaviour']) && true == $this->options['behaviour'] && isset($cat->taxonomy) && 'product_cat' == $cat->taxonomy ) :
$action = ' action="' . get_term_link( $cat->term_id, 'product_cat' ) . $query_string . '"';
elseif ( isset($this->options['behaviour']) && true == $this->options['behaviour'] ) :
$action = 'action="' . get_permalink( woocommerce_get_page_id( 'shop' ) ) . $query_string . '"';
endif;
Cheers,
Tamara