Page 1 of 15 12311 ... LastLast
Results 1 to 10 of 145
  1. #1
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default Need help editing the cart summary sidebox mod

    Been talking to kobra a little about this and was recommended to start a new thread.

    The site in question is www. bodykits online .co.uk/test Ive added a shopping cart to the header and im stuck on how to make the Items: 0 Amount: £0.00 look like

    Items: 0
    Amount: £0.00

    Ive done a developers tool kit search and found a page that contained these words but when i tried to add the <br> code in, it either didnt change the layout or it made the screen go completely white.

    Does anyone know how i can achieve what im wanting to do using this mod.

    Thanks
    Last edited by ben harry; 30 Mar 2009 at 09:44 PM. Reason: spelt summary wrong

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Need help editing the cart summary sidebox mod

    Post the code in that area (say 10 lines before & after) so we can see what you have done. Use [php] and [/php] tags.

  3. #3
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: Need help editing the cart summary sidebox mod

    so, i havent used that mod.. (prob. what i need to do, actually.. to do what it is i am trying to do) but this should fix your problem...

    basically you need to describe the cart in your css, something like this:

    #headerCart ul li{
    text-align: center;
    list-style-type: none; /*removes the bullets*/


    it may already be in your css, but defined as display: inline;... if so, replace with list-style-type: none;

    (inline is all in the same row, as you have now. just deleting it will make it stack, but will add bullets or numbers, so defining the style as none will disable that part)

    i am going to try the mod u are using, so i will post further results when i have more info, but maybe this will help in the meantime..

  4. #4
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default Re: Need help editing the cart summary sidebox mod

    Hello

    unfortunatly that bit of code didnt change the totals, it did move the whole shopping cart to the centre of the screen.

    Thanks for your efforts so far.

  5. #5
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: Need help editing the cart summary sidebox mod

    im installing that mod right now,
    give me a min to get the css coding correct...

    bout 5 min.

  6. #6
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default Re: Need help editing the cart summary sidebox mod

    Im going to have to go now, so will check to see if you succeded and left any updates tomorow.

    Thanks you.

  7. #7
    Join Date
    Mar 2009
    Location
    Cornelius, NC
    Posts
    334
    Plugin Contributions
    0

    Default Re: Need help editing the cart summary sidebox mod

    ok, so i have tried twice to use this mod, and both times after uploading files, when i go to put the code in the header file... i get only a white screen.... the ONLY way to correct is not just to remove that snippet, but to delete the 3 uploaded files as well...

    so, something not right there.

    im SURE its something im doing, as i am knowledgeable enough to juuust be dangerous... lol

    im not sure what you tried, when you say that it just moved to the "center"... did you define it in the CSS as:

    #navMainCartSummary {

    Basically, you need to somehow seperate the name, weight, and cost into three seperate lines... i would do this by making it a list... or ul id= instead of div id= then change the css to be #navMainCartSummary ul { but im sure there is more to it than that... and im not really sure what to tell you.

    i look forward to additional posts by those more knowlegeable than i on how to fix this for both of us!

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Need help editing the cart summary sidebox mod

    We can't advise on what we can't see...

  9. #9
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default Re: Need help editing the cart summary sidebox mod

    Quote Originally Posted by customk1 View Post
    ok, so i have tried twice to use this mod, and both times after uploading files, when i go to put the code in the header file... i get only a white screen.... the ONLY way to correct is not just to remove that snippet, but to delete the 3 uploaded files as well...

    so, something not right there.

    im SURE its something im doing, as i am knowledgeable enough to juuust be dangerous... lol

    im not sure what you tried, when you say that it just moved to the "center"... did you define it in the CSS as:

    #navMainCartSummary {

    Basically, you need to somehow seperate the name, weight, and cost into three seperate lines... i would do this by making it a list... or ul id= instead of div id= then change the css to be #navMainCartSummary ul { but im sure there is more to it than that... and im not really sure what to tell you.

    i look forward to additional posts by those more knowlegeable than i on how to fix this for both of us!

    Thank you for trying, im sure its a simple thing to change, but trying to figure it out is beyond what I know.

  10. #10
    Join Date
    Mar 2007
    Location
    Cornwall - uk
    Posts
    464
    Plugin Contributions
    0

    Default Re: Need help editing the cart summary sidebox mod

    Quote Originally Posted by gjh42 View Post
    We can't advise on what we can't see...
    Here is the code from includes/languages/english/extra_definitions/custom/cart_summary_sidebox.php

    * @version $Id: cart_summary_sidebox.php $
    */
    /* These definitions are similar to those in your shopping_cart.php file.
    * You may want to edit both to keep them in sync.
    */
    define('BOX_HEADING_CART_CONTENTS', 'Your Cart Contents:');
    define('TEXT_TOTAL_ITEMS', ' Items: ');
    define('TEXT_TOTAL_WEIGHT', 'Weight: ');
    define('TEXT_TOTAL_AMOUNT', 'Amount: ');
    ?>

    and here is the module code from includes/modules/sideboxes/custom/cart_summary.php

    <?php
    /**
    * cart_summary ("sidebox") - this sidebox can be used to display a summary of the customer's cart content in header or sidebox
    *
    * @package sideboxes
    * @copyright Copyright 2003-2006 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: cart_summary.php $
    */
    $item_separator = ($box_id == '') ? '&nbsp;&nbsp;' : '<br />';
    $totalsDisplay = '';
    switch (true) {
    case (SHOW_TOTALS_IN_CART == '1'):
    $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . $item_separator .<br> TEXT_TOTAL_WEIGHT . $_SESSION['cart']->show_weight() . TEXT_PRODUCT_WEIGHT_UNIT . $item_separator . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
    break;
    case (SHOW_TOTALS_IN_CART == '2'):
    $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . ($_SESSION['cart']->show_weight() > 0 ? $item_separator . TEXT_TOTAL_WEIGHT . $_SESSION['cart']->show_weight() . TEXT_PRODUCT_WEIGHT_UNIT : '') . $item_separator . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
    break;
    case (SHOW_TOTALS_IN_CART == '3'):
    $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . $item_separator . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
    break;
    }
    $content = $totalsDisplay;
    /////////////////////////
    // Determine whether displaying as sidebox should be disabled, based on Admin settings under Admin->Configuration->Stock
    $show_shopping_cart_box = true;
    switch (true) {
    case (SHOW_SHOPPING_CART_BOX_STATUS == '0'):
    $show_shopping_cart_box = true;
    break;
    case (SHOW_SHOPPING_CART_BOX_STATUS == '1'):
    if ($_SESSION['cart']->count_contents() > 0 || (isset($_SESSION['customer_id']) && zen_user_has_gv_account($_SESSION['customer_id']) > 0)) {
    $show_shopping_cart_box = true;
    } else {
    $show_shopping_cart_box = false;
    }
    break;
    case (SHOW_SHOPPING_CART_BOX_STATUS == '2'):
    if ( ( ($_SESSION['cart']->count_contents() > 0) || (isset($_SESSION['customer_id']) && zen_user_has_gv_account($_SESSION['customer_id']) > 0) ) && ($_GET['main_page'] != FILENAME_SHOPPING_CART) ) {
    $show_shopping_cart_box = true;
    } else {
    $show_shopping_cart_box = false;
    }
    break;
    }
    ///////////////////////

    require($template->get_template_dir('tpl_cart_summary.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_cart_summary.php');
    if ($box_id !='' && $show_shopping_cart_box == true) {
    $title = '<label>' . BOX_HEADING_CART_CONTENTS . '</label>';
    $title_link = false;
    require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
    } else {
    if ($show_shopping_cart_box == true)
    require($template->get_template_dir('tpl_box_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_box_header.php');
    }
    ?>

 

 
Page 1 of 15 12311 ... LastLast

Similar Threads

  1. Cart Summary Sidebox Make URL's
    By limelites in forum Addon Sideboxes
    Replies: 22
    Last Post: 10 May 2010, 08:34 AM
  2. Shopping Cart Summary Sidebox
    By mrmrsg in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Apr 2007, 07:59 AM
  3. Adding content to cart summary sidebox
    By Cal in forum Addon Sideboxes
    Replies: 0
    Last Post: 23 Mar 2007, 01:26 PM
  4. Want to style Cart Summary Sidebox contrib
    By rstevenson in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Mar 2007, 01:42 PM
  5. cart summary displayed in sidebox
    By marslizard in forum Basic Configuration
    Replies: 3
    Last Post: 8 Dec 2006, 05:44 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