Forum

Thread tagged as: Problem, Shop

Shop Cart not working

Hi,

There seems to be an error with my shopping cart as the rest of the page doesn't load when it gets to the cart. There's nothing in my error log and the rest seems to be working great. Any ideas?

Diagnostics:


Perch: 3.1.1 Production mode: Production (100) Installed apps: content (3.1.1), assets (3.1.1), categories (3.1.1), perch_blog (5.6.1), perch_shop_orders (1.2.6), perch_shop_products (1.2.6), perch_shop (1.2.6), perch_members (1.6.4) DB driver: PDO DB tables: perch3_blog_authors (1), perch3_blog_comments (0), perch3_blog_index (132), perch3_blog_posts (3), perch3_blog_posts_to_tags (0), perch3_blog_sections (1), perch3_blog_tags (0), perch3_blog_webmention_queue (0), perch3_blogs (1), perch3_categories (2), perch3_category_counts (0), perch3_category_sets (2), perch3_content_index (1979), perch3_content_items (117), perch3_content_regions (19), perch3_members (7), perch3_members_forms (2), perch3_members_member_tags (0), perch3_members_sessions (1), perch3_members_tags (2), perch3_menu_items (13), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_templates (1), perch3_pages (15), perch3_resource_log (1140), perch3_resource_tags (0), perch3_resources (490), perch3_resources_to_tags (0), perch3_settings (42), perch3_shop_addresses (74), perch3_shop_admin_index (122), perch3_shop_brands (1), perch3_shop_cart (3), perch3_shop_cart_data (98), perch3_shop_cart_items (40), perch3_shop_countries (250), perch3_shop_currencies (152), perch3_shop_customers (10), perch3_shop_emails (4), perch3_shop_index (1080), perch3_shop_option_values (0), perch3_shop_options (0), perch3_shop_order_items (32), perch3_shop_order_promotions (1), perch3_shop_order_statuses (9), perch3_shop_orders (16), perch3_shop_orders_meta (1), perch3_shop_product_files (0), perch3_shop_product_option_values (0), perch3_shop_product_options (0), perch3_shop_product_tags (0), perch3_shop_products (18), perch3_shop_promotions (1), perch3_shop_sales (0), perch3_shop_search (18), perch3_shop_shipping_zone_countries (1), perch3_shop_shipping_zones (1), perch3_shop_shippings (4), perch3_shop_tax_exhibits (31), perch3_shop_tax_group_rates (1), perch3_shop_tax_groups (1), perch3_shop_tax_locations (1), perch3_shop_tax_rates (1), perch3_shop_variants (0), perch3_user_passwords (1), perch3_user_privileges (76), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1) Users: 1 App runtimes: <?php $apps_list = [ 'perch_blog', 'perch_members', 'perch_shop', ]; Scheduled tasks for perch_blog: delete_spam_comments (1440 mins), publish_posts (1 mins), process_webmentions (1 mins) Editor plug-ins: H1: db33dca29a7603f9def607b3b42078f8 L1: 89628fba18b92a489a843f44574a757b F1: 3b606135b33e6a102526838f4152a807 headerColour: #ffffff content_singlePageEdit: 1 helpURL: siteURL: / hideBranding: 1 content_collapseList: 1 lang: en-gb installedAt: 3.0.12 update_3.0.12: done latest_version: on_sale_version: perch_shop_update: 1.2.6 headerScheme: light perch_shop_price_tax_mode: inc perch_shop_product_url: product/{slug} perch_shop_default_currency: 47 perch_shop_reporting_currency: 47 perch_shop_invoice_number_format: Invoice%d perch_members_login_page: login.php?r={returnURL} perch_blog_site_name: perch_blog_post_url: post.php?s={postSlug} perch_blog_slug_format: %Y-%m-%d-{postTitle} perch_blog_akismet_key: perch_blog_max_spam_days: 0 dashboard: 1 sidebar_back_link: 0 hide_pwd_reset: 0 keyboardShortcuts: 0 content_hideNonEditableRegions: 0 content_frontend_edit: 0 content_skip_region_list: 0 assets_restrict_buckets: 0 perch_blog_comment_notify: 0 perch_blog_webmention_tx: 0 perch_blog_webmention_rx: 0 perch_blog_update: 5.6 perch_members_update: 1.4 logoPath: /files/logo2x.png perch_shop_site_url: https://www.designeroutdoorlighting.co.uk update_3.0.14: done update_3.1.1: done PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: designerlighting PERCH_DB_SERVER: 213.171.200.97 PERCH_DB_DATABASE: outdoorlighting PERCH_DB_PREFIX: perch3_ PERCH_TZ: UTC PERCH_EMAIL_FROM: sales@designeroutdoorlighting.co.uk PERCH_EMAIL_FROM_NAME: Designer Outdoor Lighting PERCH_LOGINPATH: /admin PERCH_PATH: /home/hp3-linc4-nfs1-w/935/1669935/user/htdocs/admin PERCH_CORE: /home/hp3-linc4-nfs1-w/935/1669935/user/htdocs/admin/core PERCH_RESFILEPATH: /home/hp3-linc4-nfs1-w/935/1669935/user/htdocs/files PERCH_RESPATH: /files PERCH_HTML5: 1 PERCH_EMAIL_METHOD: mail PERCH_DEBUG: 1 PERCH_RUNWAY: PERCH_ERROR_MODE: DIE PERCH_DATE_LONG: %d %B %Y PERCH_DATE_SHORT: %d %b %Y PERCH_TIME_SHORT: %H:%M PERCH_TIME_LONG: %H:%M:%S PERCH_RUNWAY_ROUTED: PERCH_STRONG_PASSWORDS: PERCH_ASSET_VERSION: 8255e4c4a367cfa3e2bd PERCH_PREVIEW_ARG: preview PERCH_TEMPLATE_PATH: /home/hp3-linc4-nfs1-w/935/1669935/user/htdocs/admin/templates PERCH_TEMPLATE_FILTERS: PERCH_DEFAULT_DOC: index.php PERCH_DEFAULT_EXT: .php PERCH_PRODUCTION_MODE: 100 PERCH_XHTML_MARKUP: PERCH_RWD: 1 PERCH_HTML_ENTITIES: PERCH_SSL: PERCH_STRIPSLASHES: PERCH_PROGRESSIVE_FLUSH: 1 PERCH_PARANOID: PERCH_FORCE_SECURE_COOKIES: PERCH_DEFAULT_BUCKET: default PERCH_TRANSLATION_ASSIST: PERCH_PASSWORD_MIN_LENGTH: 6 PERCH_MAX_FAILED_LOGINS: 10 PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR PERCH_VERIFY_UPLOADS: PERCH_PRIV_ASSIST: PERCH_CUSTOM_EDITOR_CONFIGS: PERCH_ENABLE_EXIF: 1 PERCH_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: PERCH_SHOP_VERSION: 1.2.6 PERCH_APPS_EDITOR_PLUGIN: markitup PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown Hosting settings PHP: 7.0.32 Zend: 3.0.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: 5.5.60-MariaDB MySQL server: 5.6.42-log Free disk space: 83.88 GB Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, curl, hash, fileinfo, filter, ftp, gettext, gmp, SPL, iconv, intl, pcntl, session, standard, posix, readline, Reflection, Phar, shmop, SimpleXML, sockets, mbstring, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, cgi-fcgi, bcmath, dba, dom, gd, imap, json, ldap, exif, mcrypt, memcached, mysqli, odbc, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, pspell, snmp, soap, tidy, xmlreader, xmlrpc, xmlwriter, xsl, zip, ionCube Loader, Zend OPcache GD: Yes ImageMagick: No PHP max upload size: 20M PHP max form post size: 20M PHP memory limit: 128M Total max uploadable file size: 20M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: Yes PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin PWD: /var/www/fcgi PHP_FCGI_MAX_REQUESTS: 100 ORIG_SCRIPT_NAME: /fcgi-bin/php70-cgi ORIG_PATH_TRANSLATED: /home/hp3-linc4-nfs1-w/935/1669935/user/htdocs/admin/core/settings/diagnostics/index.php ORIG_PATH_INFO: /admin/core/settings/diagnostics/index.php ORIG_SCRIPT_FILENAME: /var/www/fcgi/php70-cgi SCRIPT_NAME: /admin/core/settings/diagnostics/index.php REQUEST_URI: /admin/core/settings/diagnostics/?extended QUERY_STRING: extended REQUEST_METHOD: GET SERVER_PROTOCOL: HTTP/1.0 GATEWAY_INTERFACE: CGI/1.1 REDIRECT_URL: /admin/core/settings/diagnostics/index.php REDIRECT_QUERY_STRING: extended REMOTE_PORT: 37981 SCRIPT_FILENAME: /home/hp3-linc4-nfs1-w/935/1669935/user/htdocs/admin/core/settings/diagnostics/index.php SERVER_ADMIN: admin@designeroutdoorlighting.co.uk CONTEXT_DOCUMENT_ROOT: /var/www/fcgi/ CONTEXT_PREFIX: /fcgi-bin/ REQUEST_SCHEME: https DOCUMENT_ROOT: /home/hp3-linc4-nfs1-w/935/1669935/user/htdocs REMOTE_ADDR: 91.103.188.194 SERVER_PORT: 443 SERVER_ADDR: 10.10.110.3 SERVER_NAME: www.designeroutdoorlighting.co.uk SERVER_SOFTWARE: Apache HTTP_UPGRADE_INSECURE_REQUESTS: 1 HTTP_COOKIE: _ga=GA1.3.750309332.1536666542; cookieconsent_status=allow; cmsa=1; PHPSESSID=s3s32m6sh4ij706mpi8hr9deb6; _gid=GA1.3.824626820.1540810278 HTTP_REFERER: https://www.designeroutdoorlighting.co.uk/admin/core/settings/diagnostics/ HTTP_ACCEPT_ENCODING: gzip, deflate, br HTTP_ACCEPT_LANGUAGE: en-GB,en;q=0.5 HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0 HTTP_CONNECTION: close HTTP_X_URL_SCHEME: https HTTP_X_FORWARDED_PROTO: https HTTP_X_REAL_IP: 91.103.188.194 HTTP_X_FORWARDED_HOST: www.designeroutdoorlighting.co.uk HTTP_HOST: www.designeroutdoorlighting.co.uk SSL_SESSION_RESUMED: Resumed SSL_SESSION_ID: 0b36db6dd4151275386c81593416b5433766c96918004df7f225232cb2feb24a SSL_SERVER_A_SIG: sha256WithRSAEncryption SSL_SERVER_A_KEY: rsaEncryption SSL_SERVER_I_DN: CN=clusteredwebhosting.hostingp3.local,L=Gloucester,ST=Gloucestershire,OU=NOC,O=Fasthosts Internet Limited,C=GB SSL_SERVER_S_DN: CN=clusteredwebhosting.hostingp3.local,L=Gloucester,ST=Gloucestershire,OU=NOC,O=Fasthosts Internet Limited,C=GB SSL_SERVER_V_END: Aug 8 15:17:29 2019 GMT SSL_SERVER_V_START: Aug 8 15:17:29 2018 GMT SSL_SERVER_M_SERIAL: E5E20F616EFF285D SSL_SERVER_M_VERSION: 1 SSL_CLIENT_VERIFY: NONE SSL_CIPHER_ALGKEYSIZE: 256 SSL_CIPHER_USEKEYSIZE: 256 SSL_CIPHER_EXPORT: false SSL_CIPHER: ECDHE-RSA-AES256-GCM-SHA384 SSL_COMPRESS_METHOD: NULL SSL_SECURE_RENEG: true SSL_PROTOCOL: TLSv1.2 SSL_VERSION_LIBRARY: OpenSSL/1.0.2k-fips SSL_VERSION_INTERFACE: mod_ssl/2.4.6 SSL_SERVER_I_DN_CN: clusteredwebhosting.hostingp3.local SSL_SERVER_I_DN_L: Gloucester SSL_SERVER_I_DN_ST: Gloucestershire SSL_SERVER_I_DN_OU: NOC SSL_SERVER_I_DN_O: Fasthosts Internet Limited SSL_SERVER_I_DN_C: GB SSL_SERVER_S_DN_CN: clusteredwebhosting.hostingp3.local SSL_SERVER_S_DN_L: Gloucester SSL_SERVER_S_DN_ST: Gloucestershire SSL_SERVER_S_DN_OU: NOC SSL_SERVER_S_DN_O: Fasthosts Internet Limited SSL_SERVER_S_DN_C: GB HTTPS: on UNIQUE_ID: W9gqIwmVjsbqP4JqnYHrdQAAAAE REDIRECT_STATUS: 200 REDIRECT_HANDLER: application/x-httpd-php70 REDIRECT_SSL_SESSION_RESUMED: Resumed REDIRECT_SSL_SESSION_ID: 0b36db6dd4151275386c81593416b5433766c96918004df7f225232cb2feb24a REDIRECT_SSL_SERVER_A_SIG: sha256WithRSAEncryption REDIRECT_SSL_SERVER_A_KEY: rsaEncryption REDIRECT_SSL_SERVER_I_DN: CN=clusteredwebhosting.hostingp3.local,L=Gloucester,ST=Gloucestershire,OU=NOC,O=Fasthosts Internet Limited,C=GB REDIRECT_SSL_SERVER_S_DN: CN=clusteredwebhosting.hostingp3.local,L=Gloucester,ST=Gloucestershire,OU=NOC,O=Fasthosts Internet Limited,C=GB REDIRECT_SSL_SERVER_V_END: Aug 8 15:17:29 2019 GMT REDIRECT_SSL_SERVER_V_START: Aug 8 15:17:29 2018 GMT REDIRECT_SSL_SERVER_M_SERIAL: E5E20F616EFF285D REDIRECT_SSL_SERVER_M_VERSION: 1 REDIRECT_SSL_CLIENT_VERIFY: NONE REDIRECT_SSL_CIPHER_ALGKEYSIZE: 256 REDIRECT_SSL_CIPHER_USEKEYSIZE: 256 REDIRECT_SSL_CIPHER_EXPORT: false REDIRECT_SSL_CIPHER: ECDHE-RSA-AES256-GCM-SHA384 REDIRECT_SSL_COMPRESS_METHOD: NULL REDIRECT_SSL_SECURE_RENEG: true REDIRECT_SSL_PROTOCOL: TLSv1.2 REDIRECT_SSL_VERSION_LIBRARY: OpenSSL/1.0.2k-fips REDIRECT_SSL_VERSION_INTERFACE: mod_ssl/2.4.6 REDIRECT_SSL_SERVER_I_DN_CN: clusteredwebhosting.hostingp3.local REDIRECT_SSL_SERVER_I_DN_L: Gloucester REDIRECT_SSL_SERVER_I_DN_ST: Gloucestershire REDIRECT_SSL_SERVER_I_DN_OU: NOC REDIRECT_SSL_SERVER_I_DN_O: Fasthosts Internet Limited REDIRECT_SSL_SERVER_I_DN_C: GB REDIRECT_SSL_SERVER_S_DN_CN: clusteredwebhosting.hostingp3.local REDIRECT_SSL_SERVER_S_DN_L: Gloucester REDIRECT_SSL_SERVER_S_DN_ST: Gloucestershire REDIRECT_SSL_SERVER_S_DN_OU: NOC REDIRECT_SSL_SERVER_S_DN_O: Fasthosts Internet Limited REDIRECT_SSL_SERVER_S_DN_C: GB REDIRECT_HTTPS: on REDIRECT_UNIQUE_ID: W9gqIwmVjsbqP4JqnYHrdQAAAAE FCGI_ROLE: RESPONDER PHP_SELF: /admin/core/settings/diagnostics/index.php REQUEST_TIME_FLOAT: 1540893219.4396 REQUEST_TIME: 1540893219
Jade Marling

