Advertisement
zlanich

OotG - Adding Normal Product to Cart

Aug 25th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.18 KB | None | 0 0
  1. // URL: http://dev-local.outofthegreycoffee.com:8888/product/brazil-daterra-bourbon/
  2. /Users/zlanich/Sites/OutoftheGreyCoffee.com/www/wp-content/themes/custom-coffee-builder/includes/woocommerce.php:277:
  3. array (size=6)
  4.   'addons' =>
  5.     array (size=1)
  6.       0 =>
  7.         array (size=3)
  8.           'name' => string 'Tell Us How to Grind Your 12 oz. Coffee' (length=39)
  9.           'value' => string 'Whole Bean' (length=10)
  10.           'price' => string '' (length=0)
  11.   'product_id' => int 180
  12.   'variation_id' => int 0
  13.   'variation' =>
  14.     array (size=0)
  15.       empty
  16.   'quantity' => int 1
  17.   'data' =>
  18.     object(WC_Product_Simple)[514]
  19.       public 'id' => int 180
  20.       public 'post' =>
  21.         object(WP_Post)[518]
  22.           public 'ID' => int 180
  23.           public 'post_author' => string '2' (length=1)
  24.           public 'post_date' => string '2014-12-03 15:40:20' (length=19)
  25.           public 'post_date_gmt' => string '2014-12-03 15:40:20' (length=19)
  26.           public 'post_content' => string 'Organic Fair Trade/Rain Forest Alliance Certified:
  27.  
  28. Brazil is not only the world’s largest coffee producer, it is also the most complex. It turns out everything from mass produced coffees that rank among the world’s cheapest to elegant coffees prized as the world’s finest origins for espresso brewing. In Brazil, fruit is removed from the bean using four different processing methods, and it is not uncommon for all four methods to be used on the same farm during the same harvest.
  29.  
  30. One thing Brazil c'... (length=6908)
  31.           public 'post_title' => string 'Brazil Daterra Bourbon' (length=22)
  32.           public 'post_excerpt' => string 'Organic Fair Trade/Rain Forest Alliance Certified:
  33.  
  34. Wonderfully balanced body with a nutty smoothness.
  35.  
  36.  ' (length=114)
  37.           public 'post_status' => string 'publish' (length=7)
  38.           public 'comment_status' => string 'open' (length=4)
  39.           public 'ping_status' => string 'closed' (length=6)
  40.           public 'post_password' => string '' (length=0)
  41.           public 'post_name' => string 'brazil-daterra-bourbon' (length=22)
  42.           public 'to_ping' => string '' (length=0)
  43.           public 'pinged' => string '' (length=0)
  44.           public 'post_modified' => string '2015-12-12 04:45:57' (length=19)
  45.           public 'post_modified_gmt' => string '2015-12-12 04:45:57' (length=19)
  46.           public 'post_content_filtered' => string '' (length=0)
  47.           public 'post_parent' => int 0
  48.           public 'guid' => string 'https://outofthegreycoffee.com/product/brazil-daterra-bourbon/' (length=62)
  49.           public 'menu_order' => int 0
  50.           public 'post_type' => string 'product' (length=7)
  51.           public 'post_mime_type' => string '' (length=0)
  52.           public 'comment_count' => string '0' (length=1)
  53.           public 'filter' => string 'raw' (length=3)
  54.       public 'product_type' => string 'simple' (length=6)
  55.       protected 'shipping_class' => string '' (length=0)
  56.       protected 'shipping_class_id' => int 0
  57.       public 'sold_individually' => string 'no' (length=2)
  58.       public 'price' => float 14.75
  59.       public 'manage_stock' => string 'no' (length=2)
  60.       public 'stock_status' => string 'instock' (length=7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement