Search found 11 matches

Page 1 of 1

Search found 11 matches

Re: [RELEASED] Override Engine for OpenCart

i tried copying your code exactly still nogo. also do the models need to call parent i am assuming so correct me if im wrong. also do i need to call the parent on every overridden method, say for ex i need to overwrite the edit and getform method, edit calls the getform method do i only need to call...

Jump to post
  • Sat Feb 07, 2015 1:27 pm
  • Replies 320
  • Views 199684
Re: [RELEASED] Override Engine for OpenCart

I have exactly that here are the contents of override/stock/admin/language/english/catalog/product.php and override/stock/admin/language/english/product/product.php <?php // Additional Entry $_['entry_has_option'] = 'Has Options'; $_['tab_stock'] = 'Stock'; ?> and am calling in prerender like /* ove...

Jump to post
  • Fri Feb 06, 2015 12:07 pm
  • Replies 320
  • Views 199684
Re: [RELEASED] Override Engine for OpenCart

is there a way to view the overridden class/model/language to make sure my overrides are actually being used

Jump to post
  • Thu Feb 05, 2015 5:21 am
  • Replies 320
  • Views 199684
Re: [RELEASED] Override Engine for OpenCart

that works, but i also have a language override in place product.php // Additional Entry $_['tab_stock'] = 'Stock Control'; /* overridden method, always called before the final rendering */ public function preRender( $template_buffer, $template_name, &$data ) { if ($template_name != 'catalog/pro...

Jump to post
  • Thu Feb 05, 2015 3:49 am
  • Replies 320
  • Views 199684
Re: [RELEASED] Override Engine for OpenCart

i can figure out how to load languange strings into a controller but they dont render in prerender only a not found error , the prerender data is there (the divs and markup) but the language strings (in this case tab_stock cannot be found) what am i doing wrong, if i call the parent at the beginning...

Jump to post
  • Wed Feb 04, 2015 11:25 am
  • Replies 320
  • Views 199684
Re: 1.5.x -2.0 What is the difference between the code struc

Language Loading 1.5x => $this->language->load('module/module'); 2.x =>$this->load->language('module/module'); Template Loading instances of $this->data become $data 1.5x => $this->data['heading_title'] = $this->language->get('heading_title'); $this->template = 'module/module.tpl'; $this->children =...

Jump to post
  • Sun Oct 12, 2014 3:01 pm
  • Replies 3
  • Views 4451
give developers the ability to download their code

Sometimes catstrophic things happen, I need to be able to download the code I write and place in the market so in case backups go corupt, what if I need to update a module and cannot.

Jump to post
  • Mon Nov 11, 2013 1:42 pm
  • Replies 3
  • Views 717
opencart extension search

why is it when i release an extension it cannot be searched for via the extension name, it seems this has been going on for like 1 yr or more, ex search pdf catalog exactly how i spell it and you cannot find my extension even tho that is exactly the extension name. same for my newly released extensi...

Jump to post
  • Wed Jul 03, 2013 2:02 am
  • Replies 1
  • Views 495
bash script for module creation

#!/bin/bash echo "Type the name of the project followed by [ENTER]:" read projectname echo "Type the name of the module followed by [ENTER]:" read modulename mkdir -p $projectname/upload/catalog/controller/$modulename mkdir -p $projectname/upload/catalog/model/$modulename mkdir -...

Jump to post
  • Tue Jun 04, 2013 3:52 pm
  • Replies 1
  • Views 2107
Re: Code Completion for NetBeans

<?php require 'config.php'; $properties=array(); $properties[]='string $id'; $properties[]='string $template'; $properties[]='array $children'; $properties[]='array $data'; $properties[]='string $output'; $properties[]='Loader $load'; $properties[]='Config $config'; $properties[]='DB $db'; $properti...

Jump to post
  • Tue May 21, 2013 2:50 am
  • Replies 3
  • Views 3046
admin id

what class/method do i use to access my current id, ie i am a logged in administrator in a different group so i need my logged in user id for to populate a field in different table ive created
thx

Jump to post
  • Fri Mar 29, 2013 2:24 am
  • Replies 1
  • Views 415

Page 1 of 1

Search found 11 matches