opencart

Why is OpenCart 2.3 custom theme not showing?

亡梦爱人 提交于 2019-11-27 06:22:28
问题 I've read through some guides and watched a YouTube video on how to create a custom theme for OpenCart. After trying various things it still doesn't seem to be working right. If I go to 'Extensions > Themes > Edit Store' I can switch the theme directory but this doesn't seem right. The question bubble there says changing the theme directory here is only for legacy support of older themes. Current themes should be available through 'System > Settings > Edit Store > General Tab (Select Theme

onchange file input change img src and change image color

坚强是说给别人听的谎言 提交于 2019-11-27 01:11:09
问题 onchange event is not working. What am I supposed to do to get result on same page. I dont want to redirect to any other page to upload image. Is this issue is because of opencart? I dont know if it is correct to write like this in cpanel. I am using opencart and cpanel. Is there any other way? HTML <input type='file' id="upload" onchange="readURL(this.value)" /> <img id="img" src="#" alt="your image" /> script function readURL(input) { var url = input.value; var ext = url.substring(url

How to create a custom admin page in opencart?

不打扰是莪最后的温柔 提交于 2019-11-27 00:00:21
I want to know how to make a custom admin panel page in opencart. Requires login with the controller - the admin panel does not seem to use the same controller as the normal site. I know how to make custom pages with opencart (but this is not for the admin) A simple Hello World example would be great TheBlackBenzKid OpenCart 2.x The path names have changed in OpenCart 2 - you will want to create admin/controller/extension/module/hello.php admin/language/en-gb/extension/module/hello.php admin/view/template/extension/module/hello.tpl Then the route becomes admin/index.php?route=extension/module

Adding an admin page on OpenCart version 2

落爺英雄遲暮 提交于 2019-11-26 20:29:51
问题 I am havin a problem adding an admin page to Opencart2, and following the answers on pretty much identical questions on SO do no help, so I beleive the problem is specific to OC2. Following the answer at this question I still get the error message " Fatal error: Call to undefined method ControllerCustomHelloWorld::render() in C:\websites\weddingshoponline\shop\admin\controller\custom\helloworld.php on line 13 . Any help would be much appreciated, as I have been going around in circles. Thank

opencart 百度登录和百度钱包支付插件 响应式适应pc/mobile

 ̄綄美尐妖づ 提交于 2019-11-26 18:28:37
OpenCart( http://www.opencart.com/ , http://www.opencartchina.com/ )是国外著名的开源电子商务系统, 优势在于前台界面的设计非常适合欧美购物者的浏览习惯:简洁,直观,唯美;后台简洁明了,而且功能强大。对于初学者来说非常容易上手,对于大多数经验丰富的网店经营者来说,OpenCart的后台管理功能也基本能满足其需求,并且有大量的插件满足不同用户的需求,可以说是最适合国内用户建设电商网站的开源框架。 经过几天的学习后,决定也要动手写个插件,浏览下大家在OpenCart社区内发的插件,发现对于第三登录,有QQ和新浪微博,但是没有百度账户登录,虽说百度账户没有QQ用户量多,但凭借其众多大牌产品,百度知道,百度文库等,其用户数也相当的多,并且支持短信,新浪微博,QQ和人人网登录,看来只要一个百度登录的插件,相当于把国内主流的第三方登录都集成了;对于支付,已有支付宝支付,财付通支付,但是百度半个月前推出了百度钱包支付,伴随着各种优惠活动来看,后续用户数可想而知;对于前端展示,有一个大牛做了手机版opencartmobile,能根据屏幕尺寸自动切成手机样式和切换回pc样式,但是其手机样式显示效果还是还一些pc感觉。经过上面的分析,打算做的插件功能也定下来了,百度账户登录,百度钱包支付,将opencart

OpenCart框架运行流程介绍

纵饮孤独 提交于 2019-11-26 18:28:34
框架运行流程介绍 这样的一个get请求http:// hostname /index.php?route=common/home 发生了什么? 1. 开始执行入口文件index.php。 2. require_once(DIR_SYSTEM . 'startup.php'); 做一些php的配置和加载一些类声明,包括系统主框架文件(system/engine下的文件)、一些必用到的helper和library。 系统主框架文件包括:   registry:保存全局变量,使用了注册者模式,controller的基类、model的基类,loader等均保存此对象的引用。没有写成单例模式,可能是想让这个类更通用,可以额外new一个registry实例,在几个对象内做共享用;   loader:动态加载其他文件用,提供加载model、library、helper、database、config和language能力,其中加载model和database会new出一个实例将其保存到registry对象内, 对于数据类,只需一个实例;   controller,model:控制器的基类和数据模型类的基类,功能很简单;   action:用户的一个请求,对应一个动作,用请求的query参数route初始化action;   front: 请求分发器,派发action; 下面的框架流程

Disable template caching for development in OpenCart 3

自闭症网瘾萝莉.ら 提交于 2019-11-26 14:48:23
问题 I am making changes in my theme templates in OpenCart 3. Due to template caching I have to clear cache every time under "storage/cache" directory. It is very annoying when working and previewing changes frequently during development. Please provide some solution how we can configure caching according to production and development environment. Note: I have already searched for solutions online but there is no solution related to template caching. Solutions are available to disable image

How can I create custom SEO-friendly URLs in OpenCart?

混江龙づ霸主 提交于 2019-11-26 12:54:08
问题 How can you customize system URLs in OpenCart? For example, I would like http://example.com/index.php?route=checkout/cart to be displayed as http://example.com/cart I know OpenCart provides SEO URLs for products, categories, manufacturers and information pages, but it doesn\'t look like there is anything built-in (at least prior to version 1.5.0) for anything else. 回答1: It turns out this can be done with a relatively simple change to a single file. No .htaccess rewrite rules, simply patch the

How to create a custom admin page in opencart?

[亡魂溺海] 提交于 2019-11-26 09:16:45
问题 I want to know how to make a custom admin panel page in opencart. Requires login with the controller - the admin panel does not seem to use the same controller as the normal site. I know how to make custom pages with opencart (but this is not for the admin) A simple Hello World example would be great 回答1: OpenCart 2.x The path names have changed in OpenCart 2 - you will want to create admin/controller/extension/module/hello.php admin/language/en-gb/extension/module/hello.php admin/view

How to become an OpenCart guru? [closed]

巧了我就是萌 提交于 2019-11-26 00:29:47
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 months ago . It seems like they have no documentation except some api calls on their official forums. I have experience with Zend framework and CodeIgniter framework. Can any OpenCart masters recommend me the best way to learn it and master in shortest amount of time? I have to do a big