1
Общие вопросы / Re: редактирование aux_page
« : Октября 01, 2013, 07:25:10 am »
до того как залил на хост - все работало. и создавал и редактировал через админку. теперь посленажатия на сохранить - ничего не сохраняется...
🔶 Свежий релиз CMS Legosp 6.3.1
😎 Новый универсальный шаблон "Store"
👉 Новая услуга "Бесплатный SEO анализ" вашего сайта!
🔴 6 супер модулей всего за 👉100$ В разделе модули "Комплект из 6-ти модулей"
💣 УРА! Мы обновили дизайн сайта!
☁️ Интернет-магазин в облаке Legosp CLOUD!⚡⚡⚡
В этом разделе можно просмотреть все сообщения, сделанные этим пользователем.
<ifmodule mod_deflate.c="">
<filesmatch .(js|css|.jpg|.gif|.png|.tiff|.ico)$="">
SetOutputFilter DEFLATE
</filesmatch>
</ifmodule>
#config
DirectoryIndex index.php
AddDefaultCharset utf-8
AddCharset utf-8 .php
Options -Indexes
#rewrite url's
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
#www redirect
RewriteCond %{HTTP_HOST} ^www.rmis.co.il$ [NC]
RewriteRule ^(.*)$ http://rmis.co.il/$1 [R=301,L]
#copress js and css
RewriteRule core/js/(.*)\.js$ core/jscss.php [L]
RewriteRule css/(.*).css$ core/jscss.php [L]
#payment
RewriteRule payment/$ index.php?payment [L]
#about url's
RewriteRule ^catalog/(.*)/about/$ index.php?about&category=$1/ [L]
RewriteRule ^brand/(.*)/about/$ index.php?about&brands=$1/ [L]
#catalog url's
RewriteRule ^catalog/(.*)$ index.php?catalog_hurl=$1 [L]
RewriteRule ^product/(.*)$ index.php?product_hurl=$1 [L]
RewriteRule ^news/(.*)$ index.php?news&news=$1 [L]
RewriteRule ^pages/(.*)$ index.php?pages&pages=$1 [L]
RewriteRule ^tags/(.*)$ index.php?tags_hurl=$1 [L]
RewriteRule ^brand/(.*)/(.*) index.php?brand=$1/$2 [L]
#sort url's
RewriteRule (.*)/(.*)/&sort=(.*)&order=(.*)$ index.php?$1_hurl=$2&sort=$3&order=$4 [L]
#offset url's
#RewriteRule offset/(.*)/&sort=(.*)&order=(.*)$ index.php?searchstring=$1&sort=$2&order=$3 [L]
RewriteRule (.*)/(.*)/&offset=(.*)$ index.php?$1_hurl=$2&offset=$3 [L]
RewriteRule (.*)/(.*)/&show_all=yes$ index.php?$1_hurl=$2&show_all=yes [L]
#lang url's
#RewriteRule ru/$ index.php?new_language=0 [L]
#RewriteRule en/$ index.php?new_language=1 [L]
#information url's
RewriteRule info/(.*)$ index.php?aux_pages=$1 [L]
RewriteRule contact/&send_result=(.*)$ index.php?contact&send_result=$1 [L]
RewriteRule contact/$ index.php?contact [L]
RewriteRule service/$ index.php?aux_page=aux2 [L]
RewriteRule pricelist/([0-9]*)/$ index.php?show_price=$1 [L]
RewriteRule pricelist/$ index.php?show_price=yes [L]
RewriteRule ^price.xls$ core/core_xls.php [L]
RewriteRule feed.xml$ core/core_rss.php [L]
RewriteRule ^about/$ index.php?aux_page=aux1 [L]
RewriteRule grafik/$ index.php?aux_page=aux1 [L]
RewriteRule adress/$ index.php?aux_page=aux1 [L]
RewriteRule sitemap\.xml$ core/sitemap.php [L]
RewriteRule sitemap/$ index.php?sitemap [L]
#administration url's
RewriteRule admin$ admin.php [L]
RewriteRule admin/$ admin.php [L]
#cart url's
RewriteRule add2cart/(.*)$ index.php?shopping_cart&add2cart=$1 [L]
RewriteRule cart/$ index.php?shopping_cart=yes [L]
RewriteRule cart/order/$ index.php?order_custinfo=yes [L]
RewriteRule cart/order_placed/$ index.php?order_placement_result=0 [L]
RewriteRule printorder/$ core/core_printorder.php [L]
RewriteRule pd4/$ core/print_pd4.php [L]
RewriteRule cart/remove=(.*)$ index.php?shopping_cart=yes&remove=$1 [R=301,L]
RewriteRule cart/clear$ index.php?shopping_cart=yes&clear_cart=yes [L]
#yandex url's
RewriteRule yandex\.(xml|yml)$ core/core_yml.php [L]
RewriteRule metamarket\.xml$ core/core_metamarket.php [L]
#search_expanded url's
RewriteRule search_expanded/ index.php?search_expanded=1 [L]
#watermark
RewriteRule ^(products_pictures|products_thumb|userfiles)/(.*\.(gif|jpg|jpeg|png)) core/watermark.php?dir=$1&img_path=$2 [L] # All
RewriteRule ^(products_pictures)/(.*\.(gif|jpg|jpeg|png)) core/watermark.php?dir=$1&img_path=$2 [L] # All products_pictures
RewriteRule ^(products_pictures)/(.*-B\.(gif|jpg|jpeg|png)) core/watermark.php?dir=$1&img_path=$2 [L] # only big products_pictures
RewriteRule ^(products_pictures)/(.*-H\.(gif|jpg|jpeg|png)) core/watermark.php?dir=$1&img_path=$2 [L] # only smal products_pictures
RewriteRule ^(products_thumb)/(.*\.(gif|jpg|jpeg|png)) core/watermark.php?dir=$1&img_path=$2 [L] # All products_thumb
RewriteRule ^(products_pictures)/(.*\.(gif|jpg|jpeg|png)) core/watermark.php?dir=$1&img_path=$2 [L] # All products_pictures
RewriteRule ^(products_pictures)/(.*-B\.(gif|jpg|jpeg|png)) core/watermark.php?dir=$1&img_path=$2 [L] # only big products_pictures
RewriteRule ^(products_pictures)/(.*-H\.(gif|jpg|jpeg|png)) core/watermark.php?dir=$1&img_path=$2 [L] # only smal products_pictures
RewriteRule ^(products_thumb)/(.*\.(gif|jpg|jpeg|png)) core/watermark.php?dir=$1&img_path=$2 [L] # All products_thumb
#errors
# RewriteRule 404/$ core/core_404.php [L]
# RewriteRule 404/$ index.php?error_404 [L]
RewriteRule 404/$ index.php?error_404 [L]
ErrorDocument 403 /index.php?error_404
ErrorDocument 404 /index.php?error_404
RewriteEngine On
RewriteBase /cache/assets/
RewriteCond %{HTTP:Accept-Encoding} .*gzip.*
RewriteRule (.*)\.css $1.css.gz
RewriteRule (.*)\.js $1.js.gz
AddEncoding x-gzip .gz
ЦитироватьUncaught exception 'SmartyException' with message 'Unable to load template file 'product_brief_new.tpl.html''оно вам говорит что не может загрузить фаил product_brief_new.tpl.html
убедитесь в том что он у вас точно так называется, что на него есть права на чтение, и что он лежит в нужной папке темы
убрал с product_brief.tpl.htm вот этоэто я понял. но тогда в product_brief их не будет. нельзя ли сделать какой нибудь product_brief_simpe.tpl.htm (копия product_brief ) отредактировать и его прописать в category.tpl.htm???можно и так
<table>
{foreach from=$options[$id] item=option key=key name=option}
<tr>
<td style="vertical-align: top">
<b>{$option.name}:</b>
</td>
<td>
{if count($option.var)>1}
{assign var="i" value=$i+1}
<select class="product_option_{$id}" name="product_option_{$id}_{$key}" id="product_option[{$id}][{$i}]" onChange="GetNewPrice({$id},{$i})">
{*<option rel="0" value="">ֽו מןנוהוכוםמ</option>*}
{foreach from=$option.var item=var}
<option {if $var.default}selected {math assign="p" equation="x+z" x=$var.price_surplus z=$p format="%.2f"} {/if} rel="0" value="{$var.variantID}:{$var.price_surplus}:{$var.picture}">{$var.name}{if $var.price_surplus!=0} {assign var="new_price" value="1"} ({if $var.price_surplus>0}+{/if}{math equation="x/y" x=$var.price_surplus y=$smarty.const.CURRENCY_val format="%.2f"}){/if}</option>
{/foreach}
</select>
{elseif $option.or_op}
{$option.or_op}
{else}
{$option.var.0.name}
{/if}
<br>
</td>
</tr>
{/foreach}
</table>
назвал новый файл product_brief_new.tpl.html<td style="text-align: center; vertical-align: top; padding: 5px; width: {math equation="x/y" x=100 y=$smarty.const.CONF_COLUMNS_PER_PAGE|string_format:"%d"}%">
{include file="product_brief_new.tpl.html" product_info=$products_to_show[i1] options=$options}
вот результат (то что видит клиент на сайте при нажатии на категорию):Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'product_brief_new.tpl.html'' in
C:\inetpub\wwwroot\smarty\sysplugins\smarty_internal_template.php:162 Stack trace: #0 C:\inetpub\wwwroot\smarty\sysplugins\smarty_internal_template.php(537): Smarty_Internal_Template->isExisting(true) #1 C:\inetpub\wwwroot\core\cache\ee011e5f87aa261a70d49a66133d9d35a683799e.file.category.tpl.html.php(174): Smarty_Internal_Template-
>getRenderedTemplate() #2 C:\inetpub\wwwroot\smarty\sysplugins\smarty_internal_template.php(422): include('C:\inetpub\wwwr...') #3
C:\inetpub\wwwroot\smarty\sysplugins\smarty_internal_template.php(554): Smarty_Internal_Template->renderTemplate() #4
C:\inetpub\wwwroot\core\cache\e00df3311957635d46cf6568e6f1079328e2744a.file.index.tpl.html.php(596): Smarty_Internal_Template->getRenderedTemplate() #5
C:\inetpub\wwwroot\smarty\sysplugins\smarty_internal_template.php(422): include('C:\inetpub\wwwr...') #6 C:\inetpub\wwwroot\smarty\sysplugins\smarty_internal_template.php(554): in
C:\inetpub\wwwroot\smarty\sysplugins\smarty_internal_template.php on line 162