Using Divi’s Fashion Layout Pack to Create an Online Store with WooCommerce

Divi’s new Fashion Layout Pack has a great setup for any online store. The integration of the shop module and the organization of the page layouts give you a significant headstart. But in order to get this layout up and running as a functional online store, we need the WooCommerce plugin. And, you may be surprised at just how well Divi and WooCommerce work together.

In this tutorial, I’m going to show you how to create an online store using Divi’s Fashion layout pack using Woocommerce. I’ll walk you through how to properly setup your layouts to be customized, how to bring the shop page to life with Woocommerce integration, and some tips on how to use elements of your layout and the theme customizer to style Woocommerce pages.

The Setup

For the sake of time, I’m going to start this tutorial with certain steps already completed.

1. Install and activate the Divi Theme
2. Install and activate WooCommerce
3. Download the Fashion Layout Pack and Import the Fashion_All.json file to your Divi Theme Library.
4. Create new pages for each layout.
5. Create your primary menu.

If you are confused by the setup listed above, you can find more detailed instructions on how to setup your layout properly by checking out these 10 steps for using a layout pack for your new project.

Once you have completed the 5 steps above, you are ready to start.

The Sneak Peek

Here is a peek at some of the WooCommerce pages you will be creating.

shop page

Cart page

My Account Page

Using Divi’s Fashion Layout Pack to Create an Online Store with WooCommerce

Subscribe To Our Youtube Channel

Change your Global Accent Color

To start things off, we are going to change the global accent color for the Divi Theme. Changing the global accent color to match your layout is always a good idea, but it is also the easiest way to match your WooCommerce pages with your color scheme without having to use custom CSS. You will notice this accent color being used to style elements on every one of your WooCommerce pages like the single product page, cart page, etc…

To change the Global Accent Color, go to the Theme Customizer and navigate to General Settings > Layout Settings and find the Theme Accent Color option at the bottom.

I’m using this pink color from the layout: #fc7086

change accent color

Then, once you change it, save & publish your settings and refresh your page to allow the accent color to update other settings within the customizer.

Update Typography Settings in the Theme Customizer

Since WooCommerce uses your default theme customizer settings to style the text for each of its pages, you will want to make sure you match the typography used on your layouts with the typography settings in the theme customizer.

To update your typography, go to Divi > Theme Customizer > General Settings > Typography and update the following:

Body Text Size: 16px
Body Line Height: 1.9
Header Text Size: 42
Header Font Style: B
Header Font: Playfair Display
Body Font: Poppins
Body Link Color: [if you updated your global accent color, this color should show up here]

update typography

Set WooCommerce Shop Page

WooCommerce allows you to set which page you want to be your base shop page. This page should include all product categories so that users will know everything your shop has to offer. Since our layout has a shop page, let’s go ahead and make this our base shop page.

From your WordPress Dashboard, go to WooCommerce > Settings and click the Products tab at the top of the page. In the menu directly below the tab, select Display. Then select the Shop Page to the “Shop” page you created with the new shop page layout from the fashion layout pack.

change shop page

Then save changes.

Add Products to your Store

You may have noticed that your Shop Page, despite having two shop modules, doesn’t show any products. Well obviously you need to add products first. To add a new product to your store, go to your WordPress dashboard and follow these steps:

1. Navigate to Products > Add New
2. Enter Product Name
3. Enter Description for Product
4. Enter Price of Product
5. Enter Short Description for Product
6. Add Three New Categories (Summer, Featured, and On Sale)
7. Select the category for your Product (in this case it would be Summer)
8. Add Product Image
9. Publish/Update Product

add new product

Assign Categories to your Products

