ektrunks
Forum Replies Created
-
After doing some debugging, I got it to work for me.
I don’t think it was my Theme causing an issue, my theme doesn’t have any woocommerce cart files. Debugging gave me this error:
Failed opening ‘/nas/content/live/soulexercises/wp-content/plugins/woo-custom-product-addons/templates/cart/cart-item-data.php’ for inclusion (include_path=’.:/usr/share/pear/php:/usr/share/php’) in /nas/content/live/soulexercises/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 345
I didn’t have a folder at /wp-content/plugins/woo-custom-product-addons/templates/cart/ or a php file called cart-item-data.php so I had to create them. I added this to the cart-item-data.php and it has since worked for me:
/**
* Cart Item Data Template
* This template displays custom data associated with a cart item.
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! empty( $item_data ) ) {
echo '<dl class="variation">';
foreach ( $item_data as $data ) {
echo '<dt class="variation-' . sanitize_html_class( $data['key'] ) . '">' . esc_html( $data['key'] ) . ':</dt>';
echo '<dd class="variation-' . sanitize_html_class( $data['key'] ) . '">' . wp_kses_post( wpautop( $data['display'] ) ) . '</dd>';
}
echo '</dl>';
}Maybe that will shed some light on this issue for others, or maybe my site is so messed up, I had to create a workaround to make it happen! Either way, enjoy.
Forum: Plugins
In reply to: [Easy Forms for Mailchimp] Multiple Submission Notification EmailsThanks for your reply and I will sheepishly admit, that I messed that up because I edited it when I first added it to my site. So as I looked through I didn’t realize the original had the variables in it.
Thanks for your help, especially when it was right in front of me!
Kyle