twenty fourteen wordpress theme : remove sidebar

The new twenty fourteen theme that comes with wordpress default installation is a very good responsive theme, than easily be customized to render a CMS website with pages only. But if you want to remove the sidebar you have to manipulate a few files

 

  • sidebar.php : add "return" at the beginning of the file, after the opening php code, and after the comments
  • style.css : commentline 3914 that adds a left margin the content div when displayed on big screens, and line 3565

 

Woocommerce : how to choose your theme

There are thousand of free and premium themes available for woo commerce. Before choosing one, make sure you have checked a few important things

  • most professional wordpress / woocommerce themes are responsive : they can display your website in mobile phones. But you do need to check the websites on all formats including IPADS, Iphones, and Android. Prepare a list of all resolutions devices can have, including windows powered phones that can turn out very tricky if someone uses internet explorer (see below)
  • after you have checked the theme on various sizes, check it on various browsers : a wordpress theme that works on Internet explorer 8 is the sign of very good HTML standard compliance, so you need to be able to check on various versions of Internet Explorer, which means many computers available !
  • Have a look at the stylesheet : it should be not too big and include not too many extra useless formatting.  But a good woo commerce theme comes with its own woo commerce stylesheet, and removes the original woo commerce style sheet

WordPress tables with tinymce

If you want to build tables within wordpress there are two options

  • use tinmce advanced with table tools
  • use a plugin

Using a plugin is the option I have chosen, and among many available plugins I have chosen websimon tables because it is quite simple, comes with custom styles including alternate row colors. The only thing is that editable fields are not wysiwyg, which is easily implemented via two basic code modifications that we detail here

in edit_table.php, call the wp_editor function instead of displaying textarea fields :

$settings = array( 'media_buttons' => false , "editor_height"=>100,"textarea_rows"=>2, "width"=>"200","textarea_name"=>'cell' . $cell_counter );
wp_editor( stripslashes($cell[$col_counter-1]),"idcell" . $cell_counter,$settings);

 

and in shortcode.php, you need to specify a call to the content filter in order to add necessary p and br tags. Job Done !

woocommerce restrict content based on product purchase

WOOCOMMERCE VIRTUAL CONTENT - SELL VIDEOS, TEXT, IMAGES

  • Sell virtual content  : video access, online course, elearning
  • Create content with wordpress : use custom type content for elearning
  • Create chapters : sell multiple pages / content within on product
  • Easy interface
  • Protect access : only purchasers of content can view
  • Fully integrated within woocommerce

 

There are many ways to restrict content for customers who have purchased specific products. We have tried virtuoso plugin from Code Canyon without enthusiasm because it bypasses one essential native feature of woo commerce  : downloadable products. Using woo commerce with downloadable products can give your customers access based on what product they have purchased.

We will build our premium content commerce with a specific custom post type that we call "Premium Content". This article describes how to make the content accessible only to customers who have purchased associated products.

it is necessary, if you are selling wordpress content (sell  self hosted videos with woo commerce for example), to block unauthorized access.

  • First step is to configure woo commerce to use redirections for virtual downloadable products : in woo commerce settings page, check

    Downloadable Products / File download method : redirect only

  • Second step is to configure a specific custom post type for restricted content : use the post type url in the product file download section to give access to customers.
  • Third step is to protect the custom post type entries from unauthorized access via some templating code. You have some info on this video, we will be releasing the full code and procedure soon. http://www.youtube.com/watch?v=Ury5dF3mJ9U
  • functions we are developing :
    • woocommerce_customer_can_download_or_view : checks if current page is one of customer's orders products file path(s), using get_downloadable_file_urls
    • woocommerce_get_products_allow_download  : list products that can allow viewing or downloading of this url
    • Widget  that displays all customers downloads

 

other useful information and tips

 

other subject

customer submitted product selling http://docs.wedevs.com/woocommerce-downloadable-product/

Expert Woocommerce Book

I am currently writing a book for advanced / expert users who need to go far with WOOCOMMERCE. It will be PDF only and will feature

Foreword

  • Woocommerce vs magento  vs prestashop
  • Basic plugins we use for wordpress
  • Advanced plugins we use for Woocommerce
  • how we code woocommerce

Woocommerce functions you'll find on the net

  • Multiple site config without wordpress multi user
  • Orders management
    • customer product order display
    • PDF order display

Exclusive woocommerce functions you won't find on the net (yet)

  • Buy incentive to get free shipping

Conclusion