Title: Mini-cart PPC button code always added
Last modified: December 30, 2022

---

# Mini-cart PPC button code always added

 *  Resolved [madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * (@madmax4ever)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/mini-cart-ppc-button-code-always-added/)
 * On line 438 and 439 of [SmartButton.php](https://plugins.trac.wordpress.org/browser/woocommerce-paypal-payments/trunk/modules/ppcp-button/src/Assets/SmartButton.php#L438),
   the wrong option name is given. There is a confusion between minus and underscore.
 * The option is **button_mini-cart_enabled**, not button_mini_cart_enabled (note
   the underscore that should not replace the minus sign).
 * Therefore, the logic gets wrong and mini-cart button seems enabled…
 * On my site, this is visible as I get a useless vertical white space (the void
   container) at the bottom of my mini-cart…
 * Could you correct this please?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmini-cart-ppc-button-code-always-added%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/mini-cart-ppc-button-code-always-added/#post-16330446)
 * Hi [@madmax4ever](https://wordpress.org/support/users/madmax4ever/)
 * The next update refactors the button configuration in the Standard Payments tab,
   and [if I judge it correctly](https://github.com/woocommerce/woocommerce-paypal-payments/blob/trunk/modules/ppcp-button/src/Assets/SmartButton.php#L437),
   this issue should be resolved then.
 * The next pre-release is scheduled for in about two weeks, but if you send us 
   [a private message from here](https://paypal.inpsyde.com/docs/request-support/)
   with a link to this thread, we could share a test package to verify the assumption.
 * Kind regards,
   Niklas
 *  Plugin Support [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * (@niklasinpsyde)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/mini-cart-ppc-button-code-always-added/#post-16433052)
 * This should be resolved in the latest update 2.0.2, and since we haven’t heard
   back, I’ll mark this resolved.
   If any issues or questions remain with the latest
   version, don’t hesitate to let us know.
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Mini-cart PPC button code always added’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Syde Niklas](https://wordpress.org/support/users/niklasinpsyde/)
 * Last activity: [3 years, 4 months ago](https://wordpress.org/support/topic/mini-cart-ppc-button-code-always-added/#post-16433052)
 * Status: resolved