Jade Marling 0 points

  • 2 years ago

Can I please have a reply? My shop is down and I'm losing business

Hussein Al Hammad

Hussein Al Hammad 105 points
Registered Developer

Hello Jade,

Can you share your code for the cart page? It seems to be working ok for me.

mini-cart.html


<!-- shopping cart start --> <div class="cart link-inline"> <div class="dropdown text-right"> <a class="dropdown-toggle "> <perch:if id="product_count" match="gt" value="0"> <span class="badge badge--cart"><perch:shop id="item_count" /></span> <span class="icon icon-shopping_basket"></span> <span class="name-text">My Cart</span> </a> <div class="dropdown-menu dropdown-menu--xs-full slide-from-top" role="menu"> <div class="container"> <div class="cart__top">Recently added item(s)</div> <a href="#" class="icon icon-close cart__close"><span>CLOSE</span></a> <ul> <perch:cartitems> <li class="cart__item"> <div class="cart__item__image pull-left"><a href="product/<perch:cartitem id="slug"/>"><img src="<perch:cartitem id="image" type="image" width="80" height="80" density="1.6" crop="true"/>" alt=""/></a></div> <div class="cart__item__control"> <div class="cart__item__delete"><a href="#" class="icon icon-delete"><span>Delete</span></a></div> </div> <div class="cart__item__info"> <div class="cart__item__info__title"> <h2><a href="product/<perch:cartitem id="slug"/>"><perch:cartitem id="title" /></a></h2> </div> <div class="cart__item__info__price"><span class="info-label">Price:</span><perch:cartitem id="total_without_tax_formatted" /></div> <div class="cart__item__info__qty"><span class="info-label">Qty:</span><perch:cartitem id="quantity" /></div> </div> </li> </perch:cartitems> </ul> <div class="cart__bottom"> <div class="cart__total">Cart subtotal: <span> <perch:shop id="total_items_discounted_formatted" /></span></div> <a href="checkout.php" class="btn btn--ys btn-checkout">Checkout <span class="icon icon--flippedX icon-reply"></span></a> <a href="cart.php" class="btn btn--ys"><span class="icon icon-shopping_basket"></span> View Cart</a> </div> </div> </div> </div> </div> <!-- shopping cart end -->

