Search the Community
Showing results for tags 'getvalue'.
-
I use two functions in my custom code lets say function Query and function QueryLang The first one returns db::getInstance()->executeS($sql); In the second one after I prepare my query to include the respective _lang table, I call the first one but in bux fixing when I was doing var_dump($...
-
Hi, I am writting a script, that use a db. Last 2 hours I trying to get a value in datetime "from" and "to" column, but withnout sucess. Trying like this: $foreach_speci_price = "2"; $get_speci_to = Db::getInstance()->getValue('SELECT to FROM '._DB_PREFIX_.'specific_price WHERE id_specifi...
- 1 reply
-
- special price
- DB
-
(and 3 more)
Tagged with:
-
hello I have upload my module to prestashop addons but it give me response with " Hello, Use of $_GETis forbidden, please use Tools::getValue(); ", now when I am print $_GET it will return all the parametes in url, so how can I get same result with the help of Tools calss..?
- 4 replies
-
- URL
- parameters
-
(and 4 more)
Tagged with:
-
Im wondering where can i find all the Tools::getValue list and how is this working, is there other function that is useful other than this? for example i want to get the product reference and generate it in my controller.php
-
Good evening. I'm trying to make a kind of pagination for Stores. There are more than 200 stores to view (when I search for postcode and range 100km for example). That page viewing 20 stores. It's specified in the LIMIT option of the query in StoresController.php: $stores = Db::getInstance()...
- 5 replies
-
- pagination
- stores
-
(and 2 more)
Tagged with:
-
I want to add a custom input field to the form where the customers confirm their order. I'm struggling with where to read the value of this field. This is what I did: In order-carrier.tpl I added this: <p>{l s='TEST'}</p> <p><input type="text" name="my_test"></p> And so far no problem. I...
-
Hello everybody again, I'm trying to get the data from the product table and i'm having this problem. I'M NEW ON PRESTASHOP DEVELOPING!!!. well, this is my code. $sql = 'SELECT COUNT(*) FROM ' . _DB_PREFIX_ . 'product'; $totalShop = Db::getInstance()->getValue($sql); $ou...
-
$ret = (isset($_POST[$key]) ? $_POST[$key] : (isset($_GET[$key]) ? $_GET[$key] : $defaultValue)); is the code above the same as: if(){ } elseif(){ } else{ } That syntax is new flr me... //Andreas