Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
scottcwilson committed Apr 16, 2020
1 parent 0c52dc7 commit 9c11192
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 0 deletions.
11 changes: 11 additions & 0 deletions content/dev/contributing/coding_standards.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,17 @@ Note that this rule is not required in cases where a block is opened by PHP (as
<?php echo '</form>'; ?>
```
## Arrays
End an array with a comma and put the closing bracket on a new line. In this way, modders can just insert a line after the last entry and have a smaller diff:
```
...
'class' => $totals->fields['class'],
'value' => $totals->fields['value'],
);
```
## Separating content, markup and logic
Where possible, try to keep these things separate:
Expand Down
Binary file added content/images/customer_search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions content/user/running/fixing_addresses.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: Fixing Addresses
description: Fixing Customer Addresses in Zen Cart
category: Running
weight: 10
---

Sometimes customers enter the wrong shipping address. Often this is caused by a browser accidentally autofilling a field, and sometimes it's just finger trouble.

Go to `Admin > Customers > Customers`, and search for the customer's record.
If you see a link next to the customer's id, it means they have multiple address book records. In other words, the billing and shipping addresses might be different.

<img src="/images/customer_search.png" alt="Customer Addresses" width="50%" />

If you need to edit their billing address, just edit the customer record.

If they have a different shipping address, and you need to edit it, the best way to do this is to login as the customer.

If the `Admin > Customers > Customers` screen has a *Place Order* button on the right hand side in the sidebox, press it. Login as the customer and go to the My Account Page, and click the link titled `View or change entries in my address book`.

If you do not have a *Place Order* button, you will need to install and use one of the [Master Password](/user/admin/master_password/) mods. Login using the customer's email address and the master password, and edit their address book.

11 changes: 11 additions & 0 deletions content/user/upgrading/detailed_upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,14 @@ of your live site that you just made.
- run the `store/zc_install` process to upgrade your live database.
- test your upgrade
- take your store out of maintenance mode.

## Plugins and Templates

In the description above, I am assuming that change changes you have made are things like language file changes or maybe small code tweaks you did. If the changes are plugins, there may be a better way than just porting the old changes forward to the new version: you can check the [plugins area](https://www.zen-cart.com/downloads.php) for an updated version of the mod. If you don't see one, you can ask on the mod's support thread.

When it comes to templates, if you have gotten your template from the plugins area, the advice above applies. If your template came from a commercial vendor, you should approach that vendor and ask about an upgrade.

If you are upgrading from 1.5.4 or below, you have another decision to make: Zen Cart 1.5.5 and above are designed to be used on mobile devices as well as desktop devices. Your older template is likely not mobile friendly, so you may wish to get one that is. The built in [responsive classic](/user/template/other_templates/#responsive-classic-template-product-page) template in 1.5.5+ is a good start.



0 comments on commit 9c11192

Please sign in to comment.