Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter advian

    (@advian)

    Hi Sybre, thanks for reaching out. The code above threw an error:

    PHP Fatal error:  Uncaught Error: Call to undefined function wp_get_current_user() in wp-includes/capabilities.php:1073

    So I wrapped the code:

    add_action(
    	'plugins_loaded',
    	function() {
    		if ( is_admin() && ! is_super_admin() )
    			define( 'THE_SEO_FRAMEWORK_HEADLESS', true );
    	},
    	4
    );

    With this plugin enabled a user with the shop manager role can still see and change SEO stuff, e.g. when editing a page. I also tried setting the constant in the wp-config.php.

    But also, I’m not sure if we understand each other, since I want to achieve that a specific user can ONLY see and change SEO data. I don’t want to hide SEO data, I want to hide everything else. I want that the SEO agency doesn’t get access to anything except SEO-relevant areas.

    Thread Starter advian

    (@advian)

    Is there a way to use varies without setting cookies? Could you explain a scenario where environment variables would be helpful?

    And can I set the rewrite rule within the plugin? If not, it would be a nice feature to integrate I think ??

    Thanks for the tip with creating dynamic content by settings cookies and processing them with JS!

    Thread Starter advian

    (@advian)

    @aweissinpsyde Why did you just copy and paste your previous answer after 5 weeks of no response?

    Please have a look at my last message.

    Multiple emails are sent, because the customer is redirected to the cart which still contains all the items when he cancels or fails the PayPal payment, even though the order is already done at this point. He can then order again and another email is sent. Instead, the cart should be empty already and the customer should be redirected to the order confirmation page.

    • This reply was modified 4 years, 5 months ago by advian.
    Thread Starter advian

    (@advian)

    I found out that I can easily reproduce the problem. When I check out with PayPal and cancel the PayPal payment process, I’m redirected to the cart which still contains all items, even though the order already exists in the WooCommerce admin area (the order confirmation email also has already been sent). When I check out again, another order confirmation email is sent, with the same order number. By canceling the PayPal payment process again, I can repeat this as often as I want. So every time when the payment process canceled and started again, a new order confirmation email is sent.
    I’m asking myself: Why is the cart not empty? The order is already done so it should be empty.

    Thread Starter advian

    (@advian)

    Hi, it’s the latter, WooCommerce order notifications emails are sent multiple times.
    Here are the screenshots of the order notes of 3 orders where it occurred: https://imgur.com/a/8q2JQgS

    As you can see in the order notes IPN is used. I’m not sure where I had to look up if I have IPN and PDT enabled, but I found the following settings in my PayPal account and it shows that both PDT and IPN are disabled, and I wonder why it says IPN is disabled, since the order notes are mentioning it:
    Screenshot of PDT Settings: https://i.imgur.com/K7ZULFv.jpg
    Screenshot of IPN Settings: https://i.imgur.com/Wo144Hn.jpg

    Also, I just found out that I can easily reproduce the problem. When I check out with PayPal and cancel the PayPal payment process, I’m redirected to the cart which still contains all items, even though the order already exists in the WooCommerce admin area (the order confirmation email also has already been sent). When I check out again, another order confirmation email is sent, with the same order number. By canceling the PayPal payment process again, I can repeat this as often as I want. So every time when the payment process canceled and started again, a new order confirmation email is sent.
    I’m asking myself: Why is the cart not empty? The order is already done so it should be empty.

    Thank you!

    Here’s the system status:

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://l***m.com
    Site address (URL): https://l***m.com
    WC Version: 4.0.1
    REST API Version: ? 1.0.7
    WC Blocks Version: ? 2.5.14
    Action Scheduler Version: ? 3.1.4
    WC Admin Version: ? 1.0.3
    Log Directory Writable: ?
    WP Version: 5.4
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: de_DE
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.4.5
    PHP Post Max Size: 32 MB
    PHP Time Limit: 60
    PHP Max Input Vars: 1000
    cURL Version: 7.47.0
    OpenSSL/1.0.2g
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.29-0ubuntu0.16.04.1
    Max Upload Size: 16 MB
    Default Timezone is UTC: ? Default timezone is Europe/London - it should be UTC
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 4.0.1
    WC Database Prefix: h8h2ODY_
    Total Database Size: 6475.89MB
    Database Data Size: 5475.08MB
    Database Index Size: 1000.81MB
    h8h2ODY_woocommerce_sessions: Data: 2.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    h8h2ODY_woocommerce_order_items: Data: 1.52MB + Index: 0.20MB + Engine InnoDB
    h8h2ODY_woocommerce_order_itemmeta: Data: 11.52MB + Index: 5.03MB + Engine InnoDB
    h8h2ODY_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    h8h2ODY_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    h8h2ODY_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    h8h2ODY_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    h8h2ODY_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    h8h2ODY_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_actionscheduler_actions: Data: 0.45MB + Index: 0.48MB + Engine InnoDB
    h8h2ODY_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_actionscheduler_logs: Data: 0.25MB + Index: 0.20MB + Engine InnoDB
    h8h2ODY_aryo_activity_log: Data: 5.02MB + Index: 0.00MB + Engine InnoDB
    h8h2ODY_bulkuserdiscounts_base_prices: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_bulkuserdiscounts_bulk_prices: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_bulkuserdiscounts_roles: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_bulkuserdiscounts_users: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_comments: Data: 1.52MB + Index: 1.17MB + Engine InnoDB
    h8h2ODY_dpd_orders: Data: 114.52MB + Index: 0.00MB + Engine InnoDB
    h8h2ODY_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_newsletter: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_newsletter_emails: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    h8h2ODY_newsletter_sent: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    h8h2ODY_newsletter_stats: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_newsletter_user_logs: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    h8h2ODY_options: Data: 23.27MB + Index: 9.33MB + Engine InnoDB
    h8h2ODY_postmeta: Data: 543.53MB + Index: 444.94MB + Engine InnoDB
    h8h2ODY_posts: Data: 4456.64MB + Index: 23.34MB + Engine InnoDB
    h8h2ODY_social_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    h8h2ODY_statistics_exclusions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_statistics_historical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    h8h2ODY_statistics_pages: Data: 98.63MB + Index: 267.98MB + Engine InnoDB
    h8h2ODY_statistics_search: Data: 1.52MB + Index: 0.83MB + Engine InnoDB
    h8h2ODY_statistics_useronline: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    h8h2ODY_statistics_visit: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_statistics_visitor: Data: 147.66MB + Index: 201.14MB + Engine InnoDB
    h8h2ODY_termmeta: Data: 0.14MB + Index: 0.11MB + Engine InnoDB
    h8h2ODY_terms: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_term_relationships: Data: 24.33MB + Index: 11.42MB + Engine InnoDB
    h8h2ODY_term_taxonomy: Data: 0.11MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_usermeta: Data: 16.55MB + Index: 12.92MB + Engine InnoDB
    h8h2ODY_users: Data: 0.25MB + Index: 0.23MB + Engine InnoDB
    h8h2ODY_vtprd_purchase_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_vtprd_purchase_log_product: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_vtprd_purchase_log_product_rule: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    h8h2ODY_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_wc_category_lookup: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    h8h2ODY_wc_customer_lookup: Data: 1.52MB + Index: 1.81MB + Engine InnoDB
    h8h2ODY_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_wc_gpf_render_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_wc_order_coupon_lookup: Data: 0.23MB + Index: 0.27MB + Engine InnoDB
    h8h2ODY_wc_order_product_lookup: Data: 4.52MB + Index: 5.03MB + Engine InnoDB
    h8h2ODY_wc_order_stats: Data: 2.52MB + Index: 3.41MB + Engine InnoDB
    h8h2ODY_wc_order_tax_lookup: Data: 1.52MB + Index: 0.94MB + Engine InnoDB
    h8h2ODY_wc_product_meta_lookup: Data: 4.52MB + Index: 4.95MB + Engine InnoDB
    h8h2ODY_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    h8h2ODY_woocommerce_gpf_google_taxonomy: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    h8h2ODY_woocommerce_gzd_dhl_labelmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_woocommerce_gzd_dhl_labels: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_woocommerce_gzd_shipmentmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_woocommerce_gzd_shipments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_woocommerce_gzd_shipment_itemmeta: Data: 0.11MB + Index: 0.13MB + Engine InnoDB
    h8h2ODY_woocommerce_gzd_shipment_items: Data: 0.13MB + Index: 0.06MB + Engine InnoDB
    h8h2ODY_woocommerce_gzd_shipping_provider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    h8h2ODY_woocommerce_gzd_shipping_providermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    h8h2ODY_yith_wcwl: Data: 1.52MB + Index: 0.36MB + Engine InnoDB
    h8h2ODY_yith_wcwl_lists: Data: 1.52MB + Index: 1.52MB + Engine InnoDB
    h8h2ODY_yoast_seo_links: Data: 3.13MB + Index: 1.50MB + Engine InnoDB
    h8h2ODY_yoast_seo_meta: Data: 1.50MB + Index: 0.00MB + Engine InnoDB
    jvb85DD55_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jvb85DD55_comments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    jvb85DD55_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jvb85DD55_options: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jvb85DD55_postmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jvb85DD55_posts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    jvb85DD55_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jvb85DD55_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jvb85DD55_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    jvb85DD55_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jvb85DD55_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    jvb85DD55_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    attachment: 2302
    blocks: 23
    catalog_pricing_rule: 1
    customize_changeset: 3
    invoice: 929
    jetpack_migration: 2
    jp_img_sitemap: 2
    jp_img_sitemap_index: 1
    jp_sitemap: 1
    jp_sitemap_master: 1
    nav_menu_item: 11
    oembed_cache: 2
    page: 18
    post: 5
    product: 8007
    product_variation: 15367
    revision: 2648
    shop_coupon: 138
    shop_order: 25459
    shop_order_refund: 1337
    wp-rest-api-log: 47870
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (24) ###
    
    Activity Log: by Activity Log Team – 2.5.2
    WooCommerce Bulk & User Discounts: by AS – 1.0.0 – Not tested with the active version of WooCommerce
    Cookie Notice: by dFactory – 1.3.1
    WooCommerce Cost Savings & Amortization: by AS – 1.0.0 – Not tested with the active version of WooCommerce
    DPD Versandetikett Plugin WooCommerce: by eMoose GmbH – 2.3 – Not tested with the active version of WooCommerce
    Enable Media Replace: by ShortPixel – 3.3.11
    Limit Login Attempts Reloaded: by WPChef – 2.10.1
    Media Deduper Pro: by Cornershop Creative – 1.1.0
    Newsletter: by Stefano Lissa & The Newsletter Team – 6.5.9
    Two Factor: by Plugin Contributors – 0.5.1
    User Role Editor: by Vladimir Garagulya – 4.53.1
    Vendidero Helper: by Vendidero – 1.3.0
    PayPal PLUS for WooCommerce: by Inpsyde GmbH – 2.2.0 – Not tested with the active version of WooCommerce
    WooCommerce Search by Product SKU: by Clayton Kriesel [Three Remain Production] – 1.0 – Not tested with the active version of WooCommerce
    Germanized for WooCommerce Pro: by Vendidero – 2.0.15
    Germanized for WooCommerce: by Vendidero – 3.1.5
    WooCommerce Google Ads Conversion Tracking: by Wolf+B?r Agency – 1.6.3
    WooCommerce Google Analytics Integration: by WooCommerce – 1.4.20
    WooCommerce Google Ads Dynamic Remarketing: by Wolf+B?r Agency – 1.7.15
    WooCommerce Google Product Feed: by Ademti Software Ltd. – 8.1.0
    WooCommerce: by Automattic – 4.0.1
    Yoast SEO: by Team Yoast – 13.4.1
    REST API Log: by Pete Nelson – 1.6.7
    WP Statistics: by VeronaLabs – 12.6.12
    
    ### Inactive Plugins (1) ###
    
    Phoenix Media Rename: by crossi72 – 1.3.6
    
    ### Dropin Plugins (1) ###
    
    maintenance.php: maintenance.php
    
    ### Must Use Plugins (1) ###
    
    Mark GPF fields as pre-populatable: by Ademti Software – 1.0
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: ?
    Currency: EUR (€)
    Currency Position: right_space
    Thousand Separator: .
    Decimal Separator: ,
    Number of Decimals: 2
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)
    
    Connected to WooCommerce.com: ?
    
    ### WC Pages ###
    
    Shop base: #4 - /shop/
    Cart: #5 - /warenkorb/
    Checkout: #6 - /kasse/
    My account: #7 - /mein-konto/
    Terms and conditions: #395 - /agb/
    
    ### Theme ###
    
    Name: Flatsome Child
    Version: 3.0.9
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Flatsome
    Parent Theme Version: 3.11.0
    Parent Theme Author URL: https://www.uxthemes.com/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart-shipping.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/terms.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-product_cat.php
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/content-widget-product.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/woocommerce/product-searchform.php
    flatsome/woocommerce/single-product/photoswipe.php
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/rating.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome/woocommerce/single-product.php
    
    ### WooCommerce Google Product Feed fields ###
    
    Product description: Main product description (full preferred) plus variation description.
    Availability: Defaults to "in stock".
    Brand: Defaults to "L***m".
    Manufacturer Part Number (MPN): Pre-populates from product sku.
    Product Type: Pre-populates from product_cat taxonomy.
    Google Product Category: 
    Size system: 
    Energy efficiency class: Pre-populates from pa_energieeffizienzklasse taxonomy.
    
    ### WooCommerce Google Product Feed options ###
    
    Include variations in feed: Enabled
    Send item_group_id: No
    
    ### Action Scheduler ###
    
    Complete: 5,142
    Oldest: 2020-03-31 15:48:27 +0200
    Newest: 2020-04-21 11:40:52 +0200
    
    
    Thread Starter advian

    (@advian)

    @quantum17 & @idreamofbikini: Did you make progress or solve the issue?

    @mycbgenie Since I didn’t import but created/duplicated single products, I don’t know how the layered nav count could get locked. But do you know how to unlock it manually?

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