Need to add user defined field to add product in shopp plugin wordpress - 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.

Related

Woocommerce extra Endpoints - How to create or edit the existing template?

I have a problem with Woocommerce endpoints. The problem is that I would like to edit an endpoint that comes with Woocommerce, /my-account/payment-methods/. I would like to edit or create the templates for that specific endpoint and for some others that have the same issue as the one I want to create or edit. How can I edit a Woocommerce endpoint template? I would like to do that within Wordpress if possible, else I have build a custom plugin where I can edit files if needed.

WooCommerce Default Pages NOT showing up on brand new site

I recently installed WooCommerce on a brand new Wordpress website. I went through all the steps as directed exactly in this tutorial I found on YouTube How To Create An eCommerce Website With Wordpress 2021 -ONLINE STORE- (Easy For Beginners)
I then needed to edit the cart, shop, account, etc. pages. The only problem I have is that those pages did not generate when I installed WooCommerce. They do not exist. I have tried multiple ways to solve my problem. One of which is a tool that WooCommerce has in their plugin. If I go to WooCommerce-->Status-->Tools and scroll down I have an option that says, "Create default WooCommerce pages
Note: This tool will install all the missing WooCommerce pages. Pages already defined and set up will not be replaced."
This option DOES NOT install missing WooCommerce pages.
WooCommerce-->Settings-->Advanced No Default Pages:
Appearance-->Menus-->View All No Default Pages:
How can I fix this so that I can create the needed default pages and continue creating my online store?
Thank you!
There are multiple ways of solving this issue. But following the guideline on woocommerce website, please try manual instructions below.
First make sure there no default pages, Cart, Checkout and My Account page exists, Not as publish or draft or event in trash.
Then go ahead and create new pages for each as mentioned below.
Create a cart page and paste the shortcode [woocommerce_cart]
Create checkout page and paste the shortcode [woocommerce_checkout]
Create My Account page and paste shortcode [woocommerce_my_account]
This should do the trick, Also make sure that in permalinks options available under Settings -> Permalinks and make sure Post Name is selected and click save changes.
If this does not work for you, do post a comment with exact screenshot of the issue.
Article link on official website - https://docs.woocommerce.com/document/woocommerce-pages/

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

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.

Wordpress, Woocommerce: Is it possible to get the time when a customer added a product in the cart?

I am wandering through the core files for sometimes and also tried searching in web but couldn't find any relevant hit. For some reason I need to get the time when a customer added a product in the cart. Can anyone suggest where should I look? Or any idea how can I implement this if I must. I am using Wordpress v4.1.3 along with woocommerce v2.3.5

wordpress restrict pulgin installation to those who have a unique code

i want to make an wordpress plugin, and to put it public, but i want that only the users that have a certain unique code to be able to activate it.
is there possible using the wordpress api to ask for a unique code at plugin activation (and to condition the plugin activation by this code)? I searched wordpress codex, but nothing found.
thanks a lot!
This sounds like the old akismet plugin which required users to register for an API token. You can as part of your plugin require users to enter settings and at this point prompt them to register for an API key.
See the WordPress codex for adding an options page.
Also see this example for a good example of hooking into the plugin activation:

Resources