Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Location
    California
    Posts
    21
    Plugin Contributions
    0

    Default Re: Display Shopping Cart Summary In Header Issues

    Dr Byte,

    Thanks for the info. I went with shoppingcart_freeship_header_1_2.

    It has fixed the problem. I am able to see the shopping cart info in the dropdown menu on all pages. It shows cart total, total items, free shipping info, and a checkout button.

    I have been able to remove the free shipping info and add a view cart button. I would like to remove cart total and total items, and add product name (with link), unit cost, product quantity (per item), product image (with link) and subtotal as follows,


    Product Name
    (quantity) x (unit cost) Image

    Subtotal


    I have tried plugging in the different components that I want to change to no avail. I have also searched for info on shopping cart variables. I am able to change the layout just fine with divs and css, I just can't figure out how to modify this piece of php.

    This is the current code that I am trying to modify, replace or change:


    <div id="cartCount">
    <?php
    if ($cart_count) {
    $_SESSION['cart']->get_products();
    $basket_total = $_SESSION['cart']->show_total();
    echo '<span id="cartTotal">' . CART_HEADER_TOTAL . $currencies->format($basket_total) . '</span>' ;
    }
    echo ($cart_count? '<a href="' . zen_href_link(FILENAME_SHOPPING_CART, '', 'SSL') . '" title="' . CART_HEADER_TITLE . '">':'') . CART_HEADER_IN_CART_PRE . $cart_count . (($cart_count == 1)? CART_HEADER_IN_CART_SINGULAR: CART_HEADER_IN_CART_PLURAL) . ($cart_count? '</a>': '');
    ?>
    </div>



    I am trying to incorporate the following code that includes product name, unit cost, product quantity, product image and subtotal. I see that they are coded differently, the code below is from my initial post (modified tpl_shopping_cart_default.php). Where can I find information on this? Is this straight php? I couldn't find what I was looking for in the forum. I may not know what I am looking for (productsName, showFixedQuantityAmount, productsPriceEach, productsImage, cartShowTotal).

    <td><div class="header-cart-products-name"><a href="<?php echo $product['linkProductsName']; ?>"><span id="cartProdTitle"><?php echo $product['productsName'] . '<span class="alert bold">' . $product['flagStockCheck'] . '</span>'; ?></span></a></div>
    <br />
    <div class="header-cart-item-info">
    <div class="header-cart-item-count ">
    <?php

    if ($product['flagShowFixedQuantity']) {

    echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];

    } else {

    echo $product['showFixedQuantityAmount'] . '<br /><span class="alert bold">' . $product['flagStockCheck'] . '</span><br /><br />' . $product['showMinUnits'];

    }

    ?>
    </div>
    <div class="header-cart-item-spacer">&nbsp;&nbsp;x&nbsp;&nbsp;</div>
    <div class="header-cart-item-cost"><?php echo $product['productsPriceEach']; ?></div>
    </div></td>

    <td><a href="<?php echo $product['linkProductsName']; ?>"><span id="header-cartImage"><?php echo $product['productsImage']; ?></span></a></td>

    <?php

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

    ?>

    <!-- Finished loop through all products /-->

    </table>



    <div id="header-cart-subtotal"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?></div>

    ...

    Thanks Again!
    Last edited by jackolive; 19 Dec 2012 at 10:51 AM.

 

 

Similar Threads

  1. Shopping Cart Summary Delete Item Button
    By mattk251285 in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 7 Mar 2016, 10:34 PM
  2. Shopping Cart Summary Sidebox - Product Characters
    By mattk251285 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 6 Dec 2011, 10:56 AM
  3. Shopping Cart Header and contents display problem
    By fastdc5 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 17 Feb 2009, 10:20 PM
  4. shopping cart line summary won't turn off
    By mezx in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 7 Apr 2008, 11:30 AM
  5. Shopping Cart Summary Sidebox
    By mrmrsg in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Apr 2007, 07:59 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