У нас Vam Shop стоит дешевле на 25%
Ваша корзинаВ корзине: 0 товар(ов).
Информация
Уточните все вопросы и сделайте заказ:
по телефону: +79145491704,
по E-mail: monamurs@gmail.com,
по ICQ: 5864444,
Мой статусв Skype: lifemakeroff.
Способы оплаты:
Webmoney WMID 287179207930,
Money.Yandex 4100150815315,
QIWI 9145491704,
карта Сбербанка РФ,
карта Альфабанка,
а также системы переводов: Контакт, Анелик, Аллюр, Western Union.
Шаблоны для интернет-магазинов. Нами украшено более 300 магазинов!
Отзывы more
Шаблон VamShop
27 Мая 2010, 15:49:18 KaEV написал отзыв:Заказал у Yurassik1 шаблон на VamShop дизайна интернет магазина. Работа была сделана в срок. При проблемах с установкой шаблона на VamShop помог [...]

5 из 5 звёзд!

Новости

07.09.2011
Что изменилось в шаблонах VamShop v.1.65 по сравнению с v.1.64?

Приветствую, коллеги! В первую очередь извиняюсь за столь поздний обзор изменений. Если бы не жесточайший бронхит, сваливший меня в Турции посреди 40-градусного пекла, обзор был бы сделан сразу же после выходп VamShop версии 1.65. Сделал вывод, что кондиционер - опасная штука. :)

Итак, какие же файлы подверглись изменениям?

\templates\vamshop\admin\print_order.html
\templates\vamshop\module\schet.html

Было:
{if $company_name}
<p><b>Покупатель</b> {$company_name}</p>
{else}
<p><b>Покупатель</b> {$address_label_customer}</p>
{/if}
Стало:
{if $company_name}
<p><b>Покупатель</b> {$company_name}</p>
{/if}
{if $address_label_shipping!=$address_label_customer}
<p><b>Доставка:</b> {$address_label_shipping}</p>
{else}
<p><b>Доставка:</b> {$address_label_payment}</p>
{/if}

\templates\vamshop\boxes\box_add_a_quickie.html
\templates\vamshop\boxes\box_search.html

Было:
url: "index_ajax1.php",
Стало:
url: "index_ajax.php",

\templates\vamshop\boxes\box_cart.html

Удалена строка:
<script type="text/javascript" src="jscript/jscript_ajax_cart.js"></script>

Было:
<form class="cart_quantity" action="{$products_data.LINK}/action/update_product" method="post" onsubmit="doDelProduct(this); return false;">{$products_data.PRODUCTS_QTY}
Стало:
<form id="update_cart{counter name=1}" class="cart_quantity" action="{$products_data.LINK}/action/update_product" method="post" onsubmit="doDelProduct({counter name=2}); return false;">{$products_data.PRODUCTS_QTY}

\templates\vamshop\module\product_info\product_info_v1.html

Было:
{if $parameters}
<!-- Parameters -->
<table cellspacing="0" cellpadding="0" class="fulldesc" border="0" width="70%">
{foreach name=aussen item=parameters_data from=$parameters}
<tr class="stroka">
<td {if $parameters_data.is_group} colspan="2" class="zagolovok"{else}class="texparam"{/if}>{$parameters_data.parameters_name} </td>
{if $parameters_data.is_group}{else}<td class="texznachen" align="left">{if $parameters_data.parameters_value}{$parameters_data.parameters_value} {$parameters_data.parameters_suff}{else}&nbsp;{/if}</td>{/if}
</tr>{/foreach}
</table>
<!-- /Parameters -->
{/if}
Стало:
{if $specifications}
<!-- Specifications -->
{foreach name=outer item=spec_group from=$specifications_data}
<strong>{$spec_group.GROUP_NAME}:</strong><br />
{foreach key=key_data item=spec from=$spec_group.DATA}
{$spec.NAME}: {$spec.VALUE}<br />
{/foreach}
{/foreach}
<!-- /Specifications -->
{/if}

\templates\vamshop\module\product_listing\product_listing_columns.html
\templates\vamshop\module\product_listing\product_listing_list.html

Было:
{if $MANUFACTURER_SORT}
Стало:
{$FILTERS}
{if $MANUFACTURER_SORT}

Удалена строка:
<form action="{$smarty.const.FILENAME_PRODUCT_COMPARE}">

