Repository › Forums › Support › WooCommerce Pricing Rules PRO › Two Things I Need Help With
- This topic has 12 replies, 2 voices, and was last updated 3 years, 8 months ago by lindacarey.
-
AuthorPosts
-
August 7, 2017 at 2:37 pm #1787lindacareyParticipant
Hi yall,
This plugin works for me nicely but I would like to change the placement of the pricing table to be BELOW my product short description instead of above it.
How would I do this?
Thank you so much for any help with this.
August 7, 2017 at 2:38 pm #1788lindacareyParticipantOh sorry the other thing is that the headings “quantity” and “price” are centered and the prices themselves are flush left. Is there any way to make the prices align under the headings?
August 7, 2017 at 3:22 pm #1789lindacareyParticipantspecifically I would like prices to be aligned left under the headings which is typographically correct.
August 8, 2017 at 7:26 am #1791Soft79KeymasterYou need to apply a bit of CSS. Can you send me an url to a page with a pricing table please? Then I will help you with it.
August 9, 2017 at 5:12 pm #1795lindacareyParticipantI replied to your email instead of posting here!
Here is the link and thank you immensely for helping with this…
https://m83528.com/shop/mil-dtl-83528-connector-gasket-a001-test/
August 9, 2017 at 9:11 pm #1797Soft79KeymasterHi, on that page the headings “Qty” and “Price” already seem to be left-aligned. If it doesn’t show right on your browser, append this css:
.soft79-wc-pricing-rules th {text-align: left;}
Moving the pricing table below the short description can be done by placing this snippet in your child theme‘s functions.php:
add_action( 'init', function() { if ( class_exists( 'SOFT79_WC_Pricing_Rules_Plugin' ) ) { remove_action('woocommerce_single_product_summary', array( SOFT79_WC_Pricing_Rules_Plugin::instance(), 'action_woocommerce_single_product_summary'), 11 ); add_action('woocommerce_single_product_summary', array( SOFT79_WC_Pricing_Rules_Plugin::instance(), 'action_woocommerce_single_product_summary'), 20 ); } }, 90 );
August 10, 2017 at 12:51 pm #1798lindacareyParticipantHi! Yes I did figure out how to left align, except I cannot get the numbers themselves to line up in a right align fashion where the last digits are in alignment (which is typographically correct)…. like so:
Title Quantity
3-4 $10.00
5-9 $6.00
10-24 $4.50
25-49 $3.60
50-99 $2.97Your snippet worked perfectly for the other little change I wanted. Thank you so much for that!
August 10, 2017 at 12:53 pm #1799lindacareyParticipantOh. haha. all my alignment is off when I hit “submit” sorry about that.
basically I want the numbers themselves to line up on the last digit.
August 10, 2017 at 1:43 pm #1800Soft79KeymasterLike this?
.soft79-wc-pricing-rules th, .soft79-wc-pricing-rules td {text-align: right;}
If you need to adjust the html itself, copy wp-content/plugins/soft79-wc-pricing-rules-pro/templates/single-product/bulk-rule.php to wp-content/themes/YOUR_THEME/soft79-wc-pricing-rules/single-product/bulk-rule.php and edit it.
August 10, 2017 at 1:45 pm #1801lindacareyParticipantOh yes, thank you! Just what I needed.
Thank you for being so helpful.
August 10, 2017 at 2:36 pm #1802lindacareyParticipantI am not at all well versed in changing CSS or .php files
so I do have one last request…is there a way to move all the columns over to the left but keep the text right-align formatting?
August 10, 2017 at 2:44 pm #1803Soft79KeymasterTry this:
.soft79-wc-pricing-rules {width: auto;} .soft79-wc-pricing-rules th, .soft79-wc-pricing-rules td {text-align: right;}
August 10, 2017 at 3:08 pm #1804lindacareyParticipantthat is perfect. thank you again!
-
AuthorPosts
- You must be logged in to reply to this topic.