» » » [FREE] Модуль магазина на ДЛЕ | DLE SHOP 1.1 [DLE 9.8 - 10.0]

[FREE] Модуль магазина на ДЛЕ | DLE SHOP 1.1 [DLE 9.8 - 10.0]

[FREE] Модуль магазина на ДЛЕ | DLE SHOP 1.1 [DLE 9.8 - 10.0]

Сегодня нашел модуль dle для создания интернет магазина на этом двжике. На многих сайтах он выкладывался под большим хайдом, а у меня вот бесплатно. Качайте на здоровье.

Название: Модуль магазина для DLE
Автор: DleClub
Адаптировал: arkasha206
Версия модуля: 1.1
Версия DLE: DLE 9.8 - 10.0

Возможности:
-Добавлять категории товаров.
-Добавлять дополнительные поля для товаров.
-Управление категориями и полями.
-Возможность добавлять товары в корзину.
-Вывод корзины в блоке.
-Вывод новых товаров.
-Вывод последних просмотренных товаров.



Установка модуля DLE SHOP 1.1 [DLE 9.8 - 10.0]
в index.php:
после $tpl->set ( '{tags}', $tpl->result['tags_cloud'] );
вставьте $tpl->set ( '{mycart}', $tpl->result['mycart'] ); - для отображения корзины по тегу {mycart}
$tpl->set ( '{shop_latest}', $tpl->result['shop_latest']); - для отображения блока последних продуктов по тегу {shop_latest}
$tpl->set ( '{frontshop}', $tpl->result['frontshop']); - для отображения на главной странице, списка отмеченых продуктов по тегу {frontshop}

в init.php в конец вставить
include_once ENGINE_DIR . '/modules/shop.php';


в engine.php
после case "pm" :
		include ENGINE_DIR . '/modules/pm.php';
		break;


вставить
case "shop" :
		include ENGINE_DIR . '/modules/shop.php';
		break;
		

в inc/options.php после
array (
											'name' => $lang['opt_google'], 
											'url' => "$PHP_SELF?mod=googlemap", 
											'descr' => $lang['opt_googlec'], 
											'image' => "googlemap.png", 
											'access' => "1" 
								),
		

вставьте

array (
											'name' => "Магазин", 
											'url' => "$PHP_SELF?mod=shop", 
											'descr' => "Модуль магазина", 
											'image' => "iset.png", 
											'access' => "1" 
								) 
					

в htaccess вставить после
RewriteRule ^favorites/page/([0-9]+)(/?)+$ index.php?do=favorites&cstart=$1 [L]

