Frequently Bought together + Quantity Selection

This topic has 6 replies, 2 voices, and was last updated 1 years, 6 months ago ago by Rose Tyler

  • Avatar: Kevin
    Kevin
    Participant
    April 25, 2023 at 12:14

    Hello Team,

    So finally the feature works but there is some issue with the calculations.

    1. In Screenshot 1, I added all the products but as you can see the amount and the total does not match. And also the quantities are mixed so the pricing is incorrect.

    2. In screenshot 2, See the amount and the total amount mentioned.

    3. In screenshot 3, you untick one and then it corrects the prices. But after you add that to the cart then the quantity and the total is not correct.

    Screenshot 1: https://prnt.sc/48Gd6qGD50O5
    Screenshot 2: https://prnt.sc/FfReM8ZWPQxx
    Screenshot 3: https://prnt.sc/YMJNh7BSd45c

    Regarding the quantity. We have more than 500-700 SKUs we use Excel to update the stocks. The stock numbers are usually 5, 10, 59, etc. But with quantity selection, I have to add 1-5, 1-10, 1-59, etc.

    Can this be done automatically? For example, if I add 5 stocks then in the backend it auto writes to 1-5 and if the stocks are 0 then make it 0-0. And also keep the limit to 1-20 even if the stocks are above 20. Let me know if this is possible. Thank you.

    5 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 25, 2023 at 13:40

    Hello, Kevin,

    Thank you for getting in touch with us.

    Try to change the Quantity Type via Theme options > WooCommerce > Shop elements > Quantity and test how it works then.
    Let us know the results.

    Also, provide URL of the mentioned product, temporary wp-admin, and FTP access, so we can take a closer look at the situation on your site.

    To provide wp-admin access, you can create a new user account with administrator role via the Dashboard, and provide us with the username and password via the Private Content area.
    To create FTP access, please contact your hosting provider for assistance.

    Kind Regards,
    8theme team

    Avatar: Kevin
    Kevin
    Participant
    April 26, 2023 at 06:28

    So the input method of quantity works fine, it’s only when I make it to the selective method is there I am facing issues.

    I like the selective method as I can keep the limitations like 1-5 or 1-20 even if the stocks are 50 60pcs. But my issue with managing stocks in the selective method is to add “1- (the stock no.)”. Let me know if we can figure out a way to fix this when importing and exporting in bulk.

    Login details are mentioned in the private area.

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 26, 2023 at 08:59

    Hello, Kevin,

    Thank you for your response.

    About “Let me know if we can figure out a way to fix this when importing and exporting in bulk.“ – there are no quick solution for this, but you may check the solution we made for you below.

    Also, you should know that your request is referring to an additional customization that is out of our basic support scope. In case you need some modification of the code, we can recommend you contact with customization service.

    We really tried to fix the issue with minimum quantity of products shown in the Frequently bought together section, but it is currently impossible due to no filters existing in WooCommerce plugin’s code to filter the minimum purchase quantity that is 1 by default -> https://prnt.sc/htwSb-LUsbDx . So the prices for some products are not correct. https://prnt.sc/Ek0qqJNJXbkr and left as multiplying of minimum quantity x price = 1 x price

    After buying products from frequently products the customers goes to the cart page and there were broken calculations -> https://prnt.sc/48Gd6qGD50O5 because of «Lazor bold …» product had only value 4 in select quantity. To prevent such situation we found the next way (of course it is not perfect but much better to have this one rather than broken calculations). Here are steps to reproduce:

    1/ Customer buys products from the FBT (Frequently bought together) section -> https://prnt.sc/_JdohMuhggcV

    2/ He automatically goes to the cart page and now he will see the correct calculations because each of those products has minimum WooCommerce quantity that is «1» -> https://prnt.sc/QYMgLitsI6Fb

    3/ Of course, client has options to change the quantity for any of those products -> https://gyazo.com/d8b99e8eaa81725a574ded4b9c8c52c4

    4/ Only in case he would like to change the quantity of «specific» product such as «Lazor bold …» he will have value – “1“ and other options set for this product quantity. On increasing quantity, he will have the next result -> https://gyazo.com/8185e91d2b64a9faca64ea707bdc9cee . In simple words, he can increase the quantity for this product but there is no way to decrease it anymore for such ones.

    Code added as new Code snippet named «Fix quantity select values»:

    add_filter('etheme_quantity_ranges', function($ranges, $args, $_product) {
    $stock_quantity = $_product->get_stock_quantity();
    
    if ( $stock_quantity ) {
    
    $stock_quantity = $stock_quantity > 20 ? 20 : $stock_quantity;
    
    $ranges = $args['min_value'] . '-' . $stock_quantity;
    
    }
    
    if ( is_cart() || is_checkout() ) {
    
    $ranges = (string)$args['input_value']."\n".$ranges;
    
    }
    
    return $ranges;
    
    }, 10, 3);

    Backend: https://prnt.sc/IoBRO4Hey4AM

    We know that this solution is not perfect but that one is only possible for this time. In case you would like to disagree with such solution you have a few more options:

    1/ Disable select type and use input one that works normally for any cases.

    2/ Install a 3rd-party plugin for quantity select type and check with it if it works better.

    3/ Install a 3rd-party plugin for Frequently bought together – but we are sure it won’t fix the issue with min quantity options.

    Hope you understood the situation described to you above.

    Waiting for your reply!

    Kind Regards,
    8theme team

    Avatar: Kevin
    Kevin
    Participant
    April 27, 2023 at 08:23

    Thank you so much for your support. I just discovered that there is one more option that eliminates the need to add 1- (Total number). I guess the 1- (Number) is to keep limitations for the drop-down.

    As you can see here: https://prnt.sc/c4pB2NgMYKj9
    We can directly add the stock number so it will take auto 1- (Stock available no. ).

    Also, I am trying to eliminate more reliability on third-party plugins; most of the features you have added are all that I needed. So, really appreciate the time you have taken to find a temporary workaround. Thank you.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 27, 2023 at 09:39

    Hello, Kevin,

    You’re welcome!

    I would be glad to help you with new questions, however, please note that additional customization is out of the scope of our basic support.

    If you are interested in paid customization services, please submit a customization request to the WPKraken team at the following link: https://wpkraken.io/?ref=8theme.

    We hope for your understanding.

    Kind Regards,
    8theme team

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.