• Good Evening All,

    Wonder if anyone can help.

    I have currently been setting up a store for my business in the last week.

    I wanted to use Woocommerce but only for the payment functions so I began designing the shop in my own individual way.

    Everything was going fine and I linked the cart number IDs to the checkout etc. However, I have come across one major problem and that is my shop product page (example given above) does not have a ‘quantity button’, is there anyway I can manually add one that links up to the woocommerce checkout page?

    I could leave the ‘add to cart’ page there if need be but I really wanted to bypass this and go straight to the checkout page.

    Finally, some background about me. I used Elementor to design this site and I have no knowledge of coding.

    Look forward to any suggestions and have a wonderful evening.

    Kindest Regards,

    Mark

    • This topic was modified 4 years, 10 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @broom80

    > I wanted to use Woocommerce but only for the payment functions so I began designing the shop in my own individual way.

    How and why would you do that ?
    Do you mean you’re just not using the default theme ?

    The woo api is available in their online docs here :
    https://docs.woocommerce.com/wc-apidocs/source-function-woocommerce_quantity_input.html#1634-1681

    You would need to add this to your template.

    There is a configurable field in the product data to toggle the quantity box :

    View post on imgur.com

    Thread Starter broom80

    (@broom80)

    Good Morning Corrina,

    Thank you for your reply and hope you are well.

    How and why? Well I just designed the shop front and product page using a blank page on Elementor, I liked the design of other shops so adapted them.

    I’ve added some basic text in the snippet plugin to bypass the cart and go straight into the checkout.

    So what I am asking is that can a quantity button be added to each product page that links up with woocommerce and would effectively add it straight to the checkout page?

    I really look forward to your reply and anyone else who could reach out to me.

    Look forward to your replies.

    Kindest Regards,

    Mark

    @broom80

    Right. So did you already try to add this to your checkout template ?
    https://docs.woocommerce.com/wc-apidocs/source-function-woocommerce_quantity_input.html#1634-1681

    Thread Starter broom80

    (@broom80)

    Hi Corrina,

    Thank you so much for sending this through. Yeah had a look but unfortunately my knowledge of coding is limited.

    Could you let me know where I need to add the code if at all? I have the snippet plugin so could add it to that?

    Thank you again for your help up to this point. Look forward to your reply.

    Kindest Regards,

    Mark

    @broom80

    Not really.
    There are several methods to approach the customization you have described for your site. So without knowing your approach, you would need to provide a lot more detail into what you have changed specifically. This kind of leads into my earlier question re: why you take this approach. If you were my client, it’s definitely a risk I would have advised against.

    You would need to describe what you did here more thoroughly –>
    I wanted to use Woocommerce but only for the payment functions so I began designing the shop in my own individual way.
    Everything was going fine and I linked the cart number IDs to the checkout etc.

    Especially how you are over-writing the templates.
    And if have been using hooks in your functions file on the existing WooCommerce objects and classes.

    Thread Starter broom80

    (@broom80)

    Hi,

    Sorry for the lack of info, very new to all this. I didn’t really have an approach to doing it this way it just manifested.

    I will try and explain the process below:

    Individual Light Page (eg https://theurbanlightcompany.com/blackbrasswalllight1/)
    |
    Client Clicks on ‘Add to Basket’
    |
    Add to basket url https://theurbanlightcompany.com/cart/?add-to-cart=3319
    Cart ID above is from the woocommerce product.

    Hope this explains a bit more and I just want to know if it is possible to add a quantity button on the Individual Light Page that links up to checkout page.

    Any other information please ask.

    Thanks,

    Mark

    @broom80

    That’s not really what I meant.
    Did you use this method to over-write the template files from WooCommerce :
    https://docs.woocommerce.com/document/template-structure/

    or did you just bake the Add to Cart functionality into one of your Astra templates like this :
    https://wpastra.com/docs/shop-woocommerce-2/

    Bc I see you are not running a Child theme :
    https://wpastra.com/docs/install-astra-child-theme/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can I add quantity button?’ is closed to new replies.