opencart

onchange file input change img src and change image color

故事扮演 提交于 2019-11-28 06:22:59
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.lastIndexOf('.') + 1).toLowerCase(); if (input.files && input.files[0]&& (ext == "gif" || ext == "png" ||

Splitting mysql value into unknown number of parts

这一生的挚爱 提交于 2019-11-27 22:43:47
问题 I have been given a mySQL database to restructure into an OpenCart installation. I've pulled most of the data across but in the old site "product categories" have been all put in a single column |228|243|228|239|228| or |88| or |88|243| So I have no idea how many would be in any particular record. I don't want to use a php function to extract this, as I am manually extracting the data with SQL queries into the new database. An added complication is I have to create a new line in the products

Adding an admin page on OpenCart version 2

一曲冷凌霜 提交于 2019-11-27 20:56:04
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 you. PS Reverting to a previous version of OC is not valid response, albeit a good one. The difference

START – MODERN MINIMALIST OPENCART 2.X 自适应主题模板 ABC

元气小坏坏 提交于 2019-11-27 10:07:39
START – MODERN MINIMALIST OPENCART 2.X 自适应主题模板 ABC-0573-02 模板特性 兼容浏览器 IE9, IE10, IE11, Firefox, Safari, Opera, Chrome OpenCart版本 OpenCart 2.0.x, OpenCart 1.5.x, OpenCart 1.5.6.x, OpenCart 1.5.5.x, OpenCart 1.5.5 包含文件 Layered PSD, PHP Files, CSS Files, JS Files 来源: oschina 链接: https://my.oschina.net/u/991572/blog/408217

Start – Modern minimalist OpenCart 2.X 自适应主题模板 ABC

梦想与她 提交于 2019-11-27 10:07:24
Start – Modern minimalist OpenCart 2.X 自适应主题模板 ABC-0573-01 START – MODERN MINIMALIST OPENCART 2.X 自适应主题模板 ABC-0573-01 Two OpenCart versions supported: 1.5.5.x and 1.5.6.x Cross browsers compatibility: IE9, IE10, IE11 Firefox, Safari, Opera and Chrome Two product display modes in category – List and Gird Custom CSS file, Custom CSS, Custom JS Search Engine optimized Fixed header Login popup Sale badge Swap image Scroll up button HTML5 / CSS3 Custom information Show brand logo Multi-level menu Option to turn off product sharing CSS3 Integration/ Effects 模板特性 兼容浏览器 IE9, IE10, IE11, Firefox,

Computer OpenCart 自适应主题模板 ABC-0084

不羁岁月 提交于 2019-11-27 10:06:00
Computer OpenCart 自适应主题模板 ABC-0084 Computer OpenCart 自适应主题模板 ABC-0084 Computer OpenCart 自适应主题模板 ABC-0084 Features : • Compatible with the most common browsers: FireFox 1.5-3.5.6+, IE8+, Safari 3.2 +, Opera, Google Chrome. • Designed with luxurious colors • Suitable for shop selling: Computer, Mobile eCommerce shop. • Supports multiple languages, multiple currencies. • Made with HTML 5 and CSS 3 effects ( Universal Transition effects, only add the class name and it will work. ) • Well documented for installation and about images sizes. 模板特性 兼容浏览器 FireFox 1.5-3.5.6+, IE8+, Safari 3.2 +, Opera,

Disable template caching for development in OpenCart 3

守給你的承諾、 提交于 2019-11-27 09:40:26
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 caching but "Image Caching" and "Template Caching" are different features provided in Opencart. You might

Proper way to work using the real image of a product on OpenCart 2

不想你离开。 提交于 2019-11-27 08:53:42
问题 I'm currently looking for the proper way to work on a theme using the real image of a product and not its thumbnail (identified as $thumb in the default theme). I have found a abrupt trick by adding a line in the controller file: $this->data['cover'] = $product_info['image']; But does anybody have experienced a better method (eg with vqmod ) to retrieve these real image data without changing controller content (for using in template pages, such as product.tpl or category.tpl for example)? 回答1

Opencart Force Login

谁说我不能喝 提交于 2019-11-27 08:14:02
问题 I would like to redirect a customer to the login page if they are not logged in from any page on the site. I am trying to limit access to a subdomain to a specific customer group and the rest of my code works. If I use the following code on home.tpl it works if (!$logged) { $this->redirect($this->url->link('account/login', '', 'SSL')); } but if I put it in the header (so it will react for every page), I get a redirect loop because it will try to redirect the actual login page to itself. Is

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

淺唱寂寞╮ 提交于 2019-11-27 06:28:02
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. It turns out this can be done with a relatively simple change to a single file. No .htaccess rewrite rules, simply patch the catalog/controller/common/seo_url.php file and add your pretty URLs to an existing database table. The patch