How to have two registration forms in WooCommerce? one for regular customer and two for membership - wordpress

As per subject line, I want to have two forms in my WordPress website that has a WooCommerce store integrated. I want one of the form(billing form) as a default and two for membership. I am using YITH WooCommerce Subscription plugin for subscription.
Please let me know if you have any questions. Thanks.

You can build your own regular form either in a page template and add create user processing code logic in there or using Gravity Form plugin with its User Registration add-on.
For subscriptions, you can set up the subscript products and when users go to the checkout place, WooCommerce Subscription plugin has the option in the backend to create users on buying products. I think it's checked by default. If not, go to the checkout tab of the WooCommerce settings.

Related

Membership custom message

I searched a lot in this site and in google but unfortunately I wasn't lucky to find the answer. I have a digital downloads marketplace via Woocommerce and membership. I sell those products as a single product downloadable or via membership. I managed to add a custom message when a user has bought my single product, but I can't find how I can add one custom message ONLY for my membership users. Example to be a small text under 'Purchase/Download' button which says: Download for $0 this item. But I need this custom message to be available only for active membership users. Is this possible? Can someone post a code so I can add in functions.php ?
all the best,
Fidan

Need to add user defined field to add product in shopp plugin wordpress

WordPress: Version 4.4.2
Shopp Plugin
I Need to add a user defined field to add product in Shopp plugin WordPress which will be used for XML generation and further for communication with one of the Payment Gateways.
Tried for clues surfing online but didn't find any.
Any help would be appreciated.
Thanks.
If you want to add fields to the checkout form that are specific to the payment gateway that is used you could take a look at this filter
shopp_checkout_gateway_inputs
This should be added to payment gateway file you are creating.
If you are looking for collecting additional order info on the checkout page you could use this bit of code
shopp('checkout.order-data')
This should be added to checkout.php.
If you are looking for collecting additional customer info on the checkout page you could use this bit of code
shopp('checkout.customer-info')
This should be added to checkout.php.

Gravity Forms and WooCommerce

Our team is working on a WooCommerce project for one of our clients.
They are event organizers and work with volunteers who sell tickets on their behalf.
They do not want volunteers to have access to the backend of their site, so we are trying to find a way to create an order form using Gravity Forms that will record the sale as desired and communicate product depletions to the Product database in WooCommerce.
Any thoughts on how this might be accomplished?

Hide WooCommerce data from other admins in Wordpress?

I have to create an admin user for a marketing company in my Wordpress website but I do not want them to have access to WooCommerce data. In other words, they should not be gain information regarding sales data, customer names, email, address and so on. However, they need to have access to themes and plugins.
Is there a way to hide WooCommerce data from admin view or create a user account with all the admin privileges except WooCommerce access?
Please help,
Thank you
You could create a new role in code and add specific capabilities to it. But it's much easier to use a role editor plugin like User Role Editor
Just create a new role and assign the capabilities you want while leaving out those of Woocommerce.

How to log in a user into Magento from a .NET web application

I'm developing an e-commerce product using Asp.Net and C#. I would like to use the checkout pages from Magento.
So I'm using Magento SOAP API in order to:
Create a product.
Create a customer.
Create a cart.
Call shoppingCartCustomerSet to associate the cart with the customer.
Add the product to the cart and then call shoppingCartProductMoveToCustomerQuote.
I've learned that in order for the call to shoppingCartProductMoveToCustomerQuote to work out, the customer need to be signed in. I would like to single sign on the customer and redirect to the cart page of Magento, and I'm looking for the an easy and elegant way to do it.
The options I can think of are:
Use OAuth to log in the customer to Magento, but in this scenario the customer will have to enter their password, which they don't even know... I guess I can try to populate it somehow, but I think there should be an easier way.
Use PHP code I found in a similar questions (Magento customer login programmatically, Log user into Magento programmatically), and create my own SOAP API.
Can you suggest any other solution?

Resources