Skip to content

Commit

Permalink
Merge pull request #4195 from Codeinwp/fix/woo-commerce-upsell-plan-l…
Browse files Browse the repository at this point in the history
…abel

fix(customizer): append plan to woocomerce up sell labels
  • Loading branch information
preda-bogdan authored Feb 22, 2024
2 parents f002f68 + 201896a commit 8fad60b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ test.describe('Blog/Archive 1 / Default Layout', () => {
}
});

test('Post Content Order', async ({ page }) => {
test('Post Content Order', async ({ page, request, baseURL }) => {
// Make sure the default layout is set.
await setCustomizeSettings('defaultLayout', data.archive1, {
request,
baseURL,
});

await page.goto('/?test_name=defaultLayout');
const posts = await page.locator('article.post');

Expand Down
8 changes: 4 additions & 4 deletions inc/customizer/options/upsells.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,22 +499,22 @@ private function control_upsells() {

if ( class_exists( 'WooCommerce', false ) ) {
$upsells['product_catalog'] = [
'text' => __( 'More product catalog options available in PRO', 'neve' ),
'text' => __( 'More product catalog options available in PRO', 'neve' ) . ' (Business & Agency)',
'button_text' => __( 'Learn More', 'neve' ),
'section' => 'woocommerce_product_catalog',
];
$upsells['woocommerce_checkout'] = [
'text' => __( 'More checkout options available in PRO', 'neve' ),
'text' => __( 'More checkout options available in PRO', 'neve' ) . ' (Business & Agency)',
'button_text' => __( 'Learn More', 'neve' ),
'section' => 'woocommerce_checkout',
];
$upsells['single_product_layout'] = [
'text' => __( 'More single product options available in PRO', 'neve' ),
'text' => __( 'More single product options available in PRO', 'neve' ) . ' (Business & Agency)',
'button_text' => __( 'Learn More', 'neve' ),
'section' => 'neve_single_product_layout',
];
$upsells['typography'] = [
'text' => __( 'WooCommerce typography options available in PRO', 'neve' ),
'text' => __( 'WooCommerce typography options available in PRO', 'neve' ) . ' (Business & Agency)',
'button_text' => __( 'Learn More', 'neve' ),
'panel' => 'neve_typography',
'type' => 'section',
Expand Down

0 comments on commit 8fad60b

Please sign in to comment.