cart.html

<!-- breadcrumbs -->
        <div class="breadcrumbs">
            <div class="container">
                <ol class="breadcrumb breadcrumb--ys pull-left">
                    <li class="home-link"><a href="index.php" class="icon icon-home"></a></li>                  
                    <li><a href="shop.php">Shop</a></li>
                    <li class="active">Cart</li>
                </ol>
            </div>
        </div>
        <!-- /breadcrumbs --> 
        <!-- CONTENT section -->
        <div id="pageContent">
            <div class="container">             
                <!-- title -->
                <perch:if id="product_count" match="gt" value="0">
    <perch:form id="cart" app="perch_shop">
                <div class="title-box">
                    <h1 class="text-center text-uppercase title-under">YOUR CART (<perch:shop id="item_count" />)</h1>
                </div>
                <!-- /title -->     
                <!-- Shopping cart table -->
                <div class="container-widget">
                    <table class="shopping-cart-table">
                        <thead>
                            <tr>
                                <th>Product</th>
                                <th>&nbsp;</th>
                                <th>&nbsp;</th>
                                <th>Unit Price</th>
                                <th>Qty</th>
                                <th>Subtotal</th>
                                <th>&nbsp;</th>
                            </tr>
                        </thead>
                        <tbody>
                            <perch:cartitems>
                            <tr>
                                <td>
                                    <div class="shopping-cart-table__product-image">
                                        <a href="product/<perch:cartitem id="slug"/>">
                                            <img class="img-responsive" src="<perch:cartitem id="image" type="image" width="80" height="80" density="1.6" crop="true" />" alt="<perch:cartitem id="title" />" width="80" height="80">
                                        </a>
                                    </div>
                                </td>
                                <td>
                                    <h5 class="shopping-cart-table__product-name text-left text-uppercase">
                                        <perch:cartitem id="sku"  />
                                        <a href="product/<perch:cartitem id="slug"/>"><perch:cartitem id="title" /></a>
                                    </h5>
                                    <ul class="shopping-cart-table__list-parameters">

                                        <li class="visible-xs">
                                            <span>Price:</span>
                                            <span class="price-mobile"><perch:cartitem id="price_without_tax_formatted" /></span>
                                        </li>
                                        <li class="visible-xs">
                                            <span>Qty:</span>
                                            <!--  -->
                                            <div class="number input-counter">
                                                <perch:input id="qty:<perch:cartitem id="identifier" />" value="<perch:cartitem id="quantity" />" type="number" min="0" />
                                            </div>
                                            <!-- / -->
                                        </li>
                                    </ul>                                                                               
                                </td>
                                <td>

                                </td>
                                <td>
                                    <div class="shopping-cart-table__product-price unit-price">
                                        <perch:cartitem id="price_without_tax_formatted" />
                                    </div>
                                </td>
                                <td>
                                    <div class="shopping-cart-table__input">
                                        <!--  -->
                                        <div class="number input-counter">
                                           <perch:input id="qty:<perch:cartitem id="identifier" />" value="<perch:cartitem id="quantity" />" type="number" min="0" />
                                        </div>
                                        <!-- / -->
                                    </div>                              
                                </td>
                                <td>
                                    <div class="shopping-cart-table__product-price subtotal">
                                        <perch:cartitem id="total_without_tax_formatted" />
                                    </div>
                                </td>
                                <td>
                                    <button type="submit" class="remove_cart" name="del:<perch:cartitem id="identifier" />" value="1" class="shopping-cart-table__delete icon icon-delete visible-xs">
                            Remove from cart
                        </button>
                                </td>
                            </tr>                               
                            </perch:cartitems>
                        </tbody>
                    </table>
                </div>
                <!-- /Shopping cart table -->
                <div class="divider divider--xs"></div>
                <div class="clearfix shopping-cart-btns">
                    <perch:input type="submit" value="UPDATE SHOPPING CART" class="btn btn--ys btn--light pull-right" />
                    <div class="divider divider--xs visible-xs"></div>
                    <div class="divider divider--xs visible-xs"></div>
                    <a class="btn btn--ys btn--light pull-left btn-right" href="shop.php"><span class="icon icon-keyboard_arrow_left"></span>CONTINUE SHOPPING </a>         
                    <div class="divider divider--xs visible-xs"></div>      







                </div>              
                <div class="divider--md"></div>
                <div class="row">

                    <div class="col-md-4">
                        <div class=" card card--padding">
                            <h4>DISCOUNT CODES</h4>
                            <form>
                                <div class="form-group">
                                  <label for="inputDiscountCodes">Enter your coupon code if you have one.</label>
                                  <perch:input type="text" id="discount_code" class="form-control" />
                                </div>
                            </form> 
                        </div>
                    </div>
                    <div class="col-md-4">

                    </div>
                    <div class="divider--md visible-sm visible-xs"></div>
                    <div class="col-md-4">
                        <div class="card card--padding">
                            <table class="table-total">
                                <tbody>
                                    <perch:if id="total_discounts" match="gt" value="0.00">
            <tr class="total">
                <th class="text-left">
                    Discount (<perch:shop id="discount_code" />)
                </th>
                <td class="text-right">
                    <perch:shop id="total_discounts" format="$:%.2n" />
                </td>
            </tr>
                                    </perch:if>

                                    <tr>
                                        <th class="text-left">Subtotal:</th>
                                        <td class="text-right"><perch:shop id="total_items_formatted" /></td>
                                    </tr>

                                    <tr>
                                        <th class="text-left">Delivery:</th>
                                        <td class="text-right"><perch:shop id="shipping_with_tax" /></td>
                                    </tr>
                                </tbody>
                                <tfoot>
                                    <tr>
                                        <th>GRAND TOTAL:</th>
                                        <td><perch:shop id="grand_total_formatted" /></td>
                                    </tr>
                                </tfoot>
                            </table>
                            <a href="checkout.php" class="btn btn--ys btn--full btn--xl">PROCEED TO CHECKOUT <span class="icon icon--flippedX icon-reply"></span></a>
                            <div class="text-right link-top">
                            </div>
                        </div>
                    </div>
                </div>              
            </div>
        </div>
        <!-- End CONTENT section --> </perch:form>
            <perch:else />
