Jump to content

piernas

Members
  • Content count

    657
  • Joined

  • Last visited

  • Days Won

    16

Reputation Activity

  1. Like
    piernas got a reaction from burt in Addon installer concept   
    Now that oscommerce community version allows more an more addons with no core code changes I feel an uploader/installer would make things simpler and also help a lot those newcomers that does not have the knowledge to ftp files.
    We don't have a repository adapted to it, but we could ideate a simple system that allows to upload a zip file by browser, uncomprees it, do some preliminar checks like if the addon is currently installed and is compatible with the system and with copying files/making registry entries when user press "install".
    Been playing with the idea of something like the paypal app updater and came up with this:

    Would like to get feedback from developers about it. It would need, of course, that developers agree with packaging the addons with a certain structure and provide with a file that performs the tasks.
    Do you consider interesting to make a similar system?
     
  2. Like
    piernas got a reaction from valquiria23 in Support thread for Bootstrap V4 Oscommerce Administration v2.3.4.1 CE   
    @shetch  Nice work, thanks for sharing.
    Do you plan to expand it to new functionalities? If yes please consider adding something like these addon for organizing modules:
    https://apps.oscommerce.com/3DQyi&improved-content-modules-admin-for-2-3-4
    https://apps.oscommerce.com/sJbv1&improved-modules-admin-for-2-3-4
    Getting rid of the right menu boxes would be nice. This allows more space on mobile devices and quicker workflow.
    BTW I found an align issue in dashbboard with big resolutions:

     
  3. Like
    piernas got a reaction from Moxamint in International SEO   
    Every time SEO Urls has been metioned I've heard "there's no point on using it nowadays". Well this is a true example of why these are still useful and why oscommerce has a poor localization. If you have a multilingual shop and you want it to be correctly indexed you really, really need a SEO addon that rewrites urls for each language.
    BTW I've been tweaking the latest versions of SEO urls 5 and there's a glitch with hreflang tags not being correctly shown until session is set - so spiders can¡t see it. I'll fix it and upload again in case someone wants to use it.
  4. Like
    piernas got a reaction from Moxamint in International SEO   
    Every time SEO Urls has been metioned I've heard "there's no point on using it nowadays". Well this is a true example of why these are still useful and why oscommerce has a poor localization. If you have a multilingual shop and you want it to be correctly indexed you really, really need a SEO addon that rewrites urls for each language.
    BTW I've been tweaking the latest versions of SEO urls 5 and there's a glitch with hreflang tags not being correctly shown until session is set - so spiders can¡t see it. I'll fix it and upload again in case someone wants to use it.
  5. Thanks
    piernas got a reaction from Antonio Garcia in Shipping table is now a real table :)   
    Today I decided I got angry for the last time updating a table rate based module. Afer several tryouts to change the shipping rates just to see I had a typo in the values string  -damned colons- and having to manually calculate the net prices for each row from the gross that came from the table provided by the courier... I had enough and modified the table rate module to show a real table where you can see what you're doing. Uses some javascript to update net/gross, add or remove rows and do some basic checks.
    It can be adapted to any other module that uses the same system.
    Note: The net pice is caclulated based on the tax class from the module. It will apply only to the countries in the module's zone and it's not savet to database but calculated on the fly. For this column to work you need to set up the tax rate first, save and enter the module configuration again.
    Here is the file: https://apps.oscommerce.com/wyYLv&sgipping-table-module-update
    @burt you can replace the stock one if you consider it fits the community project.

  6. Thanks
    piernas got a reaction from Antonio Garcia in Shipping table is now a real table :)   
    Today I decided I got angry for the last time updating a table rate based module. Afer several tryouts to change the shipping rates just to see I had a typo in the values string  -damned colons- and having to manually calculate the net prices for each row from the gross that came from the table provided by the courier... I had enough and modified the table rate module to show a real table where you can see what you're doing. Uses some javascript to update net/gross, add or remove rows and do some basic checks.
    It can be adapted to any other module that uses the same system.
    Note: The net pice is caclulated based on the tax class from the module. It will apply only to the countries in the module's zone and it's not savet to database but calculated on the fly. For this column to work you need to set up the tax rate first, save and enter the module configuration again.
    Here is the file: https://apps.oscommerce.com/wyYLv&sgipping-table-module-update
    @burt you can replace the stock one if you consider it fits the community project.

  7. Like
    piernas got a reaction from raiwa in AJAX Attribute Manager support   
    @raiwa warnings are still there. This fixes them:
    in attributeManagerInstant-class.php
    Change:
    function addAttributeToProduct($get) { $this->getAndPrepare('option_id', $get, $optionId); $this->getAndPrepare('option_value_id', $get, $optionValueId); $this->getAndPrepare('price', $get, $price); $this->getAndPrepare('prefix', $get, $prefix); $this->getAndPrepare('sortOrder', $get, $sortOrder); to:
    function addAttributeToProduct($get) { $this->getAndPrepare('option_id', $get, $optionId); $this->getAndPrepare('option_value_id', $get, $optionValueId); // check if the variables are passed to the function: if (isset ($get['price'])) $this->getAndPrepare('price', $get, $price); if (isset ($get['prefix'])) $this->getAndPrepare('prefix', $get, $prefix); if (isset ($get['sortOrder'])) $this->getAndPrepare('sortOrder', $get, $sortOrder);  
  8. Like
    piernas got a reaction from raiwa in AJAX Attribute Manager support   
    Thanks @raiwa; will do this weekend!
  9. Like
    piernas got a reaction from radhavallabh in ULTIMATE Seo Urls 5 - by FWR Media   
    @phi148 I think I fixed the issue. Can you please test it?
     
    Ultimate_Seo_Urls_5_PRO_BS_209_beta_2.zip
  10. Thanks
    piernas got a reaction from Bobber in Admin responsive sidebar with bootstrap   
    This is a admin sidebar that replaces the stock menu. It can be expanded or condensed on a column of icons. It also adds bootstrap framework to admin. Hope you enjoy it.
    Please comment here if you have any improvements or find any problem.
    Download: https://apps.oscommerce.com/ebjVY&admin-responsive-sidebar-with-bootstrap


  11. Like
    piernas got a reaction from radhavallabh in ULTIMATE Seo Urls 5 - by FWR Media   
    I've been working on this addon to fix some issues and improve some things like multilanguage support. Anyone here would like to test the code before submitting to the addons section?
    Here is a short list of changes:
    Latest responsive oscommerce compatible. Moved usu_base_filename function from application_top to its own file to simplify core edits. Fix for sitemaps not showing manufacturer rewritten URLs Fix for hreflang tags module - now categories shows correct language Corrected location of character conversion packs Allow to processs links outside root folder (ie. ext/directory). This is useful for addons like Twitter typeahead. Fixed (some) cache problems. For now the only issue I still find is with mysql cache: Looks like the table is being truncated on every page load. Any help with locating the problem will be welcome.
     
    Ultimate_Seo_Urls_5_PRO_BS_209 beta1.zip
  12. Like
    piernas got a reaction from radhavallabh in ULTIMATE Seo Urls 5 - by FWR Media   
    @radhavallabh yes
  13. Like
    piernas got a reaction from radhavallabh in ULTIMATE Seo Urls 5 - by FWR Media   
    I've been working on this addon to fix some issues and improve some things like multilanguage support. Anyone here would like to test the code before submitting to the addons section?
    Here is a short list of changes:
    Latest responsive oscommerce compatible. Moved usu_base_filename function from application_top to its own file to simplify core edits. Fix for sitemaps not showing manufacturer rewritten URLs Fix for hreflang tags module - now categories shows correct language Corrected location of character conversion packs Allow to processs links outside root folder (ie. ext/directory). This is useful for addons like Twitter typeahead. Fixed (some) cache problems. For now the only issue I still find is with mysql cache: Looks like the table is being truncated on every page load. Any help with locating the problem will be welcome.
     
    Ultimate_Seo_Urls_5_PRO_BS_209 beta1.zip
  14. Thanks
    piernas reacted to raiwa in Modular Shopping Cart   
    yes, you have to update to fontawesome 5.0. Please compare to the core shopping_cart.php and update.
    I'll begin to update all add-ons once 2.3.4.1 BS final is declared
     
  15. Like
    piernas got a reaction from burt in Addon installer concept   
    @burt I have most of the schema done - it's simple as I mentioned before. Need to write the uploading and uncompressing routine to have a functional prototype. If someone is interested in taking a look I'll find a free afternoon next week to finalise it.
  16. Like
    piernas got a reaction from Smoky Barnable in Addon installer concept   
    Where's that official build?
  17. Like
    piernas got a reaction from burt in Addon installer concept   
    Now that oscommerce community version allows more an more addons with no core code changes I feel an uploader/installer would make things simpler and also help a lot those newcomers that does not have the knowledge to ftp files.
    We don't have a repository adapted to it, but we could ideate a simple system that allows to upload a zip file by browser, uncomprees it, do some preliminar checks like if the addon is currently installed and is compatible with the system and with copying files/making registry entries when user press "install".
    Been playing with the idea of something like the paypal app updater and came up with this:

    Would like to get feedback from developers about it. It would need, of course, that developers agree with packaging the addons with a certain structure and provide with a file that performs the tasks.
    Do you consider interesting to make a similar system?
     
  18. Like
    piernas got a reaction from burt in Addon installer concept   
    @burt I have most of the schema done - it's simple as I mentioned before. Need to write the uploading and uncompressing routine to have a functional prototype. If someone is interested in taking a look I'll find a free afternoon next week to finalise it.
  19. Like
    piernas got a reaction from burt in Addon installer concept   
    @burt I have most of the schema done - it's simple as I mentioned before. Need to write the uploading and uncompressing routine to have a functional prototype. If someone is interested in taking a look I'll find a free afternoon next week to finalise it.
  20. Like
    piernas reacted to JcMagpie in Addon installer concept   
    I can see you dont like other opions but no need to call others stupid.
  21. Thanks
    piernas got a reaction from JcMagpie in Addon installer concept   
    That's the main difference, then. I want to make a public addon. Any vampire who wants to improve it is welcome.
  22. Like
    piernas got a reaction from Omar_one in Addon installer concept   
    @wHiTeHaT I don't want to loose my time in something like this if there's no interest. That's the reason I opened this thread, to get some feedback. If you consider it should be done right now and you'll do it beter, just do it.
    @justcatering I'd love to. I'm lazy :)
     
  23. Like
    piernas got a reaction from Omar_one in Addon installer concept   
    @Omar_one the idea I have is that the installer page only lets you upload the file and checks if it's compatible with the core version and if the addon is already installed. The rest should be done by the php file (example posted above) by user interaction and calling the install() method on the class file. There, the addon maker defines the actions to perform - from copying a file, removing old - unneeded ones or whatever you want to do - so it could potentially modify core files, altough it's not the intention.
    Yes the addon needs to be ready. It's up to the developer to follow the schema (basically include all the files with the structure needed under catalog/ directory and make the install file where information and install routine is placed. In fact any addon maker could do his propietary, own installer just by placing an "install.php", I think I've seen it before.
     
  24. Like
    piernas got a reaction from Dan Cole in Addon installer concept   
    @ burt that's why I opened the thread. If there's no interest there's no point on working more on it.
    What I had planned was simple: A zip containing a php file on its root and the files to be uploaded already placed on a folder called "catalog" with their paths. The system does some checks based on the php file and does the magic. Tried to keep it simple but powerful.
    This is an example of the file:
    <?php namespace test_app2; class app_installer { var $groups; function __construct () { $this->required_installer_version = "1.3"; $this->required_osc_version = "2.3.4.1"; $this->app_version = "1.1"; $this->name = "The greatest test addon of all times"; $this->description = "It's just another addon that does things..."; $this->type = "Content module"; $this->prefix = "MODULE_CONTENT_TEST_APP_2_"; // files to remove $this->remove_files = array("unneededfile.php","unneededfile2.php"); // directories to remove $this->remove_dirs = array("unneeded_dir"); // configuration keys to create (if not exists) // modules to install $this->add_to_groups = array('MODULE_CONTENT_INSTALLED' =>'test/cm_test_test_app', 'MODULE_PAYMENT_INSTALLED' => 'test.php'); // todo: Maybe it's easier to do $module->install() instead? $this->db_keys = array('SORT_ORDER' =>0, 'ENABLED' => 'True'); $this->remove_from_groups = array(); } function install() { // copy files: $this->copy_files(DIR_FS_ADMIN . '/temp/test_app/catalog', DIR_FS_CATALOG); // remove old files: foreach ($this->remove_files as $file) { unlink (DIR_FS_CATALOG . $file); } // remove old dirs: foreach ($this->remove_dirs as $dir) { $this->delTree (DIR_FS_CATALOG . $dir); } // Create module constants: foreach ($this->db_keys as $key => $value) { $key = $this->prefix . $key; if (!defined ($key)) { echo "no está"; } } // TODO check if already exists and reorder: foreach ($this->add_to_groups as $group_key => $group_value) { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value='" . constant($group_key) . ";$group_value', last_modified =now() where configuration_key = '$group_key'"); } return "All ok"; } function copy_files($src,$dst) { $dir = opendir($src); if (!is_dir($dst)) { mkdir($dst); } @mkdir($dst); while(false !== ( $file = readdir($dir)) ) { if (( $file != '.' ) && ( $file != '..' )) { if ( is_dir($src . '/' . $file) ) { $this->copy_files($src . '/' . $file,$dst . '/' . $file); } else { copy($src . '/' . $file,$dst . '/' . $file); } } } closedir($dir); } function delTree($dir) { $files = array_diff(scandir($dir), array('.','..')); foreach ($files as $file) { (is_dir("$dir/$file")) ? $this->delTree("$dir/$file") : unlink("$dir/$file"); } return rmdir($dir); } } I'd appreciate any comment from developers; even if they are not interested at all - that would make me continue or stop with it.
  25. Like
    piernas got a reaction from burt in Addon installer concept   
    Now that oscommerce community version allows more an more addons with no core code changes I feel an uploader/installer would make things simpler and also help a lot those newcomers that does not have the knowledge to ftp files.
    We don't have a repository adapted to it, but we could ideate a simple system that allows to upload a zip file by browser, uncomprees it, do some preliminar checks like if the addon is currently installed and is compatible with the system and with copying files/making registry entries when user press "install".
    Been playing with the idea of something like the paypal app updater and came up with this:

    Would like to get feedback from developers about it. It would need, of course, that developers agree with packaging the addons with a certain structure and provide with a file that performs the tasks.
    Do you consider interesting to make a similar system?
     
×