• I have been trying to design my download page and I used short code [download_checkout]. When I tested it I saw that when I am logged in the form of checkout shows in page
    where I put sgortcode but for logged out user the checkout and cart shortcode shows Empty cart.

    I have already checked by deactivating all plugins
    Removed Cache plugin
    Checked with twenty seventeen theme.

    But No Luck.

    Please tell me if I am missing anything

    System Info:

    ### Begin System Info (Generated 2018-11-24 13:06:35) ###

    — Site Info

    Site URL: https://www.jerryacuff.com
    Home URL: https://www.jerryacuff.com
    Multisite: No

    — Hosting Provider

    Host: WP Engine

    — User Browser

    Platform: Windows
    Browser Name: Chrome
    Browser Version: 70.0.3538.102
    User Agent String: Mozilla/5.0 (Windows NT 10.0; Wi
    n64; x64) AppleWebKit/537.36 (KH
    TML, like Gecko) Chrome/70.0.353
    8.102 Safari/537.36

    — WordPress Configuration

    Version: 4.9.8
    Language: en_US
    Permalink Structure: /%postname%/
    Active Theme: TheGem 3.1.0.1
    Show On Front: page
    Page On Front: HOME (#24905)
    Page For Posts: Unset
    ABSPATH: /nas/content/live/jerryacuff1/
    Remote Post: wp_remote_post() works
    Table Prefix: Length: 3 Status: Acceptable
    WP_DEBUG: Disabled
    Memory Limit: 40M
    Registered Post Stati: publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, refunded, failed, revoked, abandoned, processing, active, inactive, preapproval, cancelled

    — EDD Configuration

    Version: 2.9.8
    Upgraded From: None
    Test Mode: Enabled
    AJAX: Enabled
    Guest Checkout: Enabled
    Symlinks: Disabled
    Download Method: Direct
    Currency Code: USD
    Currency Position: before
    Decimal Separator: .
    Thousands Separator: ,
    Upgrades Completed: upgrade_payment_taxes,upgrade_customer_payments_association,upgrade_user_api_keys,remove_refunded_sale_logs,update_file_download_log_data,stripe_customer_id_migration,upgrade_mailchimp_api3,upgrade_mailchimp_api3_default_list,eddmc_304_interests_fix
    Download Link Expiration: hour(s)

    — EDD Page Configuration

    Checkout: Valid
    Checkout Page: https://www.jerryacuff.com/checkout/
    Success Page: https://www.jerryacuff.com/thank-you-offer/
    Failure Page: https://www.jerryacuff.com/checkout/transaction-failed/
    Downloads Slug: /downloads

    — EDD Gateway Configuration

    Enabled Gateways: Stripe
    Default Gateway: Stripe

    — EDD Tax Configuration

    Taxes: Disabled
    Tax Rate: 0
    Display On Checkout: Not Displayed
    Prices Include Tax: No

    — Must-Use Plugins

    Force Strong Passwords – WPE Edition: 1.6.4
    ManageWP – Worker Loader:
    Stop long comments: 0.0.4
    WP Engine System: 3.2.1

    — WordPress Active Plugins

    Akismet Anti-Spam: 4.1
    Better Search Replace: 1.3.2
    Black Studio TinyMCE Widget: 2.6.3
    Easy Digital Downloads: 2.9.8
    Easy Digital Downloads – MailChimp: 3.0.11
    Easy Digital Downloads – Stripe Payment Gateway: 2.6.16
    Easy Forms for MailChimp: 6.4.9
    Evergreen Countdown Timer PRO: 1.1.1
    FormCraft: 3.5.3
    Google Analytics for WordPress by MonsterInsights: 7.3.0
    Head & Footer Code: 1.0.7
    HubSpot Tracking Code for WordPress: 1.2.2
    LayerSlider WP: 6.7.6
    MailChimp for WordPress: 4.2.5
    ManageWP – Worker: 4.6.3
    Ninja Popups: 4.5.9
    Ninja Popups – Bars Pack: 1.1
    Really Simple SSL: 3.1.2
    Simple Sticky Footer: 1.3.5
    Slider Revolution: 5.4.8
    SSL Insecure Content Fixer: 2.7.1
    TheGem Import: 3.6.0
    TheGem Theme Elements: 3.6.0
    UpdraftPlus – Backup/Restore: 1.15.5
    WordPress Importer: 0.6.4
    Wordpress Page Widgets: 3.9
    WPBakery Page Builder: 5.5.5
    WP Maintenance Mode: 2.2.1
    Yoast SEO: 9.2.1

    — WordPress Inactive Plugins

    Duplicate Post: 3.2.2
    Elementor: 2.3.2
    Srizon Responsive Youtube Album Pro: 1.3.2

    — Webserver Configuration

    PHP Version: 7.0.32-4+ubuntu18.04.1+deb.sury.org+1
    MySQL Version: 5.7.23
    Webserver Info: Apache

    — PHP Configuration

    Memory Limit: 512M
    Upload Max Size: 50M
    Post Max Size: 100M
    Upload Max Filesize: 50M
    Time Limit: 3600
    Max Input Vars: 1000
    Display Errors: N/A
    PHP Arg Separator: &

    — PHP Extensions

    cURL: Supported
    fsockopen: Supported
    SOAP Client: Installed
    Suhosin: Not Installed

    — Session Configuration

    EDD Use Sessions: Enabled
    Session: Enabled
    Session Name: PHPSESSID
    Cookie Path: /
    Save Path: /var/lib/php/sessions
    Use Cookies: On
    Use Only Cookies: On

    ### End System Info ###

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @jasmeetsingh

    Thanks for posting all the info.

    I have checked the provided download page found that there is something with your site. Let me clear. When I go to download page then every thing works fine but when I go to your home page https://www.jerryacuff.com/ I am getting browser error “The page isn’t redirecting properly” and it does not open.

    I have debug the download page and found that when I click on purchase button it simply redirect. In AJAX response I am getting 301.

    It means your site /wp-admin/admin-ajax.php is not working due to browser error.

    You have to resolve this error first and confirm that admin-ajax.php is working.

    Sometimes due to some restriction plugin this happen.

    Have you checked by deactivating “WP Maintenance Mode: 2.2.1” plugin?

    Thread Starter jasmeetsingh

    (@jasmeetsingh)

    Hi there,
    Yes I have checked by deactivating all the plugins and also used basic theme.. But no help.

    Can you please guide me about how to get /wp-admin/admin-ajax.php rectified.

    What I did is I have added checkout shortcode in download page itself.

    So when person adds the product after 3 second the page reloads.. But the cart still shows empty. But when we open checkout page the product was added. So this clearly shows that shortcode is not working on any other page then the selected page of plugin(Like checkout , thankyou and all)

    WHAT I NEED IS to show the cart page in the download page itself. But the logged out user is not able to see info which is coming by shortcode if used in any page.

    Hi @jasmeetsingh,

    Thanks for the info.

    Now it looks like that your site AJAX is working.

    Now when I click on purchase button, page refresh and I can see product in checkout page https://www.jerryacuff.com/checkout/.

    [download_checkout] shortcode is used for checkout page. If you add this shortcode in page page then it is considered as a secondary checkout page of website and it looks same like your primary checkout page.

    Do you want to show your customer which product is added to your cart? so you are adding [download_checkout] shortcode in the same page.

    If I am right then you display EDD Cart Widget. This helps you to show the summery of your cart.
    Please refer the sidebar of the demo page https://easydigitaldownloads.com/vendd/downloads/sample-digital-download/

    OR,

    You can send customer to checkout page when they add product to cart.
    Please refer Plugin Settings > Misc tab > Redirect to Checkout

    See the demo of plugin so you will be more cleared about the checkout process
    https://easydigitaldownloads.com/demo/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shortcode not working for logged out users’ is closed to new replies.