opencart

In Opencart, is there a way to restrict access to a page so that only people who are logged in and in a certain group can see the page?

和自甴很熟 提交于 2019-12-25 01:40:42
问题 Is there a way to restrict access to a page so that only people who are logged in and in a certain group can see the page? I really need help with this. It's for a big client and I don't want to turn it down! Here's how it would work: Customer is given a link via email that I will manually send out. That link is to a page in the store. In order to see it they must log in with their account. And if they are apart of the right group, then Bingo, they can see the page! I will have 3 groups total

OpenCart adding page to the layout

天大地大妈咪最大 提交于 2019-12-25 01:10:06
问题 In every module and section of opencart we see a drop down called layout. Which usually contains pages such as category, news, product, default, home, etc... How can I add a page to this section? Now, I can add a CONTENT_PAGE via information->insert. Else, I usually do it by creating a controller and a template, but the page I create is not formally recognized by opencard. My question is that I should I make open card recognize my page which I create by making a controller and a template

access session data of opencart through php file

陌路散爱 提交于 2019-12-24 22:26:19
问题 I am new to opencart. I have my basic php code at http://localhost/testphp and my opencart is installed at http://localhost/opencart . What I want to do is that in testphp , I have a page in which I want to check that if any user is logged in or not at opencart . If it is logged in then I want to perform x function and It not logged in then want to perform y function I have tried to logged in to opencart and tried to print_r($_SESSION) in testphp. It is returning blank. How can I perform this

Warning: mysqli::mysqli() [mysqli.mysqli]: (08004/1040): Too many connections in OpenCart [duplicate]

放肆的年华 提交于 2019-12-24 21:07:13
问题 This question already has answers here : php, mysql - Too many connections to database error (6 answers) Closed 5 years ago . Guys i am having errors in my opencart website, but actually the problem is that this error also displays my database login and password. How can i fix this problem. The error raised is like Fatal error: Uncaught exception "ErrorException" with message "Error: Could not make a database link (1040) Too many connections" in /home/*******/public_html/system/database

Are Opencart2 extensions supported by Opencart3?

痞子三分冷 提交于 2019-12-24 18:48:32
问题 I haven't used Opencart3 yet, but would like to use the extensions I have from Opencart2 when migrating to Opencart3. Is that possible out-of-the box, or do the old extensions require changes to adapt them to Opencart3? 回答1: OpenCart 2 extensions will not work in OpenCart 3 without modification. Even minor things have changed such as the name of the token used in the URL, so there's no chance anything from OpenCart 2 will work with OpenCart 3. 来源: https://stackoverflow.com/questions/45611645

How to print footer on each printed page?

你说的曾经没有我的故事 提交于 2019-12-24 18:17:51
问题 I am working on an ordering system for my company utilizing Open Cart. Everything is being done in PHP and HTML. I am trying to modify the invoice page to include a signature line at the bottom of the printed invoice. Invoices can stretch to multiple pages depending on the number of lines/items, and they can also be batched so that one document to be printed has multiple invoices (using a loop). I am not a web developer, and have hit the end of my abilities to get this part of the project

Opencart Multi-store 1.5.6 shared session

て烟熏妆下的殇ゞ 提交于 2019-12-24 17:05:11
问题 I've got a opencart multi-store, though the shared session doesn't work for me. When i put a item in my cart from store1.com it will not appear on store2.com... My multistore looks like this, so with different domains. store1.com store2.com In my main store1.com header its got differtent iframe's: <iframe src="http://www.store1.com/catalog/view/javascript/crossdomain.php?session_id=95e5c425bc5df1ecff3406eb0f587018" style="display: none;"></iframe> <iframe src="http://www.store2.com/catalog

Opencart Multi-store 1.5.6 shared session

匆匆过客 提交于 2019-12-24 17:05:10
问题 I've got a opencart multi-store, though the shared session doesn't work for me. When i put a item in my cart from store1.com it will not appear on store2.com... My multistore looks like this, so with different domains. store1.com store2.com In my main store1.com header its got differtent iframe's: <iframe src="http://www.store1.com/catalog/view/javascript/crossdomain.php?session_id=95e5c425bc5df1ecff3406eb0f587018" style="display: none;"></iframe> <iframe src="http://www.store2.com/catalog

Redirect Old URL to New URL open cart using htaccess

江枫思渺然 提交于 2019-12-24 16:05:08
问题 I want to redirect 301 old url to new url. my old url is; http://www.domainname.com/special and new url is; http://www.domainname.com/offers I tried this code: redirect 301 /http://www.domainname.com/special http://www.domainname.com/offers But still now it's not redirecting & taking me to the old URL which does'nt exist. 回答1: Try this : Redirect 301 /special /offers Second argument of Redirect Directive is the URL Path, it doesn't start with Scheme and hostname. 回答2: There are various ways

Opencart Force login when see Cart Page?

房东的猫 提交于 2019-12-24 14:19:18
问题 There are a number of pages that require a customer to log in to view them. How would I do this for the cart page /index.php?route=checkout/cart 回答1: I think you mean you want to have a customer login if they go to the cart page correct? If so, here's how you do it. Open /catalog/controller/checkout/cart.php and find this line public function index() { Below this line, add the following code if (!$this->customer->isLogged()) { $this->session->data['redirect'] = $this->url->link('checkout/cart