ZALOHA E-SHOPU PRED PREVEDENIM DOLEUVEDENYCH ZMIEN!!!
budete ju potrebovat v pripade, ze to nebude fungovat podla vasich predstav
a urcite aj potom, ked sa prejde na Euro a dualne zobrazovanie uz nebude potrebne

Skopiruj prilozene subory do tvojho e-shopu.

V subore /includes/extra_configures/extra_currency.php definuj druhu menu, ktoru chces zobrazovat /prednastavene je EUR/.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
V subore  /includes/templates/YOURTEMPLATE/templates/tpl_product_info_display.php
najdi riadok:

  echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']);

a nahrad ho s :

  echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') . zen_get_products_display_price((int)$_GET['products_id']) . '<br />';
  echo zen_get_products_display_price_extra_currency((int)$_GET['products_id']);
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
V subore  /includes/modules/pages/shopping_cart/header_php.php
najdi riadok:

$totalsDisplay = '';

a pred tento riadok vloz

$original_currency = $_SESSION['currency'];
$_SESSION['currency'] = EXTRA_CURRENCY;
$cartShowTotalExtraCurrency = $currencies->format($_SESSION['cart']->show_total());
$_SESSION['currency'] = $original_currency;

najdi kod 

switch (true) {
  case (SHOW_TOTALS_IN_CART == '1'):
  $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . TEXT_TOTAL_WEIGHT . $_SESSION['cart']->show_weight() . TEXT_PRODUCT_WEIGHT_UNIT . 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 ? TEXT_TOTAL_WEIGHT . $_SESSION['cart']->show_weight() . TEXT_PRODUCT_WEIGHT_UNIT : '') . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
  break;
  case (SHOW_TOTALS_IN_CART == '3'):
  $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
  break;
}

a nahrad ho kodom

switch (true) {
  case (SHOW_TOTALS_IN_CART == '1'):
  $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . TEXT_TOTAL_WEIGHT . $_SESSION['cart']->show_weight() . TEXT_PRODUCT_WEIGHT_UNIT . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total()) . ' [' . $cartShowTotalExtraCurrency . ']';
  break;
  case (SHOW_TOTALS_IN_CART == '2'):
  $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . ($_SESSION['cart']->show_weight() > 0 ? TEXT_TOTAL_WEIGHT . $_SESSION['cart']->show_weight() . TEXT_PRODUCT_WEIGHT_UNIT : '') . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total()) . ' [' . $cartShowTotalExtraCurrency . ']';
  break;
  case (SHOW_TOTALS_IN_CART == '3'):
  $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total()) . ' [' . $cartShowTotalExtraCurrency . ']';
  break;
}

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
V subore /includes/templates/template_default/templates/tpl_shopping_cart_default.php
najdi riadok cca 128
<div id="cartSubTotal"><?php echo SUB_TITLE_SUB_TOTAL; ?> <?php echo $cartShowTotal; ?></div>
za tento riadok pridaj kod
<div id="cartSubTotal"><?php echo '[' . $cartShowTotalExtraCurrency . ']' ?></div>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


V subore /includes/modules/product_listing.php
najdi kod:

 $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />';
 
 a nahrad ho s kodom:
 
 $lc_price = zen_get_products_display_price($listing->fields['products_id']) . '<br />' . zen_get_products_display_price_extra_currency($listing->fields['products_id']);
 
 
 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 V /includes/templates/template_default/sideboxes/tpl_whats_new.php
 najdi kod cca riadok 13
 
   $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_whats_new_sidebox_product->fields['products_name'] . '</a><br />' . $whats_new_price; 
 
