Search found 32 matches

Search found 32 matches

Re: [SOLVED] - trying to access array offset on value of type bool

What is on line 66 of that file? the code reading the address if (isset($this->session->data['shipping_address'])) { $this->tax->setShippingAddress($this->session->data['shipping_address']['country_id'], $this->session->data['shipping_address']['zone_id']); } elseif ($this->config->get('config_tax_...

Jump to post
  • Sun Aug 23, 2020 3:51 am
  • Replies 10
  • Views 9860
Re: [SOLVED] - trying to access array offset on value of type bool

Solution worked, thanks SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data OK <b>Notice</b>: Trying to access array offset on value of type bool in <b>/var/www/site/html/catalog/controller/startup/startup.php</b> on line <b>166</b><b>Notice</b>: Trying to access array ...

Jump to post
  • Fri Aug 21, 2020 9:59 pm
  • Replies 10
  • Views 9860
Re: Injected code - How to remove?

ADD Creative wrote:
Thu Jun 11, 2020 6:24 am
Looks more like it was added by a browser extension.
it was shown in different browsers in many computers.

Jump to post
  • Fri Jun 12, 2020 4:16 am
  • Replies 6
  • Views 2050
Re: Injected code - How to remove?

rjcalifornia wrote:
Wed Jun 10, 2020 12:46 pm

Strange. May be a theme or some extension?
i don't think so, the site was copied exactly same.

Jump to post
  • Thu Jun 11, 2020 4:18 am
  • Replies 6
  • Views 2050
Re: Injected code - How to remove?

rjcalifornia wrote:
Sat May 02, 2020 2:31 am
That code belongs to an npm package called js-beautify:

https://github.com/beautify-web/js-beautify/issues/1727

Does OpenCart uses it?
I don't know and never figured out a solution. After moving the site to new server, that disappeared.

Jump to post
  • Wed Jun 10, 2020 4:14 am
  • Replies 6
  • Views 2050
Injected code - How to remove?

Hello I noticed an unusual frame on the bottom of my website. Inspecting the code, i found this <div> injected: https://i.postimg.cc/PCz6wwQs/Screenshot-20200429-233912.jpg the whole js is eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):...

Jump to post
  • Thu Apr 30, 2020 4:44 am
  • Replies 6
  • Views 2050
Re: incorrect mail message in admin marketing mail OC3x

why isn't this already fixed in latest version?

Jump to post
  • Sat Mar 14, 2020 6:58 pm
  • Replies 6
  • Views 2619
Re: Problem writing to new variable on admin order form

Thanks for your info. I have already done everything you wrote, except declaring the data in catalog/controller/checkout/confirm.php . However i am using the admin panel order function, and the above file declares the data from the front side (or not only?). I added there too the $order_data['myvari...

Jump to post
  • Wed Nov 27, 2019 4:49 am
  • Replies 6
  • Views 739
Re: Problem writing to new variable on admin order form

yes, i have already declared the variable in admin/controller/sale/order.php

Code: Select all

            $data['myvariable'] = $order_info['myvariable'];
may should i add to system library like older oc versions? can't see anything relevant there.

Jump to post
  • Sun Nov 24, 2019 8:28 pm
  • Replies 6
  • Views 739
Re: Problem writing to new variable on admin order form

kestas wrote:
Thu Nov 21, 2019 2:39 pm
Where and how

Code: Select all

$data['myvariable']
is declared?
Hello. in admin/model/sale/order.php as
return array(
'myvariable' => $order_query->row['myvariable'],

Jump to post
  • Sat Nov 23, 2019 5:14 am
  • Replies 6
  • Views 739
Problem writing to new variable on admin order form

Hello. I ve created a new variable and put it when adding/editing an order from admin panel. while this variable reads properly the new varchar from the order table, it only erases the column when saving. I ve put myvariable = '" . $this->db->escape($data['myvariable']) . "' in public function addOr...

Jump to post
  • Thu Nov 21, 2019 6:29 am
  • Replies 6
  • Views 739
Re: [RELEASED] Multilingual Export/Import for OpenCart 2.x / 3.x

I installed module success fully. i have some error export tools work perfect. import tools some error please find error Uploaded spreadsheet file has validation errors! See also 'System > Tools > Error Logs' for more details. No server data has been changed. Cane you check that I have the same pro...

Jump to post
  • Mon Oct 07, 2019 2:29 am
  • Replies 1014
  • Views 247854
Re: Copying forms in Admin Order Entry

opencartmart wrote:
Sun Sep 29, 2019 11:58 pm
Is this your pseudo code or real code? If this is pseudo code, please share real code. If it is real code, it does not make any sense.
this is the "real" code i tried to copy the input-firstname to input-payment-firstname when clicking the next button. sure i m not good in javascript

Jump to post
  • Mon Sep 30, 2019 12:05 am
  • Replies 3
  • Views 443
Copying forms in Admin Order Entry

Hello. I am trying to edit the admin create order page (sale/order/add) so that input-firstname gets copied in input-payment-firstname, input-payment-firstname to input-shipping-firstname, etc by just pressing the next button. I put in tpl <script> function copy() { var input-firstname = document.ge...

Jump to post
  • Sun Sep 29, 2019 10:44 pm
  • Replies 3
  • Views 443
Re: Removing email validation on admin sale/order/add

Thank you. Didn't even think of admin using the catalog controllers. In older opencart versions, validation was in every admin controller too

Jump to post
  • Sun Sep 29, 2019 6:29 pm
  • Replies 3
  • Views 334
(Solved) Removing email validation on admin sale/order/add

Hi
I am trying to remove the email validation from the admin's order creating page.
I made the field on tpl not required but still gives error that email address is invalid. I checked sales/order controller and model but can't see any validation code. What am i missing?

Jump to post
  • Sun Sep 29, 2019 7:01 am
  • Replies 3
  • Views 334
Re: How to add meta description/title to contact page?

straightlight wrote:
Sun Jun 23, 2019 7:56 pm
Not core files.
yes, i meant the files of theme. that's not our point

Jump to post
  • Sun Jun 23, 2019 9:33 pm
  • Replies 3
  • Views 797
How to add meta description/title to contact page?

Hello. The contact page of my site is https://drfix.gr/contact_us . On google, it shows like Επικοινωνήστε μαζί μας - DrFix.gr https://drfix.gr/contact_us Μετρό Γραμμή 3 (Μπλε): Στάση Νίκαια (υπό κατασκευή) ... Επισκευές σε Κινητά Τηλέφωνα, Tablet, Υπολογιστές - Laptop, Τηλεοράσεις - Οθόνες, Περιφερ...

Jump to post
  • Sun Jun 23, 2019 7:01 pm
  • Replies 3
  • Views 797
Re: vQmod extension and multi-store

guidone wrote:
Sun Mar 12, 2017 4:48 pm
Qphoria suggested me to add in the xml file simply:

if ($this->config->get('config_store_id') == 0) {
... some code here
}

any contraindication?
How exactly did you use that?

Jump to post
  • Sun Jul 08, 2018 9:24 pm
  • Replies 12
  • Views 1720

Search found 32 matches