Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Aug 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: Attributes Text Field input cut off in cart

    the tpl_account_history_info.php

    <?php
    for ($i=0, $n=sizeof($order->products); $i<$n; $i++) {
    ?>
    <tr>
    <td class="accountQuantityDisplay"><?php echo $order->products[$i]['qty'] . QUANTITY_SUFFIX; ?></td>
    <td class="accountProductDisplay"><?php echo $order->products[$i]['name'];

    if ( (isset($order->products[$i]['attributes'])) && (sizeof($order->products[$i]['attributes']) > 0) ) {
    echo '<ul id="orderAttribsList">';
    for ($j=0, $n2=sizeof($order->products[$i]['attributes']); $j<$n2; $j++) {
    echo '<li>' . $order->products[$i]['attributes'][$j]['option'] . TEXT_OPTION_DIVIDER . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value'])) . TEXT_OPTION_DIVIDER . $order->products[$i]['attributes'][$j]['weights'] .' ' . lbs . '.' . '</li>';
    }
    echo '</ul>';
    }
    ?>

  2. #12
    Join Date
    Aug 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: Attributes Text Field input cut off in cart

    order.php with the weights added mod

    simple mod

    $subindex = 0;
    $attributes_query = "select products_options_id, products_options_values_id, products_options, products_options_values, products_attributes_weight, options_values_price, price_prefix from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . "
    where orders_id = '" . (int)$order_id . "'
    and orders_products_id = '" . (int)$orders_products->fields['orders_products_id'] . "'";

    $attributes = $db->Execute($attributes_query);
    if ($attributes->RecordCount()) {
    while (!$attributes->EOF) {
    $this->products[$index]['attributes'][$subindex] = array('option' => $attributes->fields['products_options'],
    'value' => $attributes->fields['products_options_values'],
    'weights' => $attributes->fields['products_attributes_weight'],
    'prefix' => $attributes->fields['price_prefix'],
    'price' => $attributes->fields['options_values_price']);

  3. #13
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attributes Text Field input cut off in cart

    This is broken when it gets put into the shopping_cart or the checkout_blah or orders class or something beyond that ...

    Somewhere along the way you have errors in your code or perhaps even in the database causing these issues ...

    It can take from 30 minutes to many hours to discover just what is wrong here and get things cleaned up ...

    I am afraid trying to guess through this isn't something that is really easily done on the forum and trying to speculate the cause from being custom code changes or add-ons or a mixture of both ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #14
    Join Date
    Aug 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: Attributes Text Field input cut off in cart

    I totally understand and I appreciate your looking into this. The mod you helped me with back in September and worked really well with the drop-downs. The above code is the only part we changed -adding the weights to render in the orders. So that said - guess I will have to get the drop-downs back...they make more sense anyway.

    You guys are sooo helpful and rock the ecommerce world !

    All the best !

  5. #15
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Attributes Text Field input cut off in cart

    How do I set up text box, which have done successfully, but
    FORCE purchaser to enter text, before proceeding to cart?
    TIA

  6. #16
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Attributes Text Field input cut off in cart

    Problem solved..thread below outlines details
    http://www.zen-cart.com/forum/showth...text+attribute

  7. #17
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Attributes Text Field input cut off in cart

    Nifty little switch, eh?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 Attributes Text Field input missing in admin orders
    By ShopVille in forum General Questions
    Replies: 1
    Last Post: 26 Jul 2013, 01:46 AM
  2. Make input field on collectinfo also display the field text as hyperlink
    By jpietrowiak in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 15 Dec 2012, 05:06 AM
  3. Text getting cut off in IE
    By jake74 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Jul 2007, 08:11 PM

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