#Магазин
RewriteRule ^shop(/?)+$ index.php?do=shop [L]
RewriteRule ^shop/([0-9]+)(/?)+$ index.php?do=shop&page=$1 [L]
RewriteRule ^shop/admin/config(/?)+$ index.php?do=shop&op=config [L]
RewriteRule ^shop/cities/additem(/?)+$ index.php?do=shop&op=additem&class=cities [L]
RewriteRule ^shop/cities/additem/add(/?)+$ index.php?do=shop&op=additem&class=cities&action=add [L]
RewriteRule ^shop/categories/additem(/?)+$ index.php?do=shop&op=additem&class=categories [L]
RewriteRule ^shop/cities/showlist(/?)+$ index.php?do=shop&op=showlist&class=cities [L]
RewriteRule ^shop/categories/showlist(/?)+$ index.php?do=shop&op=showlist&class=categories [L]
RewriteRule ^shop/cities/edit/(.*)(/?)+$ index.php?do=shop&op=edit&class=cities&id=$1 [L]
RewriteRule ^shop/categories/edit/(.*)(/?)+$ index.php?do=shop&op=edit&class=categories&id=$1 [L]
RewriteRule ^shop/cities/delete/(.*)(/?)+$ index.php?do=shop&op=delete&class=cities&id=$1 [L]
RewriteRule ^shop/categories/delete/(.*)(/?)+$ index.php?do=shop&op=delete&class=categories&id=$1 [L]
RewriteRule ^shop/cities/show/(.*)(/?)+$ index.php?do=shop&op=showitem&class=cities&id=$1 [L]
RewriteRule ^shop/categories/show/(.*)(/?)+$ index.php?do=shop&op=showitem&class=categories&id=$1 [L]
RewriteRule ^shop/products/additem(/?)+$ index.php?do=shop&op=additem&class=products [L]
RewriteRule ^shop/products/showlist(/?)+$ index.php?do=shop&op=showlist&class=products [L]
RewriteRule ^shop/products/edit/(.*)(/?)+$ index.php?do=shop&op=edit&class=products&id=$1 [L]
RewriteRule ^shop/products/delete/(.*)(/?)+$ index.php?do=shop&op=delete&class=products&id=$1 [L]
RewriteRule ^shop/products/show/(.*)(/?)+$ index.php?do=shop&op=showitem&class=products&id=$1 [L]
RewriteRule ^shop/cities/showlist/(.*)(/?)+$ index.php?do=shop&op=showlist&class=cities&page=$1 [L]
RewriteRule ^shop/products/showlist/([0-9]+)(/?)+$ index.php?do=shop&op=showlist&class=products&page=$1 [L]
RewriteRule ^shop/products/showlist/([0-9]+)/([0-9]+)(/?)+$ index.php?do=shop&op=showlist&class=products&page=$1&moder=$2 [L]
RewriteRule ^shop/categories/showlist/(.*)(/?)+$ index.php?do=shop&op=showlist&class=categories&page=$1 [L]
RewriteRule ^shop/main/category/(.*)/(.*)(/?)+$ index.php?do=shop&op=category&class=main&cid=$1&page=$2 [L]
RewriteRule ^shop/main/category/(.*)(/?)+$ index.php?do=shop&op=category&class=main&cid=$1 [L]
RewriteRule ^shop/products/itemshow/(.*)(/?)+$ index.php?do=shop&op=itemshow&class=products&id=$1 [L]
RewriteRule ^shop/cities/itemshow/(.*)(/?)+$ index.php?do=shop&op=itemshow&class=cities&id=$1 [L]
RewriteRule ^shop/categories/itemshow/(.*)(/?)+$ index.php?do=shop&op=itemshow&class=categories&id=$1 [L]
RewriteRule ^shop/products/unpublish/(.*)(/?)+$ index.php?do=shop&op=unpublish&class=products&id=$1 [L]
RewriteRule ^shop/products/publish/(.*)(/?)+$ index.php?do=shop&op=publish&class=products&id=$1 [L]
RewriteRule ^shop/products/itembuy/(.*)(/?)+$ index.php?do=shop&op=itembuy&class=products&id=$1 [L]
RewriteRule ^shop/search/(.*)(/?)+$ index.php?do=shop&op=search&class=products&action=search&$1 [L]
RewriteRule ^shop/carts/additem(/?)+$ index.php?do=shop&op=additem&class=carts [L]
RewriteRule ^shop/carts/showlist(/?)+$ index.php?do=shop&op=showlist&class=carts [L]
RewriteRule ^shop/carts/edit/(.*)(/?)+$ index.php?do=shop&op=edit&class=carts&id=$1 [L]
RewriteRule ^shop/carts/delete/(.*)(/?)+$ index.php?do=shop&op=delete&class=carts&id=$1 [L]
RewriteRule ^shop/carts/show/(.*)(/?)+$ index.php?do=shop&op=showitem&class=carts&id=$1 [L]
RewriteRule ^shop/carts/itemshow/(.*)(/?)+$ index.php?do=shop&op=itemshow&class=carts&id=$1 [L]
RewriteRule ^shop/carts/clearup/(.*)(/?)+$ index.php?do=shop&op=clearup&class=carts&id=$1 [L]
RewriteRule ^shop/carts/checkout/(.*)(/?)+$ index.php?do=shop&op=checkout&class=carts&id=$1 [L]
RewriteRule ^shop/carts/deleteitem/(.*)/(.*)(/?)+$ index.php?do=shop&op=deleteitem&class=carts&id=$1&did=$2 [L]
RewriteRule ^shop/comments/delete/(.*)(/?)+$ index.php?do=shop&op=delete&class=comments&id=$1 [L]
RewriteRule ^shop/comments/edit/(.*)(/?)+$ index.php?do=shop&op=edit&class=comments&id=$1 [L]

в main.tpl
вставьте тег {mycart} для отображения корзины

Поставьте права 666 на файл - engine/data/shop_config.php
на папку uploads/shop И все под папки 777

Вот и все установка закончена winked

Скачать [FREE] Модуль магазина на ДЛЕ | DLE SHOP 1.1 [DLE 9.8 - 10.0]

dle_shop-1.1.rar [66,2 Kb] (cкачиваний: 33)


Автор: candro | Комментариев: 0 | Категория: DataLife Engine » Модули

Комментарии



Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.
RomanZaharov.Ru- Блог простого веб-мастера . © 2013-2014