a nahrad ho kodom
   $content .= '<a href="' . zen_href_link(zen_get_info_page($random_whats_new_sidebox_product->fields['products_id']), 'products_id=' . $random_whats_new_sidebox_product->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_whats_new_sidebox_product->fields['products_name'] . '</a><br />' . $whats_new_price . '<br />' . zen_get_products_display_price_extra_currency($random_whats_new_sidebox_product->fields['products_id']);
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
V /includes/templates/template_default/sideboxes/tpl_specials.php
najdi kod cca riadok 13
  $content .= '<a href="' . zen_href_link(zen_get_info_page($random_specials_sidebox_product->fields["products_id"]), 'products_id=' . $random_specials_sidebox_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_specials_sidebox_product->fields['products_image'], $random_specials_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_specials_sidebox_product->fields['products_name'] . '</a><br />' . $specials_box_price;
a nahrad ho kodom
 $content .= '<a href="' . zen_href_link(zen_get_info_page($random_specials_sidebox_product->fields["products_id"]), 'products_id=' . $random_specials_sidebox_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_specials_sidebox_product->fields['products_image'], $random_specials_sidebox_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_specials_sidebox_product->fields['products_name'] . '</a><br />' . $specials_box_price . '<br />' . zen_get_products_display_price_extra_currency($random_specials_sidebox_product->fields['products_id']);
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
V /includes/templates/template_default/sideboxes/tpl_featured.php 
najdi kod cca riadok 13

  $content .= '<a href="' . zen_href_link(zen_get_info_page($random_featured_product->fields["products_id"]), 'products_id=' . $random_featured_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_featured_product->fields['products_image'], $random_featured_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_price;

a nahrad ho kodom

  $content .= '<a href="' . zen_href_link(zen_get_info_page($random_featured_product->fields["products_id"]), 'products_id=' . $random_featured_product->fields["products_id"]) . '">' . zen_image(DIR_WS_IMAGES . $random_featured_product->fields['products_image'], $random_featured_product->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '<br />' . $random_featured_product->fields['products_name'] . '</a><br />' . $featured_box_price . '<br />' . zen_get_products_display_price_extra_currency($random_featured_product->fields['products_id']);  

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
V /includes/templates/template_default/sideboxes/tpl_shopping_cart.php
najdi kd (riadok cca 45)
  if ($_SESSION['cart']->count_contents() > 0) {
    $content .= '<hr />';
    $content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) . '</div>';
    $content .= '<br class="clearBoth" />';
  }
a nahra ho kdom
  if ($_SESSION['cart']->count_contents() > 0) {
    $original_currency = $_SESSION['currency'];
    $_SESSION['currency'] = EXTRA_CURRENCY;
    $cartShowTotalExtraCurrency = $currencies->format($_SESSION['cart']->show_total());
    $_SESSION['currency'] = $original_currency;
    $content .= '<hr />';
    $content .= '<div class="cartBoxTotal">' . $currencies->format($_SESSION['cart']->show_total()) .  ' <br /> [' . $cartShowTotalExtraCurrency . ']</div>';
    $content .= '<br class="clearBoth" />';
  }

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
V /includes/modules/new_products.php

najdi riadok (cca 53)
$products_price = zen_get_products_display_price($new_products->fields['products_id']);
a nahrad ho kodom
$products_price = zen_get_products_display_price($new_products->fields['products_id']) . ' <br />' . zen_get_products_display_price_extra_currency($new_products->fields['products_id']); 
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
V /includes/modules/specials_index.php
najdi kod (riadok cca 52)
$products_price = zen_get_products_display_price($specials_index->fields['products_id']);
a nahra ho kdom
$products_price = zen_get_products_display_price($specials_index->fields['products_id']) . ' <br />' . zen_get_products_display_price_extra_currency($specials_index->fields['products_id']);
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
V /includes/modules/featured_products.php
najdi kod  (riadok cca 51)
   $products_price = zen_get_products_display_price($featured_products->fields['products_id']);
a nahra ho kdom
  $products_price = zen_get_products_display_price($featured_products->fields['products_id']) . ' <br />' . zen_get_products_display_price_extra_currency($featured_products->fields['products_id']);

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

V /includes/templates/YOURTEMPLATE/templates/stylesheet.css 

pridaj nasledovne riadky

.normalpriceExtraCurrency, .productSpecialPriceSaleExtraCurrency {
	text-decoration: line-through;
	}

.productSpecialPriceExtraCurrency, .productSalePriceExtraCurrency, .productSpecialPriceSaleExtraCurrency, .productPriceDiscountExtraCurrency {
	color: #ff0000;
	}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Vsetky tieto upravy prevadzate na vlastne nebezpecie a autor nenesie ziadnu zodpovednost za pripadnu nefunkcnost e-shopu, ani za pripadne sankcie pre nespravne dualne zobrazovanie.

John
