Form appears twice when I override listing-list.php
-
Hi,
When I try to override the listing-list.php template file, the Multiple Products form appears twice on the page.This happens whichever way I override the template file, ie by placing a copy to mytheme/templates/listing-list.php and by using the mpc_template_loader with a custom location.
I think the problem might be in the mpc_multicart_shortcode() function. This line seems to be calling the template file a second time:
include( apply_filters( 'mpc_template_loader', MPC_PATH . 'templates/listing-list.php' ) );
I have the latest version of the plugin and use the listing-list.php from the version I have installed.
Can you please test it, and see if it’s a bug?
- The topic ‘Form appears twice when I override listing-list.php’ is closed to new replies.