Search found 11 matches

Page 1 of 1

Search found 11 matches

Re: Random class error in product option edit page

You're not alone ... not sure what the cause is. Here's someone else having the problem (found via Google search) http://huskywebdesign.co.uk/admin/controller/common/error_log Our monitoring picked this up on a production site, has been happening for some time but not always. We're upgrading to Open...

Jump to post
  • Wed Aug 17, 2016 7:32 am
  • Replies 1
  • Views 626
Re: Setting Local Timezone values in database

Whoops - my xml file broke the admin. Use this attached file instead ;D

Jump to post
  • Wed Dec 12, 2012 7:12 pm
  • Replies 56
  • Views 42610
Re: Setting Local Timezone values in database

I found out why - it's because vqmod only works on files that have been loaded using the vqmod method. When you first install vqmod it updates the main index.php in OpenCart to load it's includes using vqmod as a wrapper. This is the injection mechanism for vqmod to operate. The database library scr...

Jump to post
  • Wed Dec 12, 2012 5:09 pm
  • Replies 56
  • Views 42610
Re: Setting Local Timezone values in database

Great idea to wrap this up into a vqmod - I tried dropping it into my xml folder and it's not picking it up - all my other mods work fine. Tried clearing the vqcache folder and looked at the vqmod.log file for messages but nothing. Any idea why that would be?

Jump to post
  • Wed Dec 12, 2012 11:35 am
  • Replies 56
  • Views 42610
Re: Template Path Guide

Arrived here from Google looking for the same thing. After a bit of digging I found that this works. Add this line into system/engine/controller.php just after the $this->output = ob_get_contents(); on (or about) line 65. if( strpos( $_SERVER[ 'SCRIPT_FILENAME' ], '/admin/' ) === false ) $this->outp...

Jump to post
  • Tue Oct 16, 2012 8:51 am
  • Replies 7
  • Views 5804
Re: Loading admin models from catalog (or vice versa)

Agreed, it is terrible. We did this in the catalog controller: // Extreme example to illustrate the danger ... require('admin/model/sale/customer.php'); $adminCustomerModel = new ModelSaleCustomer( $this->registry ); $adminCustomerModel->deleteCustomer( 123 ); I don't recommend this - who knows what...

Jump to post
  • Wed Jul 04, 2012 8:51 am
  • Replies 6
  • Views 8224
Re: Meta Keyword Tags

Hi All, I suspect this has already been covered in the thread - I came to the thread after doing this work. Regardless of what your motivations for wanting to do this are, you may find this to be a useful reference as I've just been through this process myself. http://dev.turboweb.co.nz/2011/11/21/m...

Jump to post
  • Mon Nov 21, 2011 9:05 am
  • Replies 52
  • Views 36256
Complex product options - suggestions?

Hi All, We're putting together a website with OpenCart and one of the requirements is that we need to put together a single product that has individual prices for each option in the product. Each of the combinations below is actually a product in our client's stock list, so we need to know the SKU o...

Jump to post
  • Mon Jul 05, 2010 8:14 pm
  • Replies 0
  • Views 535
Re: General feedback and suggenstions about OpenCart

it might be better to use php's bulit in error_log function. Yep, that'd be perfect for a production environment - use error_log and throw an exception. The developer can then set a global exception handler that stores the exception in the session, redirects to a page showing someone tripping over ...

Jump to post
  • Mon May 24, 2010 6:11 pm
  • Replies 28
  • Views 50316
Re: General feedback and suggenstions about OpenCart

Woo, fun thread. Good comments both ways. I have one thing to add - I'm new to OpenCart and am in the process of getting my hands dirty with a custom module. I notice that in the database drivers (mmsql and mysql) that a failed query is handled with an exit() which immediately terminates the applica...

Jump to post
  • Fri May 21, 2010 7:51 pm
  • Replies 28
  • Views 50316
Re: Insert new products remotely

Ideally you should be calling the catalog/product model's addProduct method. This is the only safe way of adding products to Opencart. If you insert data directly into the database your method will probably not work in future versions of Opencart. Doing this requires PHP development, but it's straig...

Jump to post
  • Fri May 21, 2010 7:31 pm
  • Replies 12
  • Views 6227

Page 1 of 1

Search found 11 matches