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
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
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.
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/