Jump to content

[Resolved] Printed Invoice Store Address??


Recommended Posts

I haven't looked at the printed invoice from the customer's perspective in I can't remember when. But for some reason I decided to look at it today. I find that the stock CC receipt in print.receipt.php has some duplications.

For instance, this works for me:

  <!--          <strong>{$CONFIG.store_name}</strong><br> -->
           {$STORE.address|nl2br}<br>
 <!--           {$STORE.county}<br>
            {$STORE.postcode}<br>
            {$STORE.country}<br> -->

AND

               {if !empty($STORE.address)}{$STORE.address} {/if}
  <!--             {if !empty($STORE.county)}{$STORE.county}, {/if}
              {if !empty($STORE.postcode)}{$STORE.postcode} {/if}
               {if !empty($STORE.country)}{$STORE.country} {/if}</small> -->

Is this because of some other non-standard edit I've made somewhere else, or is this code that needs changing in CC?

Link to comment
Share on other sites

Neither.

The first is a header-like appearance of the store logo and (main corporate?) address.

The second is a small single line courtesy (return) address.

Both use the same variable ($STORE), but a plugin could make a new $RETURN address and the template can use that in footer instructions on where to return merchandise - if different.

Link to comment
Share on other sites

Oh.

Then I think that in admin, Store Settings, General tab, the Address textarea box, you have entered more than just Street Name and City. The State, Zip and Country values are collected in fields that follow, and those values are used distinctly in templates and elsewhere.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...