As you repeate the steps above to create more new products, make sure to assign a category to each one (#7 in the steps listed above). For this tutorial, I’ve added 6 products under the category “Summer”, 6 products under the category “Featured”, and 1 product under the category “On Sale”.

Update Shop Modules on the Shop Page

Now that you have your products created, you can add these products to your shop page. As I mentioned before, the shop page layout already has shop modules built in to the layout. There is one under the Summer section and one under the Featured section.

Go to the shop page and deploy the visual builder. Then hover over the shop module (currently not showing any products) under the row containing the Summer Fashion headline and click on module settings.

click module settings

Update the settings to include only the category “Summer”.

add summer category

Now you should see all the products added with the category summer.

Next, find the shop module under the featured Products Headline and update the settings to include only the Featured category.

featured category

Add a Shop Module to Display “On Sale” Items on the Shop Page

Since we have two categories (Featured Products and Summer Fashion) on the shop page, it would be easy to create addition categories and products using the modules already provided in the layout.

Let’s create another section to display our “On Sale” products.

To do this, deploy the visual builder and use the right click options to copy the entire section displaying the summer fashion products and paste it directly below the Featured Products section.

copy section

paste section

Now all you have to do is make a few updates.

In the row displaying the Headline, go ahead a click on the text in the text module and change the headline to say “On Sale” instead of “Summer Fashion”.

on sale

Then change the image in the left column to something more consistent with your sale products.

change sale image

Finally, update the shop module to include only the category “On Sale”.

on sale category

Style Your WooCommerce Pages with the Fashion Layout

WooCommerce generates its own set of WooCommerce pages automatically when you install the plugin. These include the following:

Shop – which is a placeholder for a post type archive for your products.
Cart – which uses the shortcode [woocommerce_cart] to generate the cart contents
Checkout – which uses the shortcode [woocommerce_checkout] to show the information.
My Account – which uses the shortcode [woocommerce_my_account] to show specific customer information related to their account.

Since we have already selected our Shop page, there is no further design needed. But for the other 3 WooCommerce pages, we need to style them to fit the design of our other page layouts.

Adding a Section Header to the Cart and Checkout Pages

Let’s take a look at the Cart page first. Here is what it looks like before we do anything to it.

cart before

Notice that because we updated our global accent color, our links and buttons match the color scheme already. And, since we updated our typography settings in the Theme Customizer, the headers and body text also match our theme.

But we can do a little better than this with just a few clicks. First go to the shop page, deploy the visual builder, and save the top section containing the page header to the library. You can give the name “page header section”.

add page header to library

Then scroll down to the bottom of the page and find the last section containing the email optin and contact details and save it to your library with the name “page footer section”.

page footer section to library

Now go edit your cart page. From the default page editor, select to use the Divi Builder, then “Use Visual Builder”. The builder should have automatically put the shortcode [woocommerce_cart] in a text module within a one column row of a regular section. If not, you will need to create this yourself. Next, click the blue plus icon to add a new section under the current one, select the “Add from Library” tab. Then select the new section you just created called “Page Header Section”.

add page header section

Then drag that section to the top of your page and change the title text to “Your Cart”. That’s it!

finish cart page

You can repeate this process for the Checkout Page as well.

checkout page

Designing the My Account Page using the Divi Builder

Now that you know how to add a header to these WooCommerce pages, go ahead and do the same for the My Account page. This time you can add the footer section you saved to the library to the bottom of this page.

You may want to give this page a distinct design to make it more obvious this is a page that manages your account. So instead of the pink gradient background for the header and footer sections, go to the section settings for each and change the background gradient colors to #9599e2 and #8bc6ec.

change background color gradients

Use the Text Module Settings to Style WooCommerce Shortcode Content

Because the WooCommerce shortcode now resides inside a text module, you can use this to your advantage to style some of those elements within the module settings.

Let’s do this for our My Account page. From the visual builder, update the settings of the text module that holds the shortcode content as follows:

Under the design tab…

Text Text Size: 20px
Text Line Height: 1.6em

customize shortcode content

Now click on the link tab under the Text section to style the links as follows:

Link Font: Poppins
Link Font Weight: Semi Bold
Link Text Size: 27px
Link line Height: 1.5em

customize link text

Save Settings

Now check out your My Account Page.

final my account

Using Custom CSS to Style WooCommerce Archive pages?

Some of the archive pages used by WooCommerce are not generated with a shortcode like the other pages, therefore they cannot be tweaked using the Divi Builder. So for these pages, you would need to break out some custom CSS.

Let’s look at the Featured Category page as an example.

featured cat page

Now let’s open the Theme Customizer and click on Additional CSS and add the following:

.orderby {
background: #fd7792;
color: #fff!important;
font-size: 18px;
height: 40px;
font-size: 18px !important;

}

.woocommerce-Price-amount, .woocommerce .woocommerce-breadcrumb, p.woocommerce-result-count {
    font-size: 16px !important;
    color: #fd7792 !important;
    letter-spacing: 2px;
}

custom css

This will style the sorting dropdown box, the breadcrumbs, and the price font. The rest of the text can be changed using the Typography settings from the theme customizer.

Final Thoughts

Building an online store for your website is made a lot easier with the help of this amazing layout pack, WooCommerce, and the Divi Builder. Obviously, there are some necessities that still need to be done that are beyond the scope of this article. For instance, you will still need to decide what payment gateway to use, how you want to handle shipping, and other more company specific action items. But WooCommerce should be able to handle most of what you need.

If anything, I hope this post inspired you to create something amazing on your own.

I look forward to hearing from you in the comments.

Cheers!

.divi_cta{background-color: #8f43ee; color: #fff; font-size: 20px; font-weight: bold; padding: 20px; text-align: center; display: block; text-decoration: none; border-radius: 4px;}.divi_cta:hover{text-decoration:none;background-color:#7d37d6;}.divi_cta_red{background-color:#db1c1c;}.divi_cta_red:hover{background-color:#c51a1a;}

The post Using Divi’s Fashion Layout Pack to Create an Online Store with WooCommerce appeared first on Elegant Themes Blog.

Click Here to Leave a Comment Below 0 comments

Leave a Reply: