Search found 38 matches

Search found 38 matches

Re: print Model/ISBN etc on category page

I managed to make it.
On controller i added 'isbn' => $result['isbn']
The mistake was on twig. It needs {{ product.isbn }}. I was trying {{ isbn }} and didn't worked. ISBN is variable of the product array.

Jump to post
  • Fri Apr 15, 2022 3:58 am
  • Replies 2
  • Views 370
Re: print Model/ISBN etc on category page

Hello, i updated the first post with all the information. Later i will post the modifications i ve done till now

Jump to post
  • Fri Apr 15, 2022 1:43 am
  • Replies 2
  • Views 370
[SOLVED] print Model/ISBN etc on category page

Hello I am trying to print the model or ISBN on the category. I declared the variables on controller, model is same as product's where it works, but cannot print anyting on cataloge. I want for example the {{ isbn }} to be printed under <h4><a href="{{ product.href }}">{{ product.name }}</...

Jump to post
  • Fri Apr 15, 2022 12:33 am
  • Replies 2
  • Views 370
Need help with module creation using model and DB connection

Hello I can't find any opencart documentation and I m trying blind to create a module with connection to DB. On admin side, i ve created an ajax button which i want call a function from model file which created the DB table, but can't figure out how to do it Tried: <button onclick="install()&qu...

Jump to post
  • Thu Nov 11, 2021 1:44 am
  • Replies 1
  • Views 1589
Re: Access Sym Link Directory from File Manager

The only way to work this, is instead of creating symlink, to bind mount one folder to another
For example in fstab:
/var/www/{site where you have the images}/html/image/catalog/products /var/www/{site where you want to symlink}/html/image/catalog/products none defaults,bind 0 0

Jump to post
  • Thu Oct 28, 2021 5:06 am
  • Replies 10
  • Views 1899
Re: opencart not allowing images or sub images folders to be inside of a symbolic link

The only way to work this, is instead of creating symlink, to bind mount one folder to another
For example in fstab:
/var/www/{site where you have the images}/html/image/catalog/products /var/www/{site where you want to symlink}/html/image/catalog/products none defaults,bind 0 0

Jump to post
  • Thu Oct 28, 2021 5:06 am
  • Replies 3
  • Views 734
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 25
  • Views 120042
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 25
  • Views 120042
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 7667
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 7667
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 7667
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 7667
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 8
  • Views 4244
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 1187
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 1187
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 1187
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 func...

Jump to post
  • Thu Nov 21, 2019 6:29 am
  • Replies 6
  • Views 1187
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 1155
  • Views 559245
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 685

Search found 38 matches