Page 10 of 10 FirstFirst ... 8910
Results 91 to 92 of 92
  1. #91

    Default Re: Shipping Rates in Cart [support thread]

    Hi Steve 300

    I just have a question about your mod, hope you can help.

    We have your mod uploaded to one of our sites www.minijumbos.co.uk and it works fine, we now want to install it to another store. However on this other store www.clicknorder.co.uk we already have another mod installed 'exc inc vat'
    This mod shows the products with prices exc vat and inc vat.
    When I went to install your 'shipping rates in cart' and I went to merge the file
    includes/templates/YOUR_TEMPLATE/templates/tpl_shopping_cart_default.php

    There is some coding in this file which relates to the 'exc inc vat' mod
    This code you state to delete in your 'Read me' file so I am unsure how to proceed and wondering whether your mod will not work alongside the 'inc exc vat' mod
    This is the code in my current file
    <div id="cartSubTotal">
    <?php
    $products = $_SESSION['cart']->get_products();
    $cartShowTotalIncTax=0;
    $cartShowTotalExTax=0;
    foreach($products as $product)
    {
    $cartShowTotalIncTax+=(zen_round($product['final_price'], $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']) + zen_calculate_tax($product['final_price'], zen_get_tax_rate($product['tax_class_id'])))*$product['quantity'];
    $cartShowTotalExTax+=(zen_round($product['final_price'], $currencies->currencies[DEFAULT_CURRENCY]['decimal_places']))*$product['quantity'];
    }

    echo SUB_TITLE_SUB_TOTAL.'&nbsp;'.set_inc_ex_display($cartShowTotalExTax,$cartShowTot alIncTax);
    ?>
    </div>
    <br class="clearBoth" />

    Alternatively you stated that if the file exists in overide then delete this code:
    if ($_SESSION['cart']->count_contents() > 0) {
    $content .= '<hr />';
    $content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
    $content .= '<br class="clearBoth" />';
    }

    But this code doesn't exist in my file instead the code here reads:

    if ($_SESSION['cart']->count_contents() > 0) {
    ?>
    <div class="forward"><?php echo TEXT_VISITORS_CART; ?></div>
    <?php
    }
    ?>

    <h1 id="cartDefaultHeading"><?php echo HEADING_TITLE; ?></h1>

    <?php if ($messageStack->size('shopping_cart') > 0) echo $messageStack->output('shopping_cart'); ?>

    <?php echo zen_draw_form('cart_quantity', zen_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?>
    <div id="cartInstructionsDisplay" class="content"><?php echo TEXT_INFORMATION; ?></div>

    <?php if (!empty($totalsDisplay)) { ?>
    <div class="cartTotalsDisplay important"><?php echo $totalsDisplay; ?></div>
    <br class="clearBoth" />

    Sorry my coding knowledge is little limited, hope you can help as to what i need to do to use both mods together and what i need to change the code to
    Thanks in advance


  2. #92

    Default Re: Shipping Rates in Cart [support thread]

    Hi all,

    I am running the shop in euro with decimal as , and thousand as .
    The total shows a 10 times to high amount 4056,00 instead of 40,56.
    When I change the decimal and thousand symbols then it works fine, but this is not how amounts are shown in the Netherlands.

    How can I fix the $sric_total?

 

 
Page 10 of 10 FirstFirst ... 8910

Similar Threads

  1. Tell a Friend free shipping Support Thread
    By davewest in forum Addon Shipping Modules
    Replies: 27
    Last Post: 20 Apr 2011, 04:12 AM
  2. Empty Cart Manager [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 26 May 2010, 10:26 AM
  3. Average Weight Per Unit Shipping Support Thread
    By numinix in forum Addon Shipping Modules
    Replies: 3
    Last Post: 12 Mar 2009, 02:38 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
  •