Jump to content

FAS

Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Location
    UK

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

FAS's Achievements

Newbie

Newbie (1/14)

1

Reputation

  1. Hi, Can anyone help me with the response URL for the Realex Payments HPP v2.0.1 payment module. I am trying to upgrade from the previous version and v2.0.1 gives an error when returning from the bank as the response URL they hold is wrong, which is to be expected as the module has changed. But I can't for the life of me find the response URL in the documents or online and I am not getting a response from the developer. Is there anyone using this module and could you share the URL please. Many thanks for any help.
  2. I am adding an additonal field to the customer personal information making use of multi select checkboxes for the user to make his selection. I have it working in the front end, after a bit if a struggle!, but can't get the back office customer form to fully work. I can collect the the users selection and add it to the database, but I cannot figure out how to populate the customer form with exisiting values when updating, although it works fine with the type = select. The code in AdminCustomersController.php looks like this: public function renderForm() {........... $this->fields_value['angling_preference[]'] = explode(',',$obj->angling_preference); // Populates the field $this->fields_form = array(.......... // Checkbox doesn't populate with selection from the database array( 'type' => 'checkbox', 'name' => 'angling_preference[]', 'label' => $this->l('Type of Angling Preferred (Angling Type):'), 'class' => 'chosen', 'multiple' => true, 'required' => true, 'values' => array( 'query' => $list_angling_preferred, 'id' => 'id', 'name' => 'label' ) ), // Select works fine with selection from the database array( 'type' => 'select', 'label' => $this->l('Type of Angling Preferred (Angling Type):'), 'name' => 'angling_preference[]', 'class' => 'chosen', 'multiple' => true, 'size' => '6', 'required' => true, 'options' => array( 'query' => $list_angling_preferred, 'id' => 'id', 'name' => 'label', 'selected' =>'selected' ) ), The input checkbox works and I can collect the information that is selected and save it to the database, but I can't figure out how to populate it with the previously entered values added from the database. The input select works fine and populates with data from the database and does everything I need, but it ain't what I want!!!!! One other small thing, with the input select option the Size = 6 option doesn't work, am I making a syntatical error or if this not supported in Prestashop 1.6? Many thanks for your help.
  3. Having problems getting an additional field added to the database in BO manual order. I have added this code to /adminxxxxxxx/themes/default/template/controllers/orders/form.tpl <div class="form-group"> <label class="control-label col-lg-3" for="handbook_number">{l s='Handbook Number' d='Admin.Orderscustomers.Feature'}</label> <div class="col-lg-9"> <input class="form-control" type="text" name="handbook_number" id="handbook_number" /> </div> </div> And I have something similar working in order edit which works fine, but I can't get the database to update/add the handbook_number when entered in the manual order section of the back office. I suspect it is to do with the javascript contained within the form.tpl, but I am seriously struggling with this one. The handbook_number field is contained within the ps_order_detail table and, as I say it works fine in BO edit order. The PrestaShop version is 1.6.1.17. Any help please.
  4. Hi, I am running 1.6.1.17 on a live platform and on the same server a development system, theoretically with the same files and copy of the database. On the live system when I have debug set to false I get an error generating a pdf of the delivery slip from the BO: Notice: Undefined variable: order in /home/sites/mysite.com/public_html/override/classes/pdf/HTMLTemplateDeliverySlip.php on line 80 Notice: Trying to get property of non-object in /home/sites/mysite.com/public_html/override/classes/pdf/HTMLTemplateDeliverySlip.php on line 80; which then cascades into multiple errors of the same type. However, if I set debug to true everything works as it should!! Worse still, I can't replicate this on the development system! Any help would be apreciated before I loose all my hair!!
×
×
  • Create New...