Do not store ship to address of logged in user
Posted: 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:
best regards, stan
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