Home Forums WoodMart support forum Set Default Variation Price & AJAX Cart on Shop Grid

Set Default Variation Price & AJAX Cart on Shop Grid

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #729669

    anisur.bfd
    Participant

    Hi Woodmart Support Team,

    I need help customizing Variable Products to behave exactly like Simple Products on the Shop Page/Grids. I want to rely 100% on native theme settings or WooCommerce core logic to avoid future update bottlenecks.

    1. Display ONLY the Default Variation Price (Shop Grid & Sticky Cart)

    I want to completely hide the default WooCommerce price range (e.g., $10 – $50) globally.

    The system should dynamically check the “Default Form Values” (e.g., 50ml) for that variable product and display ONLY the price of that default variation on the Shop Grid and Sticky Add to Cart.

    Question: Is there a native Woodmart setting to display the Default price instead of the Lowest price? If not, what is the cleanest, future-proof code snippet to achieve this?

    2. Native AJAX “Add to Cart” on Shop Grids (Bypass “Select Options”)

    I want the button on the product grid to say “Add to Cart” instead of “Select Options”.

    When a user clicks this “Add to Cart” button on the grid, I want it to instantly add the default variation to the cart via Woodmart’s native AJAX and slide out the side-cart.

    Constraints: It should NOT redirect to the Single Product Page, and it should NOT open the Quick Shop popup (I want one-click behavior). Users should only select variations manually on the Single Product Page.

    Can this be achieved using Woodmart’s native settings? If custom code in functions.php is strictly required, could you provide the most optimized, Woodmart-compatible snippet?

    Thank you!

Viewing 1 post (of 1 total)