ls-module-profile
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:Profile module
# ls-module-profile
Provides customer profiles for your store.

## Installation
1. Download [Profile](https://github.com/limewheel/ls-module-profile/zipball/master)
1. Create a folder named `profile` in the `modules` directory.
1. Extract all files into the `modules/profile` directory (`modules/profile/readme.md` should exist).
1. Setup your code as described in the `Usage` section. 
1. Done!

## Links

* [Marketplace](https://lemonstandapp.com/marketplace/module/profile/)
* [Discussion](http://forum.lemonstandapp.com/topic/2267-module-profile/)
* [Source](https://github.com/limewheel/ls-module-profile)

## Example

Create an account in the [Utility theme](http://themes.lemonstandapp.com/utility/), and navigate to the top-right My Account area.

## Usage
The usage code is only applicable to the jQuery frontend JavaScript library. You will need to take considerations to convert to MooTools.

Create a `Profile` page. For your content, use something like this:

```php
 post('partial_step', false),
  'section' => post('section', 'change_information') //defaults to the change_information section
), $params));
?>

render_block($section); return; } ?>

render_block($section) ?>​
```

Go to the `Head & Blocks` tab. Create a block with name `change_account` and code:

```php
​ ``` Create a block with name `change_information` and code: ```php country); $billing_country = $billing_info->country ? $billing_info->country : $billing_countries[0]->id; $billing_states = Shop_CountryState::create(true)->where('country_id=?', $billing_country)->order('name')->find_all(); ?>
'billing_info')) ?>

Billing Information

'shipping_info')) ?>
​ ``` Create a block with name `change_password` and code: ```php
Save
​ ``` Create a block with name `change_shipping` and code: ```php country); $shipping_country = $shipping_info->country ? $shipping_info->country : $shipping_countries[0]->id; $shipping_states = Shop_CountryState::create(true)->where('country_id=?', $shipping_country)->order('name')->find_all(); ?>

Shipping Information copy billing

​ ``` Create a block with name `view_orders` and code: ```php ​ ``` To navigate it all you could use a sidebar partial with this code (note: it uses `/account` for the URL, and `.page .wrap` for the page wrapper element): ```php

My Account

​ ```

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。