Latest News: (loading..)
Search the Community
Showing results for tags 'login to see price'.
Found 1 result
clustersolutions posted a topic in osCommerce Online Merchant Community Bootstrap EditionWrote this module for a new store and tried no core code change but no deal...I have couple questions and any answers are welcome. https://github.com/clustersolutions/osc-price-display-members-only 1 line added to admin/modules.php and I had to use the class file in the catalog side and not the admin because the currencies class aren't the same between the two sides. Perhaps these classes should be consolidated. I wanted the module to be self contained, so I extended the currencies class inside the module, but the procedural step in oscTemplate had called out TEMPLATE_BLOCK_GROUPS = 'boxes;header_tags' in this order and I had to flip the TEMPLATE_BLOCK_GROUPS order around so the boxes would also pickup the change in this module. "update configuration set configuration_value = 'header_tags;boxes' where configuration_key = 'TEMPLATE_BLOCK_GROUPS';" This is what I used, now, is TEMPLATE_BLOCK_GROUPS controlled only from a mysql shell? The alternative would be to add the currencies_mod class file into the class folder and modify the currencies class line in applicaton_top.php. Well, remember my goal was minimum core code change? This method is also kinda messy should the module be uninstalled... May be extending oscTemplates with an updateBlocks() method? Perhaps a class loader would be nice...may be that's already in 2.4 but I had not browsed through the 2.4 codes...but the class loader would have to be very robust and be able to deal with different modules perhaps extending the same class and tinkering with the same method...hmmm?! Any thoughts???