Search found 125 matches

Search found 125 matches

Re: Order Return Email Notification Not Working

Check the event trigger for admin_mail_return just fixed an issue similar where the trigger was: admin/model/sale/return/addReturn/after

Run this SQL query to fix:

Code: Select all

UPDATE `oc_event` SET `trigger` = 'admin/model/sale/return/addReturnHistory/after' WHERE `code` = 'admin_mail_return'

Jump to post
  • Fri Dec 07, 2018 4:47 am
  • Replies 17
  • Views 2049
Re: Email template for new email

See below example. Please open support ticket if you need support with this. $this->load->model('extension/mail/template'); // Load email template $load_data = array( 'emailtemplate_key' => 'order.customer', 'language_id' => $order_info['language_id'], 'store_id' => $order_info['store_id'] ); $templ...

Jump to post
  • Sun Jun 03, 2018 4:30 pm
  • Replies 3
  • Views 2103
Re: Paypal express checkout issue

Hi,

There's a bug in Opencart 3 with paypal express always in sandbox box.

Or edit file:
upload/catalog/view/theme/default/template/extension/payment/pp_express.twig

Set line:
environment: '{{ environment }}'

Jump to post
  • Wed Sep 20, 2017 5:40 pm
  • Replies 8
  • Views 3735
Re: Email template for new email

Let me know what code you have so far to send the email but here's an example. 1. Load template $this->load->model('extension/mail/template'); $load_data = array( 'emailtemplate_key' => 'order.customer', 'language_id' => $order_info['language_id'], 'store_id' => $order_info['store_id'] ); $template ...

Jump to post
  • Fri Mar 31, 2017 12:55 am
  • Replies 3
  • Views 2103
Re: OpenCart 2.1.0.0 Pre-Release Testing

Is 'sale/customer' being replaced with 'customer/customer'?

Jump to post
  • Tue Oct 06, 2015 1:58 pm
  • Replies 56
  • Views 39282
Openbay Ebay Order using old template class

Not sure if this is redundant code or if its been missed. Its part of the confirm method.

Code: Select all

$template = new Template();
https://github.com/opencart/opencart/bl ... r.php#L294

Jump to post
  • Thu Feb 12, 2015 8:08 pm
  • Replies 0
  • Views 455
Re: Opencart 2.0 Extension Installer

Just been testing this and works pretty well for me uploaded all the files fine but I was surprised to see that it doesn't actually install the extension, only uploads the files. Not sure on the logic behind install.php/xml/sql, why would you want to upload, apply any custom changes before the exten...

Jump to post
  • Tue Oct 07, 2014 5:00 pm
  • Replies 28
  • Views 19795
Re: Identify controller/template that is loading header.tpl?

You could try using the 'route'. Add in controller/common/home.php if (isset($this->request->get['route'])) { $this->data['route'] = (string)$this->request->get['route']; } else { $this->data['route'] = 'common/home'; } Then in your template header.tpl you can wrap your javascript code inside an IF ...

Jump to post
  • Sun Sep 28, 2014 6:02 pm
  • Replies 2
  • Views 3735
Re: Security tips?!

1. Add a security captcha into the admin login, this helps prevent brute force guessing your admin password.
2. Move your download folder outside of the doc root. So even if a hacker is able to upload a file and guesses the hash, they are not able to access via a URL.

Jump to post
  • Thu Jun 05, 2014 11:40 pm
  • Replies 4
  • Views 3638
Extension description - bbcode target _blank

How to make a link open in new window?

This just appends to the URL

Code: Select all

[url=http://demo2.opencart-templates.co.uk/admin target=_blank][img]...[/img][/url]
Tried with just blank, adding quotes round URL.

Jump to post
  • Tue Jun 03, 2014 7:51 pm
  • Replies 1
  • Views 818
Re: [RELEASED] Image Cycle On Hover for Category list/grid v

Can anybody point out to a free version of an extension doing the same thing.. I am a li'l out of cash at the moment. There are plenty of jquery plugins which offer similar functionality cycle images on hover but we found them to be overly complex so wrote our own jquery plugin focused around perfo...

Jump to post
  • Sun May 25, 2014 4:55 pm
  • Replies 6
  • Views 2142
Re: Remove sample data in 1.5.x versions ?

CoastWeb wrote:Hi opencart-templates

Thanks for the script, one little problem though...
Thanks for that, just updated with prefix and added category_path. Probably best to leave the customer group it can be essential for some areas of the store to have at least one.

Jump to post
  • Sat Apr 05, 2014 11:18 pm
  • Replies 18
  • Views 15506
Re: Remove sample data in 1.5.x versions ?

No idea why there isn't an options to not install the demo data.... anyway I find myself doing this all the time so wrote a quick script that should make it easier for everybody. Truncates database tables Deletes demo images + resize cache Clear cache database Simple upload this file into your store...

Jump to post
  • Sun Mar 30, 2014 3:04 am
  • Replies 18
  • Views 15506
Re: Extension Store Update IMPORTANT!!

The majority of the time is actually spent providing support, compared with adding new features into an extension or supporting new releases of opencart. You can break it down into 2 types of people buying extensions: 1. Developers - only reason for purchasing is that its more cost effective then bu...

Jump to post
  • Thu Dec 26, 2013 9:01 pm
  • Replies 69
  • Views 54396
Re: Need advice on code change - suggestions please

I thought that you did this for performance reasons encase you had a massive language file, the main priority should still be performance for customer, over code readability for developer. If you are going to load all of the language text then how about loading it into a separate array so this doesn...

Jump to post
  • Thu Dec 26, 2013 7:54 pm
  • Replies 32
  • Views 8742
Re: New Template for OpenCart 2.0

Please start using data attributes and move this sort of code into a JavaScript file.

Code: Select all

onclick="$('input[name=\'currency_code\']').attr('value', 'EUR'); $(this).parent().parent().parent().parent().submit();"

Jump to post
  • Thu Dec 26, 2013 7:44 pm
  • Replies 190
  • Views 128736
Re: Webtopay payment module callback error

One of my clients had the same issue, easily fixed by moving the

Code: Select all

$this->load->model('account/customer');
Above the if statement

Jump to post
  • Wed Jul 24, 2013 5:33 pm
  • Replies 2
  • Views 1538
Re: Order Status Update from Multi Store Email

The other suggestion would never work because you need to edit the actual admin files. You need to find the store_id from the order in the database, so that the store email address settings can be found. You can do this by editing the: admin/model/sale/order.php Adding: $store_settings = $this->mode...

Jump to post
  • Tue Mar 05, 2013 6:16 am
  • Replies 15
  • Views 8502

Search found 125 matches