Custom quantity button for random products
-
Hello,
My webshop displays products as following
Product 1 | Product 2 | Product 3
There are total 3 unique products, with 1000+ products with unique sku’s behind each one.
I display these with a product masonry, using randomized products so that when multiple people visit the site at once, they can all add Product 1 to their cart without getting an error message that the product is unavailable because a different person just checked out Product 1.
However, I have no idea how to add a quantity selector to his. I assume it’s possible with some workarounds and hope anyone has some idea on how to.
-
Hi @return3d
There are total 3 unique products, with 1000+ products with unique sku’s behind each one. I display these with a product masonry, using randomized products so that when multiple people visit the site at once, they can all add Product 1 to their cart without getting an error message that the product is unavailable because a different person just checked out Product 1.
I understand that you are looking to add a add a quantity selector.
To be able to suggest a probable solution or a workaround, we would need to have a better idea of your setup. Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
### WordPress Environment ### WC Version: 6.9.3 REST API Version: ? 6.9.3 WC Blocks Version: ? 8.3.2 Action Scheduler Version: ? 3.5.0 Log Directory Writable: ? WP Version: 6.0.2 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache/2.4.41 (Ubuntu) PHP Version: 8.0.11 PHP Post Max Size: 128 MB PHP Time Limit: 120 PHP Max Input Vars: 1000 cURL Version: 7.68.0 OpenSSL/1.1.1f SUHOSIN Installed: – MySQL Version: 8.0.26 Max Upload Size: 128 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.9.3 WC Database Prefix: wp_ Total Database Size: 1674.60MB Database Data Size: 1244.60MB Database Index Size: 430.00MB wp_woocommerce_sessions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 5.52MB + Index: 10.78MB + Engine InnoDB wp_woocommerce_order_items: Data: 3.52MB + Index: 1.52MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 56.56MB + Index: 17.06MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.09MB + Index: 0.11MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 33.06MB + Index: 32.58MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 17.05MB + Index: 13.03MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 20.55MB + Index: 17.09MB + Engine InnoDB wp_edd_customermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_edd_customers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_edr_answers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_edr_choices: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_edr_entries: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_edr_entry_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_edr_grades: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_edr_members: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_edr_payment_lines: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_edr_payments: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_edr_questions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_edr_tax_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_layerslider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_layerslider_drafts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_layerslider_revisions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_omnisend_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 29.27MB + Index: 5.09MB + Engine InnoDB wp_pmxe_exports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDB wp_pmxe_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_postmeta: Data: 705.00MB + Index: 205.56MB + Engine InnoDB wp_posts: Data: 50.58MB + Index: 20.97MB + Engine InnoDB wp_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_analytics_gsc: Data: 0.05MB + Index: 0.06MB + Engine InnoDB wp_rank_math_analytics_inspections: Data: 3.52MB + Index: 2.94MB + Engine InnoDB wp_rank_math_analytics_objects: Data: 7.52MB + Index: 5.55MB + Engine InnoDB wp_rank_math_internal_links: Data: 0.16MB + Index: 0.05MB + Engine InnoDB wp_rank_math_internal_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB wp_revslider_css_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders: Data: 0.03MB + Index: 0.02MB + Engine InnoDB wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_slides: Data: 0.23MB + Index: 0.02MB + Engine InnoDB wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rtafar_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_skrill_transaction_log: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_social_users: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 18.56MB + Index: 10.50MB + Engine InnoDB wp_term_taxonomy: Data: 0.08MB + Index: 0.11MB + Engine InnoDB wp_termmeta: Data: 1.47MB + Index: 0.11MB + Engine InnoDB wp_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_usermeta: Data: 7.52MB + Index: 7.98MB + Engine InnoDB wp_users: Data: 0.42MB + Index: 0.42MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_wc_admin_notes: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 1.52MB + Index: 1.80MB + Engine InnoDB wp_wc_download_log: Data: 2.52MB + Index: 4.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.25MB + Index: 0.31MB + Engine InnoDB wp_wc_order_product_lookup: Data: 3.52MB + Index: 6.06MB + Engine InnoDB wp_wc_order_stats: Data: 3.52MB + Index: 3.53MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 15.56MB + Index: 11.56MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 5.52MB + Index: 7.06MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.17MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wcfm_affiliate_orders: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_wcfm_affiliate_orders_meta: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_wcfm_daily_analysis: Data: 41.58MB + Index: 38.63MB + Engine InnoDB wp_wcfm_delivery_orders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wcfm_delivery_orders_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_detailed_analysis: Data: 157.70MB + Index: 0.00MB + Engine InnoDB wp_wcfm_enquiries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_enquiries_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_enquiries_response: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_enquiries_response_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_fbc_chat_rows: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_fbc_chat_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wcfm_fbc_chat_visitors: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_fbc_offline_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_following_followers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_orders: Data: 1.52MB + Index: 0.30MB + Engine InnoDB wp_wcfm_marketplace_orders_meta: Data: 6.52MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_product_multivendor: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wcfm_marketplace_refund_request: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_refund_request_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_reverse_withdrawal: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_reverse_withdrawal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_review_rating_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_reviews: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_reviews_response: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_reviews_response_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_shipping_zone_locations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_store_taxonomies: Data: 0.11MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_vendor_ledger: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_withdraw_request: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_marketplace_withdraw_request_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_membership_subscription: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wcfm_messages: Data: 11.52MB + Index: 0.00MB + Engine InnoDB wp_wcfm_messages_modifier: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_messages_stat: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_support: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_support_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_support_response: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wcfm_support_response_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfconfig: Data: 0.52MB + Index: 0.00MB + Engine InnoDB wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilemods: Data: 11.55MB + Index: 0.00MB + Engine InnoDB wp_wfhits: Data: 0.28MB + Index: 0.08MB + Engine InnoDB wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfissues: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp_wfknownfilelist: Data: 6.52MB + Index: 0.00MB + Engine InnoDB wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wflogins: Data: 0.44MB + Index: 0.14MB + Engine InnoDB wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_debug_events: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpr_rocket_cache: Data: 2.50MB + Index: 3.19MB + Engine InnoDB wp_wpr_rucss_used_css: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_wt_iew_action_history: Data: 0.03MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_mgdp_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_mgdp_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wtmgdp_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yikes_easy_mc_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### attachment: 33998 blocks: 30 custom_css: 3 customize_changeset: 50 download: 2 edd_payment: 1 edr_course: 1 edr_lesson: 1 edr_membership: 3 featured_item: 8 filter-field: 1 filter-set: 1 mc4wp-form: 1 nav_menu_item: 64 ninzio_footer: 2 ninzio_gallery: 15 ninzio_megamenu: 1 ninzio_testimonial: 3 page: 153 post: 23 product: 32638 revision: 429 shop_coupon: 78 shop_order: 35154 shop_order_refund: 64 thegem_client: 5 thegem_gallery: 3 thegem_pf_item: 14 thegem_qf_item: 10 thegem_team_person: 2 thegem_templates: 4 thegem_testimonial: 6 tribe_events: 1 tribe_organizer: 1 tribe_venue: 1 user_request: 2 ux_template: 10 wcfm_vendor_groups: 1 wp_global_styles: 2 wpcf7_contact_form: 9 wpcode: 5 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (23) ### All-in-One WP Migration: by ServMask – 7.65 HTML in Category Descriptions: by Arno Esterhuizen – 1.2.3 Autoptimize: by Frank Goossens (futtta) – 3.1.2 Contact Form 7: by Takayuki Miyoshi – 5.6.3 Filter Everything?— WooCoomerce Product & WordPress Filter: by Andrii Stepasiuk – 1.6.8 Site Kit by Google: by Google – 1.83.0 WPCode - Insert Headers, Footers, and Code Snippets: by WPCode – 2.0.2 Maintenance: by WebFactory Ltd – 4.06 Nextend Social Login: by Nextendweb – 3.1.6 PayOp: by – 2.0.3 Better Find and Replace: by CodeSolz – 1.4.1 REVIEWS.io for WooCommerce: by Reviews.co.uk – 0.4.6 Search & Replace: by Inpsyde GmbH – 3.2.1 Rank Math SEO: by Rank Math – 1.0.97 Tidio Chat: by Tidio Ltd. – 5.3.0 WooCommerce Conversion Tracking: by weDevs – 2.0.10 Country Based Payments for WooCommerce: by Ivan Paulin – 1.4.2 WooCommerce Stripe Gateway: by WooCommerce – 6.7.0 WooCommerce: by Automattic – 6.9.3 WP Mail SMTP: by WPForms – 3.5.2 WP Rocket | Disable Google Font Optimization: by WP Rocket Support Team – WP Rocket: by WP Media – 3.12.1 Easy Forms for Mailchimp: by YIKES Inc. – 6.8.6 ### Inactive Plugins (4) ### MC4WP: Mailchimp for WordPress: by ibericode – 4.8.10 WP 2FA - Two-factor authentication for WordPress: by WP White Security – 2.3.0 WP All Export: by Soflyy – 1.3.7 Yoast SEO: by Team Yoast – 19.7.1 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Settings ### API Enabled: ? Force SSL: – Currency: EUR (€) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – ### WC Pages ### Shop base: #229 - /shop/ Cart: #230 - /cart/ Checkout: #231 - /checkout/ My account: ? Page does not contain the [woocommerce_my_account] shortcode. Terms and conditions: #2572 - /terms-of-service/ ### Theme ### Name: Flatsome Child Version: 3.0 Author URL: Child Theme: ? Parent Theme Name: Flatsome Parent Theme Version: 3.15.7 Parent Theme Author URL: https://www.uxthemes.com/ WooCommerce Support: ? ### Templates ### Overrides: flatsome/woocommerce/archive-product.php flatsome/woocommerce/cart/cart-empty.php flatsome/woocommerce/cart/cart-shipping.php flatsome/woocommerce/cart/cart.php flatsome/woocommerce/checkout/form-checkout.php flatsome/woocommerce/checkout/form-coupon.php flatsome/woocommerce/checkout/terms.php flatsome/woocommerce/checkout/thankyou.php flatsome/woocommerce/content-product-cat.php flatsome/woocommerce/content-product.php flatsome/woocommerce/content-single-product.php flatsome/woocommerce/content-widget-product.php flatsome/woocommerce/global/breadcrumb.php flatsome/woocommerce/global/quantity-input.php flatsome/woocommerce/global/wrapper-end.php flatsome/woocommerce/global/wrapper-start.php flatsome/woocommerce/loop/loop-end.php flatsome/woocommerce/loop/loop-start.php flatsome/woocommerce/loop/pagination.php flatsome/woocommerce/loop/result-count.php flatsome/woocommerce/loop/sale-flash.php flatsome/woocommerce/myaccount/form-login.php version 4.1.0 is out of date. The core version is 6.0.0 flatsome/woocommerce/myaccount/navigation.php flatsome/woocommerce/notices/error.php flatsome/woocommerce/notices/notice.php flatsome/woocommerce/notices/success.php flatsome/woocommerce/product-searchform.php flatsome/woocommerce/single-product/photoswipe.php flatsome/woocommerce/single-product/price.php flatsome/woocommerce/single-product/product-image.php flatsome/woocommerce/single-product/product-thumbnails.php flatsome/woocommerce/single-product/rating.php flatsome/woocommerce/single-product/related.php flatsome/woocommerce/single-product/review.php flatsome/woocommerce/single-product/sale-flash.php flatsome/woocommerce/single-product/share.php flatsome/woocommerce/single-product/short-description.php flatsome/woocommerce/single-product/tabs/tabs.php flatsome/woocommerce/single-product/title.php flatsome/woocommerce/single-product/up-sells.php flatsome/woocommerce/single-product-reviews.php flatsome/woocommerce/single-product.php flatsome/woocommerce/content-product_cat.php Outdated Templates: ? Learn how to update ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ? Next scheduled: 2022-09-22 07:03:13 +02:00 Options: ? Notes: 105 Onboarding: completed ### Action Scheduler ### Complete: 58,564 Oldest: 2022-08-21 14:40:42 +0200 Newest: 2022-09-21 13:06:36 +0200 Failed: 372 Oldest: 2020-07-26 00:06:24 +0200 Newest: 2022-09-21 12:53:53 +0200 Pending: 16,695 Oldest: -0001-11-30 00:17:30 +0017 Newest: 2022-10-13 02:00:24 +0200 ### Status report information ### Generated at: 2022-09-21 13:19:57 +02:00
To clarify, what I am looking for is this:
I display a product image with a buy button below it. Pressing the button below it will add 1 random product from a specific category to the cart. If the quantity is two, it has to add 2 random products the same specific category to the cart.
Hi @return3d
I display a product image with a buy button below it. Pressing the button below it will add 1 random product from a specific category to the cart. If the quantity is two, it has to add 2 random products the same specific category to the cart.
The functionality you are looking for will require custom development. To achieve this, I would suggest hiring a developer locally or contact our WooExperts here: https://woocommerce.com/experts/.
Thank you!
- The topic ‘Custom quantity button for random products’ is closed to new replies.