Public Ticket #3441360

Tier Price List

Closed
Comments
1 Ticket
Matthews started the conversation 3 years ago on August 21, 2023 at 7:22pm

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

2,762
KingsPlugins replied 3 years ago on August 21, 2023 at 8:07pm

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

1
2,762
KingsPlugins replied 3 years ago on August 24, 2023 at 1:01am

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?

2,762
KingsPlugins replied 3 years ago on August 26, 2023 at 3:32am

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


1 Ticket
Matthews replied 3 years ago on August 29, 2023 at 8:23pm

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!!

2,762
KingsPlugins replied 3 years ago on August 30, 2023 at 2:44am

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.

1 Ticket
Matthews replied 3 years ago on September 1, 2023 at 2:33pm

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,762
KingsPlugins replied 3 years ago on September 3, 2023 at 4:03am

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;
}

Sign In