Okay
  Public Ticket #3441360
Tier Price List
Closed

Comments

  • Matthews started the conversation

    Hi!

    Is it possible to change the price table to look different? my clients have a lot of problems trying to find wholesale prices because you must need to add a color to show the table, algo the table appears below the product image and price, is it possible to turn it like a Alibaba style? i tried to make a model to look like that but i couldn't make the price automatic by quantity, i had to add 1 by 1 manually, i'll link the examples in attachment

    Attached files:  Standard looking.png
      alibaba style.jpeg
      manually price-quantity added.jpeg

  •  2,218
    WebWizards replied

    Hi Matthew,

    Thank you for purchasing our plugin,


    The table can be different for each variation (color/size), so it only shows after a variation is selected. This is not something we can change unfortunately, as the table is not for the product but for the variation.


    In B2BKing you can make the table horizontal by adding this PHP code snippet to the site:

    add_filter('b2bking_tiered_table_horizontal', '__return_true');
    
    3411586467.png


    However, I am not sure if it would look good in this situation because there are 7 price ranges, so there would not be enough space.


    Kind regards,

    Stefan

  • Matthews replied

    Thank you!

    Another question, can i center the table or move around in the product page to make it look like the alibaba one?


    Attached files:  WhatsApp Image 2023-08-14 at 6.25.23 PM.jpeg

  •  2,218
    WebWizards replied

    We may be able to achieve that with some custom CSS. I will try to see if this is possible and if I can do it.

    I need to open your site and see the product page and its code - it depends on your site and theme.


    When I go to https://zhanghair.com.br/ I see only a MANUTENÇÃO page.

    How can I open the product page, can you give me a login?

  •   Matthews replied privately
  •  2,218
    WebWizards replied

    Thank you for the login details.

    I am seeing the following if I open a product page on a laptop:


    6952724572.png


    On mobile, I see it as follows:

    5909375444.png



    I have added some CSS to your site to appearance -> customize:

    .b2bking_tiered_price_table td {
        padding: 6px !important;
        font-size: 16px !important;
        width: 100px;
    }
    .b2bking_tiered_price_table td:nth-child(2) {
        font-weight: bold;
    }
    

    It makes it larger and more similar to the one you showed:

    7505672560.png
    9176365817.png


  • Matthews replied

    Oh I see, Thank You for all support :D

    Last question, is that possible to realocate the position of price table? or to get the prices code. for example.

    in that example i put the prices manually, but can i add a code to show it automatically from the price table? 

    Thank you again for all the support!!

    Attached files:  image_2023-08-29_172303224.png

  •  2,218
    WebWizards replied

    To get the price values I don't have an easy way via code - it can be done but it is quite difficult, you would need some custom development.


    It is a better option to try to change the location of the price table. For example here where would you want to move the table?

    7505672560.png

    I can check to see if we have a way to move it there.

  • Matthews replied

    I guess after breadcrumbs and before the product title for example:

    1423032176.png

    Mobile:

    7102516135.png


  • Matthews replied

    I kinda solve one thing, but i really can't change the div position,  for example

    2389359953.png

    I was trying to get this result, but i can't put the div of tiered table before the breadcrumbs at all 

  •  2,218
    WebWizards replied

    Hi again,

    To move it there, I think the only option is with JavaScript,


    Try to add this PHP code snippet to your site:

    add_action('wp_head', function(){
        ?>
        <script>
            jQuery(document).ready(function(){
                jQuery('.summary > .b2bking_tiered_price_table').remove();
                jQuery('.woocommerce-variation-availability .b2bking_tiered_price_table').detach().insertBefore('.rey-breadcrumbs');
                jQuery('.b2bking_tiered_price_table:nth-child(2)').remove();
            });
            jQuery( '.variations_form' ).on( 'woocommerce_variation_select_change', function() {
                jQuery('.summary > .b2bking_tiered_price_table').remove();
                jQuery('.woocommerce-variation-availability .b2bking_tiered_price_table').detach().insertBefore('.rey-breadcrumbs');
                jQuery('.b2bking_tiered_price_table:nth-child(2)').remove();
            });
        </script>
        <?php
    });
    

    and this CSS:

    .single_variation_wrap .b2bking_tiered_price_table {
        display: none;
    }
    
  • Matthews replied

    Thank youu, you helped me so much 

  •   WebWizards replied privately