Jump to content

vmn

Members
  • Content count

    104
  • Joined

  • Last visited

Profile Information

  • Real Name
    Veli-Matti
  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. vmn

    NEW! Complete Order Editing Tool!

    Sorry, I must have missed something. As to 1.2.9 I think that there is no infoBoxContent style any more in 1.0.7.9. I think I stick to my version with one core change. Hopefully the core in the future will contain this extra hook. I also modify the style of the order list and add order language to the edit link. BTW, I moved the extra hook to the end of this if statement in orders.php before the last break stmt. if (($oInfo ?? null) instanceof objectInfo) { ... echo $OSCOM_Hooks->call('orders', 'orderList'); }
  2. vmn

    NEW! Complete Order Editing Tool!

    This was an obsolete comment regarding the version 1.2.8. I was writing a comment to when a note of a new version was posted
  3. vmn

    NEW! Complete Order Editing Tool!

    @SCH_001This was discussed in April 2018 in this topic. I uploaded my version then. As I pointed out my version is heavily mofified.
  4. vmn

    NEW! Complete Order Editing Tool!

    I think managed to port my OSC 2.3.4.1 BS heavily modified order editor to Phoenix 1.0.7.9. I haven't tested it thoroughly yet. At least taxes are correctly calculated. I only use the following modified hooks from this addon version 1.2.8. The only change to core is to add the 'orderList' hook call to admin/orders.php, as instructed in the readme. *********** includes/hooks/admin/siteWide/listOrders.php <?php /* $Id$ add edit orders to admin / orders.php author: John Ferguson @BrockleyJohn oscommerce@sewebsites.net osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2019 SE Websites Released under the MITc License without warranty express or implied Modified by vmn for 1.0.7.9 */ class hook_admin_siteWide_listOrders { function listen_injectSiteEnd() { global $PHP_SELF, $oInfo; if (basename($PHP_SELF) == 'orders.php') { $comment = '<!-- ' .__METHOD__ . ' -->'; if (isset($oInfo) && is_object($oInfo)) { $link = tep_href_link('edit_orders.php', 'oID=' . $oInfo->orders_id); return <<<EOD $comment <script> $(function() { $('a.btn-warning').attr('href','$link'); }); </script> $comment EOD; } } } } *********** includes/modules/ hooks/admin/orders_edit_order.php <?php /* $Id$ add edit orders to admin / orders.php author: John Ferguson @BrockleyJohn john@sewebsites.net osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2018 osCommerce Released under the GNU General Public License Modified by vmn for 1.0.7.9 */ class hook_admin_orders_edit_orders { function listen_orderTab() { $comment = '<!-- ' .__METHOD__ . ' -->'; $button = tep_draw_bootstrap_button(IMAGE_EDIT, 'fas fa-cogs', tep_href_link('edit_orders.php', tep_get_all_get_params(['oID', 'action']) . 'oID=' . $_GET['oID'] . '&action=edit'), null, null, 'btn-warning mr-2'); $output = <<<EOD $comment <script> $('a.btn-info:first').before('$button'); </script> $comment EOD; return $output; } }
  5. vmn

    Youtube Video for Product

    Unfortunately, multiple languages are not supported. So, I can't see much use for htmlcontent. I've implemented optional multi-lingual description text for product images in v2.3.4.1 CE (BS). Right now I'm learning hooks and have made the same (still testing) for Phoenix 1.0.7.9 without changing the core. Gallery modules are the next thing to override.
  6. vmn

    Youtube Video for Product

    What is the purpose of htmlcontent field nowadays? I tested in 1.0.7.9 and put some plain text into htmlcontent of one gallery image. The text will show in the carousel on the particularly image.
  7. You can also create all folders without looping: if(!is_dir($thumbs_dir_path)) { mkdir($thumbs_dir_path,0777,true); }
  8. OK, it might be safer to always add .htaccess into the thumbs top-level folder.
  9. Thanks, actually, for testing purposes, I commented out everything related creating .htaccess in the file above file before notifying you.The images folder .htaccess already contains the required protection.
  10. Thanks for the update. There is no "new_files/catalog" folder in the package. I guess you mean "Phoenix_1.0.7.9+/catalog/".
  11. Hi, I just installed this addon (3.4.2) into 1.0.7.9. One fix needed in /catalog/includes/modules/pi_gallery_kissit.php move the line #94 containing $other_img_indicator = $other_img = null; upwards after the comment line #81 // now create the thumbs (just like in the stock pi_gallery.php) to get rid of "Notice: Undefined variable: other_img_indicator " later on. Question: Is it really necessary to create .htaccess into every thumbs subfolder? The .htaccess from an upper level folder, like images, will be inherited by every subfolder and should be enough.
  12. Hi, 1.0.7.9 does not any more have strings like MATC_PRIVACY_MODAL_TITLE. I made the following change to catalog/templates/default/includes/hooks/shop/siteWide/MATCpwa.php (copied from MAC.php): function listen_injectSiteEnd() { if ($this->show_pages() === true) { $this->load_lang(); $close_button = MATC_BUTTON_CLOSE; //DOES NOT EXIST$p_modal_title = MATC_PRIVACY_MODAL_TITLE; //DOES NOT EXIST$p_modal_text = MATC_PRIVACY_MODAL_TEXT; //DOES NOT EXIST$tc_modal_title = MATC_TERMS_MODAL_TITLE; //DOES NOT EXIST$tc_modal_text = MATC_TERMS_MODAL_TEXT; $p_modal = info_pages::get_page(['p.slug' => 'privacy', 'pd.languages_id' => $_SESSION['languages_id']]); $c_modal = info_pages::get_page(['p.slug' => 'conditions', 'pd.languages_id' => $_SESSION['languages_id']]); $modal = <<<eod <div class="modal fade" id="PModal" tabindex="-1" role="dialog" aria-labelledby="PModalLabel" aria-hidden="true"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title" id="PModalLabel">{$p_modal['pages_title']}</h5><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button></div><div class="modal-body">{$p_modal['pages_text']}</div><div class="modal-footer"><button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">{$close_button}</button></div></div></div></div><div class="modal fade" id="TCModal" tabindex="-1" role="dialog" aria-labelledby="TCModalLabel" aria-hidden="true"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title" id="TCModalLabel">{$c_modal['pages_title']}</h5><button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button></div><div class="modal-body">{$c_modal['pages_text']}</div><div class="modal-footer"><button type="button" class="btn btn-secondary btn-sm" data-dismiss="modal">{$close_button}</button></div></div></div></div> eod; return $modal; } }
  13. Should the link to 4.0.1 be https://apps.oscommerce.com/gBmPX&purchase-without-account-phoenix
  14. I could not figure out how to make the #3 change in the ht module. The account block has no id and my jquery knowledge is limited. I keep my change. I'ts so simple. I've got another, too. I hide the create account link, if the shopping cart is empty. Actually, I hide create account links everywhere, if the cart is empty. This may prevent fake accounts.
  15. You are welcome! #2: The original text "Thank You, I do not wish to keep my customer data stored, please delete my customer data." is not strictly true, because at least order processing data remains. I admit, guest accounts hanging around is not a big problem, especially after adding the missing deletes. #3. Good point. I review the ht module.
×