opencart

Splitting mysql value into unknown number of parts

别说谁变了你拦得住时间么 提交于 2019-11-29 05:16:55
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_to_categories for each value in the column - I don't mind a multiple step process, I'm not expecting to

How to make a simple module in OpenCart? Example getting latest posts from Wordpress and showing it in OpenCart?

五迷三道 提交于 2019-11-28 16:53:34
I am new to this forum and as well as to OpenCart. I need help on creating a module in OpenCart. In my case it will get the latest 5 posts from each category of my WordPress installation and display it in my home page of my OpenCart store. I have already installed OpenCart and WordPress in same database on the same host. Can someone advice me on this? TheBlackBenzKid This can be very easy depending on your skills. I expect a downvote on your question but I will briefly run through the steps since this is not the way SO works. The first thing is to edit our THEMES files. Since OpenCart is MVC,

ANDRO

别等时光非礼了梦想. 提交于 2019-11-28 15:19:31
ANDRO - MULTIPURPOSE OPENCART 2.X 自适应主题模板 ABC-0651-02 Andro Opencart Theme is a responsive theme specifically designed to adapt its display according to the device in use. This theme is designed for selling clothing, elegant fashion, glasses and handbags. It has such impressive design plus built-in powerful function to make your store extremely appeal with glamour design, prominent products and stable operation. Andro theme is a multi purpose theme. It has 3 templates : clothes template, glasses template and handbags template. These 3 templates has a great and bright design. Background and the

MEDICAL MULTISTORE OPENCART 自适应主题模板 ABC-0150

孤街浪徒 提交于 2019-11-28 15:19:18
MEDICAL MULTISTORE OPENCART 自适应主题模板 ABC-0150 -Fully Responsive Theme -Two responsive Slider included Nivo Slider and Camera Slider .You can select your preferred slider from theme setting module itself. -News Module is added to display information. -Product slider is added for latest,featured,bestseller and Special. -Product Tab module is included to display in home page. -You can Change theme colors from admin panel . you can select different colors for many fields of your store. -You can set body background color, or choose from 40 background patterns included in your theme or you can also

HEALTHY LIFE OPENCART 自适应主题模板 ABC-0052

隐身守侯 提交于 2019-11-28 15:18:35
HEALTHY LIFE OPENCART 自适应主题模板 ABC-0052 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: Healthy, medical, vitamin, drug store • 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. 模板特性 OpenCart版本 1.5.6, 1.5.6.1, 1.5.6.2, 1.5.6.3, 1.5.6.4, 2.0.0.0 包含文件 PHP Files, CSS Files, JS Files 来源: oschina 链接:

Fashion Store OpenCart 2.X 自适应主题模板 ABC-0588

不问归期 提交于 2019-11-28 15:18:25
Fashion Store OpenCart 2.X 自适应主题模板 ABC-0588 FASHION STORE OPENCART 2.X 自适应主题模板 ABC-0588 FEATURES HTML5 and CSS3 Fully RESPONSIVE Theme Using Google Fonts Support Multiple Language Included RTL Language Support No Core Modifications SEO (Search Engine Optimization) friendly Optimized for Fast Loading + CSS Sprite NEW : Smart Responsive Product Grid Unlimited Banners + Sliders Featured Products Slider Show Cloud Zoom to enlarge product image Easy Shopping Cart Dropdown from header Related Product Scroller on product detail page CMS Blocks Module Included Valid XHTML and CSS markup Easy Use and

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

纵然是瞬间 提交于 2019-11-28 14:35:07
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)? With help from members of OpenCart forum , I managed to find a functional solution (using vQmod ). It is

Opencart Force Login

主宰稳场 提交于 2019-11-28 14:19:22
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 there a way to correctly say: if ($this->url->link != 'account/login') { $this->redirect($this->url->link

Opencart - Customer uploads different files to one product with different responses from the site

╄→гoц情女王★ 提交于 2019-11-28 12:31:25
问题 I am using Opencart 1.5.6 and I have two file upload options for one product. One option is an image and the other is a video. I am setting it up to show a preview of the image once they upload. In catalog/controller/product/product.php under public function upload() I have changed the code as follows to get a thumbnail image and change the success message: if (!$json && is_uploaded_file($this->request->files['file']['tmp_name']) && file_exists($this->request->files['file']['tmp_name'])) {

Why is OpenCart 2.3 custom theme not showing?

帅比萌擦擦* 提交于 2019-11-28 11:35:08
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 Dropdown). Why doesn't this seem to work? The new version is supposed to fall back on the default theme