opencart

Opencart cart across multiple stores with different subdomains

可紊 提交于 2019-12-05 08:14:04
问题 Hi have a single opencart install setup with several stores with different subdomains (all under the same domain). I want customers to be able to put items in the cart on one site, then move onto the next and put in more or even subtract, till eventually a customer checkouts out on any store. Note products might appear in one store but not another. I notice opencart does this somewhat. ie it will bring products already in the cart to the next store but only if the products appear in both

trying to add jquery countdown timer for special price in opencart

◇◆丶佛笑我妖孽 提交于 2019-12-05 06:03:49
问题 i am trying to put jquery count down timer for special price in opencart. as we have start date and end date for special price in open cart admin panel, I want to have jquery count timer to show remaining (days:Hours:Min:SEC) for that special price. i get the code for jquery countdown and put in template file of product but its not working and no help or code on internet. thanks 回答1: Excellent question. As you noted, the data you wish to display is already part of the admin/backend of

FedEx 556 - No valid services available. when there should be

偶尔善良 提交于 2019-12-05 01:23:12
问题 Hi I'm trying to use the wsdl api to get shipping cost calculated for my website. I'm using opencart and this module (http://www.opencart.com/index.php?route=extension/extension/info&extension_id=2055&filter_search=fedex&sort=e.date_modified&order=DESC). On checkout I'm getting this error: WARNING::556::There are no valid services available. But I tried the same from and to address on the calculator on the fedex website and it gives me two services: International Priority and International

Calling OpenCart library functions in a PHP file outside of the framework

被刻印的时光 ゝ 提交于 2019-12-04 22:22:26
问题 In a controller, I can easily call a function like this $this -> user->login('username','password'); But outside of the framework in a separate PHP file, how can I access that method? I tried something like this but it didn't work: include($_SERVER['DOCUMENT_ROOT'].'/mydir/opencart/system/library/user.php'); $userobj=new User(); $userobj->login('username','password'); Can you please help? Edit/Update: Here is what's inside my startup.php file: <?php // Error Reporting error_reporting(E_ALL);

In frontend how to get which language is active among installed different languages in Open cart?

断了今生、忘了曾经 提交于 2019-12-04 21:30:16
I have installed and themed Opencart 1.5.4x with multiple languages (English, Duch, German) on live server. Opencart application works properly with these languages. When I click on the language link and browse whole site, the content of the site is translated in this language, but how to find out, programatically, which language is active? I need to show the user which language is currently active. I guess You should call $this->config->get('config_language_id'); within a controller or model to get the ID of currently active language. That means, if You have implemented Your own language

Rewrite condition is not working

时光总嘲笑我的痴心妄想 提交于 2019-12-04 20:32:23
How to rewrite the URL for my search page in opencart that is like http://IP/opencart/index.php?route=product/search&filter_name=24 But I need to display it like http://localhost/opencart/product/search/42 orelse in any formate that is an userfreindly.I have tried like RewriteEngine On RewriteBase /opencart RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L] RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) RewriteRule ^([^?]*)

Validation Opencart

霸气de小男生 提交于 2019-12-04 15:31:00
i want to add php phone number validation in opencart code sample is given below if(!filter_var($customer_email, FILTER_VALIDATE_EMAIL)) { $errors[$pos++] = 'Email is not valid.'; } if($customer_mobile=='') { $errors[$pos++] = 'Please enter your Mobile.'; } /*elseif (strlen($customer_mobile) < 11 || !is_numeric($this->request->post['cell_number'])){ $errors[$pos++] = 'Mobile number should be 7 digits.'; }*/ @Tayyab Gulsher Vohra.... I am also facing this problem.I concluded myself and made it. follow the instruction., The opencart is a MVC structure platform,so you need to know about

how to add Information Links in Navigation Menu in opencart?

妖精的绣舞 提交于 2019-12-04 14:18:46
I got this error when trying to add the information Link in open cart top navigation menu Notice: Undefined variable: informations in C:\Inetpub\vhosts\fima.net.in\httpdocs\catalog\view\theme\fima\template\common\header.tpl on line 229 Warning: Invalid argument supplied for foreach() in C:\Inetpub\vhosts\fima.net.in\httpdocs\catalog\view\theme\fima\template\common\header.tpl on line 229 Code: <ul> <?php foreach ($informations as $information) { ?> <li> <a href="<?php echo $information['href']; ?>"> <?php echo $information['title']; ?> </a> </li> <?php } ?> </ul> Yes, Finally i found the

change font size after decimal point

喜夏-厌秋 提交于 2019-12-04 13:35:12
问题 i am working with a Opencart eCommerce website, i need to customize product price font size, for example: product price: $ 250.50 i need to set font size for $ = 16px; 250 = 22px; .50 = 14px; how can i set different font size for a single amount..??? this s my dynamic php code that display price text to my product page: <span class="price"><?php echo $product['price']; ?></span> my product list page not a single product with price, there is a lots of product with price list. thanks for any

opencart重新安装教程_已迁移

会有一股神秘感。 提交于 2019-12-04 13:15:21
此教程主要是为那些想搬迁opencart网站,更换服务器,而又不知道如何配置opencart的config.php文件而制作的 1.首先,登陆您的服务器使用phpMyAdmin或其他工具,将数据库导出并保存为opencart.sql文件 2.因为一般在安装完opencart后,install文件夹都已经被删除,这时如果需要重新安装,那么这个文件夹就是必须要使用的了,您可以根据您所使用的opencart版本,到官方下载的对应版本的安装包中把这个文件夹拷贝过来,然后把opencart.sql文件拷贝到install文件夹中,替换掉原有的opencart.sql文件。 3.使用任何文本编辑器(记事本也可以)打开网站根目录下的config.php和admin目录下的config.php文件,删除掉这两个文件里面的所有内容(注意:是删除掉文件里面的内容,而不是删除文件) 4.然后按照正常步骤重新安装opencart. 5.特别注意一点的是,如果您原有数据库中的数据表名称有前缀,那么在新安装的时候,一定要设定表前缀名称和原有数据库表前缀名称一模一样. 来源: oschina 链接: https://my.oschina.net/u/1471375/blog/470417