Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
A really neat feature for product templates would be the ability to hide the information from the public when using merchant fields. Certain fields could be hidden from view, this will give us the ability to have custom fields at the product level for back-end info only. Those who have access to the database, can use a third-party tool like Crystal reports to be able to run reports using these fields as queries. Just a thought.
|
|
|
|
Rank: Advanced Member
Groups: System, Administrators, Developers, Registered, HelpDesk Joined: 10/29/2018(UTC) Posts: 472
Thanks: 4 times Was thanked: 34 time(s) in 33 post(s)
|
We actually have a "Custom Fields" feature that developers often use, but there is not a built-in UI for it.
If you want to use Merchant Fields, then you should be able to delete the widget from the page and then the information won't appear for the retail user.
Thanks Katie |
Thanks for your support!
Katie Secure eCommerce Software and Hosting |
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
Hi Katie,
Not displaying the product template would defeat the purpose of using product templates in the first place, although it would benefit users if you could create a template it's hidden from view by a simple check field.
We are just going to manipulate the database tables themselves, but can you provide information on the custom fields feature used by developers.
Thanks
|
|
|
|
Rank: Administration
Groups: Admin, Administrators, HelpDesk, System, Authorized User, Developers, Registered Joined: 10/5/2018(UTC) Posts: 175
Thanks: 8 times Was thanked: 17 time(s) in 15 post(s)
|
ac_Products table has an associated ac_ProductCustomFields table which allows you add custom fields to any product. In API codes you can access the associated custom fields for any product using following code Code:
//GET THE PRODUCT ID FROM THE URL
Product product = _productRepo.Load(productId);
ProductCustomField pcf = new ProductCustomField();
pcf.Product = product;
pcf.IsUserDefined = true;
pcf.IsVisible = false;
pcf.FieldName = "Internal Tracking Number";
pcf.FieldValue = "XYZ 123";
product.CustomFields.Add(pcf);
_productRepo.Save(product);
var customField = product.CustomFields
.Where(field => field.FieldName == "Internal Tracking Number")
.FirstOrDefault();
string internalTrackingNumber = customField.FieldValue;
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close