<?php
class ControllerModuleCategoryPriceListView extends Controller {
private $error = array();
public function index() {
$this->load->language('module/category_pricelist_view');
$this->document->setTitle(strip_tags($this->language->get('heading_title')));
$this->load->model('setting/setting');
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
if ($this->request->post['apply']) {
$url = $this->url->link('module/category_pricelist_view', 'token=' . $this->session->data['token'], 'SSL');
} else {
$url = $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL');
}
unset($this->request->post['apply']);
$this->model_setting_setting->editSetting('category_pricelist_view', $this->request->post);
$this->session->data['success'] = $this->language->get('text_success');
$this->redirect($url);
}
$this->data['heading_title'] = $this->language->get('heading_title');
$this->data['text_enabled'] = $this->language->get('text_enabled');
$this->data['text_disabled'] = $this->language->get('text_disabled');
$this->data['text_select_all'] = $this->language->get('text_select_all');
$this->data['text_unselect_all'] = $this->language->get('text_unselect_all');
$this->data['text_select_on'] = $this->language->get('text_select_on');
$this->data['text_select_off'] = $this->language->get('text_select_off');
$this->data['text_select_on1'] = $this->language->get('text_select_on1');
$this->data['text_select_off1'] = $this->language->get('text_select_off1');
$this->data['entry_category'] = $this->language->get('entry_category');
$this->data['text_icons'] = $this->language->get('text_icons');
$this->data['text_default_view'] = $this->language->get('text_default_view');
$this->data['text_column_image'] = $this->language->get('text_column_image');
$this->data['button_save'] = $this->language->get('button_save');
$this->data['button_cancel'] = $this->language->get('button_cancel');
$this->data['button_apply'] = $this->language->get('button_apply');
$this->data['button_remove'] = $this->language->get('button_remove');
if (isset($this->session->data['success'])) {
$this->data['success'] = $this->session->data['success'];
unset($this->session->data['success']);
} else {
$this->data['success'] = '';
}
$this->data['breadcrumbs'] = array();
$this->data['breadcrumbs'][] = array(
'text' => $this->language->get('text_home'),
'href' => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),
'separator' => false
);
$this->data['breadcrumbs'][] = array(
'text' => $this->language->get('text_module'),
'href' => $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL'),
'separator' => ' :: '
);
$this->data['breadcrumbs'][] = array(
'text' => $this->language->get('heading_title'),
'href' => $this->url->link('module/category_pricelist_view', 'token=' . $this->session->data['token'], 'SSL'),
'separator' => ' :: '
);
$this->data['action'] = $this->url->link('module/category_pricelist_view', 'token=' . $this->session->data['token'], 'SSL');
$this->data['cancel'] = $this->url->link('extension/module', 'token=' . $this->session->data['token'], 'SSL');
$this->data['modules'] = array();
if (isset($this->request->post['category_pricelist_view_module'])) {
$this->data['modules'] = $this->request->post['category_pricelist_view_module'];
} elseif ($this->config->get('category_pricelist_view_module')) {
$this->data['modules'] = $this->config->get('category_pricelist_view_module');
}
$this->load->model('catalog/category');
$this->data['categories'] = $this->model_catalog_category->getCategories(0);
$this->load->model('catalog/attribute');
$this->data['attributes'] = $this->model_catalog_attribute->getAttributes();
$config_vars = array(
'category_pricelist_view_icon_show',
'category_pricelist_view_image_show', 'category_pricelist_view_image_link', 'category_pricelist_view_quantity_show',
'category_pricelist_view_quantity_cart_show', 'category_pricelist_view_model_show',
'category_pricelist_view_sku_show', 'category_pricelist_view_upc_show', 'category_pricelist_view_location_show',
'category_pricelist_view_manufacturer_show', 'category_pricelist_view_manufacturer_link',
'category_pricelist_view_attribute_show', 'category_pricelist_view_attribute_name_show', 'category_pricelist_view_option_show',
'category_pricelist_view_multicart_show', 'category_pricelist_view_cart_show',
'category_pricelist_price_constant_show' ,'category_pricelist_compare_wishlist_show',
'search_pricelist_view_search_show',
'search_pricelist_view_icon_show', 'search_pricelist_view_default_show',
'search_pricelist_view_image_show', 'search_pricelist_view_image_link', 'search_pricelist_view_quantity_show',
'search_pricelist_view_quantity_cart_show', 'search_pricelist_view_model_show',
'search_pricelist_view_sku_show', 'search_pricelist_view_upc_show', 'search_pricelist_view_location_show',
'search_pricelist_view_manufacturer_show', 'search_pricelist_view_manufacturer_link',
'search_pricelist_view_attribute_show', 'search_pricelist_view_attribute_name_show', 'search_pricelist_view_option_show',
'search_pricelist_view_multicart_show', 'search_pricelist_view_cart_show',
'search_pricelist_price_constant_show', 'search_pricelist_compare_wishlist_show',
'manufacturer_pricelist_view_manufacturer_show', 'manufacturer_pricelist_compare_wishlist_show',
'manufacturer_pricelist_view_icon_show', 'manufacturer_pricelist_view_default_show',
'manufacturer_pricelist_view_image_show', 'manufacturer_pricelist_view_image_link', 'manufacturer_pricelist_view_quantity_show',
'manufacturer_pricelist_view_quantity_cart_show', 'manufacturer_pricelist_view_model_show',
'manufacturer_pricelist_view_sku_show', 'manufacturer_pricelist_view_upc_show', 'manufacturer_pricelist_view_location_show',
'manufacturer2_pricelist_view_manufacturer_show', 'manufacturer_pricelist_view_manufacturer_link',
'manufacturer_pricelist_view_attribute_show', 'manufacturer_pricelist_view_attribute_name_show', 'manufacturer_pricelist_view_option_show',
'manufacturer_pricelist_view_multicart_show', 'manufacturer_pricelist_view_cart_show',
'manufacturer_pricelist_price_constant_show',
'special_pricelist_view_special_show', 'special_pricelist_compare_wishlist_show',
'special_pricelist_view_icon_show', 'special_pricelist_view_default_show',
'special_pricelist_view_image_show', 'special_pricelist_view_image_link', 'special_pricelist_view_quantity_show',
'special_pricelist_view_quantity_cart_show', 'special_pricelist_view_model_show',
'special_pricelist_view_sku_show', 'special_pricelist_view_upc_show', 'special_pricelist_view_location_show',
'special_pricelist_view_manufacturer_show', 'special_pricelist_view_manufacturer_link',
'special_pricelist_view_attribute_show', 'special_pricelist_view_attribute_name_show', 'special_pricelist_view_option_show',
'special_pricelist_view_multicart_show', 'special_pricelist_view_cart_show',
'special_pricelist_price_constant_show',
);
foreach ($config_vars as $config_var) {
if (isset($this->request->post[$config_var])) {
$this->data[$config_var] = $this->request->post[$config_var];
} elseif ($this->config->get($config_var)) {
$this->data[$config_var] = $this->config->get($config_var);
} else {
$this->data[$config_var] = '0';
}
}
if (isset($this->request->post['category_pricelist_view_default_show'])) {
$this->data['category_pricelist_view_default_show'] = $this->request->post['category_pricelist_view_default_show'];
} elseif ($this->config->get('category_pricelist_view_default_show'))
没有合适的资源?快使用搜索试试~ 我知道了~
category_pricelist_view_v1.2.1.zip_Opencart_pricelist_branch33u_
共17个文件
xml:5个
php:3个
css:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 18 浏览量
2022-09-23
03:50:59
上传
评论
收藏 263KB ZIP 举报
温馨提示
price_list on opencart
资源推荐
资源详情
资源评论
收起资源包目录
category_pricelist_view_v1.2.1.zip (17个子文件)
admin
view
template
module
category_pricelist_view.tpl 34KB
controller
module
category_pricelist_view.php 11KB
language
russian
module
category_pricelist_view.php 1KB
catalog
view
javascript
category_pricelist_view.js 6KB
theme
default
stylesheet
category_pricelist_view.css 6KB
font-awesome.css 21KB
fonts
fontawesome-webfont.eot 37KB
fontawesome-webfont.woff 43KB
FontAwesome.otf 61KB
fontawesome-webfont.svg 197KB
fontawesome-webfont.ttf 79KB
language
russian
product
category_pricelist_view.php 688B
vqmod
xml
special_pricelist_view.xml 20KB
category_pricelist_view_for_filterPro.xml 13KB
search_pricelist_view.xml 20KB
category_pricelist_view.xml 21KB
manufacturer_pricelist_view.xml 20KB
共 17 条
- 1
资源评论
weixin_42651887
- 粉丝: 75
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功