Purchase without Account

VER 4.5.2 - 1.0.8.6 - minor adjustments to get it working - Purchase without Account

VER 4.5.2 - 1.0.8.6 - minor adjustments to get it working

by zipurman » Mon Jan 24, 2022 6:34 pm

I got fresh install of 1.0.8.6 working, with the following changes:

includes/system/versioned/1.0.8.5/href.php
function retain_parameters - disable error report for deprecated

includes/functions/sessions.php
function tep_reset_session_token - disable error report for deprecated

templates/override/includes/hooks/shop/siteWide/pwa.php
(replace line 53)

Code: Select all

$products_review_links .= '<a href="' . Guarantor::ensure_global('Linker')->build('ext/modules/content/reviews/write_pwa.php', 'products_id=' . Product::build_prid($order->products[$i]['id']) . '&pwa_id=' . $reviews_key) . '">' . $order->products[$i]['name'] . '</a>' . "\n";
 

Patch 1086/includes/system/versioned/1.0.5.6/requirements_manager.php to fix from https://github.com/CE-PhoenixCart/Phoen ... 80f4f14c97

Fix swPwa hook - change listen_injectSiteEnd as follows:
  • wrap any mentions of $orders_query in if (!empty($orders_query))
    • Code: Select all

      if (!empty($orders_query)) {
                  $orders = $orders_query->data_seek( 0 );
              }
              
    • Code: Select all

                if (!empty($orders_query)) {
                    while ( $orders = $orders_query->fetch_assoc() ) {
                        $orders_id      = $orders['orders_id'];
                        $customer_guest = $orders['customers_guest'] == '1' ? '<i class="fas fa-check"></i>' : '';
      
                        $output .= PHP_EOL . <<<EOD
      $('table tbody tr:has([href$="oID={$orders_id}&action=edit"]) td:eq(4)').before('<td class="text-center">{$customer_guest}</td>');
      EOD;
      
                    }
                }
       

The rest looks like its working ;)
zipurman
-----------
User avatar
zipurman
Builder
Posts: 540
Joined: Tue Oct 13, 2020 5:20 pm
Phoenix Version: v
Contact: