Jump to content

Demitry

Members
  • Content count

    307
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Demitry

  1. hi, I have BS Edge on PHP 7.2 and, ...I have a custom template layout. I am trying to figure out if there is a way to call individual modules within the oscTemplate block into different parts of my template. I know how the modules within a oscTemplate block can be managed via sort order and BS row width, but this does not work for my template structure. I could create a new module block and move those individual modules that I want in a different part of the template into that folder and then call that block into the template, but I would rather not create more module folders and instead, just pull individual modules out of the same module block and place them where I need them in my custom template. Is that possible? So, ..for example: the checkout_success.php page calls a block of modules in the /includes/modules/content/checkout_success/ folder using this code: $oscTemplate->getContent('checkout_success') In that content module folder are five individual modules and their related templates. I'm looking for a way to call each of these individually instead of as a whole block. Any help would be greatly appreciated.
  2. Thanks Kevin, but I don't use the Theme Switcher addon. And, I actually do need BootStrap for that page. I resolved this topic's issue by doing what I originally said,.. via separating the modules into two cm-folders and calling them each as a block in the related parts of my template.
  3. Demitry

    admin orders onclick change

    echo '</td>' . "\n" . '<td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n" . '<td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true), true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . echo ' </tr>' . "\n"; For one thing you have two echo statements and the first one is not closed with a semicolon. My development software is showing two other syntax errors in this block that I compared to my code and could not find. So, I replaced those two lines and the errors went away. Try this for that same block I posted above. echo '</td>' . "\n" . '<td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n" . '<td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true), true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n" . '<td class="dataTableContent" align="right" valign="top"><strong>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</strong></td>' . "\n"; echo ' </tr>' . "\n";
  4. Demitry

    admin orders onclick change

    Thanks Peter, I was just going to ask you if you've had any issues with it. And, I have nothing in the error log as well. The utf8_unicode_ci in the orders_history_status table is something I did miss, but it works fine. I'll change it on the next update. As far as adding tracking related code to the checkout_process.php file, ..again, I'm not sure why that would be needed. The tracking number is not issued or processed during checkout.
  5. I am supporting the shop owners,.. that's why I have a ton of contributions and am one of less than a handful of people still spending their personal time on releasing new ones.
  6. Cool, thanks man. I figured this was likely the case as soon as I saw "Community Edition."
  7. Ok, so a quick update,... I downloaded Phoenix v1.0.2.0 (Community Edition) and looked at the product_info.php page and related pi modules. It's pretty much the same as the BS Edge. So, I assume the new Product Information System is not in the "Community Edition." I also looked at the oscTemplate class (something I should have done from the start) and now understand it far better than I did before. After that I decided to test what Malcolm referred to and include the individual modules and their related language files in the Left Column and Right Column of my template. That did not work either and there were no errors in the error log. So, unless one of the Sr. developers has a quick working solution, I think my alternative is (as mentioned before), to just create another module block for the Right Column and move the individual modules I want to display in the Right Column to that module group folder.
  8. @Dan Cole Dan, thank you for the explanation and yeah, it does seem like something I could use. Though is that something I can integrate with BS Edge?, ..because I am really not up to starting from scratch with a newer version of osC. @ArtcoInc hi Malcolm, Actually, I thought of doing the same thing, but only after I created this page post, lol. I have not tried it yet and my thoughts were that the modules have to be ran through the oscTemplate. However, I am not sure if that makes any difference in terms of security or anything else. I just don't know how calling the module block contents through the oscTemplate actually works. Perhaps I need to explore that first.
  9. Demitry

    admin orders onclick change

    @Kevin.Dallas One more thing about the usability of creating a feature like this. I assume that you need to make changes once in a while to a tracking number due to an initial data-entry error. With your solution,.. changing it in the Order History Update section/log will not send an email to the customer to notify them of the correction. And, it will not date/time stamp that correction for your own records, so that you can go back and see when you made this change. Of course, you could hire a developer to have these features added as well, but why? All you have to do is post another Order Update with the correct tracking number and add a note saying that this is the correct tracking number so, please discard the one sent in the last update. This will record in your Order History Update section/log and it will send an email to the customer notifying them of the change. Better record keeping, no need to get into the database, and no need to pay a developer. Problem solved!
  10. Demitry

    admin orders onclick change

    @Kevin.Dallas Kevin, as I understand it,.. I think what you're looking for is the ability to edit the tracking number after you've submitted it via Order Status Update. Unfortunately my addon that Peter mentioned does not do this. You can enter it via the input field and it will be stored in the database for that particular Order Status Update, but to alter it after it was submitted with the Update button on that page, means having to go into the database. I suggest contacting the author of the addon you're using to see if they can do this for you. What I think you need is to have the tracking number field in the Order Status Update section be an input-box that displays the tracking number saved in the database and can then be edited using onChange event. Sorry I cannot be of more help.
  11. Lee, I believe that you’re referring to the same Product Information System that Dan mentioned. I’m currently in the dark when it comes to that particular topic. However, I completely support any and all initiatives that would make this software easier to customize …and especially, for the non-technical user.
  12. @Dan Cole I think the Product Information System that you’re referring to is part of the Phoenix release. I’m not familiar with it and this is the first I’m hearing of it. Though out of curiosity I’d love to know more about it.
  13. Thank you all for your response. ok, so a bit more clarity on what I'm doing. I have a site where there are no left or right columns, so the center column stretches the width of the page. I added a simple template to some of the pages that breaks up that center column into two sections; the left is 8 col and the right is 4 (on desktop), ..along with a 1px border that separates them. See screenshot below. The yellow and green areas are part of this template. Calling the oscTemplate module block would place all the modules in either left or right sections. So, to break up these individual modules I could either create a new module folder (lets say call it checkout_success_rc .."rc" for right column) and place those modules in that folder. Then call it in the page template for that right side (see code structure below the image). However, I was wondering if there is a way to just call the individual modules instead of the entire set. If that was possible, then I would not need to create an additional module folder. I could just call individual modules from the same set into either the left column or the right column. <div class="contentContainer"> <div class="contentText row"> <div class="col-xs-12 col-sm-8 split-page-8-4-cs-left"> <?php echo $oscTemplate->getContent('checkout_success'); ?> <div class="clearfix"></div> </div> <div class="col-xs-12 col-sm-4 split-page-8-4-cs-right"> <?php echo $oscTemplate->getContent('checkout_success_rc'); ?> </div> </div>
  14. @kgtee hi KG, thank you for the reply. I read Burt's post and both, his array of good_pages and the option of selecting the pages for the modules to be activated on, do not address the challenge I have with calling the individual modules from a module block. So, what I want to do is call each of the five modules within that /includes/modules/content/checkout_success/ folder, one at a time. That would allow me to place them where I want on the "same" page. I'm not trying to get these module to display on other pages. I want them all on the checkout_success.php page. However, to position them according to my custom template I need to call them individually.
  15. Demitry

    jQuery vulnerability -- upgrade needed

    hi Phil, What API changes are there? As I mentioned in the post above, I installed the latest jQuery v3.4.1 and everything is running smooth. Are there any other changes I need to make?
  16. Demitry

    jQuery vulnerability -- upgrade needed

    I have BS Edge running on PHP 7.2 and decided to try updating the jQuery version from 3.1.1 to 3.4.1 on the catalog side. I cannot see any issues at this point. The checkout seems to work fine and nothing seems to be off. Is there anything in particular I should be looking for? Nothing seems to be breaking the site or causing problems. And, are there any other changes I need to make, other than adding the new jQuery 3.4.1 file to /ext/jquery/ folder and changing the call for that file in /includes/template_top.php?
  17. hi, I applied Gergely's solution and tested the same product_info page before and after. The one part I did not use from the solution, was the code changed for ht_grid_list_view.php file. For some reason the last line was causing an error in the application I am using and I decided not to use that particular change. I also used my own .htaccess DEFLATE script. The GTMetrix results are in the screenshot below. Shaving off two requests and 100+ms is Great! However, after the changes, the page loads where not smooth. I cleared the browser cache and every time I'd reload a page or load a new one, it would flash an "un-formatted" version of the page for like a split second and that made page-loading jumpy. After playing around for a while in trying to get an ideal order of resources being loaded to eliminate that jumpiness, I ended up reverting the changes for the /includes/template_top.php file, but kept some of the other ones. Just wanted to thank you for addressing the page loading speed issue and for providing a viable working solution. The test results prove that it works!
  18. @raiwa ok, Rainer,... thanks much!
  19. @raiwa hi Rainer, I wanted to download and install this addon, but am confused as to which version to get. I have BS Edge with BS3. Several of the more recent releases say, " Older versions, FROZEN, EDGE and Gold BS3, please use Discount_Codes_4.4.3_BS" However, there is no 4.4.3 BS,.. there is 4.4.2 BS and then there are 3 newer releases after that starting with 5.0.0. So, I assume I need the 4.4.2 BS? ..and then,.. do I need to manually transfer some of the newer changes from the 3 later releases?
  20. Demitry

    Header Tags SEO

    For the most part I agree, but I have custom image code that is not part of osC and it creates folders inside the catalog/image folder and uploads images to that folder. So, I have to figure out how to integrate that code with insert product and update product instead of using it for preview. Or keep the preview and possibly use localStorage for those fields. I'll figure something out, thanks.
  21. Demitry

    Header Tags SEO

    yeah, mine is the same. see below: } elseif ($action == 'new_product_preview') { if (tep_not_null($_POST)) { $pInfo = new objectInfo($_POST); $products_name = $_POST['products_name']; $products_description = $_POST['products_description']; $products_url = $_POST['products_url']; // BOF: Header Tags SEO $products_head_title_tag = $_POST['products_head_title_tag']; $products_head_title_tag_alt = $_POST['products_head_title_tag_alt']; $products_head_title_tag_url = $_POST['products_head_title_tag_url']; $products_head_desc_tag = $_POST['products_head_desc_tag']; $products_head_keywords_tag = $_POST['products_head_keywords_tag']; $products_head_breadcrumb_text = $_POST['products_head_breadcrumb_text']; $products_head_listing_text = $_POST['products_head_listing_text']; $products_head_sub_text = $_POST['products_head_sub_text']; $products_head_additional_words = $_POST['products_head_additional_words']; // EOF: Header Tags SEO I also thought that it might be in this block which is a bit further down for the preview page. Here I have one of the deprecated each() functions updated, but it makes no difference either way in terms of the issue at hand. reset($_POST); //while (list($key, $value) = each($_POST)) { foreach($_POST as $key => $value) { if (!is_array($_POST[$key])) { echo tep_draw_hidden_field($key, htmlspecialchars(stripslashes($value))); } } $languages = tep_get_languages(); for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { echo tep_draw_hidden_field('products_name[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_name[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_description[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_description[$languages[$i]['id']]))); // BOF: Header Tags SEO echo tep_draw_hidden_field('products_head_title_tag[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_head_title_tag[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_head_title_tag_alt[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_head_title_tag_alt[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_head_title_tag_url[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_head_title_tag_url[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_head_desc_tag[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_head_desc_tag[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_head_keywords_tag[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_head_keywords_tag[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_head_breadcrumb_text[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_head_breadcrumb_text[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_head_listing_text[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_head_listing_text[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_head_sub_text[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_head_sub_text[$languages[$i]['id']]))); echo tep_draw_hidden_field('products_head_additional_words[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_head_additional_words[$languages[$i]['id']]))); // EOF: Header Tags SEO echo tep_draw_hidden_field('products_url[' . $languages[$i]['id'] . ']', htmlspecialchars(stripslashes($products_url[$languages[$i]['id']]))); } So,.. what I did was to replace the categories.php file with the one from the less than 2.3 version. And after replacing all the directory and filename definitions for a basic test run, I went through to the preview page and then clicked the Back button and the result was the same -- all of the fields for the header_tags_seo.php module were empty. I tried doing the same thing by swapping out the header_tags_seo.php module, which is where all the HT fields are coming up empty, with no change. I cannot seem to pin point it. Maybe it's something else that PHP7.2 doesn't like.
  22. Demitry

    Header Tags SEO

    Thanks Jack, I looked at that a number of times, but there is not much difference between the new BS Edge categories.php file, my older MS2.2 file and the Use_if_version_lessthan_2.3 folder file in regards to this section. The product preview code is the same (except for the custom images code I have). The issue is with keeping the text content value in the HT SEO fields when going back from the preview via the back button. That back button has a parameter of name="edit" ..I could not find anything related to that. So, could that be it? or is that parameter not utilized?
  23. Demitry

    Header Tags SEO

    @Jack_mcs yeah, I've been using a comparison tool to find this part in both my MS2.2 related file and the one in your addon package in the Use_if_version_lessthan_2.3 folder. I cannot seem to locate it.
  24. Demitry

    Header Tags SEO

    @Jack_mcs hi Jack, Question for you,.. I had to combine some code from my old MS2.2 admin/categories.php file and the new BS Edge version (on PHP 7.2). In doing this I came across a problem where some of the custom code I had did not work without the page preview option. So, the problem is with the Back button on that preview page. When I go back to the categories.php product update page, all fields contain their related data except the product name and all of the fields for the header tags. Those fields are all empty. I’ve been trying to find where this issue is located, but with no luck. My old MS2.2 site does not have this problem. I even changed all instances of the deprecated each() function in the BS Edge version and still cannot get those HT SEO fields to display any content when going back to the product update page from the preview. Any idea of what it can be or where I should look?
  25. Demitry

    Database Optimizer

    @MrPhil hi Phil, Thanks man,.. yeah, I usually check. I looked at the database.php file and it has mysqli_error() function return mysql_error() function. That's why I said that it probably did not make much difference.
×