Jump to content



Custom folder - 3.0.1


  • Please log in to reply
3 replies to this topic

#1   capte

capte
  • Members
  • 21 posts
  • Real Name:dom

Posted 03 May 2011 - 08:42 PM

Trying to implement some kind of light box instead of the pop up image.

Copied file from this location :
OM/Core/Site/Shop/Application/Products/pages/main.php

to

OM/Custom/Site/Shop/Application/Products/pages/main.php

Cleared the cache from : OM/Work/Cache

Still no luck... :blink:

Anyone on this one.

#2   YannisPastisGlaros

YannisPastisGlaros
  • Members
  • 1 posts
  • Real Name:Yannis Pastis Glaros
  • Gender:Male
  • Location:Athens, Greece

Posted 18 October 2011 - 04:11 PM

This feature doesn't work at all for me. I try to create a plugin and no matter what I do, it doesn't work.
To try it's functionality, I copied Core/Session.php and I added a die('it works'); on top, but it doesn't run (it' doesn't die :P).

#3   foxp2

foxp2

    strong as a Twig

  • Banned
  • 310 posts
  • Real Name:Laurent
  • Gender:Male
  • Location:France

Posted 21 October 2011 - 08:25 AM

View Postcapte, on 03 May 2011 - 08:42 PM, said:

Trying to implement some kind of light box instead of the pop up image.

Copied file from this location :
OM/Core/Site/Shop/Application/Products/pages/main.php

to

OM/Custom/Site/Shop/Application/Products/pages/main.php

Cleared the cache from : OM/Work/Cache

Still no luck... [img]http://forums.oscommerce.com/public/style_emoticons/default/blink.gif[/img]

Anyone on this one.
the file is not a class.

if your want to work on seperate file:
1 - clone main.php and rename it 'mypage.php'
2 - clone osCommerce\OM\Core\Site\Shop\Application\Products\Controller.php to -> osCommerce\OM\Custom\Site\Shop\Application\Products\Controller.php and change this line :
protected function initialize() {}
with :
	protected function initialize() {
		$this->_page_contents = 'mypage.php';
	}

Edited by foxp2, 21 October 2011 - 08:27 AM.

-------------------

#4   foxp2

foxp2

    strong as a Twig

  • Banned
  • 310 posts
  • Real Name:Laurent
  • Gender:Male
  • Location:France

Posted 21 October 2011 - 08:36 AM

View PostYannisPastisGlaros, on 18 October 2011 - 04:11 PM, said:

This feature doesn't work at all for me.
i think you do something wrong.

POC with ErrorHandler class :

1 - clone osCommerce\OM\Core\ErrorHandler.php  to osCommerce\OM\Custom\ErrorHandler.php
2 - change this line (in clone file):
self::$_dbh = PDO::initialize(OSCOM::BASE_DIRECTORY . 'Work/Database/errors.sqlite3', null, null, null, null, 'SQLite3');
with :
self::$_dbh = PDO::initialize(OSCOM::BASE_DIRECTORY . 'Work/Database/personnalerrors.sqlite3', null, null, null, null, 'SQLite3');
following errors will be recorded in the new SQLite database, named personnalerrors (directory : \osCommerce\OM\Work\Database)
-------------------