<h1 class="text-center text-uppercase title-under">Your cart is empty.</h1>
</perch:if>

cart.php

<?php ob_start("ob_gzhandler");
include('admin/runtime.php')?>
<?php $page = 'shop';?>
<!DOCTYPE html>
<html lang="en">
    <head>
<?php include('includes/analytics.php');?>
        <!-- Basic -->
        <meta charset="utf-8">
        <title>Cart - Designer Outdoor Lighting</title>

        <link rel="shortcut icon" href="favicon.ico">
        <!-- Mobile Specific Metas -->
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!-- External Plugins CSS -->
        <link rel="stylesheet" href="external/slick/slick.css">
        <link rel="stylesheet" href="external/slick/slick-theme.css">
        <link rel="stylesheet" href="external/magnific-popup/magnific-popup.css">
        <link rel="stylesheet" href="external/bootstrap-select/bootstrap-select.css">
        <!-- SLIDER REVOLUTION 4.x CSS SETTINGS -->
        <link rel="stylesheet" type="text/css" href="external/rs-plugin/css/settings.css" media="screen" />
        <!-- Custom CSS -->
        <link rel="stylesheet" href="css/style.css">
        <!-- Icon Fonts  -->
        <link rel="stylesheet" href="font/style.css">
        <!-- Head Libs -->  
        <!-- Modernizr -->
        <script src="external/modernizr/modernizr.js"></script>
    <?php include('includes/cookies.php');?>
