Jump to content


Corporate Sponsors


Latest News: (loading..)

chrish123

Member Since 17 Dec 2007
Offline Last Active Jan 13 2012, 15:08
-----

Posts I've Made

In Topic: [Addon] Categories Accordion Box for 2.3.1

13 January 2012, 14:59

View Postbriggers, on 13 January 2012, 11:51, said:

Addition to post #59 above

It seems that after adding a new category (see point 2) it is necessary to "Reset" the cache. Then the new category shows every time.

Would it be possible to automatically clear the cache after adding a new category?

Yes, it's possible, you could open admin/categories.php and find:

if (USE_CACHE == 'true') {
tep_reset_cache_block('categories');
tep_reset_cache_block('also_purchased');
}

and add in:

tep_reset_cache_block('categories_box2');

Untested but it may work, ill have a look later hopefully, it may require further coding like in the frontend in the admin functions part.

In Topic: shop by price

13 January 2012, 14:06

The author has packaged it wrong and missed some language code, I have it working fine, I commented out in catalog/includes/modules/boxes/bm_shop_by_price.php:

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOP_BY_PRICE);

to look like:

//require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOP_BY_PRICE);

and then created another file of the same name in catalog/includes/languages/english/modules/boxes/bm_shop_by_price.php containing this code:

<?php
/*
  $Id$
  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com
  Copyright (c) 2010 osCommerce
  Released under the GNU General Public License
*/
  define('MODULE_BOXES_SHOP_BY_PRICE', 'Shop By Price');
  define('MODULE_BOXES_SHOP_BY_PRICE_DESCRIPTION', 'Shop By Price');
  define('MODULE_BOXES_SHOP_BY_PRICE_BOX_TITLE', 'Shop By Price');
  define('BOX_HEADING_SHOP_BY_PRICE', 'Shop By Price');
?>

Remember box modules within osC 2.3.1 generally have their language files like above with the same name in the corresponding modukles/boxes folder, not stored in the languages/english/ folder

Another pain in this addon that will eventually need rewriting is that you need to change the database price ranges via phpmyadmin and also the price ranges present in the catalog/includes/modules/boxes/bm_shop_by_price.php too! Bad.. bad!

In Topic: Cron Simulator

21 November 2011, 02:55

Yeah minor spelling mistakes... Its definately not an installation mistake, at least not on my part, I followed the simple installation instructions, let's face it its not the hardest contribution to add, I have been messing around with PHP and oscommerce for well over 5 years and integrated and programmed many features and made many customisations. Have you checked the code you uploaded is the exact same code as you uploaded to the shop you programmed it for? The code does not work. I have came back to this months on and added it to another shop, different server and same thing, its not a coincidence.

In Topic: Cron Simulator

20 November 2011, 23:46

Hello,

Well after months since my first time I posted on here earlier in this thread, it never did work. I tried to install this again last night but on a 2.3.1 shop as the hosting package dosent support SSH or CRON on the starter 1&1 package and guess what? Same issue, it does not save to the database, even after the changes mentioned above, no offence but looking at the code looks like its been wrote whilst drunk, it has instructions and is packaged for 2.3.1, yet the admin side is messed up(which is a simple fix btw, its wrote for 2.2 but still a packaging error).

There's also many spelling errors, are you sure this is THE exact same version you say is working fine on another shop you programmed it for?

For instance, this dosen't look like a finished addon at all, the spelling errors are pretty apparant on the actual cron simulator page, CON JOB instead of CRONJOB

Line 16 of admin/cron_simulator says: $seclectedArray = array();

Shouldn't this be $selectedArray = array(); ??

Again at:

admin/includes/languages/english/cron_simulator.php: define('TEXT_SELECT_SCRIPT', 'Select a Con Job');

Again in the same file:

define('TEXT_INTRO', 'Cron Simulator allows scripts to be ran at speicifc times.');

define('ERROR_INVALID_PERIOD', 'Frequesncy is unknown.');

Oh and also the fact the cron does not save to the database and the fact there's also a missing define in the version checker code!


Anyway I uninstalled this again, and here's another way for others that come across this, infact this works the same way and does the same thing as this contribution intends to do and should work with any version of oscommerce or any website.

Check it out here:

http://addons.oscommerce.com/info/8240

Regards,
Chris.

In Topic: [Addon] Categories Accordion Box for 2.3.1

04 November 2011, 01:21

Hello,

Thanks for a great addon! I have added the ability to cache the accordion category box, however it seems to make little difference on our shop as it has hundreds of sub categories but it does somewhat make a difference, so it does definately work as far as it getting cached once loaded once, I have re-uploaded a new package which allows you to reset / refresh the cache under tools>cache control too. I hope my hasty rushed upload earlier did not affect anyone, please download the new package.

However this is using the osc caching function, I havent quite sussed out how efficient it is except it isnt great with this addon, I might tak a look and look deeper at FWR Media's SEO multilayer pop out menu style caching as that is perfect, it seems to load as the page loads, not when a main category is clicked and so on, then cached like this addon is behaving like with caching enabled. Still as I said I have lots of sub categories which are probably the problem.