Title: Add via shortcode
Last modified: April 29, 2024

---

# Add via shortcode

 *  Resolved [cnick](https://wordpress.org/support/users/cnick/)
 * (@cnick)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/add-via-shortcode/)
 * Hi,
 * I’m using elementor. Is there a way to add express paypal buttons on product 
   page via shortcode?

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

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/add-via-shortcode/#post-17721176)
 * Hi [@cnick](https://wordpress.org/support/users/cnick/)
 * Yes, you can use shortcode `[**ppcp_product_buttons**]` to render the express
   PayPal buttons.
 * We are working on updating the documentation site so there are examples of the
   available shortcodes.
 * Kind Regards,
 *  Thread Starter [cnick](https://wordpress.org/support/users/cnick/)
 * (@cnick)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/add-via-shortcode/#post-17721579)
 * I added the shortcode and the button is also showing up but its not working. 
   After clicking buy now button, paypal popup is seen for a second, then it closes
   and the page is scrolled to the top.
   In chrome’s browser console I’m getting 
   following error
 *     ```wp-block-code
       click_initiate_payment_reject 
       {err: 'Error: Expected an order id to be passed\
       ```
   
 * In logs i’m getting
 *     ```wp-block-code
       Error creating PayPal order. Msg: Must be greater than zero. If the currency supports decimals, only two decimal place precision is supported. Params: Array
       ```
   
 *     ```wp-block-code
       ....
       [value] => 0.00.
       ....
       ```
   
 * The value is 0 instead of 39 
   I’m using elementor pro.Please help. Thanks
    -  This reply was modified 2 years, 1 month ago by [cnick](https://wordpress.org/support/users/cnick/).
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/add-via-shortcode/#post-17721603)
 * > The value is 0 instead of 39
   > I’m using elementor pro.
 * The plugin is coded to take the value directly from the WooCommerce shopping 
   cart so it seems your issue is unrelated to the PayPal plugin. Your shopping 
   cart seems to be returning $0.
 * Can you provide the full error log entry?
 * Thanks
 *  Thread Starter [cnick](https://wordpress.org/support/users/cnick/)
 * (@cnick)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/add-via-shortcode/#post-17721867)
 * Please check this log entry:
   [https://pastebin.com/5DfwsYck](https://pastebin.com/5DfwsYck)
   Thanks
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/add-via-shortcode/#post-17722108)
 * Hi [@cnick](https://wordpress.org/support/users/cnick/)
 * I can see from the error log that the WooCommerce cart total is returning $0 
   which is not correct. This is not a PayPal plugin issue since the plugin uses
   the total provided by the WooCommerce cart.
 * You likely have some 3rd party plugin installed that’s causing the cart’s total
   to be $0.
 * Kind Regards

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

The topic ‘Add via shortcode’ is closed to new replies.

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

## Tags

 * [paypal](https://wordpress.org/support/topic-tag/paypal/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 5 replies
 * 2 participants
 * Last reply from: [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/add-via-shortcode/#post-17722108)
 * Status: resolved