Search found 50 matches

Search found 50 matches

json and the controller

Does anyone know of where there is a good explanation of how OC uses $json - specifically:- $this->response->setOutput(json_encode($json)); and suchlike. v2.3.0.2 I am battling to get my head around it and haven't found any documentation - unless I am missing something. ??? ??? PS - I know what json...

Jump to post
  • Tue Nov 24, 2020 7:20 pm
  • Replies 1
  • Views 168
Re: Customers not found in backend admin

Sorted - it was a problem in customer_group_id .
I had changed some customers customer_group_id settings within the customer without adding extra customer groups.

Jump to post
  • Tue Nov 10, 2020 8:03 pm
  • Replies 4
  • Views 253
Re: Customers not found in backend admin

Following on from this, if I create a new client, I can see them in the backend fine.
If I then edit them via PHPMyadmin to change e.g. the customer_group_id and then save them, I cannot see them in the admin backend any longer???

Jump to post
  • Tue Nov 10, 2020 7:40 pm
  • Replies 4
  • Views 253
[SOLVED] Customers not found in backend admin

v2.3.0.2 - Any ideas why I cannot find certain customers in the admin panel, but I can find them in phpmyadmin.
If I try and "re-create" them in the admin backend as a test, it tells me that email address is already being used.
Could this be a caching error??? :crazy:

Jump to post
  • Tue Nov 10, 2020 5:08 pm
  • Replies 4
  • Views 253
Re: redirect to checkout payment_address after registering

Following on from this, after some testing, it is standard and default for v2.3.0.2 to expand payment_method after registering. I tested this on a default site. - so it is not a customisation issue. Do anyone know the line/s of code to change this default setting to make it rather expand payment_add...

Jump to post
  • Mon Sep 07, 2020 5:18 pm
  • Replies 10
  • Views 546
Re: redirect to checkout payment_address after registering

@kestas - there is a section for "paid for" work in this forum. People wanting to employ somebody look in this section. The other sections of this forum are intended for the rest of the community. For somebody to insult a question asked by assuming the person asking it is not a developer is presumpt...

Jump to post
  • Fri Sep 04, 2020 9:15 pm
  • Replies 10
  • Views 546
Re: redirect to checkout payment_address after registering

@thekrotek - my site is customised, I have added extra fields in the payment_address, but the rest of the checkout process is pretty much standard. For some reason after registering, payment_method expands and not payment_address. If the user is registered and only logs in, the payment_address corre...

Jump to post
  • Fri Sep 04, 2020 6:09 pm
  • Replies 10
  • Views 546
redirect to checkout payment_address after registering

During checkout, if a user is not registered and is given the option to register in the first step of the checkout process by the default code, on completion of registering, the code loads the payment_method, rather than loading the payment_address. Is there a redirect setting that I can change to f...

Jump to post
  • Fri Sep 04, 2020 5:50 pm
  • Replies 10
  • Views 546
Help with $json error when adding a new field to payment_address.tpl

I have added a new additional input to the payment_address.tpl form v2.3.0.2. The form works fine, with the exception of the error checking for the new field. I need it to validate that the new field is populated as per criteria below. So I have copied the error checking in the payment_address.php c...

Jump to post
  • Tue Jun 23, 2020 2:08 am
  • Replies 1
  • Views 155
Re: If user is logged in, display Checkout button

I find this is not a great forum to share ideas and knowledge. While I understand there are many professional developers prowling on it for business, surely if a user wanted to use a pay-for option, they would surely just place it directly on the commercial section. Forums like this are generally in...

Jump to post
  • Wed Jun 03, 2020 7:26 pm
  • Replies 3
  • Views 158
Re: If user is logged in, display Checkout button

I am trying the following script to get it to return logged in status, but it is not working. I suspect that the URL parameters are wrong. <button type="submit" class="btn btn-success btn-lg"><a id="addtocart" onclick="getLoggedstatus">Get Logged Status</a></button> <script> function getLoggedstatus...

Jump to post
  • Tue Jun 02, 2020 9:26 pm
  • Replies 3
  • Views 158
If user is logged in, display Checkout button

I have the following code that allows a user to Checkout by displaying the Checkout button if they are logged in, or else displays Register / Login button. So, I need the Checkout button to display dynamically when a user logs in - the login is done via a modal, so in essence it is done in a differe...

Jump to post
  • Tue Jun 02, 2020 7:44 pm
  • Replies 3
  • Views 158
Re: Site losing login credentials during page refresh

It appears it was a hosting issue, perhaps too close to my hosting limitations. I dropped a test Database and the error disappeared. I am still awaiting an explanation from the hosting provider. >:D >:D >:D but cost me a day and a half.

Jump to post
  • Tue May 12, 2020 8:38 pm
  • Replies 3
  • Views 471
Site losing login credentials during page refresh

For some reason, my beta site is losing login credentials if I change page, or simply do a refresh, the user is no longer logged in. I am starting to suspect it may have been hacked, but am not sure what could have been done to cause this? I got a notice from Google Chrome stating that there was an ...

Jump to post
  • Mon May 11, 2020 10:25 pm
  • Replies 3
  • Views 471
Creating a second site off sub-directory

I have a customised site running off the root - all was working working well v2.3.0.2. I created a subdirectory off the root, called newice and uploaded a fresh v2.3.0.2 copy to it. I ran the install and attached the same DB as the root site, and it works fine, admin and add orders etc. www.servatec...

Jump to post
  • Fri Apr 17, 2020 6:47 pm
  • Replies 1
  • Views 97
Re: Using customer.php model getCustomer function to get default address information

An amateurs error made by an rookie. The clue to my error was given by thekrotek in that I hadn't defined the model. Original code:- $data['customer_id'] = $this->customer->getId(); $data['cust_info'] = $this->model_account_customer->getCustomer($data['customer_id']); Corrected code: $data['customer...

Jump to post
  • Fri Feb 21, 2020 3:00 pm
  • Replies 6
  • Views 940
[SOLVED] - Using customer.php model getCustomer function to get default address information

I am getting a Fatal error: Uncaught Error: Call to a member function getCustomer() on null in C:\wamp64\www\catalog\controller\checkout\payment_address.php on line 207 when I run the code:- The controller\checkout\payment_address.php controller contains: $data['customer_id'] = $this->customer->getI...

Jump to post
  • Thu Feb 20, 2020 5:36 pm
  • Replies 6
  • Views 940

Search found 50 matches