WHMCS Custom product field on Product profile page - php

I have looked all over and can't find it in the documentation through developer nor normal documentation, is there somehow or somewhere to allow displaying of all custom fields or X custom fields on a product overview page for the customer?
For instance we sell some products that have special keys in the custom product field for that product, we have added these custom fields to the product once the purchase is done. But how, other than the original email sent to the customer, do I show this to the customer when they view their product details page?
I figure it must be in the template file for product details but I don't know if there is a switch I'm missing to just turn it on or if I have to manually grab it (if it's even there to grab).

Well, just uncheck the admin only check then.
It will be displayed within the client area-> products and services -> product details.
And make sure that clientareaproductdetails.tpl contains something like following :
{foreach from=$customfields item=customfield}
{$customfield.name} : {$customfield.value}
{/foreach}

Well , if you want your product custom fields to be viewed by the customers,
all you have to do is allow that custom field on admin panel to be displayed.
You can do that, by admin panel ->setup->product & services -> related product->custom fields
There you make sure that followings are checked :
Show on Order Form
Show on Invoice
And the following is unchecked :
Admin Only

Related

Add custom Woocommerce product status usable with WC Vendors plugin

With Woocommerce I am using a plugin called WC VENDORS. I would like to add custom product statuses that can be set by the seller and that should display as "For Sale" or "Not for Sale".
The vendor or the seller can either choose them and that should be reflected in the product details.
Any help is appreciated.
Regardless of using the WC Vendors plugin, what you need is the ability to add a custom field for the Product post type. This custom field would hold the value "For Sale", "Not for Sale", or anything else you like.
I recommend using Advanced Custom Fields to create a new drop-down field associated with the Product post type. You provide the allowed values: "For Sale" etc. Once that is set up, vendors will be able to pick one of those values for each product. To display the value of the field in any template use <?php the_field('is-for-sale'); ?>, where "is-for-sale" is the slug of the new field.

Wordpress asigning product to user to show report

Wordpress, Advanced Custom Fields (ACF), Woocommerce
Hello,
currently I am working on project that is needed to manage products (Music artists) and customers (bars/lounges).
I need to solve the communication between "artist(product) being booked/purchased as product by bar/lounge(customer)" in Woocommerce.
Artists must be able to login and see if they have been booked by customer and the additional information must be shown (who is the customer (bar or lounge name), place, when, how long, must take his equipment or not).
I am thinking of asigning product id(artist) to user role - artist.
User login is generated manualy by administrator.
Artist logins by the credentials given by administrator and is able to see his own report of the information that must be shown.
Advanced custom fields custom user role and post type as woocommerce product
Is there any possiblity lets say for the purchase that is finished to be displayed not only for administrator but for user "Artist".
I am thinking of editing wp-admin/profile.php , but is it the correct way of doing it?
I will try updating the solution where I have gone so far, as soon as there will be new information.
You can add artists as vendor's, and with same name product. Now assign that product to that vendor. Whenever his product is bought he will get notification and can see stats also. As he can log in to dashboard with some restricted access. Many vendor plugins are there in market. I am giving you a sample one :
https://wordpress.org/plugins/yith-woocommerce-product-vendors/

Wordpress - common fields for posts

I added a new custom post in Wordpress and named it Products.
In admin menu in Products I have two links - All Products and New Product.
Everything works perfectly, each product has it's own permalink, fields and so on.
Question: What shall I do to have a few editable fields to be common for all products?I mean, I wish to edit a field just a single time in admin and it shall display on all product pages.
Use the Settings API.
There is no built-in way to do it at a custom post type level.
You could also define a secondary custom post type ("All Products Details") and attach it to every Product you create as a custom field on it, but then you also have to implement an automated way of setting defaults for custom fields (Here's a way to do this.).

How to add an input filed to single product page in woocommerce to store extra user comments in the order?

I am using latest wp and wc and I am trying to add a form field in the frontend single product page where the user will be able to add comments which when the order is done the data will be available under woocommerce -> orders. Have anybody done that or it's not even possible because woocommerce is pretty limited for stuff like this?

Product details page not showing in magento

Hi I am a newbie in Magento. I have created a new website, store and store view for a new category of products. New site, store, breadcrumb everything is working. But when I click on the link or the image associated with product, page not found message is displaying. Funniest part is if I am doing the same after making a search for the same product, then it will works. Please help:)
Please check following settings are done for your product
The products must be Visible in Catalog.
The products must be Enabled.
Product must have a stock Quantity.
The product must be set to In Stock.
If the product is set not to track stock, it still need to have a stock Quantity and be set to In Stock.
The product must be assigned to the target Category.
If using multi-website mode (or if you imported the products through Data Flow), the products must be assigned to the target Website.
You must refresh your “var/Cache” & rebuild all indexes from admin > system > index management
Source Magento blog

Categories