yoyodesigns
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [WooCommerce] How to add some js to product-category page?I figured it out, I edited content-product_cat.php. Made it in my own theme’s folder so on update it doesn’t change. Just incase anyone else ever is looking.
Forum: Plugins
In reply to: [WooCommerce] How to add some js to product-category page?I just want to remove the “add to quote cart” button (plugin installed for that) from the product-category page. I can’t use css because it removes it on the product page as well.
Forum: Plugins
In reply to: [WooCommerce] How to access custom fields in thankyou.php?Yeah just figured that out. Thank you 🙂
Forum: Plugins
In reply to: [WooCommerce] How to access custom fields in thankyou.php?Just figured it out, I found that you can do it as a hook in functions.php
add_action ('woocommerce_thankyou', 'edit_thankyou'); function edit_thankyou($order_id) { echo '<p>' . get_post_meta( $order_id, 'sestination_state', true ) . '</p>'; }But as I want to edit the order-details-customer.php file so it appears nicer in email confirmations and such I figured out I can use
echo '<p>'. get_post_meta( $order->id, 'Date Collection', true ) . '</p>';
Viewing 4 replies - 1 through 4 (of 4 total)