• I am attempting to replace the woocommerce setup wizard with a wp-cli version that does the same. According to this doc https://docs.woocommerce.com/document/installation-configuration/#section-11) the wizard does the following:

        A fresh install of the Storefront theme will automatically perform the following actions for brand new stores with no products:
    
        Import example products
        Create a homepage with the Homepage template (described in the next section) and set it as the static landing page in WordPress settings
        Apply a full-width template to display the cart and checkout pages
        Remove default widgets so as to showcase the Storefront widgets

    My question is in regard to how my page currently looks after attempting to do the stated actions through wp-cli. It doesn’t look quite the same to me as how the wizard leaves it.

    In particular, I have performed the following actions.

    $ wp post create –post_type=page –post_name=home –post_title=Home –page_template=template-homepage.php –post_status=publish –path=/usr/local/src/myHost.myDomain.com –url=https://myHost.myDomain.com
    Success: Created post 5.

    $ wp option update page_on_front 5 –path=/usr/local/src/myHost.myDomain.com –url=https://myHost.myDomain.com
    Success: Updated ‘page_on_front’ option.

    $ wp option update show_on_front page
    Success: Updated ‘show_on_front’ option.

    $ wp wc tool run install_pages –path=/usr/local/src/myHost.myDomain.com –url=https://myHost.myDomain.com –user=apb
    Success: Updated system_status_tool install_pages.

    wp widget delete $(wp widget list sidebar-1 –format=ids)

    Two issues (feel free to point out others) I see are 1) the category list only shows 3 categories and 2) it says “New In” – is that a complete phrase or was it cut off? If it’s meant to bring attention to newly arrived products, maybe “Newly Arrived Products” might be more clear?

    Anyway, what am I missing to finish the woo wizard setup through wp-cli please?

    Thanks in advance!

    P.S. Full disclosure: One thing I did not get to yet is “Apply a full-width template to display the cart and checkout pages”. Since those 2 pages are not the home page, I presume it should not matter.

    The page I need help with: [log in to see the link]

  • The topic ‘wp-cli version of woo setup wizard’ is closed to new replies.