ronmisely
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Need to save cart item meta of the each product to ordersHow to save cart item meta of each cart item into item meta of order item .
Forum: Plugins
In reply to: [WooCommerce] woocommerce code is working in theme but not in custom pluginsorry , this is my mistake . actually it is working in plugin page also .
Forum: Plugins
In reply to: [WooCommerce] change the product detail when adding to cartThank you @dsmithweb for showing that example . It is helpfull
solution for my two questions
(1st) Actually my concept of $cart_item_data is wrong . $cart_item_data is for to saving the custom details , not for to change the details such as product price .
(2nd) add_action( ‘woocommerce_before_calculate_totals’) function need to write before $woocommerce->cart->add_to_cart function .
Forum: Plugins
In reply to: [WooCommerce] change the product detail when adding to carti have other doubt . can i put add_action( ‘woocommerce_before_calculate_totals’, ‘test_function’); after the $woocommerce->cart->add_to_cart . and this is my 2nd try
example ,
if( $woocommerce->cart->add_to_cart( 21, 1, 0, $item,$cart_item_data)){ add_action( 'woocommerce_before_calculate_totals', 'woto_change_price'); function woto_change_price() { global $woocommerce; foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { if($cart_item['data']->id == 21 && [...my condition... ]){ $cart_item['data']->set_price(35); } } } }
Forum: Plugins
In reply to: [Row Seats Core] ShowcaseNo showcase yet ?
Forum: Plugins
In reply to: [Yoast SEO] Slow query problemBut could you please check the given error , and the possibility or reason for this error ?
Forum: Plugins
In reply to: [Delete Expired Transients] Yoast ,woocommerce compatible ?Thank you .
Could you please tell what happen if i Delete all transient ? . What is the risk in the process ?.. If i delete transient then website speed increase .
I read the transient api , but i didn’t understand well . What is the relation ship between transient , security , and speed of the website .