Pia
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Display Unit Price & Case Unit in checkout page / CSS inHi, lorro!
I have been studying different woocommerce php and trying out different codes for the unit price…. This one I got from the cart.php for displaying the unit price… and i used it & it worked in echo for order-details.php… but i do not know if this is correct……..
<td class="unit-price"> <?php echo apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key ); ?> </td>
What do you say about this code, lorro? Did i do the right thing? or should I not keep this?
Huge thanks to you!
Forum: Plugins
In reply to: [WooCommerce] Display Unit Price & Case Unit in checkout page / CSS inThere are 2 columns that I really don’t know how to echo.
The unit (like case or pc) in the (2nd column)
and
the unit price in the (5th column)
Well, even the discount I do not know how to echo it ??
Im sorry but I truly appreciate your help. Any help is greatly appreciated.Thank you so much.
Forum: Plugins
In reply to: [WooCommerce] Display Unit Price & Case Unit in checkout page / CSS inHi, lorro.
I have already posted our customized order-details in pastebin.
Unfortunately I used syntax CSS, sorry. should be PHP.
Here are the links.
https://pastebin.com/r1e883PDSample checkout *order received page
https://shop.pingconmarketing.com/checkout/order-received/160/?key=wc_order_5562eedf4697aThank you so much for your help.
Forum: Plugins
In reply to: [WooCommerce] Display Unit Price & Case Unit in checkout page / CSS inHi, lorro.
Thanks so much for your help.
Yes, our order-details.php is heavily overridden as we would want to achieve the look of our actual company invoice.
I am just waiting for my approved access to pastebin.com
Will post it there once i have access. and will update here again.
Thank you so much lorro.
Or is it okay if I post here instead?
Forum: Plugins
In reply to: [WooCommerce] Display Unit Price & Case Unit in checkout page / CSS inThank you Kharis Sulistiyono.
I checked with the view page source and it says Regular Price
Forum: Plugins
In reply to: [WooCommerce] Display Unit Price & Case Unit in checkout page / CSS inThank you lorro.
the css worked but the php code still didn’t work ?? Any idea? ?? i really dont know how to show the regular price. I checked with the view page source and it indicates the regular price. but still i am not sure as i am just a beginner. ?? pls help
Forum: Plugins
In reply to: [WooCommerce] Display Unit Price / Regular Price in checkout pagealright. Noted. Thank you Kharis. I really appreciate your help.
Forum: Plugins
In reply to: [WooCommerce] Display Unit Price & Case Unit in checkout page / CSS inForum: Hacks
In reply to: Display Unit Price & Case Unit in checkout page / CSSForum: Plugins
In reply to: [WooCommerce] Display Unit Price / Regular Price in checkout pageHerewith is the sample checkout URL
https://shop.pingconmarketing.com/checkout/order-received/153/?key=wc_order_555ea07f7926e
Forum: Plugins
In reply to: [WooCommerce] Display Unit Price / Regular Price in checkout pageHi again, Kharis Sulistiyono
I tried adding it in my theme’s function.php, here’s the error.
Parse error: syntax error, unexpected ‘<‘ in /home/pingconm/public_html/shop/wp-content/themes/shopping/functions.php on line 171
Then I tried adding it in my order-details.php, here’s the error…
Fatal error: Call to a member function get_price_html() on a non-object in /home/pingconm/public_html/shop/wp-content/plugins/woocommerce/templates/order/order-details.php on line 110
Please help.
Your help is greatly appreciated. Thank you so much.
Forum: Plugins
In reply to: [WooCommerce] Display Unit Price / Regular Price in checkout pageHi, Kharis Sulistiyono
Thanks so much for your reply.
I am not sure though where exactly to add this?
function.php?
I will try then. Sorry I am just a beginner.
Forum: Plugins
In reply to: [WooCommerce] Right Align Amount in the Subtotal of the Woo Cart sidebarYes yes. Im sorry.
Thank you so much!
Forum: Plugins
In reply to: [WooCommerce] Align the Add to Cart beside the Quantity buttonThank you so much lorro ??
Forum: Plugins
In reply to: [WooCommerce] Align the Add to Cart beside the Quantity buttonIt works!
Thank you lorro ??
May I pls ask one more?
How can I right aligh the subtotal amount in the woocommerce cart widget in the sidebar?
The subtotal word must remain in the left, while the amount must be aligned right??
Sorry i am a beginner and Ive tried some css but didnt work.
Thanks a lot!