</head>
    <body class="index">                  

        <?php include('includes/mobile-nav.php');
              include('includes/header.php');
        ?>



        <?php 

    perch_shop_cart([
        'template'=>'cart/cart.html',
    ]);?>
        </div>
        <?php include('includes/footer.php');?>

          <?php PerchUtil::output_debug(); ?>

        <!-- Modal (newsletter) 
        <div class="modal  modal--bg fade"  id="newsletterModal" data-pause=2000>
          <div class="modal-dialog white-modal">
            <div class="modal-content modal-md">
              <div class="modal-bg-image bottom-right"> 
                  <img  src="images/custom/newsletter-bg.png" alt="" class="img-responsive"> 
              </div>
              <div class="modal-block">
                  <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><span class="icon icon-clear"></span></button>
                  </div>
                  <div class="modal-newsletter text-center">
                        <img class="logo img-responsive1 replace-2x" src="images/logo.png" alt=""/>
                        <h2 class="text-uppercase modal-title">JOIN US NOW!</h2>
                        <p class="color-dark">And get hot news about the theme</p>
                        <p class="color font24 custom-font font-lighter">
                            YOURStore 
                        </p>
                        <form  method="post" name="mc-embedded-subscribe-form" target="_blank" class="subscribe-form">
                            <div class="row-subscibe">                                                       
                                <input  type="text" name="subscribe"   placeholder="Your E-mail">
                                <button type="submit" class="btn btn--ys btn--xl">SUBSCRIBE</button>
                            </div>
                            <div class="checkbox-group form-group-top clearfix">
                              <input type="checkbox" id="checkBox1">
                              <label for="checkBox1"> 
                                <span class="check"></span>
                                <span class="box"></span>
                                &nbsp;&nbsp;DON&#39;T SHOW THIS POPUP AGAIN
                              </label>
                            </div>                                                  

                        </form>
                  </div>
              </div>
            </div>
          </div>
        </div>
         / Modal (newsletter) -->
        <!--================== /modal ==================-->

<!-- jQuery 1.10.1--> 

        <script src="external/jquery/jquery-2.1.4.min.js"></script> 
        <!-- Bootstrap 3--> 
        <script src="external/bootstrap/bootstrap.min.js"></script> 
        <!-- Specific Page External Plugins --> 
        <script src="external/slick/slick.min.js"></script> 
        <script src="external/bootstrap-select/bootstrap-select.min.js"></script> 
        <script src="external/countdown/jquery.plugin.min.js"></script> 
        <script src="external/countdown/jquery.countdown.min.js"></script>      
        <script src="external/instafeed/instafeed.min.js"></script> 
        <script src="external/magnific-popup/jquery.magnific-popup.min.js"></script> 
        <script src="external/nouislider/nouislider.min.js"></script>
        <script src="external/imagesloaded/imagesloaded.pkgd.min.js"></script> 
        <script src="external/elevatezoom/jquery.elevatezoom.js"></script>
        <script src="external/colorbox/jquery.colorbox-min.js"></script> 
        <!-- Custom --> 
        <script src="js/custom.js"></script> 
        <script src="js/js-product.js"></script>        
    </body>
</html>

Hi Jade

Can you add anymore information so that the community can help out if they can?

I had a quick look and I can add products to the cart easily enough. The whole page loads (wouldn't recommend having debug turned on your live server though). Your site seems very slow though but that might be me.

  • What exactly is failing?
  • Was it working before?
  • If so what have you changed
  • Is it working on your staging / dev server?

Kind regards

Jon

Sorry everyone, it seemed to be down yesterday and is now back up and running? I don't seem to know what happened!