Repository Forums Support WooCommerce Pricing Rules PRO Two Things I Need Help With

Topic Resolution: Resolved
Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1787
    lindacarey
    Participant

    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.

    #1788
    lindacarey
    Participant

    Oh 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?

    #1789
    lindacarey
    Participant

    specifically I would like prices to be aligned left under the headings which is typographically correct.

    #1791
    Soft79
    Keymaster

    You 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.

    #1795
    lindacarey
    Participant

    I 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/

    #1797
    Soft79
    Keymaster

    Hi, 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 );
    #1798
    lindacarey
    Participant

    Hi! 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.97

    Your snippet worked perfectly for the other little change I wanted. Thank you so much for that!

    #1799
    lindacarey
    Participant

    Oh. 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.

    #1800
    Soft79
    Keymaster

    Like 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.

    #1801
    lindacarey
    Participant

    Oh yes, thank you! Just what I needed.

    Thank you for being so helpful.

    #1802
    lindacarey
    Participant

    I 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?

    #1803
    Soft79
    Keymaster

    Try this:

    
    .soft79-wc-pricing-rules {width: auto;}
    
    .soft79-wc-pricing-rules th,
    .soft79-wc-pricing-rules td {text-align: right;}
    
    #1804
    lindacarey
    Participant

    that is perfect. thank you again!

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.