Dirty Butter Posted April 20, 2016 Share Posted April 20, 2016 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? Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 20, 2016 Share Posted April 20, 2016 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. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 20, 2016 Author Share Posted April 20, 2016 I didn't make myself clear - sorry. I had to comment out whole parts of the original code to stop both top and bottom instances of store address from having duplication in them. Quote Link to comment Share on other sites More sharing options...
bsmither Posted April 20, 2016 Share Posted April 20, 2016 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. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted April 20, 2016 Author Share Posted April 20, 2016 That's it. Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.