Remove URL field from WordPress comments form

Remove URL field from WordPress comments form

This field on the comments form of your blog is one of the ways spammers use to share their content.

 

One quick way to cut down on your website being used as a spam spot is to remove this field.  To do this there are 3 easy ways and they are outlined beautifully in this blog post on Crunchify.com.

PLEASE NOTE:

IF you are using the code into the functions.php file you do not need to have “crunchify_” in the code.  You can simply removed this portion out of both places and the code still works.

 

Divi – Woocommerce Product Category Archive Pages

Divi – Woocommerce Product Category Archive Pages

Some of you are aware that I LOVE Divi Theme from Elegant Themes but one of the things that has been frustrating me is not being able to personalise the archive pages on my Woocommerce product category pages.  Well I solved it with no plugins pieced together from bits all over the web.  So how did I do it?

Here is the step by step tutorial on the video as I show you all the steps:

So what were they again?  and what were the magic bits I pasted in?

Here is the quick reference guide:

  1. Create Your Layout
    1. In your WordPress dashboard go to Divi > Divi Librarydivi-divilibrary
    2. Add a new layoutlayout-addnew
    3. Set this layout to Global (you have to do this when making it as it is not changable to global later)new-template
    4. Save layout
  2. Copy  Woocommerce template files to your theme
    1. in wp-content  >  plugins   >   woocommerce   >   templates
    2. select:
      1. archive-product.php
      2. taxonomy-product_cat.php
    3. copy these to your theme (highly recommend using a child theme for this) in a folder called “woocommerce”  (CTRL drag in cpanel)
  3. Change template file names in your theme
    1. find your slug of your product category
    2. use the rename function to rename both of the files to add “-yourslug” before the .php
      1. So “archive-product.php” becomes “archive-product-yourslug.php”
      2. and “taxonomy-product_cat.php” becomes “taxonomy-product_cat-yourslug.php”
  4. Edit taxonomy-product_cat-yourslug.php
    1. Edit the code of this file and change the line “wc-get-template(‘archive-product.php’);”taxonomy-change
    2. Change it to “wc-get-template(‘archive-product-yourslug.php’);”
    3. Save file
  5. Edit archive-product-yourslug.php
    1. Remove everything after “get_header( ‘shop’ );” all the way down to and leave in ” get_footer( ‘shop’ ); ?>”archieve-remove
    2. Between those 2 lines past in
    3. Change the XXXX to the layout number (found by looking in the URL when viewing the layout editor screenlayout-code
    4. Save file
  6. DONE!!

To update the layout you then just go back into Divi > Divi Library and make your changes!!

How does it get any easier than that?

Add To Cart URL for Woocommerce

Add To Cart URL for Woocommerce

One of my favorite shopping carts is Woocommerce and often I am creating a pretty sales page that differs from the Woocommerce Product Page.  So what happens when you get to the BUY NOW button?

Do you really want them to have to link to the product page and then click again to add to cart? There is another way!

Woocommerce has built in a really cute little addition to your URL that can auto add a product and then take them straight to the cart or checkout page to continue to checkout. How does it get any easier than that?

METHOD:

  1. Find out your Cart Page or Checkout Page URL
  2. Find the ID number of the product you wish to add to the cart
    1. In the admin / back-end of the website got to the Products page
    2. Hover over the product you wish to use
    3. The ID number that appears below the product name is the number you require (see image with the ID highlighted in Yellow)Woocommerce-Product-ID
  3. Combine these from 1 & 2 to create the URL eg:  www.yourdomain.com/checkout/?add-to-cart=769   This will take the person to the checkout page with product 769 already added to the cart.

How does it get any easier than that?

Pay Later option on Woocommerce

So you have a desire to take orders and allow people to pay later?

Maybe you are using Woocommerce shopping cart to take registrations for event and wish for people to register online and pay later closer to the time.

So this is what I did with a couple of notes you may wish to take note of:

1. Create a custom payment gateway.  You may know how to do this by coding or you may choose to add a plugin to do this.  I used the free version of Booster For Woocommerce (it has a pig on a rocket!) the following instructions are how to set this up:

  1. Install plugin
  2. In your sidebar select Woocommerce -> Settings and then choose the Checkout tab at the top.
  3. a new section is added across the top called “Custom Gateway #1” select this.
  4. Check the checkbox beside “Enable Custom Payment” to enable this payment gateway.
  5. Edit settings as you desire
  6. Set “Default Order Status” to “Pending Payment”
  7. Save settings

2. On the “Products” tab select “Inventory” and Check the number of minutes in the “Hold Stock (minutes)”, this is number of minutes defines how long it will allow an order to set in payment pending.  If left on the standard 60 minutes people will only have 60 minutes to pay otherwise the order will be cancelled.  I use 525960 minutes which is a year.

 

Pin It on Pinterest