Jump to content

Search the Community

Showing results for tags 'getvalue'.

  • Search By Tags

    • getvalue ×
    Type tags separated by commas.
  • Search By Author

Content Type



Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Found 8 results

  1. 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($...
  2. 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...
  3. 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. 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
  5. 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()...
  6. 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...
  7. 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...
  8. $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
×
×
  • Create New...