Anand Shah
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] CSS to align the products to the centerWe can surely help you if you help us with your site URL.
Forum: Plugins
In reply to: [WooCommerce] Best Woocommerce Date picker for local PickupI think you’ll need to hire a developer, this looks like custom spec so doubt there would be anything ready made.
Forum: Plugins
In reply to: [WooCommerce] How to allow purchase using credit/debit card?You need to install and enable additional gateways that accept credit cards. See a comprehensive list of payment gateways on the following page, few are free the other are premium : https://www.woothemes.com/product-category/woocommerce-extensions/payment-gateways/
Forum: Plugins
In reply to: [WooCommerce] Hide product priceShare you code back here for future visitors.
Products is custom post type, the data is stored in wp_posts and wp_postmeta
Forum: Plugins
In reply to: [WooCommerce] Update variation price by variation idYes you’ll have to handle all those post meta manually. Have look at the code here to see how WooCommerce handles it : https://github.com/woothemes/woocommerce/blob/master/includes/class-wc-product-variable.php#L726
Ensure that in WooCommerce settings “Hide out of stock items” is not checked to get all items whether instock or outofstock.
Forum: Plugins
In reply to: [WooCommerce] Image Rendering – Page FlashCan you share your site URL?
In the backend navigate to WooCommerce > System Status . Now click “Get System Report”. It will display the report, now click “Copy for Support” button, paste the text here.
Forum: Plugins
In reply to: [WooCommerce] Refunds made on orders not visible through APIRefunds have their own endpoint in the API, have a look at the docs here : http://woothemes.github.io/woocommerce-rest-api-docs/#view-list-of-refunds-from-an-order
<?php print_r($woocommerce->get('orders/645/refunds')); ?>Forum: Plugins
In reply to: [WooCommerce] Can not see product text when previewing (Storefront)With Storefront activated, de-activate all plugins except WooCommerce and see if the issue persists and the hunt it down from there.
You could also get your site online so that someone can take a look and perhaps help you out.
Forum: Plugins
In reply to: [WooCommerce] Hide product priceGoogle is everyone’s friend 🙂 The solution mentioned on that link works only for simple products, if you have variable products just add the following line of code to that snippet.
add_filter('woocommerce_variable_price_html', 'members_only_price', 10, 2);Forum: Plugins
In reply to: [WooCommerce] Change Processing instead of Pending PaymentDoes anything get logged into the console for the following line of code?
<script> console.log(<?php echo json_encode($order); ?>);You are declaring
$orderas an array with this code$order = array();To access the array you have to use
$order['id']and not$order->id.The second form with
->operator is used on objects to access the attributes.Try the following code:
<script> console.log(<?php echo json_encode($order); ?>); console.log(<?php echo json_encode($order['id']); ?>); //console.log('<?php echo $order_status; ?>'); </script>Forum: Plugins
In reply to: [WooCommerce] WooCommerce subscription hookI used the following code to add meta to the order.
add_action( 'woocommerce_checkout_update_order_meta', 'platoon_add_order_meta', 10, 2 ); function platoon_add_order_meta( $order_id, $posted ) { update_post_meta( $order_id, '_my_custom_key', 'some_value' ); }Forum: Plugins
In reply to: [WooCommerce] How to remove/change sellers name ?Add this to your child theme’s style.css file, or if you theme has a setting to add custom CSS, you can use that too.
.single-product .product_meta{ visibility: hidden; } .single-product .product_meta .sku_wrapper, .single-product .product_meta .posted_in { visibility: visible; } .variation-Soldby { display: none; }Forum: Plugins
In reply to: [WooCommerce] WooCommerce subscription hookI have just tested the
woocommerce_checkout_update_order_metaand it worked fine. May be share the full code you are using, someone might be able to pick the issue up.Forum: Plugins
In reply to: [WooCommerce] username not displaying at all in new account email$orderwill be null inside customer-new-account.php as the order has still not been placed at the time of registration. So the following line will not work<?php $username = get_userdata($order->user_id)->user_login; ?>Just checked the default customer-new-account.php template and it does display the username
<p><?php printf( __( "Thanks for creating an account on %s. Your username is <strong>%s</strong>.", 'woocommerce' ), esc_html( $blogname ), esc_html( $user_login ) ); ?></p>