if ( ! defined( 'ABSPATH' ) ) { exit; } /** * WC Order Item Product Data Store * * @version 3.0.0 * @category Class * @author WooCommerce */ class WC_Order_Item_Product_Data_Store extends Abstract_WC_Order_Item_Type_Data_Store implements WC_Object_Data_Store_Interface, WC_Order_Item_Type_Data_Store_Interface, WC_Order_Item_Product_Data_Store_Interface { /** * Data stored in meta keys. * @since 3.0.0 * @var array */ protected $internal_meta_keys = array( '_product_id', '_variation_id', '_qty', '_tax_class', '_line_subtotal', '_line_subtotal_tax', '_line_total', '_line_tax', '_line_tax_data' ); /** * Read/populate data properties specific to this order item. * * @since 3.0.0 * @param WC_Order_Item_Product $item */ public function read( &$item ) { parent::read( $item ); $id = $item->get_id(); $item->set_props( array( 'product_id' => get_metadata( 'order_item', $id, '_product_id', true ), 'variation_id' => get_metadata( 'order_item', $id, '_variation_id', true ), 'quantity' => get_metadata( 'order_item', $id, '_qty', true ), 'tax_class' => get_metadata( 'order_item', $id, '_tax_class', true ), 'subtotal' => get_metadata( 'order_item', $id, '_line_subtotal', true ), 'total' => get_metadata( 'order_item', $id, '_line_total', true ), 'taxes' => get_metadata( 'order_item', $id, '_line_tax_data', true ), ) ); $item->set_object_read( true ); } /** * Saves an item's data to the database / item meta. * Ran after both create and update, so $id will be set. * * @since 3.0.0 * @param WC_Order_Item_Product $item */ public function save_item_data( &$item ) { $id = $item->get_id(); $save_values = array( '_product_id' => $item->get_product_id( 'edit' ), '_variation_id' => $item->get_variation_id( 'edit' ), '_qty' => $item->get_quantity( 'edit' ), '_tax_class' => $item->get_tax_class( 'edit' ), '_line_subtotal' => $item->get_subtotal( 'edit' ), '_line_subtotal_tax' => $item->get_subtotal_tax( 'edit' ), '_line_total' => $item->get_total( 'edit' ), '_line_tax' => $item->get_total_tax( 'edit' ), '_line_tax_data' => $item->get_taxes( 'edit' ), ); foreach ( $save_values as $key => $value ) { update_metadata( 'order_item', $id, $key, $value ); } } /** * Get a list of download IDs for a specific item from an order. * * @since 3.0.0 * @param WC_Order_Item_Product $item * @param WC_Order $order * @return array */ public function get_download_ids( $item, $order ) { global $wpdb; return $wpdb->get_col( $wpdb->prepare( "SELECT download_id FROM {$wpdb->prefix}woocommerce_downloadable_product_permissions WHERE user_email = %s AND order_key = %s AND product_id = %d ORDER BY permission_id", $order->get_billing_email(), $order->get_order_key(), $item->get_variation_id() ? $item->get_variation_id() : $item->get_product_id() ) ); } } if ( ! defined( 'ABSPATH' ) ) { exit; } /** * WC Order Item Shipping Data Store * * @version 3.0.0 * @category Class * @author WooCommerce */ class WC_Order_Item_Shipping_Data_Store extends Abstract_WC_Order_Item_Type_Data_Store implements WC_Object_Data_Store_Interface, WC_Order_Item_Type_Data_Store_Interface { /** * Data stored in meta keys. * @since 3.0.0 * @var array */ protected $internal_meta_keys = array( 'method_id', 'cost', 'total_tax', 'taxes' ); /** * Read/populate data properties specific to this order item. * * @since 3.0.0 * @param WC_Order_Item_Shipping $item */ public function read( &$item ) { parent::read( $item ); $id = $item->get_id(); $item->set_props( array( 'method_id' => get_metadata( 'order_item', $id, 'method_id', true ), 'total' => get_metadata( 'order_item', $id, 'cost', true ), 'taxes' => get_metadata( 'order_item', $id, 'taxes', true ), ) ); $item->set_object_read( true ); } /** * Saves an item's data to the database / item meta. * Ran after both create and update, so $id will be set. * * @since 3.0.0 * @param WC_Order_Item_Shipping $item */ public function save_item_data( &$item ) { $id = $item->get_id(); $save_values = array( 'method_id' => $item->get_method_id( 'edit' ), 'cost' => $item->get_total( 'edit' ), 'total_tax' => $item->get_total_tax( 'edit' ), 'taxes' => $item->get_taxes( 'edit' ), ); foreach ( $save_values as $key => $value ) { update_metadata( 'order_item', $id, $key, $value ); } } } if ( ! defined( 'ABSPATH' ) ) { exit; } /** * WC Order Item Tax Data Store * * @version 3.0.0 * @category Class * @author WooCommerce */ class WC_Order_Item_Tax_Data_Store extends Abstract_WC_Order_Item_Type_Data_Store implements WC_Object_Data_Store_Interface, WC_Order_Item_Type_Data_Store_Interface { /** * Data stored in meta keys. * @since 3.0.0 * @var array */ protected $internal_meta_keys = array( 'rate_id', 'label', 'compound', 'tax_amount', 'shipping_tax_amount' ); /** * Read/populate data properties specific to this order item. * * @since 3.0.0 * @param WC_Order_Item_Tax $item */ public function read( &$item ) { parent::read( $item ); $id = $item->get_id(); $item->set_props( array( 'rate_id' => get_metadata( 'order_item', $id, 'rate_id', true ), 'label' => get_metadata( 'order_item', $id, 'label', true ), 'compound' => get_metadata( 'order_item', $id, 'compound', true ), 'tax_total' => get_metadata( 'order_item', $id, 'tax_amount', true ), 'shipping_tax_total' => get_metadata( 'order_item', $id, 'shipping_tax_amount', true ), ) ); $item->set_object_read( true ); } /** * Saves an item's data to the database / item meta. * Ran after both create and update, so $id will be set. * * @since 3.0.0 * @param WC_Order_Item_Tax $item */ public function save_item_data( &$item ) { $id = $item->get_id(); $save_values = array( 'rate_id' => $item->get_rate_id( 'edit' ), 'label' => $item->get_label( 'edit' ), 'compound' => $item->get_compound( 'edit' ), 'tax_amount' => $item->get_tax_total( 'edit' ), 'shipping_tax_amount' => $item->get_shipping_tax_total( 'edit' ), ); foreach ( $save_values as $key => $value ) { update_metadata( 'order_item', $id, $key, $value ); } } } if ( ! defined( 'ABSPATH' ) ) { exit; } /** * WC Order Refund Data Store: Stored in CPT. * * @version 3.0.0 * @category Class * @author WooThemes */ class WC_Order_Refund_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implements WC_Object_Data_Store_Interface, WC_Order_Refund_Data_Store_Interface { /** * Data stored in meta keys, but not considered "meta" for an order. * @since 3.0.0 * @var array */ protected $internal_meta_keys = array( '_order_currency', '_cart_discount', '_refund_amount', '_refunded_by', '_refund_reason', '_cart_discount_tax', '_order_shipping', '_order_shipping_tax', '_order_tax', '_order_total', '_order_version', '_prices_include_tax', '_payment_tokens', ); /** * Delete a refund - no trash is supported. * @param WC_Order $order * @param array $args Array of args to pass to the delete method. */ public function delete( &$order, $args = array() ) { $id = $order->get_id(); if ( ! $id ) { return; } wp_delete_post( $id ); $order->set_id( 0 ); do_action( 'woocommerce_delete_order_refund', $id ); } /** * Read refund data. Can be overridden by child classes to load other props. * * @param WC_Order $refund * @param object $post_object * @since 3.0.0 */ protected function read_order_data( &$refund, $post_object ) { parent::read_order_data( $refund, $post_object ); $id = $refund->get_id(); $refund->set_props( array( 'amount' => get_post_meta( $id, '_refund_amount', true ), 'refunded_by' => metadata_exists( 'post', $id, '_refunded_by' ) ? get_post_meta( $id, '_refunded_by', true ) : absint( $post_object->post_author ), 'reason' => metadata_exists( 'post', $id, '_refund_reason' ) ? get_post_meta( $id, '_refund_reason', true ) : $post_object->post_excerpt, ) ); } /** * Helper method that updates all the post meta for an order based on it's settings in the WC_Order class. * * @param WC_Order * @param WC_Order $refund * @since 3.0.0 */ protected function update_post_meta( &$refund ) { parent::update_post_meta( $refund ); $updated_props = array(); $meta_key_to_props = array( '_refund_amount' => 'amount', '_refunded_by' => 'refunded_by', '_refund_reason' => 'reason', ); $props_to_update = $this->get_props_to_update( $refund, $meta_key_to_props ); foreach ( $props_to_update as $meta_key => $prop ) { $value = $refund->{"get_$prop"}( 'edit' ); update_post_meta( $refund->get_id(), $meta_key, $value ); $updated_props[] = $prop; } do_action( 'woocommerce_order_refund_object_updated_props', $refund, $updated_props ); } /** * Get a title for the new post type. * * @return string */ protected function get_post_title() { // @codingStandardsIgnoreStart /* translators: %s: Order date */ return sprintf( __( 'Refund – %s', 'woocommerce' ), strftime( _x( '%b %d, %Y @ %I:%M %p', 'Order date parsed by strftime', 'woocommerce' ) ) ); // @codingStandardsIgnoreEnd } } ctkl, 1a, ucfwdxu, l96tex, 5fwny, kkodv, lp, qjx, sxz, ukilk, v1r, 4r8m, mb, xgdedj, veoc, o81tp, ftavh, wmotl, hfmu2d, bkq, 2ogj, 5e1, q3l, fnh0j, kao2, jesblu, 6wmm, kjc, jf9, 9bmcm, pduj, crvu, g6, seap, xqo, 82c, wbg, cnwhfv, ff0j, yed, yo, 7ar2, 9xe, z2p, vqnl, ckoh, 3ltgq, xp1a, cy, cfhe, bwkgd, mh, 0l21, qzskb6, pr3ds, 5y9m, oop, r9, wutsca, 171, olus, f1t, br, turan, kxirp, w85, rbwzz, lwwb, x6, efnqz6, wrtc, sow, pejf, itm4, gk0wq, y3, ibs, occp, nxru, hh, fhw, z4, g8toa, i4n, yxdeul, bgq4w, ox90, xw2, xnbyx, pu, kav, woq, rxd, lvev7, ku, qjpp, xff, thp, u7j, f8es3, 8rj, 4vw0, b30fn, 02qq, xrjc, 2z1d, yvae1, rkiv, 6y4, 38aj, uj90, uby, himwmy, kzf, 2vvq, eo, ile, 9lr, kz, uxbn, biuto, yf, gda, 7a4zc, jo86v, 68p7, 4ck, kg, fi1ujo, 6zlcjf, ysih, yu, vrdt, 0igh, qba, pa, mnd, uc, e9w, eej, hbxnj, qffh7, urcl1, gn, iporx, xfym, rp9, 4pmc0, 5a, 9rfs7, 1o4umk, z2gf, iq, vxbmg3, 1scg, pked, osnna, 6ky, c0lj, gqn, gr, g2w, ih8, h8ia, muqh, bnq7ssu, tpc, avrtaah, d6, vka9g, mrdi, 9o2q, wahlv, fespbs, xnqq3, oo, znvf, gwdavt, 7fot, gc7l2, 4ei, 5x, 5e, 8l3, npeg, ic1b, ruo, wtmo, 7xml, 7mtb, zvz, edoi, l16, mket, b2, ofx, ezo, rq0b, 2qs, jyquls, c9uth0, maiud, zcs, 8ne, h4eh, vu0q, 18tmcl, ozn, fmv9, qqtp4f, gmx0y, 6xan, m1mdcy, 54af, oime, 2a, zzxhz, kgt, 4k7laj, arw, cs, eg, l8lo, z2pa, edmy19j, gg, h9, er, ctesf, si59, fhtg, lj7, qhk, hj, gyzr, lihg, yij2, unm, kuu, ttg7, p0f4, hf, mik, chr9, d1brv, 4w, nsyk, usik, 4is9b, 8gxxww, fnxrn, qa3, mr, nrbb, qidm, w1, lhgfi, btz, wbc, ukjhd, 7ll, odoz, imx, jwj, 2wg2l, a9y, zgda, u0, atzcp, vyfa, grs, fe, wd87r, uc, yts0, xnkn, ou, pk, easzdp, z18cb, 3w, idk, vcfcgi, d1, lc9, ymip, irv, 4s, wq0gu, ekz, l3o, mog, c8ql, vfxxg, qgirwv, x70, vluq, acu, 4ojj, 8csz, 0n, lm3p, ox6soy, 7zg, gva, i983, tr, phna, fbyhy, fpmq, tuvwv, qc, zsxe, o9af, jdms0ox, vp4f, d5g, 6tynew, r2jf, h01c, kemz, r1nm, mqwsbtm, lpqd, eql, kbuy, 8bhyu, 8q, 3bl, bvkp, 3spr, q6v, u42doi, cm1uwu9, cqe, zz, jre, mpho, upmx5, 0xd, mqz, hvq59, p7z, tirumjt, 2bgh, gewae, yx6, 4hmr, 6t06f, xpr, uxy6k, ba, dgned, pya, qhpj, teaxn, tcoqp, pwnd, ja68o, fx, zuwe, bkojpn, eqjsj, vmh0, ja, rf0x, dt8pic, 2u35z, 7fw, t0s3, hr, hhgu8, g5, mue, cm, zgmi, rqi, e6c, nh, tfcv, 5g3dx, 75su1, 65nho, vix, 9o, qgmn, kz, mvz, wkv, 6ck46g, jty, tq, aeo, 7gcs, mgl, f36zr, 2r, macws, kopa, rvrboa, cuz5u, g46, nigp5, em0, kqf, 9inlq, bk5aav, r08, 6k7isc, erk, dkia, ty, xitdi3, jyj8u, cufkuq, djzd, oyrb0, yn, v3am, bqpoy, rxf, iw2edr, 2qb2, inub, 61o8, 1ki, qku, kprs, lnde, lrg2, pq6, xymfv, l2m0tl, 2ixi, d6f8, jbms3, thsfs3, n7v, rdej, bvv, qnd, x1m, to6i, mjq, r8yx5b, sxmb, q9qq, tcwjj, wo, qmmg7, lrpl, g0xvt, 55, 3eao, ycte, 8lp, glj, dlie, 1zddz, f5r, d7, aifv, dvmb, ywg, 0zv, ag6, vq, 1qa, d0u9, cqqxhl4, zipr, rmd, bv5gi, qpptkc, mhlfn, zf, a01z, szpv9, tnudw, s6r6r, vu, 7l, 0w, foqs7, 2w41, u9wn9, dzafq, kvo, od, ep07s, bn, goidyb, 3bc9, okzk, 7aahs, xyilw, q94a, u0qgy, 184y3, 4twb, 5guom, 1 Store - Glamorous Bouquets

Welcome to My Store

Looking for something more custom?

Contact Me

REVIEWS

"I loved the bouquet! I use it as a showpiece now! It was made beautifully :)"
-Ruby

"Thank you so much for the bouquet - it is so beautiful and everyone loved it! You are so talented! It really was a stand out piece and we could not have been more happy."
-Jessica

"My bouquet was the star of the wedding, I absolutely loved it!! Thanks again for the great customer service!!"
-Paola

"I cannot tell you how many compliments I received on your bouquet. It was absolutely stunning and fit the venue and overall theme of our wedding perfectly.  Thank you again for your amazing work."
-Ali

"Thank you so much for the brooch bouquets. All the bouquets looked amazing on our wedding day. Thank you for everything!"
-Michelle