Support » Plugin: WooCommerce » Not able to add more than one diffrent product is cart.

  • Abhay

    (@abhay-raj)


    i am trying to add prodcts in cart like this
    <?php
    $add_to_cart = do_shortcode(‘[add_to_cart_url id=”‘.$post->ID.'”]’);
    echo $add_to_cart;
    ?>

    but not able to add products in cart when i am trying to add next products that is empty added last only one product.

    following are the my woocommerce status.

    
    ### WordPress Environment ###
    
    WordPress address (URL): http://localhost/regio-new
    Site address (URL): http://localhost/regio-new
    WC Version: 3.7.0
    REST API Version: ✔ 1.0.2
    Log Directory Writable: ✔
    WP Version: 5.2.3
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: nl_NL
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache/2.4.39 (Win64) OpenSSL/1.1.1b PHP/7.3.5
    PHP Version: 7.3.5
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.64.0
    OpenSSL/1.1.1b
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.1.40-MariaDB
    Max Upload Size: 2 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.7.0
    WC Database Prefix: wp_
    MaxMind GeoIP Database: ✔
    Total Database Size: 3.63MB
    Database Data Size: 2.30MB
    Database Index Size: 1.33MB
    wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_options: Data: 1.23MB + Index: 0.05MB + Engine InnoDB
    wp_postmeta: Data: 0.30MB + Index: 0.14MB + Engine InnoDB
    wp_posts: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    
    ### Security ###
    
    Secure connection (HTTPS): ❌
    					Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ✔
    
    ### Active Plugins (7) ###
    
    Advanced Custom Fields PRO: by Elliot Condon – 5.7.10
    All-in-One WP Migration Unlimited Extension: by ServMask – 2.32
    All-in-One WP Migration: by ServMask – 7.8
    Classic Editor: by WordPress Contributors – 1.5
    R2 Api: by Radish Concepts – 1.2 – Not tested with the active version of WooCommerce
    Under Construction: by WebFactory Ltd – 3.55
    WooCommerce: by Automattic – 3.7.0
    
    ### Inactive Plugins (0) ###
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    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: #8 - /shop/
    Cart: #9 - /cart/
    Checkout: #10 - /checkout/
    My account: #11 - /my-account/
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: regio
    Version: 1.0
    Author URL: 
    Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: regio/woocommerce/archive-product.php
    regio/woocommerce/auth\footer.php
    regio/woocommerce/auth\form-grant-access.php
    regio/woocommerce/auth\form-login.php
    regio/woocommerce/auth\header.php
    regio/woocommerce/cart\cart-empty.php
    regio/woocommerce/cart\cart-item-data.php
    regio/woocommerce/cart\cart-shipping.php
    regio/woocommerce/cart\cart-totals.php
    regio/woocommerce/cart\cart.php
    regio/woocommerce/cart\cross-sells.php
    regio/woocommerce/cart\mini-cart.php
    regio/woocommerce/cart\proceed-to-checkout-button.php
    regio/woocommerce/cart\shipping-calculator.php
    regio/woocommerce/checkout\cart-errors.php
    regio/woocommerce/checkout\form-billing.php
    regio/woocommerce/checkout\form-checkout.php
    regio/woocommerce/checkout\form-coupon.php
    regio/woocommerce/checkout\form-login.php
    regio/woocommerce/checkout\form-pay.php
    regio/woocommerce/checkout\form-shipping.php
    regio/woocommerce/checkout\order-receipt.php
    regio/woocommerce/checkout\payment-method.php
    regio/woocommerce/checkout\payment.php
    regio/woocommerce/checkout\review-order.php
    regio/woocommerce/checkout\terms.php
    regio/woocommerce/checkout\thankyou.php
    regio/woocommerce/content-product.php
    regio/woocommerce/content-product_cat.php
    regio/woocommerce/content-single-product.php
    regio/woocommerce/content-widget-product.php
    regio/woocommerce/content-widget-reviews.php
    regio/woocommerce/emails\admin-cancelled-order.php
    regio/woocommerce/emails\admin-failed-order.php
    regio/woocommerce/emails\admin-new-order.php
    regio/woocommerce/emails\customer-completed-order.php
    regio/woocommerce/emails\customer-invoice.php
    regio/woocommerce/emails\customer-new-account.php
    regio/woocommerce/emails\customer-note.php
    regio/woocommerce/emails\customer-on-hold-order.php
    regio/woocommerce/emails\customer-processing-order.php
    regio/woocommerce/emails\customer-refunded-order.php
    regio/woocommerce/emails\customer-reset-password.php
    regio/woocommerce/emails\email-addresses.php
    regio/woocommerce/emails\email-customer-details.php
    regio/woocommerce/emails\email-downloads.php
    regio/woocommerce/emails\email-footer.php
    regio/woocommerce/emails\email-header.php
    regio/woocommerce/emails\email-order-details.php
    regio/woocommerce/emails\email-order-items.php
    regio/woocommerce/emails\email-styles.php
    regio/woocommerce/emails\plain\admin-cancelled-order.php
    regio/woocommerce/emails\plain\admin-failed-order.php
    regio/woocommerce/emails\plain\admin-new-order.php
    regio/woocommerce/emails\plain\customer-completed-order.php
    regio/woocommerce/emails\plain\customer-invoice.php
    regio/woocommerce/emails\plain\customer-new-account.php
    regio/woocommerce/emails\plain\customer-note.php
    regio/woocommerce/emails\plain\customer-on-hold-order.php
    regio/woocommerce/emails\plain\customer-processing-order.php
    regio/woocommerce/emails\plain\customer-refunded-order.php
    regio/woocommerce/emails\plain\customer-reset-password.php
    regio/woocommerce/emails\plain\email-addresses.php
    regio/woocommerce/emails\plain\email-customer-details.php
    regio/woocommerce/emails\plain\email-downloads.php
    regio/woocommerce/emails\plain\email-order-details.php
    regio/woocommerce/emails\plain\email-order-items.php
    regio/woocommerce/global\breadcrumb.php
    regio/woocommerce/global\form-login.php
    regio/woocommerce/global\quantity-input.php
    regio/woocommerce/global\sidebar.php
    regio/woocommerce/global\wrapper-end.php
    regio/woocommerce/global\wrapper-start.php
    regio/woocommerce/loop\add-to-cart.php
    regio/woocommerce/loop\loop-end.php
    regio/woocommerce/loop\loop-start.php
    regio/woocommerce/loop\no-products-found.php
    regio/woocommerce/loop\orderby.php
    regio/woocommerce/loop\pagination.php
    regio/woocommerce/loop\price.php
    regio/woocommerce/loop\rating.php
    regio/woocommerce/loop\result-count.php
    regio/woocommerce/loop\sale-flash.php
    regio/woocommerce/myaccount\dashboard.php
    regio/woocommerce/myaccount\downloads.php
    regio/woocommerce/myaccount\form-add-payment-method.php
    regio/woocommerce/myaccount\form-edit-account.php
    regio/woocommerce/myaccount\form-edit-address.php
    regio/woocommerce/myaccount\form-login.php
    regio/woocommerce/myaccount\form-lost-password.php
    regio/woocommerce/myaccount\form-reset-password.php
    regio/woocommerce/myaccount\lost-password-confirmation.php
    regio/woocommerce/myaccount\my-account.php
    regio/woocommerce/myaccount\my-address.php
    regio/woocommerce/myaccount\my-downloads.php
    regio/woocommerce/myaccount\my-orders.php
    regio/woocommerce/myaccount\navigation.php
    regio/woocommerce/myaccount\orders.php
    regio/woocommerce/myaccount\payment-methods.php
    regio/woocommerce/myaccount\view-order.php
    regio/woocommerce/notices\error.php
    regio/woocommerce/notices\notice.php
    regio/woocommerce/notices\success.php
    regio/woocommerce/order\form-tracking.php
    regio/woocommerce/order\order-again.php
    regio/woocommerce/order\order-details-customer.php
    regio/woocommerce/order\order-details-item.php
    regio/woocommerce/order\order-details.php
    regio/woocommerce/order\order-downloads.php
    regio/woocommerce/order\tracking.php
    regio/woocommerce/product-searchform.php
    regio/woocommerce/single-product\add-to-cart\external.php
    regio/woocommerce/single-product\add-to-cart\grouped.php
    regio/woocommerce/single-product\add-to-cart\simple.php
    regio/woocommerce/single-product\add-to-cart\variable.php
    regio/woocommerce/single-product\add-to-cart\variation-add-to-cart-button.php
    regio/woocommerce/single-product\add-to-cart\variation.php
    regio/woocommerce/single-product\meta.php
    regio/woocommerce/single-product\photoswipe.php
    regio/woocommerce/single-product\price.php
    regio/woocommerce/single-product\product-attributes.php
    regio/woocommerce/single-product\product-image.php
    regio/woocommerce/single-product\product-thumbnails.php
    regio/woocommerce/single-product\rating.php
    regio/woocommerce/single-product\related.php
    regio/woocommerce/single-product\review-meta.php
    regio/woocommerce/single-product\review-rating.php
    regio/woocommerce/single-product\review.php
    regio/woocommerce/single-product\sale-flash.php
    regio/woocommerce/single-product\share.php
    regio/woocommerce/single-product\short-description.php
    regio/woocommerce/single-product\stock.php
    regio/woocommerce/single-product\tabs\additional-information.php
    regio/woocommerce/single-product\tabs\description.php
    regio/woocommerce/single-product\tabs\tabs.php
    regio/woocommerce/single-product\title.php
    regio/woocommerce/single-product\up-sells.php
    regio/woocommerce/single-product-reviews.php
    regio/woocommerce/single-product.php
    regio/woocommerce/taxonomy-product_cat.php
    regio/woocommerce/taxonomy-product_tag.php
    
    ### Action Scheduler ###
    
    Complete: 0
    Oldest: –
    Newest: –
    
    Pending: 0
    Oldest: –
    Newest: –
    
    Canceled: 0
    Oldest: –
    Newest: –
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    
  • You must be logged in to reply to this topic.