Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2009
    Posts
    18
    Plugin Contributions
    0

    Default Attributes not being emailed. All I get is 'Array'

    I inherited a zencart mod and can't figure out what's wrong. The customer selects a product and an attribute (model#). This is then sent to another form that they complete. When they submit the form, the product and the attribute should be included in the email sent.

    At this time, only the product is coming through. The attribute just says "array." The interesting part is, when I delete the line that prints the attribute, the products_options_names will print out. So I know that both the product and the products_options_names are working. The attribute is the only thing that is not working right.

    Here's what I believe to be the significant code. This is the page that has the form, so the attribute has already be passed to this page, I can see it on the page as rendered in the browser.

    //Begin Adding of New features
    //$productsimage = $product['productsImage'];
    $productsname = $product['productsName'];
    $attributes = $product['attributes'];
    $products_options_name = $value['products_options_name'];

    $arr_product_list[] = "<strong>Product Name:</strong> $productsname <br />";
    $arr_product_list[] .= "<strong>Attributes:</strong> $attributes <br />";
    $arr_product_list[] .= "<strong>Products Options Name:</strong> $products_options_name <br />";
    $arr_product_list[] .= "---------------------------------------------------------------";

    //End Adding of New features

    } // end foreach ($productArray as $product)
    ?>


    Above this is the following code:
    <?php
    echo $product['attributeHiddenField'];
    if (isset($product['attributes']) && is_array($product['attributes'])) {
    echo '<div class="cartAttribsList">';
    echo '<ul>';
    reset($product['attributes']);
    foreach ($product['attributes'] as $option => $value) {
    ?>

    Any help would be appreciated.

  2. #2
    Join Date
    Nov 2009
    Posts
    18
    Plugin Contributions
    0

    Default Re: Attributes not being emailed. All I get is 'Array'

    Never mind. Got it working myself.

 

 

Similar Threads

  1. Temporary Password Reset does not get emailed to me
    By crespo71010 in forum General Questions
    Replies: 1
    Last Post: 16 Oct 2012, 09:44 PM
  2. v139h Suddenly Credit Card Multiple Charges & Order Not Being Emailed
    By Pablo1719 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 13 Apr 2012, 08:14 PM
  3. Orders not being stored and emailed with eway transactions
    By imanewbe in forum Addon Payment Modules
    Replies: 1
    Last Post: 4 Mar 2011, 12:44 AM
  4. Replies: 265
    Last Post: 14 Nov 2007, 05:16 AM

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