sharmaabhi
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Customize “Your Order” section on checkout pageThanks @jesse.
It worked ??Forum: Plugins
In reply to: [WooCommerce] Customize “Your Order” section on checkout pageWhen you were modifying those two files you mentioned, did you copy those over into the theme you have activated?
Yes, I copied those files in to my theme and then I did the modification.
“Your Order” section does show up before the billing details in the beginning but when the page gets load up fully it hides automatically.
Thanks @jesse
I’ll check it.Actually some of the products have ‘gif’ image instead of png or jpg. So, for gif files wordpress only regenerate thumbnail of the first frame of the gif file.
Where do I put this
the_post_thumbnail('full');
. I can’t find template file.By original image, I mean the image that I uploaded for product into the media.
As WordPress generate thumbnails according to the sizes we give in Settings -> Media
Woocommerce showing that thumbnail for every product on products(Shop) page.
I want to show that original image not resized one.Forum: Plugins
In reply to: [WooCommerce] get_shipping_methods() return empty rate araryI used
WC()->shipping->get_packages()
this method to get the desired result.
Appreciate the help. Thanks ??- This reply was modified 6 years, 8 months ago by sharmaabhi.
Thanks for the reply,
setting
startTime: new Date(0, 0, 0, 12, 0, 0),
this returns time range of12:00 PM - 11:00 PM
While it should be
12:00 PM - 11:00 AM
I tried this in one of the demo has given on this
page, and it gives me the desired result.
Forum: Plugins
In reply to: [WooCommerce] get_shipping_methods() return empty rate araryOk, It’s a bit strange but if I enable the shipping debug mode then I got the desired “rates” array in the result of
WC()->shipping->get_shipping_methods()
.Array ( [2] => WC_Shipping_Flat_Rate Object ( [fee_cost:protected] => 55 [supports] => Array ( [0] => shipping-zones [1] => instance-settings [2] => instance-settings-modal ) [id] => flat_rate [method_title] => Flat rate [method_description] => Lets you charge a fixed rate for shipping. [enabled] => yes [title] => Flat rate [rates] => Array ( [flat_rate:2] => WC_Shipping_Rate Object ( [data:protected] => Array ( [id] => flat_rate:2 [method_id] => flat_rate [instance_id] => 2 [label] => Flat rate [cost] => 10.00 [taxes] => Array ( ) ) [meta_data:protected] => Array ( [Items] => Belt × 1 ) ) )
I’m also getting this in result
[flat_rate] => WC_Shipping_Flat_Rate Object ( [fee_cost:protected] => [supports] => Array ( [0] => shipping-zones [1] => instance-settings [2] => instance-settings-modal ) [id] => flat_rate [method_title] => Flat rate [method_description] => Lets you charge a fixed rate for shipping. [enabled] => yes [title] => [rates] => Array ( )
I don’t know why there are two object for flat rate shipping method?
Forum: Plugins
In reply to: [WooCommerce] get_shipping_methods() return empty rate araryI tried using flat rate and disabling WPDesk_Flexible_Shipping plugin, still it didn’t work.
I tried it even with fresh installed new project still got the same result.Forum: Plugins
In reply to: [WooCommerce] get_shipping_methods() return empty rate araryI’ve created a custom checkout template page. In this template I’m using custom sidebar to show cart widget. Cart widget only shows items detail that user added to cart. I also want to show tax price and shipping price with it. Now tax price, I’m able to show but not shipping price.
No, I did not disabled WPDesk_Flexible_Shipping plugin as I’ve added shipping method using this plugin. I’m not using flat-rate or free shipping method.
Forum: Plugins
In reply to: [WooCommerce] get_shipping_methods() return empty rate araryHi @mikey
I tried disabling other plugins but still getting empty rates array.Also maybe try running this function on an existing page like Cart as a test to see if it’s the context you are in that’s the problem or the actual code.
I’ve already tried this on cart page but still got the same result.
Could it be something to do with version ? Because before the website was on old version of both wordpress and woocommerce, then I was getting the desired result.
Forum: Plugins
In reply to: [WooCommerce] get_shipping_methods() return empty rate araryThanks for the reply
I’m loading this on checkout page which uses custom template. I need to show a cost of the shipping method that user selected on the cart page. But the rates array for the shipping method in above output is empty.Here’s how I’m doing this :-
$rate_table = array(); $shipping_methods = WC()->shipping->get_shipping_methods(); foreach($shipping_methods as $shipping_method){ foreach($shipping_method->rates as $key=>$val){ $rate_table[$key]= $val; } } $shipping_price = $rate_table[WC()->session->get( 'chosen_shipping_methods' )[0]]->cost;
I’ll try with disabling other plugins.
Forum: Plugins
In reply to: [WooCommerce] Emails are not being sentThanks for the advice @caleb Burks
Really appreciate it.Forum: Plugins
In reply to: [WooCommerce] Emails are not being sentThanks for the reply
I moved my website to another server and email is working there.
So I guess it’s something to do with hosting server.Forum: Plugins
In reply to: [WooCommerce] Single Product is using single.php not single-product.phpI was using default twenty-fourteen theme. I used below hook in functions.php file then it started working normally.
function mytheme_add_woocommerce_support() { add_theme_support( 'woocommerce' ); } add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );
But I did not get this issue with storefront theme.