D
D
Dmitry2016-10-16 10:47:06
PHP
Dmitry, 2016-10-16 10:47:06

What is the code snippet for?

Hello, there is a code in opencart:

if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) {

what this code is responsible for, and where it can be edited:
$this->config->get('config_customer_price')

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Zemlyanoy, 2016-10-16
@Galamoon

You are so strange, some kind of piece of code from nowhere. Upload the project to phpstorm, or use the full text search.

A
Andrew, 2016-10-16
@ntzch

As Alexander wrote, the question is poorly worded. The only thing that can be said from the snippet of code is that this piece of code receives the value of the 'config_customer_price' setting, and we cannot guess where exactly this setting is stored (although there are only two options - in a file or in a database :) ).
As already mentioned - upload the project to phpstorm, there you can easily find links and search for the necessary data on the project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question