I'm trying to add more Vendor Detail into Stock Item and set it to default,
Here what I archived, it's add new line but not set to default
Please find the below steps for setting the default vendor through import scenario.
Vendor Template
Import Scenario-Field Mapping
[Stock Items Screen][3]
Related
I'm trying to use a Contract API application to edit and maintain vendor Locations.
I'm slightly confused on how I add a detail to the web service endpoint. I can easily add fields, but it seems when I try to add a new element it's not actually loading anything.
Here is what I did:
Added Object with name "Locations" and type "Detail"
Under that, added a top level call "Location" with screen id "Customer Locations"
Added fields to that
I used this VB code:
VendorFind = soapClient.Get(New Vendor With {.ReturnBehavior = ReturnBehavior.All,
.VendorID = New StringSearch With {.Value = "V01026"},
.Locations = New Locations() {New Locations With {.ReturnBehavior = ReturnBehavior.All}}})
It compiles and works but doesn't load the locations.
Anyone have any thoughts on how I achieve this?
For your custom endpoint you might want to use the 'Populate' option on the web service endpoint screen and select the required fields . Use the Vendor Location summary to get header information like vendor, location name etc and then select the details by selecting the correct mapped object for instance "General Info--> Location Contact " . This works fine and populates location details correctly for a selected vendor using postman tool . I am not much familiar with Vb but I suppose the issue might be in the way the endpoint entities are extended.
There is only one -1 Action Per Import Scenario.
Adding any new ones will get automatically cleaned up by the import scenario.
This is a severe limitation for automation purposes and if the BLC can be customized to override this limitation... I think the import scenario's instructions should still run just fine... Any idea how to customize it?
Just like Gabriel mentioned in the comments to import Master-Detail records you must have one line per detail with each line repeating the master record's information.
You cannot with only one line import more that one entry and a detail is considered an entry.
Thought if you really want to do it with only one call you might want to take a look at the contract based API. With it, it is possible to upload a complete Master details record, thought it will be only one at the time.
I have created customization which has 4-5 different tabs and each tab has various groups. Customization is for Stock Item screen (ScreenId - IN202500). I have set all its required properties such as StartColumn=True, StartGroup=True, GroupCaption, etc. However, when I am in Import Scenario (System > Integration > Manage > Import Scenarios) for Stock Items and want to map these new fields, it is NOT showing different groups for all tabs such as
Tab1->Grp1
Tab1->Grp2
Tab2->Grp1, etc.
Instead it is showing all fields in single object under Tab1->Grp1->.
I found the solution. All fields has to be created under FormView tag and then Column and Group. Hence it will display these fields in Import Scenario.
I have created a custom promotion in hybris by overriding the default ProductPercentageDiscountPromotion. But I was wondering how to display the new custom promotion only and not the old original one on Product Cockpit.
I found there are two files
1. wizardConfig_PromotionUserRestrction.xml
2. editorArea_Category.xml
These files contain a property "AbstractPromotionRestriction.promotion" which has its parameter entry "excludeCreateTypes" that contains the list of Promotions to exclude eg:
value="ProductBundlePromotion,ProductOneToOnePerfectPartnerPromotion..."
When I write the ProductPercentageDiscountPromotion name in this list and initialize the Hybris system from Admin console, then this old promotion is not visible in Product Cockpit. But I cannot initialize, since it will erase all the project data. I have to update the Hybris system to do this, but it's not working. Any ideas?
PS: I don't have authority to post this question on Hybris Forum.
Many thanks!
Updates in the cockpit xml files (like configuration for editor area, wizard, etc) are successfully applied after:
run an update in /hac + set the check-box for product cockpit during that;
reset user settings in cockpit menu.
I have created a module called login_to_see_price. This module is used to hide the price of product if user is not not logged in. The module is working fine in admin part. But i am not getting any idea of implementing the settings of the module in all product.
Module have form fields
status which can be 0=>disable 1=>enable
language (the sentence that is used instead of price) => Login to see price
I have kept these value in setting table.
So, when admin enable the setting i.e. status=1
then in froentend in place of product price i needed to display language=Login to see price .
How can i implement this ?
You can do this in each controller where you want to implement this feature. You can do like
if($this->config->get('your_module_status')){
login to see price and other code
}else{
default functionality
}
Opencart Default provide this feature.
Edit setting / option tab under the Account Title there is Option Login Display Price.