Out of the box, WooCommerce will create a shop page featuring a catalog of products and the products are accessible through the REST API at /wc/store/products. For my use case this is precisely what I want to avoid: users should not be able to browse the products by any means. Instead I'll use application logic to programmatically add products to the user's cart when appropriate.
My solution would be to
Disable the /wc/store/products REST API
Make sure there's no shop page set under settings
My questions are (1) is this solution is adequate (2) will disabling /wc/store/products have unforeseen consequences?
I found that it's possible to set the catalog visibility of a product as 'hidden' which is an adequate solution for my use case.
Related
we need to set the catalog_visibility field (as named in postman) in woocommerce (basic plugin), but it does not seem to work the way we go about it. In wordpress it is the setting under single product on the right side, just below “published on”.
We use an ERP system to push the products to our woocommerce shop and need to find the correct article attribute (we then connect the ERP field with the woocommerce attribute and magic happens ... normally)
When I check the product with postman, the field we want to set is called catalog_visibility.
We thus created a field in our ERP with the exact values visible/catalog/search/hidden as we see in postman and tried assigning the article attribute catalog_visibility and also _visibility (but I think this one is for the extension plugin also called "Catalog Visibility"). Neither one worked.
Interestingly, we found out, that both of the attributes we tried to use (_visibility and catalog_visibility) are now shown on the shop's product page (as a table) under a tab called “additional information”, with the value we tried to transfer.
In the backend it is pushed in to the product “properties” tab.
So it seem the values are pushed into woocommerce, but not where and how we want them to.
Has anyone any idea, which attribute (the name) we need to use, to set the visibility of the product?
Thanks!
I'd like to allow anyone to pay for their initial subscription order without having to log in.
I've tried adding this snipet to my website but it doesn't work:
https://www.businessbloomer.com/woocommerce-allow-to-pay-for-order-without-login/
It works for orders but not for parent orders of a subscription.
After exploring WooCommerce Subscriptions Core code I'm convinced that this it not possible. The plugin enforces that the user needs to be logged in to pay for the parent order of a subscription.
See wcs-cart-initial-payment
The solution mentioned in the article you linked to only works for regular WooCommerce orders and not for subscriptions, which are a separate product type in WooCommerce and have different payment requirements.
You may find this guide on guest checkout for WooCommerce subscriptions helpful:
https://simongondeck.com/woocommerce-subscriptions-guest-checkout/
Or, if you are more of a visual learner, follow along with this video tutorial that outlines everything described in the article:
https://www.youtube.com/watch?v=twqdtHu5TqQ&ab_channel=SimonGondeck
Here is what I am trying to do - a website with online courses using WooCommerce and Elementor. I want to have a page called "My Courses" where customers can see only the courses they've purchased.
I'm not using any LMS.
I will use the plugin Dynamic Conditions for Elementor to show or hide a widget.
I know that WooCommerce has a function to check if a user has bought a specific product.
I don't know how to make a connection between the two, though. That is my problem.
Dynamic Conditions uses Elementor's dynamic tags system to check against. How can I use the WC's function to check if the user bought the product and only if he/she did, then to show them the widget with the course page?
Thanks a lot for any answers with ideas or directions on how to solve this problem!
Using Dynamic.ooo you can benefit from "Visibility" extention (comes with Dynamic.ooo/ don't need seperate plugin installation) which allows you write your customized conditions (in PHP). I myself have not used the "Custom Condition" becuase I don't know much about PHP, but if you know the function and just need to connect them i think that'll do.
I am new to woocommerce plugin development. I am making a website for a taylor, in which it is required to have custom sizes for different shirts, etc. My question is that how could I add the custom functionality like this, in which customers could add their own sizes and we can receive their orders.
I have searched all over the internet but could not find the good resource which could solve my problem. For the reference I am uploading the following image of custom order page
Are these measurements automatically incorporated in the price? or is your system just for taking orders online and the tailor replies with a custom price quote?
Easiest way is to just add this to the checkout process.
http://www.globussoft.com/how-to-add-custom-field-on-woocommerce-checkout/
I want to develop a dynamic web page where admin can add their product specification and images and other promotio offers.
I read about nopcommerce shopping cart with asp.net.I want to know to remove cart functionality from nopcommerce to achieve my goal..Or is it better to use pure coding..
In admin: You go to Configuration->Access Control List
Then just simply uncheck "Public store. Enable shopping cart"
And in regards to Ciwan's comments, I found many of my clients want their site like this. Such as a liquor store that simply wants to display prices but not sell online.
nopCommerce is an e-Commerce solution. Without Cart Functionality, it will be like a Photographer without a Camera !
If you simply want dynamic content displayed on a page, then go for a CMS, I personally like Umbraco, but that has quite a steep learning curve.
you need do some code fixes set ShoppingCartEnabled = false in
//Nop.Web/Controller/CommonController
In HeaderLinks Action
and second one to disable to "Add To Cart" button by setting
//Nop.Web/Controller/CatlogController
In PrepareProductVariantModel method
you can also do all these setting rom admin area Admin-> Configuration-> Setting -> AllSetting
in admin it will do all changes tempery. if you want to do it permanently then modified
InstalltionService (Nop.Service/Installtion/InstalltionService.cs)
Note:This is applicable to version 2.0 to 2.65