WordPress.org

Ready to get started?Download WordPress

Forums

Cart66 Lite :: WordPress Ecommerce
Add To Cart shortcode doesn't work in sidebar (9 posts)

  1. tonyzeoli
    Member
    Posted 2 years ago #

    I'm trying to include the Add To Cart shortcode in a sidebar widget, but it doesn't work and only shows the code itself.

    Any ideas?

    http://wordpress.org/extend/plugins/cart66-lite/

  2. zex2911
    Member
    Posted 2 years ago #

    Add this to your functions.php

    // Use shortcodes in text widgets.
    add_filter('widget_text', 'do_shortcode');
  3. tonyzeoli
    Member
    Posted 2 years ago #

    Great, thanks!

  4. Erikaj
    Member
    Posted 1 year ago #

    Hi zex2911,

    I am having a similar issue. The shortcode [ceckout_paypal] is not rendering on my page. Can you help?

  5. zex2911
    Member
    Posted 1 year ago #

    Are you sure you wrote it properly? I mean, [checkout_paypal]? This can be of assistance, but you know where to put it. I don't have enough details from you to help you, but you can try putting it under 'the content' in your single.php or your page.php

    <?php echo do_shortcode( '[checkout_paypal]' ); ?>
  6. Erikaj
    Member
    Posted 1 year ago #

    Thank you for responding.

    Here's some more information. I am creating a sort of squeeze page and want people to be able to click the "buy now" paypal button to process their order, i'm only selling one thing so i'm not using the usual store set up, hence the shortcode. I have the understanding that i am able to put [checkout_paypal] shortcode to create this button, according to the documentation for this plugin (http://cart66.com/cart66lite-documentation.pdf)

    Here's what's happened so far, the button has only appeared on my page AFTER i tested to see if the cart66lite [add_to_cart item="X"] shortcode works, which it does. It seems to make the [checkout_paypal] shortcode show up but only sometimes. But even if it does, it just disappears ten minutes later. If i place the [checkout_paypal] shortcode on the page alone, it just simply doesn't render. I know the [checkout_paypal] shortcode is somewhat functional though, because i've been able to make a purchase and download my product. But then it just disappears and doesn't come back. The shortcode shows in the visual editor but is not rendering on the page once published. I completely lost in this, not sure if it's the code around the shortcode, but if it is then why does the other shortcode work? Here is what the HTML editor shows around the [checkout_paypal] shortcode: "</span></p>
    <p>[checkout_paypal]</p>
    <p>"

  7. deeve007
    Member
    Posted 1 year ago #

    Having the same issue...

  8. zex2911
    Member
    Posted 1 year ago #

    Go to cart66 web site, scroll down to number 4 and find paypal settings. Compare those settings with yours, and hopefully that will help you.

  9. deeve007
    Member
    Posted 1 year ago #

    That screen is for paypal pro or express. The [checkout_paypal] shortcode is for use with paypal standard, where in the settings screen you just need to enter your paypal account email, plus various page URLs (shopping, return ...etc).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic