Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2008
    Posts
    47
    Plugin Contributions
    0

    Default The word 'array' appears in my shopping cart contents ?!

    Forgive me if I've placed this in the wrong area !

    When I do a test order and I get to Step 3 Order Confirmation page, in the shopping cart contents it lists the products BUT at the end of each product the word 'Array' appears.............weird !

    eg.Cowboy Boot Array

    Where do I go in my directory files to correct this error ?

    Many thanks !

    http://www.metal-silhouette-art.co.uk
    Last edited by katiekin; 21 May 2008 at 12:36 PM. Reason: spelling error

  2. #2
    Join Date
    Mar 2004
    Posts
    688
    Plugin Contributions
    0

    Default Re: The word 'array' appears in my shopping cart contents ?!

    echo '<td class="cartProductDisplay">' . $order->products[$i]['name'];
    In your includes/templates/theme028/template/checkout_configuration_default.php - Look for the above line and paste yours here. If that file isn't in that folder, then it will be in your:
    includes/templates/template_default/template/checkout_configuration_default.php

  3. #3
    Join Date
    Apr 2008
    Posts
    47
    Plugin Contributions
    0

    Default Re: The word 'array' appears in my shopping cart contents ?!

    Here goes !
    Code:
    <div id="checkoutConfirmDefault">
    <?=tm_head(HEADING_TITLE);?>
    <div class="main_block">
    
    <?php if ($messageStack->size('redemptions') > 0) echo $messageStack->output('redemptions'); ?>
    <?php if ($messageStack->size('checkout_confirmation') > 0) echo $messageStack->output('checkout_confirmation'); ?>
    <?php if ($messageStack->size('checkout') > 0) echo $messageStack->output('checkout'); ?>
    
    <div id="checkoutShipto" class="back">
    <strong><?php echo HEADING_BILLING_ADDRESS; ?></strong>
    <div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT) . '</a>'; ?></div>
    
    <address><?php echo zen_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></address>
    
    <?php
      $class =& $_SESSION['payment'];
    ?>
    
    <h3 id="checkoutConfirmDefaultPayment"><?php echo HEADING_PAYMENT_METHOD; ?></h3> 
    <h4 id="checkoutConfirmDefaultPaymentTitle"><?php echo $GLOBALS[$class]->title; ?></h4>
    
    <?php
      if (is_array($payment_modules->modules)) {
        if ($confirmation = $payment_modules->confirmation()) {
    ?>
    <div class="important"><?php echo $confirmation['title']; ?></div>
    <?php
        }
    ?>
    <div class="important">
    <?php
          for ($i=0, $n=sizeof($confirmation['fields']); $i<$n; $i++) {
    ?>
    <div class="back"><?php echo $confirmation['fields'][$i]['title']; ?></div>
    <div ><?php echo $confirmation['fields'][$i]['field']; ?></div>
    <?php
         }
    ?>
          </div>
    <?php
      }
    ?>
    
    <br class="clearBoth" />
    </div>
    
    <?php
      if ($_SESSION['sendto'] != false) {
    ?>
    <div id="checkoutBillto" class="forward">
    <strong><?php echo HEADING_DELIVERY_ADDRESS; ?></strong>
    <div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT) . '</a>'; ?></div>
    
    <address><?php echo zen_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'); ?></address>
    
    <?php
        if ($order->info['shipping_method']) {
    ?>
    <h3 id="checkoutConfirmDefaultShipment"><?php echo HEADING_SHIPPING_METHOD; ?></h3>
    <h4 id="checkoutConfirmDefaultShipmentTitle"><?php echo $order->info['shipping_method']; ?></h4>
    
    <?php
        }
    ?>
    </div>
    <?php
      }
    ?>
    <br class="clearBoth" />
    <hr />
    <?php
    // always show comments
    //  if ($order->info['comments']) {
    ?>
    
    <strong><?php echo HEADING_ORDER_COMMENTS; ?></strong><br><br>
    
    <div class="buttonRow forward"><?php echo  '<a href="' . zen_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '">' . zen_image_button(BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT) . '</a>'; ?></div>
    
    <div><?php echo (empty($order->info['comments']) ? NO_COMMENTS_TEXT : nl2br(zen_output_string_protected($order->info['comments'])) . zen_draw_hidden_field('comments', $order->info['comments'])); ?></div>
    <br class="clearBoth" />
    <?php
    //  }
    ?>
    <hr />
    
    <strong><?php echo HEADING_PRODUCTS; ?></strong>
    
    <div class="buttonRow forward"><?php echo '<a href="' . zen_href_link(FILENAME_SHOPPING_CART) . '">' . zen_image_button(BUTTON_IMAGE_EDIT_SMALL, BUTTON_EDIT_SMALL_ALT) . '</a>'; ?></div>
    <br class="clearBoth" />
          <table border="0" width="100%" cellspacing="0" cellpadding="0" id="cartContentsDisplay">
            <tr class="cartTableHeading">
            <th scope="col" id="ccQuantityHeading" width="30"><?php echo TABLE_HEADING_QUANTITY; ?></th>
            <th scope="col" id="ccProductsHeading"><?php echo TABLE_HEADING_PRODUCTS; ?></th>
    <?php
      // If there are tax groups, display the tax columns for price breakdown
      if (sizeof($order->info['tax_groups']) > 1) {
    ?>
              <th scope="col" id="ccTaxHeading"><?php echo HEADING_TAX; ?></th>
    <?php
      }
    ?>
              <th scope="col" id="ccTotalHeading"><?php echo TABLE_HEADING_TOTAL; ?></th>
            </tr>
    <?php // now loop thru all products to display quantity and price ?>
    <?php for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { ?>
            <tr class="<?php echo $product['rowClass']; ?>">
              <td  class="cartQuantity"><?php echo $order->products[$i]['qty']; ?>&nbsp;x</td>
              <td class="cartProductDisplay"><?php echo $order->products[$i]['name']; ?>
              <?php  echo $stock_check; ?>
    
    <?php // if there are attributes, loop thru them and display one per line
        if (isset($order->products[$i]['attributes']) && sizeof($order->products[$i]['attributes']) > 0 ) {
        echo '<ul id="cartAttribsList">';
          for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
    ?>
          <li><?php echo $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br($order->products[$i]['attributes'][$j]['value']); ?></li>
    <?php
          } // end loop
          echo '</ul>';
        } // endif attribute-info
    ?>
            </td>
    
    <?php // display tax info if exists ?>
    <?php if (sizeof($order->info['tax_groups']) > 1)  { ?>
            <td class="cartTotalDisplay">
              <?php echo zen_display_tax_value($order->products[$i]['tax']); ?>%</td>
    <?php    }  // endif tax info display  ?>
            <td class="cartTotalDisplay">
              <?php echo $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']);
              if ($order->products[$i]['onetime_charges'] != 0 ) echo '<br /> ' . $currencies->display_price($order->products[$i]['onetime_charges'], $order->products[$i]['tax'], 1);
    ?>
            </td>
          </tr>
    <?php  }  // end for loopthru all products ?>
          </table>
          <hr />
    
    <?php
      if (MODULE_ORDER_TOTAL_INSTALLED) {
        $order_totals = $order_total_modules->process();
    ?>
    <div id="orderTotals"><?php $order_total_modules->output(); ?></div>
    <?php
      }
    ?>
    
    <?php
      echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
    
      if (is_array($payment_modules->modules)) {
        echo $payment_modules->process_button();
      }
    ?>
    <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_CONFIRM_ORDER, BUTTON_CONFIRM_ORDER_ALT, 'name="btn_submit" id="btn_submit"') ;?></div>
    </form>
    <div class="buttonRow back"><?php echo TITLE_CONTINUE_CHECKOUT_PROCEDURE . '<br />' . TEXT_CONTINUE_CHECKOUT_PROCEDURE; ?></div>
    <br /><br />
    </div><?=tm_head_end()?>
    </div>

  4. #4
    Join Date
    Mar 2004
    Posts
    688
    Plugin Contributions
    0

    Default Re: The word 'array' appears in my shopping cart contents ?!

    Well... ok... That's not good... Here's a link you may want to read:
    http://www.zen-cart.com/forum/showthread.php?t=64341

  5. #5
    Join Date
    Apr 2008
    Posts
    47
    Plugin Contributions
    0

    Default Re: The word 'array' appears in my shopping cart contents ?!

    Ok, read that post but it still doesn't tell me what I need to do to correct it !

    Which files am I suppose to compare to default ones ?

 

 

Similar Threads

  1. the word 'product'on top main page, shopping cart, checkout
    By jcdk in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Nov 2009, 11:12 PM
  2. shopping cart contents and new properties to the products
    By stitchnkitty in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Nov 2009, 05:50 PM
  3. Need to extract data from the shopping cart contents
    By strelitzia in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 1 Oct 2008, 11:04 AM
  4. Adding the Shopping Cart Contents Directly On The Product Listing Page
    By watzursn in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 12 Sep 2008, 12:18 AM
  5. Skipping the Shopping Cart contents page
    By qubit in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 Apr 2007, 09:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR