199英语专享内容

Now, simply keep inserting the following single page checkout shortcodes one by one into the content editor.

  1. [woocommerce_one_page_checkout] 

Step 3: Next, specify which products should be displayed on the checkout page by using the product_ids attribute. This will allow your customers to choose from a pre-selected list of products.

  1. [woocommerce_one_page_checkout product_ids=”12, 34, 56″]

Here, replace “12, 34, 56” with the actual product IDs you want to showcase.

Step 4: If you want to display the products to the cart along with the specific category, you can use the category_ids attribute. You can use this attribute with one or multiple category IDs.

  1. [woocommerce_one_page_checkout category_ids=”27, 11, 45″]

Change the “27, 11, 45” with the corresponding category number of your store.

Step 5: Now, customize the checkout display by adding the template=”” attribute. This allows you to choose a particular layout for the checkout process.

  1. [woocommerce_one_page_checkout template=”my-custom-template”]

Replace “my-custom-template” with the slug of your desired template.

Step 6: Once you’ve added the shortcode and customized it, save the page or post. Then, preview or publish it to make the One Page Checkout available to your customers.

Comments

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です