SMFHacks.com

SMF Store => Support => Topic started by: w5hro on December 18, 2014, 04:32:40 pm

Title: Double Store Paypal Address Lines
Post by: w5hro on December 18, 2014, 04:32:40 pm
Hi,

I recently updated to the newest Store version, but it gave me double "Store Paypal Address:" lines again within the Profile panel. I fixed this problem the last time it happened, but I cannot remember where the duplicate lines are that need to be removed. Which lines and in what file?

Attached below is a screenshot of what I am getting.

Thanks
Title: Re: Double Store Paypal Address Lines
Post by: SMFHacks on December 18, 2014, 09:43:08 pm
In themes/default/profile.template

Find before
Code: [Select]
// Are there any custom profile fields - if so print them!
And remove
Code: [Select]
if (allowedTo('smfstore_userstore') == true || allowedTo('smfstore_manage') == true)
    {
echo '
<dl>';


echo '
<dt>
<strong>', $txt['smfstore_paypal_address'], '</strong><br />
<span class="smalltext"></span>
</dt>
<dd>
<input type="text" name="default_options[store_storepaypal]" size="50" value="', $context['member']['options']['store_storepaypal'], '" />
</dd>';


echo '
</dl>';
}

Title: Re: Double Store Paypal Address Lines
Post by: w5hro on December 19, 2014, 10:33:23 am
Thanks, that worked...