opencart

Remove the image resize ratio in OpenCart

纵饮孤独 提交于 2019-12-04 13:05:56
问题 I've look everywhere on how I could remove the image resizing in OpenCart but haven't find nothing about that. I need that it resize but don't keep the ratio. I want the image to be just like I set it. Here's the resize code in the system/library/image.php public function resize($width = 0, $height = 0) { if (!$this->info['width'] || !$this->info['height']) { return; } $xpos = 0; $ypos = 0; $scale = min($width / $this->info['width'], $height / $this->info['height']); if ($scale == 1) { return

Is it possible to have PayPal standard expand the 'Guest Payments' tab by default?

六眼飞鱼酱① 提交于 2019-12-04 11:45:30
I am using PayPal Standard to process orders. I have the "Paypal Account Optional" feature set to on, which makes it possible to accept payments from customers who dont have paypal accounts. OpenCart is the shopping system that i am using. This is the screen that is displayed when a customer want to purchase goods: When you click the "Don't have a PayPal account?" link, the tab is expanded: Is it possible to have this tab expanded by default, perhaps through the code that is sent to the site in the first place, with the order details? I found out that PayPal stores a cookie when you log in. If

Alipay Direct Bankpay 支付宝网银支付 (For OpenCart 2.x)

陌路散爱 提交于 2019-12-04 09:53:35
支付宝目前与众多银行签署了协议,方便广大用户直接使用支付宝的网银支付接口直接支付款项给商家。 本支付插件是 网银支付即时到账接口 ,由支付宝方面联合众多银行提供支付服务,在 OpenCart 2.0.x版本测试成功! 主要功能: 1. 针对有资格申请支付宝网银支付即时到账的中国国内公司商家设计使用; 2. 可设置最低启用金额; 3. 可设置适用的国家和地区用户; 4. 设定相关订单状态; 5. 当支付款项成功时,支付宝将相关操作异步通知给您的网站接口,以此根据您的设置改变相应订单的状态; 6. 订单状态改变时,邮件通知商家; 7. 日志调试状态。 如果您需要也开通支付宝即时到账接口,请到 http://www.opencart.com/index.php?route=extension/extension/info&extension_id=21228 下载支付宝即时到账交易接口 。 您或许也希望网站手机访问者能够通过手机下单支付,则请到 http://www.opencart.com/index.php?route=extension/extension/info&extension_id=21568 下载支付宝手机网页即时到账接口 。 如果您不是公司商家,应该只能申请担保交易接口,请到 http://www.opencart.com/index.php?route

Alipay Wap (Mobile) Payment 支付宝手机网页即时到账(For OpenCa

孤人 提交于 2019-12-04 09:53:21
目前OpenCart2.0.0.0以来的前后台均为移动设备方便访问,支付宝方面单独针对移动设备访问网站设立了支付接口,普通的支付宝即时到账接口无法在手机网页上正常支付 本支付插件是支付宝手机网页即时到账接口,在 OpenCart 2.0.x版本测试成功! 本插件需要解决生成商家公钥和私钥等,以及与支付宝方面的技术接洽,请与我联系获取此免费技术支持。 My Email: opencartchina@qq.com 主要功能: 1. 针对有资格申请支付宝手机网页即时到账的中国国内公司商家设计使用; 2. 可设置最低启用金额; 3. 可设置适用的国家和地区用户; 4. 设定相关订单状态; 5. 当支付款项成功时,支付宝将相关操作异步通知给您的网站接口,以此根据您的设置改变相应订单的状态; 6. 订单状态改变时,邮件通知商家; 7. 日志调试状态。 如果您需要也开通支付宝即时到账接口,请到 下载支付宝即时到账交易接口 。 支付宝也推出了网银支付即时到账接口,请到 此处下载网银支付即时到账接口 如果您不是公司商家,应该只能申请担保交易接口,请到 此处下载支付宝担保交易接口 注意事项: 1. 即时到账交易,在买方提交订单给支付宝时,支付宝方面不做未付款状态的通知; 2. 即时到账分为普通即时到账与高级即时到账,普通即时到账不支持退款功能;高级即时到账支持退款功能,具体协议以与支付宝方面签订时确定

Best way to modify OpenCart without touching Core and VQMOD/OCMOD

末鹿安然 提交于 2019-12-04 08:09:50
Is there a better way then using VQMOD / OCMOD to change OpenCart's core files? Is there some "overrides" folder exists so that I can simply create any PHP file corresponding to the file structure and simply override a core file? (Like it is possible in PrestaShop and Magento ). VQMOD / OCMOD is highly inconvenient. Does someone use any hacks & tricks to achieve the result? I don't want to touch any core files to keep the system clean and manageable. Thanks a lot! If you want to call your function within the system which follows the OC structure, avoid the search/replace mods, try using the

Opencart meta title include store name

橙三吉。 提交于 2019-12-04 06:15:57
问题 How to get the store name when in the Document class. This is what I am trying to do: public function setTitle($title) { // Append store name if small title if(strlen($title) < 30){ $this->title = $title . ' - ' . $this->config->get("store_name"); } else { $this->title = $title; } } Although the $this is referring to the document class. How to I get the config? Using the latest version of opencart 1.5.2.1 When you check the index.php file to see how config is loaded // Registry $registry =

适全中国市场的mycncart发布

China☆狼群 提交于 2019-12-04 05:33:49
今天是公历2015年5月2日, http://www.mycncart.com 网站正式上线。 mycncart是opencart中国团队根据市场需求,二次开发而成的适合中国及华语市场的B2C, B2B电商系统,它遵循GPL3协议,秉承opencart之开源、免费、安全、架构优秀的特点,会获得众多面向中国市场的客户青睐。 mycncart系统将跟随opencart系统核心代码升级而升级,同时也会更多地加入中国市场的许多特色功能。建站宗旨是:为中国网站经营者提供一款简单、易用、安全、可扩展性好、成本低廉、时尚大气、紧跟世界及中国潮流的B2C, B2B建站系统。 市场客户的需求是千变万化的,欢迎各位优秀PHP程序员加入插件/模板开发者行列,在mycncart.com上发布自己的作品,获得客户的购买及使用认可,体现作为一名PHP程序员在人生中的特定价值。 mycncart的官方论坛为: http://www.mycncart.cn 来源: oschina 链接: https://my.oschina.net/u/991572/blog/410149

Wrap a div around every four divs

会有一股神秘感。 提交于 2019-12-04 04:39:12
I need a little help with a php loop for OpenCart. I need to do is wrap a div around the output of the data every 4 loops. I have the following <?php foreach ($categories as $category) { ?> <div class="col-lg-3 col-md-3">.....</div> <?php } ?> I get this <div class="col-lg-3 col-md-3">.....</div> <div class="col-lg-3 col-md-3">.....</div> <div class="col-lg-3 col-md-3">.....</div> <div class="col-lg-3 col-md-3">.....</div> <div class="col-lg-3 col-md-3">.....</div> <div class="col-lg-3 col-md-3">.....</div> <div class="col-lg-3 col-md-3">.....</div> <div class="col-lg-3 col-md-3">.....</div>

Get parent category for product page Opencart

人走茶凉 提交于 2019-12-04 04:11:22
is there a way to get the parent category of a product, in the product page for Opencart? Thanks Yes you can. I've tested my code in OpenCart 1.5.1.x First, you must modify the file /catalog/controller/product/product.php to add after the line 94: $product_info = $this->model_catalog_product->getProduct($product_id); ADD this: $categories = $this->model_catalog_product->getCategories($product_info['product_id']); if ($categories){ $categories_info = $this->model_catalog_category->getCategory($categories[0]['category_id']); $this->data['category_id'] = $categories_info['category_id']; } Then,

Showing images in subcategories in opencart

女生的网名这么多〃 提交于 2019-12-04 02:11:46
问题 Recently I installed Opencart 1.5.6 for the first time. Everything in ok except that I trying to show images along with text in sub-categories ( where is Refine Search text ). So far I've put this in catalog\controller\module\category.php $children_data[] = array( 'category_id' => $child['category_id'], 'name' => $child['name'] . ($this->config->get('config_product_count') ? ' (' . $product_total . ')' : ''), 'image' => $category['image'], 'href' => $this->url->link('product/category', 'path=