opencart

Opencart 3.0.2.0 and Journal 3 theme customer name in Top Menu

梦想与她 提交于 2021-01-06 07:20:42
问题 I want to add customer first name on Journal theme top menu module. I am adding {{ text_logged }} in top-menu.twig but it can not get text_logged from controller. How can I get text_logged from catalog/controller/common/header.php? {% if logged %} {{ text_logged }} {% endif %} $data['text_logged'] = sprintf($this->language->get('text_logged'), $this->url->link('account/account', '', true), $this->customer->getFirstName(), $this->url->link('account/logout', '', true)); I want to see "Hello

How to display images of categories on the product page to which it belongs Opencart 3

给你一囗甜甜゛ 提交于 2020-08-08 09:35:58
问题 Please tell me how to display images of the categories to which the product belongs on the product page. I brought out the name and link to the categories, but with the image it does not work. I can't understand what and where to insert to display category images. I did this (in OCMOD file): <file path="catalog/controller/product/product.php"> <operation error="log"> <search><![CDATA[$product_info = $this->model_catalog_product->getProduct($product_id);]]></search> <add position="after" index

How to display images of categories on the product page to which it belongs Opencart 3

杀马特。学长 韩版系。学妹 提交于 2020-08-08 09:35:19
问题 Please tell me how to display images of the categories to which the product belongs on the product page. I brought out the name and link to the categories, but with the image it does not work. I can't understand what and where to insert to display category images. I did this (in OCMOD file): <file path="catalog/controller/product/product.php"> <operation error="log"> <search><![CDATA[$product_info = $this->model_catalog_product->getProduct($product_id);]]></search> <add position="after" index

check user is logged in to opencart or not

左心房为你撑大大i 提交于 2020-07-22 09:30:50
问题 I am new to opencart. I have installed opencart on my domain http://example.org/ocart and a php application at url http://example.com/testapp testapp is a basic php application in which I want to check if any user is logged in to opencart or not. Is it possible to check in php app that any user is logged in to opencart and if it is logged in then can we get the email id of logged in user. Both ocart and testapp are using the same database. 回答1: You can check your other question you will get

Opencart errors

不打扰是莪最后的温柔 提交于 2020-06-27 11:59:23
问题 I am getting the following error after transferring the OpenCart website to new sever from old server. I have also changed the folder permission to 777 but still getting the error. http://5cross.com/index.php?route=common/home These are the errors I am receiving: Warning: fopen(/home/cross5/public_html/system/logs/error.log): failed to open stream: Permission denied in /home/cross5/public_html/system/library/log.php on line 6 Warning: unlink(/home/cross5/public_html/system/cache/cache

How to set language through url in opencart

倾然丶 夕夏残阳落幕 提交于 2020-06-24 08:58:25
问题 I'd like to change language through url so my site can appear in different languages in search engines. e.g: I'd like the user to change language through a link like this: www.mysite.com/lang=ar I'm using opencart 3.0.2 Currently the user change through a form menu that submit post request, so search engine can't index the other languages. How can I do that? 回答1: I successfully applied these steps: 1- open catalog/controller/startup/startup.php after the line: $languages = $this->model

How to set language through url in opencart

雨燕双飞 提交于 2020-06-24 08:58:04
问题 I'd like to change language through url so my site can appear in different languages in search engines. e.g: I'd like the user to change language through a link like this: www.mysite.com/lang=ar I'm using opencart 3.0.2 Currently the user change through a form menu that submit post request, so search engine can't index the other languages. How can I do that? 回答1: I successfully applied these steps: 1- open catalog/controller/startup/startup.php after the line: $languages = $this->model