• Resolved adamjedgar

    (@computersimulatorscom)


    Hi guys,
    I wish to display all of my woocommerce products in a list. However,

    The only option i want is for the “add to cart” button to be clickable thus adding the product to cart. I do not want any of the products to be selectable thus taking the user to another page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • mother.of.code

    (@imazed)

    The Mother of Code

    Hi there! I’m not 100 sure I understood what you’re looking for correctly – are you looking for a way to make the cart either not adjustable, or skip the cart page completely?

    In case of the latter, you can skip the cart by adding a bit of code. This page should help: https://wpbeaches.com/skip-cart-go-straight-to-checkout-page-in-woocommerce/

    Thread Starter adamjedgar

    (@computersimulatorscom)

    hi and thanks for your reply,

    essentially I have created a removalist volume estimator (instead of a woocommerce shop where one makes purchases).

    The product prices are not monetary amounts, rather volumes in cubic metres. I have already got the dollar prefix changed to “m” (for metres). Eventually I will recode this to show cubic meters.

    In woocommerce, I want the products to be displayed in a list…however, I don’t want the user to be able to click on the product and then be taken to another page with product details (that is not relevant to a users needs for this).

    Instead, all that should happen is that when a customer sees an item they wish to add to the total volume, they simply click on “Add to cart”

    This process gets repeated until everything in their house inventory has been added to the cart. They can then go to the cart and see the total volume of all goods selected.

    • This reply was modified 5 years, 7 months ago by adamjedgar.
    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @computersimulatorscom This sounds like you would need to modify the theme and/or template functions to not create the links for the products. You would need to start with the /woocommerce/templates/content-product.php template and work your way from there.

    Due to we cannot assist with custom development, I am setting this thread to resolved. If you have further questions feel free to update it to not resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Products as a non clickable list’ is closed to new replies.