Do not store ship to address of logged in user

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

Do not store ship to address of logged in user

Postby admin » Thu Feb 17, 2022 6:28 pm

Since OPC 2.0.423 we added a new option for logged in users - not to store their new shipping address, so they can still use it within their purchase and order, but it will not be loaded for them during the next visit of the site (next session).

This needs a minor modification within the listing of the fields within
\components\com_onepage\themes\{your theme}\overrides\list_user_fields_shipping.tpl.php

with:
Code: Select all
if (!empty($rowFields['fields']) && ((!empty($rowFields['fields']['address_1'])) || (!empty($rowFields['fields']['shipto_address_1'])))) {
          if (!empty($current_userinfo_id) && ($current_userinfo_id === 'new')) {
             $txt1 = OPCLang::_('COM_ONEPAGE_STORE_ST');
            
            
              ?><div class="agreed_wrap">
      <center class="agreed_inner_wrap">
               <input type="hidden" name="store_st_rendered" value="1" />
               <input value="1" type="checkbox" id="store_st"  name="store_st" <?php if (!empty($store_st)) echo ' checked="checked" '; ?> class="bottom_field"  autocomplete="off" />
               
               <label for="store_st" class="bottom_label"><span><span><?php echo $txt1;
               ?></span></span></label>
         </center>
      </div>   <?php
            
          }


best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Return to One Page Checkout for Virtuemart 3 on Joomla 3.x

cron