wcs-about.php
12.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?php
/**
* About page for Subscriptions 2.0.0
*
* @author Prospress
* @category Admin
* @package WooCommerce Subscriptions/Admin/Upgrades
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$settings_page = admin_url( 'admin.php?page=wc-settings&tab=subscriptions' );
?>
<div class="wrap about-wrap">
<h1><?php esc_html_e( 'Welcome to Subscriptions 2.0', 'woocommerce-subscriptions' ); ?></h1>
<div class="about-text woocommerce-about-text">
<?php esc_html_e( 'Thank you for updating to the latest version of WooCommerce Subscriptions.', 'woocommerce-subscriptions' ); ?>
<?php esc_html_e( 'Version 2.0 has been in development for more than a year. We\'ve reinvented the extension to take into account 3 years of feedback from store managers.', 'woocommerce-subscriptions' ); ?>
<?php esc_html_e( 'We hope you enjoy it!', 'woocommerce-subscriptions' ); ?>
</div>
<div class="wcs-badge">
<?php
// translators: placeholder is version number
printf( esc_html__( 'Version %s', 'woocommerce-subscriptions' ), esc_html( $active_version ) ); ?>
</div>
<p class="woocommerce-actions">
<a href="<?php echo esc_url( $settings_page ); ?>" class="button button-primary"><?php esc_html_e( 'Settings', 'woocommerce-subscriptions' ); ?></a>
<a class="docs button button-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_docs_url', 'http://docs.woothemes.com/documentation/subscriptions/', 'woocommerce-subscriptions' ) ); ?>"><?php echo esc_html_x( 'Docs', 'short for documents', 'woocommerce-subscriptions' ); ?></a>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.woothemes.com/products/woocommerce-subscriptions/" data-text="I just upgraded to WooCommerce Subscriptions v2.0, woot!" data-via="WooThemes" data-size="large" data-hashtags="WooCommerce">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</p>
<div class="changelog">
<h2><?php esc_html_e( "Check Out What's New", 'woocommerce-subscriptions' ); ?></h2>
<hr/>
<div class="feature-section two-col">
<div class="feature-image col">
<img src="<?php echo esc_url( plugins_url( '/assets/images/checkout-recurring-totals.png', WC_Subscriptions::$plugin_file ) ); ?>" />
</div>
<div class="col last-feature feature-copy">
<h3><?php esc_html_e( 'Multiple Subscriptions', 'woocommerce-subscriptions' ); ?></h3>
<p><?php esc_html_e( 'It\'s now easier for your customers to buy more subscriptions!', 'woocommerce-subscriptions' ); ?></p>
<p><?php esc_html_e( 'Customers can now purchase different subscription products in one transaction. The products can bill on any schedule and have any combination of sign-up fees and/or free trials.', 'woocommerce-subscriptions' ); ?></p>
<p><?php
// translators: placeholders are opening and closing link tags
printf( esc_html__( 'Learn more about the new %smultiple subscriptions%s feature.', 'woocommerce-subscriptions' ), '<a href="' . esc_url( 'http://docs.woothemes.com/document/subscriptions/multiple-subscriptions/' ) . '">', '</a>' ); ?>
</p>
</div>
</div>
<div class="feature-section two-col">
<div class="col last-feature feature-right feature-image">
<img src="<?php echo esc_url( plugins_url( '/assets/images/add-edit-subscription-screen.png', WC_Subscriptions::$plugin_file ) ); ?>" />
</div>
<div class="col feature-copy">
<h3><?php esc_html_e( 'New Add/Edit Subscription Screen', 'woocommerce-subscriptions' ); ?></h3>
<p><?php esc_html_e( 'Subscriptions v2.0 introduces a new administration interface to add or edit a subscription. You can make all the familiar changes, like modifying recurring totals or subscription status. You can also make some new modifications, like changing the expiration date, adding a shipping cost or adding a product line item.', 'woocommerce-subscriptions' ); ?></p>
<p><?php
// translators: placeholders are opening and closing <strong> tags
printf( esc_html__( 'The new interface is also built on the existing %sEdit Order%s screen. If you\'ve ever modified an order, you already know how to modify a subscription.', 'woocommerce-subscriptions' ), '<strong>', '</strong>' ); ?>
</p>
<p><?php
// translators: placeholers are link tags: 1$-2$ new subscription page, 3$-4$: docs on woothemes
printf( esc_html__( '%1$sAdd a subscription%2$s now or %3$slearn more%4$s about the new interface.', 'woocommerce-subscriptions' ), '<a href="' . esc_url( admin_url( 'post-new.php?post_type=shop_subscription' ) ) . '">', '</a>', '<a href="' . esc_url( 'http://docs.woothemes.com/document/subscriptions/version-2/#section-3' ) . '">', '</a>' ); ?>
</p>
</div>
</div>
<div class="feature-section two-col">
<div class="col feature-image">
<img src="<?php echo esc_url( plugins_url( '/assets/images/view-subscription.png', WC_Subscriptions::$plugin_file ) ); ?>" />
</div>
<div class="col last-feature feature-copy">
<h3><?php esc_html_e( 'New View Subscription Page', 'woocommerce-subscriptions' ); ?></h3>
<p>
<?php
// translators: placeholders are opening and closing <strong> tags
printf( esc_html__( 'Your customers can now view the full details of a subscription, including line items, billing and shipping address, billing schedule and renewal orders, from a special %sMy Account > View Subscription%s page.', 'woocommerce-subscriptions' ), '<strong>', '</strong>' ); ?>
</p>
<p><?php esc_html_e( 'This new page is also where the customer can suspend or cancel their subscription, change payment method, change shipping address or upgrade/downgrade an item.', 'woocommerce-subscriptions' ); ?></p>
<p>
<?php
// translators: placeholders are opening and closing link tags
printf( esc_html__( 'Learn more about the new %sView Subscription page%s.', 'woocommerce-subscriptions' ), '<a href="' . esc_url( 'http://docs.woothemes.com/document/subscriptions/version-2/#section-5' ) . '">', '</a>' ); ?>
</p>
</div>
</div>
</div>
<div class="changelog">
<div class="feature-section three-col">
<div class="col">
<img src="<?php echo esc_url( plugins_url( '/assets/images/drip-downloadable-content.jpg', WC_Subscriptions::$plugin_file ) ); ?>" />
<h3><?php esc_html_e( 'Drip Downloadable Content', 'woocommerce-subscriptions' ); ?></h3>
<p><?php
// translators: placeholders are for opening and closing link (<a>) tags
printf( esc_html__( 'By default, adding new files to an existing subscription product will automatically provide active subscribers with access to the new files. However, now you can enable a %snew content dripping setting%s to provide subscribers with access to new files only after the next renewal payment.', 'woocommerce-subscriptions' ), '<a href="' . esc_url( $settings_page ) . '">', '</a>' ); ?>
</p>
<p><?php
// translators: placeholders are for opening and closing link (<a>) tags
printf( esc_html__( '%sLearn more »%s', 'woocommerce-subscriptions' ), '<a href="http://docs.woothemes.com/document/subscriptions/version-2/#section-4">', '</a>' ); ?>
</p>
</div>
<div class="col">
<img src="<?php echo esc_url( plugins_url( '/assets/images/admin-change-payment-method.jpg', WC_Subscriptions::$plugin_file ) ); ?>" />
<h3><?php echo esc_html_x( 'Change Payment Method', 'h3 on the About Subscriptions page for this new feature', 'woocommerce-subscriptions' ); ?></h3>
<p><?php
// translators: placeholders are opening and closing <strong> tags
printf( esc_html__( 'For a store manager to change a subscription from automatic to manual renewal payments (or manual to automatic) with Subscriptions v1.5, the database needed to be modified directly. Subscriptions now provides a way for payment gateways to allow you to change that from the new %sEdit Subscription%s interface.', 'woocommerce-subscriptions' ), '<strong>', '</strong>' ); ?>
</p>
<p><?php
// translators: placeholders are for opening and closing link (<a>) tags
printf( esc_html__( '%sLearn more »%s', 'woocommerce-subscriptions' ), '<a href="http://docs.woothemes.com/document/subscriptions/version-2/#change-payment-method-admin">', '</a>' ); ?>
</p>
</div>
<div class="col last-feature">
<img src="<?php echo esc_url( plugins_url( '/assets/images/billing-schedules-meta-box.png', WC_Subscriptions::$plugin_file ) ); ?>" />
<h3><?php esc_html_e( 'Change Trial and End Dates', 'woocommerce-subscriptions' ); ?></h3>
<p><?php
// translators: placeholders are opening and closing <strong> tags
printf( esc_html__( 'It was already possible to change a subscription\'s next payment date, but some store managers wanted to provide a customer with an extended free trial or add an extra month to the expiration date. Now you can change all of these dates from the %sEdit Subscription%s screen.', 'woocommerce-subscriptions' ), '<strong>', '</strong>' ); ?>
</p>
<p><?php
// translators: placeholders are for opening and closing link (<a>) tags
printf( esc_html__( '%sLearn more »%s', 'woocommerce-subscriptions' ), '<a href="http://docs.woothemes.com/document/subscriptions/version-2/#change-billing-schedule">', '</a>' ); ?>
</p>
</div>
</div>
</div>
<div class="changelog">
<div class="feature-section">
<h2><?php esc_html_e( 'And much more...', 'woocommerce-subscriptions' ); ?></h2>
<p><?php printf( esc_html( 'Learn about all the great new features in the guide to %sWhat\'s new in Subscriptions version 2%s.', 'woocommerce-subscriptions' ), '<a href="http://docs.woothemes.com/document/subscriptions/version-2/">', '</a>' ); ?></p>
</div>
</div>
<div class="changelog">
<h2><?php esc_html_e( 'Peek Under the Hood for Developers', 'woocommerce-subscriptions' ); ?></h2>
<p><?php esc_html_e( 'Subscriptions 2.0 introduces a new architecture built on the WooCommerce Custom Order Types API.', 'woocommerce-subscriptions' ); ?></p>
<div class="feature-section under-the-hood three-col">
<div class="col">
<h3><?php
// translators: placeholders are opening and closing code tags
printf( esc_html__( 'New %sshop_subscription%s Post Type', 'woocommerce-subscriptions' ), '<code>', '</code>' ); ?>
</h3>
<p><?php esc_html_e( 'By making a subscription a Custom Order Type, a subscription is also now a custom post type. This makes it faster to query subscriptions and it uses a database schema that is as scalable as WordPress posts and pages.', 'woocommerce-subscriptions' ); ?></p>
<p><?php
// translators: placeholders are opening and closing <code> tags
printf( esc_html__( 'Developers can also now use all the familiar WordPress functions, like %sget_posts()%s, to query or modify subscription data.', 'woocommerce-subscriptions' ), '<code>', '</code>' ); ?>
</p>
</div>
<div class="col">
<h3><?php
// translators: placeholders are opening and closing <code> tags
printf( esc_html__( 'New %sWC_Subscription%s Object', 'woocommerce-subscriptions' ), '<code>', '</code>' ); ?>
</h3>
<p><?php esc_html_e( 'Subscriptions 2.0 introduces a new object for working with a subscription at the application level. The cumbersome APIs for retrieving or modifying a subscription\'s data are gone!', 'woocommerce-subscriptions' ); ?></p>
<p><?php
// translators: all placeholders are opening and closing <code> tags, no need to order them
printf( esc_html__( 'Because the %sWC_Subscription%s class extends %sWC_Order%s, you can use its familiar methods, like %s$subscription->update_status()%s or %s$subscription->get_total()%s.', 'woocommerce-subscriptions' ), '<code>', '</code>', '<code>', '</code>', '<code>', '</code>', '<code>', '</code>' ); ?>
</p>
</div>
<div class="col last-feature">
<h3><?php esc_html_e( 'REST API Endpoints', 'woocommerce-subscriptions' ); ?></h3>
<p><?php esc_html_e( 'We didn\'t just improve interfaces for humans, we also improved them for computers. Your applications can now create, read, update or delete subscriptions via RESTful API endpoints.', 'woocommerce-subscriptions' ); ?></p>
<p><?php
// translators: all placeholders are opening and closing <code> tags, no need to order them
printf( esc_html__( 'Want to list all the subscriptions on a site? Get %sexample.com/wc-api/v2/subscriptions/%s. Want the details of a specific subscription? Get %s/wc-api/v2/subscriptions/<id>/%s.', 'woocommerce-subscriptions' ), '<code>', '</code>', '<code>', '</code>' ); ?>
</p>
</div>
</div>
<hr/>
<div class="return-to-dashboard">
<a href="<?php echo esc_url( $settings_page ); ?>"><?php esc_html_e( 'Go to WooCommerce Subscriptions Settings', 'woocommerce-subscriptions' ); ?></a>
</div>
</div>