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.' '.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
Bookmarks