Было:
{foreach name=params item=module_params from=$module_data.params}
{$module_params.name}: <strong>{$module_params.value} {$module_params.suff} </strong><br />
{/foreach}
Стало:
{if $module_data.EXTRA_FIELDS}
{foreach item=extra_fields from=$module_data.EXTRA_FIELDS}
{$extra_fields.NAME}: {$extra_fields.VALUE}<br />
{/foreach}
{/if}

Удалено:
<input type="checkbox" id="s_{$module_data.PRODUCTS_ID}" name="products[]" value="{$module_data.PRODUCTS_ID}" />{#text_compare#}

Удалено:
<input type="hidden" name="cat" value="{$smarty.get.cat}" />
{$BUTTON_COMPARE}
</form>

\templates\vamshop\module\cross_selling.html

После строки:
{if $products_data.PRODUCTS_IMAGE}<a href="{$products_data.PRODUCTS_LINK}"><img src="{$products_data.PRODUCTS_IMAGE}" border="0" alt="{$products_data.PRODUCTS_NAME}" /></a><br />{/if}
Добавить:
{$products_data.PRODUCTS_BUTTON_BUY_NOW}

\templates\vamshop\module\gift_cart.html

После:
{if $C_FLAG == 'true'}
Добавить:
{if $smarty.session.customer_id}

В самом низу перед:
{/if}
{$FORM_END}
{/if}
Добавить:
{/if}

\templates\vamshop\module\products_reviews.html

Удалено:
<div id="divReviews">

Удалено:
<!--kpoxas-->
<div class="clear"></div>
{if $NAVIGATION_BAR}
<div class="navigation">
<span class="right">{$NAVIGATION_BAR}</span>{$NAVIGATION_BAR_PAGES}
</div>
<div class="clear"></div>
{/if}
<!--kpoxas-->

Удален последний закрывающий тег:
</div>

\templates\vamshop\source\boxes\authors.php

Было:
if (!$box->is_cached(CURRENT_TEMPLATE.'/boxes/box_authors.html', $cache_id) || !$cache) {
$box->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');
$authors_query = "select authors_id, authors_name from " . TABLE_AUTHORS . " order by authors_name";
$authors_query = vamDBquery($authors_query);
$number_of_author_rows = vam_db_num_rows($authors_query,true);
Стало:
$authors_query = "select authors_id, authors_name from " . TABLE_AUTHORS . " order by authors_name";
$authors_query = vamDBquery($authors_query);
$number_of_author_rows = vam_db_num_rows($authors_query,true);
if (!$box->is_cached(CURRENT_TEMPLATE.'/boxes/box_authors.html', $cache_id) || !$cache) {
$box->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');

\templates\vamshop\source\boxes\best_sellers.php

Закомментирована строка:
if (!$box->is_cached(CURRENT_TEMPLATE.'/boxes/box_best_sellers.html', $cache_id) || !$cache) {
и последняя скобка
}

\templates\vamshop\source\boxes\manufacturers.php

Было:
if (!$box->is_cached(CURRENT_TEMPLATE.'/boxes/box_manufacturers.html', $cache_id) || !$cache) {
$box->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');
// include needed funtions
require_once (DIR_FS_INC.'vam_hide_session_id.inc.php');
require_once (DIR_FS_INC.'vam_draw_form.inc.php');
require_once (DIR_FS_INC.'vam_draw_pull_down_menu.inc.php');
$manufacturers_query = "select distinct m.manufacturers_id, m.manufacturers_name from ".TABLE_MANUFACTURERS." as m, ".TABLE_PRODUCTS." as p where m.manufacturers_id=p.manufacturers_id order by m.manufacturers_name";
$manufacturers_query = vamDBquery($manufacturers_query);
Стало:
$manufacturers_query = "select distinct m.manufacturers_id, m.manufacturers_name from ".TABLE_MANUFACTURERS." as m, ".TABLE_PRODUCTS." as p where m.manufacturers_id=p.manufacturers_id order by m.manufacturers_name";
$manufacturers_query = vamDBquery($manufacturers_query);
if (!$box->is_cached(CURRENT_TEMPLATE.'/boxes/box_manufacturers.html', $cache_id) || !$cache) {
$box->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/');
// include needed funtions
require_once (DIR_FS_INC.'vam_hide_session_id.inc.php');
require_once (DIR_FS_INC.'vam_draw_form.inc.php');
require_once (DIR_FS_INC.'vam_draw_pull_down_menu.inc.php');

\templates\vamshop\source\boxes.php

Было:
if (SET_BOX_FILTERS == 'true') include(DIR_WS_BOXES . 'params_filters.php');
Стало:
if (SET_BOX_FILTERS == 'true') include(DIR_WS_BOXES . 'products_filter.php');

Новый файл: \templates\vamshop\boxes\box_products_filter.html

{config_load file="$language/lang_$language.conf" section="boxes"}
<!-- Бокс фильтры -->
<div id="boxFilters">
<h5>{#heading_filters#}</h5>

<div id="boxFiltersContent">
{$BOX_CONTENT}
</div>

</div>
<!-- /Бокс фильтры -->

Новый файл: \templates\vamshop\source\boxes\products_filter.php

<?php
/* -----------------------------------------------------------------------------------------
$Id: infobox.php 1262 2007-02-07 12:30:44 VaM $

VaM Shop - open source ecommerce solution
http://vamshop.ru
http://vamshop.com

Copyright (c) 2007 VaM Shop
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommercebased on original files from OSCommerce CVS 2.2 2002/08/28 02:14:35 www.oscommerce.com
(c) 2003 nextcommerce (infobox.php,v 1.7 2003/08/13); www.nextcommerce.org
(c) 2004 xt:Commerce (infobox.php,v 1.7 2003/08/13); xt-commerce.com

Released under the GNU General Public License
-----------------------------------------------------------------------------------------
Third Party contributions:
Loginbox V1.0 Aubrey Kilian <aubrey@mycon.co.za>

Released under the GNU General Public License
---------------------------------------------------------------------------------------*/
$box = new vamTemplate;
$box->assign('tpl_path','templates/'.CURRENT_TEMPLATE.'/');
$box_content='';

require_once (DIR_FS_INC.'vam_get_subcategories.inc.php');

require_once (DIR_WS_FUNCTIONS . 'products_specifications.php');

require_once (DIR_WS_CLASSES . 'specifications.php');
$spec_object = new Specifications();

if (SPECIFICATIONS_FILTERS_BOX == 'True') {
$box_text = ''; //HTML string goes into the text part of the box

$specs_query_raw = "select s.specifications_id,
s.products_column_name,
s.filter_class,
s.filter_show_all,
s.filter_display,
sd.specification_name,
sd.specification_prefix,
sd.specification_suffix
from " . TABLE_SPECIFICATION . " s,
" . TABLE_SPECIFICATION_DESCRIPTION . " sd,
" . TABLE_SPECIFICATION_GROUPS . " sg,
" . TABLE_SPECIFICATIONS_TO_CATEGORIES . " s2c
where s.specification_group_id = sg.specification_group_id
and sg.specification_group_id = s2c.specification_group_id
and sd.specifications_id = s.specifications_id
and s2c.categories_id = '" . $current_category_id . "'
and s.show_filter = 'True'
and sg.show_filter = 'True'
and sd.language_id = '" . $_SESSION['languages_id'] . "'
order by s.specification_sort_order,
sd.specification_name
";
// print $specs_query_raw . "<br>\n";
$specs_query = vamDBquery ($specs_query_raw);

$first = true;
while ($specs_array = vam_db_fetch_array ($specs_query, true) ) {
// Retrieve the GET vars, sanitize, and assign to variables
// Variable names are the letter "f" followed by the specifications_id for that spec.
$var = 'f' . $specs_array['specifications_id'];
$$var = '0';
if (isset ($_GET[$var]) && $_GET[$var] != '') {
// Decode the URL-encoded names, including arrays
$$var = vam_decode_recursive ($_GET[$var]);

// Sanitize variables to prevent hacking
$$var = vam_clean_get__recursive ($_GET[$var]);

// Get rid of extra values if Select All is selected
$$var = vam_select_all_override ($$var);
}

$filters_query_raw = "select sf.specification_filters_id,
sfd.filter
from " . TABLE_SPECIFICATIONS_FILTERS . " sf,
" . TABLE_SPECIFICATIONS_FILTERS_DESCRIPTION . " sfd
where sfd.specification_filters_id = sf.specification_filters_id
and sf.specifications_id = '" . (int) $specs_array['specifications_id'] . "'
and sfd.language_id = '" . $_SESSION['languages_id'] . "'
order by sf.filter_sort_order,
sfd.filter
";
// print $filters_query_raw . "<br>\n";
$filters_query = vamDBquery ($filters_query_raw);

$count_filters = vam_db_num_rows ($filters_query, true);
$filters_select_array = array();
if ($count_filters >= SPECIFICATIONS_FILTER_MINIMUM) {
$filters_array = array();
if ($first == false) {
$box_text .= "<br>\n";
}
$first = false;

$box_text .= '<b>' . $specs_array['specification_name'] . '</b><br>';

$filter_index = 0;
if ($specs_array['filter_show_all'] == 'True') {
$count = 1;
if (SPECIFICATION_FILTER_NO_RESULT != 'normal' || SPECIFICATIONS_FILTER_SHOW_COUNT == 'True') {
// Filter ID is set to 0 so no filter will be applied
$count = $spec_object->getFilterCount ('0', $specs_array['specifications_id'], $specs_array['filter_class'], $specs_array['products_column_name']);
}
// The ID value must be set as a string, not an integer
$filters_select_array[$filter_index] = array ('id' => '0',
'text' => TEXT_SHOW_ALL,
'count' => $count
);
$filter_index++;
}

$previous_filter = 0;
$previous_filter_id = 0;
while ($filters_array = vam_db_fetch_array ($filters_query, true) ) {
$filter_id = $filters_array['filter'];

if ($specs_array['products_column_name'] == 'products_price' || $specs_array['products_column_name'] == 'final_price') {
//$previous_filter = $currencies->format ($previous_filter);
//$filter_text = $currencies->format ($filters_array['filter']);
$previous_filter = $previous_filter;
$filter_text = $filters_array['filter'];
} else {
$filter_text = $specs_array['specification_prefix'] . ' ' . $filters_array['filter'] . ' ' . $specs_array['specification_suffix'];
}

if ($specs_array['filter_class'] == 'range') {
$filter_text = $previous_filter . ' - ' . $filter_text;
$filter_id = $previous_filter_id . '-' . $filters_array['filter'];

$previous_filter = $filters_array['filter'];
$previous_filter_id = $filters_array['filter'];
}

$count = 1;
if (SPECIFICATION_FILTER_NO_RESULT != 'normal' || SPECIFICATIONS_FILTER_SHOW_COUNT == 'True') {
$count = $spec_object->getFilterCount ($filter_id, $specs_array['specifications_id'], $specs_array['filter_class'], $specs_array['products_column_name']);
}

$filters_select_array[$filter_index] = array ('id' => ($filter_id),
'text' => $filter_text,
'count' => $count
);
$filter_index++;
} // while ($filters_array

// For range class only, create a filter for maximum value +
if ($specs_array['filter_class'] == 'range') {
if ($specs_array['products_column_name'] == 'products_price' || $specs_array['products_column_name'] == 'final_price') {
//$previous_filter = $currencies->format ($previous_filter);
$previous_filter = $previous_filter;
}

$count = 1;
if (SPECIFICATION_FILTER_NO_RESULT != 'normal' || SPECIFICATIONS_FILTER_SHOW_COUNT == 'True') {
$count = $spec_object->getFilterCount ($previous_filter_id, $specs_array['specifications_id'], $specs_array['filter_class'], $specs_array['products_column_name']);
}

// $filters_select_array[$filter_index] = array ('id' => rawurlencode ($previous_filter_id),
$filters_select_array[$filter_index] = array ('id' => ($previous_filter_id),
'text' => $previous_filter . '+',
'count' => $count
);
} // if ($specs_array['filter_class'] == 'range'

$box_text .= vam_get_filter_string ($specs_array['filter_display'], $filters_select_array, FILENAME_PRODUCTS_FILTERS, $var, $$var);
} // if ($count_filters
} // while ($specs_array
if (vam_db_num_rows ($specs_query, true) > 0) {

$box->assign('BOX_CONTENT', $box_text);
$box->assign('language', $_SESSION['language']);
// set cache ID
if (!CacheCheck()) {
$box->caching = 0;
$box_infobox= $box->fetch(CURRENT_TEMPLATE.'/boxes/box_products_filter.html');
} else {
$box->caching = 1;
$box->cache_lifetime=CACHE_LIFETIME;
$box->cache_modified_check=CACHE_CHECK;
$cache_id = $_SESSION['language'].$_SESSION['customers_status']['customers_status_id'];
$box_infobox= $box->fetch(CURRENT_TEMPLATE.'/boxes/box_products_filter.html',$cache_id);
}

$vamTemplate->assign('box_FILTERS',$box_infobox);

}
}

?>

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

Enjoy VamShop! :)

Другие новости...