Files
ofbiz-framework/specialpurpose/googlebase/widget/GoogleBaseForms.xml
T
Ashish Vijaywargiya fc45518ad6 Applied patch from jira issue OFBIZ-3149 - Improve Category association in eBay.
Recently multi store support for Ebay has been implemented. For the multi store support we need ProductStore > ProdCatalog > ProductCategory association. For EBay we define specific categories of type EBAY_CATEGORY, only those products that are associated to an EBay category are eligible for eBay export. In the current implementation there is no proper prodCatalogCategoryTypeId which can be used to associate eBay category to ProdCatalog, one way to associate an eBay category to ProdCatalog is as a PCCT_BROWSE_ROOT category, thus we have two categories associated to the catalog as BROWSE_ROOT, the other one is for online store. Technically, this is wrong, a catalog should be associated with only one browse root category. Due to this wrong association the eBay category doesn't show up on the advance search page of EBAY webapp, instead online store's browse root category is shown which may also contain those products which are not meant to be exported to eBay. So this category associations need to be fixed, and following is how this can be resolved:

   1. Create a new ProdCatalogCatagoryType PCCT_EBAY_ROOT
   2. Define a worker method in CatalogWorker to derive the top level (root) ebay category
   3. Now in the advance search form, first look for top level ebay category associated to the selected catalog
          * If found, derive sub category list of the top level ebay category and display, else display the top level ebay category itself
          * If not found, derive the top level browse root category (PCCT_BROWSE_ROOT) and display the sub category list for it

Thanks Parimal Gain for the contribution.
Special thanks to Mridul Pathak (Zone of Sharp Mind :-)) for discussing implementation plans & providing wonderful notes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832713 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 12:05:09 +00:00

107 lines
5.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<forms xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-form.xsd">
<form id="productsExportToGoogle" name="ProductsExportToGoogle" type="single" target="searchExportProductListToGoogle"
header-row-style="header-row" default-table-style="basic-table">
<field name="productStoreId"><hidden/></field>
<field name="selectResult"><hidden/></field>
<field name="countryCode" tooltip="${uiLabelMap.GoogleBaseExportCountryCode}">
<drop-down no-current-selected-key="US">
<option key="US" description="${uiLabelMap.GoogleBaseExportCountryCodeUS}"/>
<option key="GB" description="${uiLabelMap.GoogleBaseExportCountryCodeGB}"/>
<option key="DE" description="${uiLabelMap.GoogleBaseExportCountryCodeDE}"/>
<option key="IT" description="${uiLabelMap.GoogleBaseExportCountryCodeIT}"/>
</drop-down>
</field>
<field name="webSiteId" event="onChange" action="javascript:$('productsExportToGoogle').action='${persistAction}';$('productsExportToGoogle').submit();">
<drop-down current="selected">
<list-options list-name="webSiteList" key-name="webSiteId" description="${siteName}[${webSiteId}]"/>
</drop-down>
</field>
<field name="webSiteUrl"><text size="50" maxlength="250" default-value="${webSiteUrl}"/></field>
<field name="webSiteMountPoint"><text size="30" maxlength="30" default-value="ecommerce"/></field>
<field name="actionType">
<drop-down no-current-selected-key="insert">
<option key="insert" description="${uiLabelMap.CommonInsert}"/>
<option key="update" description="${uiLabelMap.CommonUpdate}"/>
<option key="delete" description="${uiLabelMap.CommonDelete}"/>
</drop-down>
</field>
<field name="statusId">
<drop-down no-current-selected-key="draft">
<!--
<option key="deactivate" description="${uiLabelMap.GoogleBaseExportDeactivated}"/>
-->
<option key="draft" description="${uiLabelMap.GoogleBaseExportPublishDraft}"/>
<option key="publish" description="${uiLabelMap.GoogleBaseExportPublish}"/>
</drop-down>
</field>
<field name="testMode" tooltip="${uiLabelMap.GoogleBaseExportTestMode}">
<drop-down no-current-selected-key="N">
<option key="N" description="${uiLabelMap.CommonNo}"/>
<option key="Y" description="${uiLabelMap.CommonYes}"/>
</drop-down>
</field>
<field name="trackingCodeId">
<drop-down no-current-selected-key="_NA_">
<option key="_NA_" description="${uiLabelMap.GoogleBaseExportNoTrackingRequested}"/>
<entity-options entity-name="TrackingCode" description="${description}">
<entity-order-by field-name="description"/>
</entity-options>
</drop-down>
</field>
<field name="submitButton" title="${uiLabelMap.GoogleBaseExportToGoogle}"><submit button-type="button"/></field>
</form>
<form name="ListGoogleBaseConfigs" type="list" list-name="googleBaseConfigs" target="updateGoogleBaseConfig"
odd-row-style="alternate-row" header-row-style="header-row-2" default-table-style="basic-table hover-bar">
<actions>
<entity-condition entity-name="GoogleBaseConfig">
<order-by field-name="productStoreId"/>
</entity-condition>
</actions>
<auto-fields-service service-name="updateGoogleBaseConfig"/>
<field name="productStoreId"><display/></field>
<field name="deleteGoogleBaseConfig" title="" widget-style="buttontext">
<hyperlink target="deleteGoogleBaseConfig" description="${uiLabelMap.CommonDelete}" also-hidden="false">
<parameter param-name="productStoreId"/>
</hyperlink>
</field>
<field name="accountPassword"><password/></field>
<field name="submitButton" title="${uiLabelMap.CommonUpdate}"><submit button-type="button"/></field>
</form>
<form name="AddGoogleBaseConfig" type="single" target="createGoogleBaseConfig" title="">
<auto-fields-service service-name="createGoogleBaseConfig"/>
<field name="productStoreId">
<drop-down allow-empty="false">
<option key="" description="- ${uiLabelMap.CommonSelectAny} -"/>
<entity-options entity-name="ProductStore" description="${storeName} [${productStoreId}]">
<entity-order-by field-name="storeName"/>
</entity-options>
</drop-down>
</field>
<field name="accountPassword"><password/></field>
<field name="submitButton" title="${uiLabelMap.CommonAdd}"><submit button-type="button"/></field>
</form>
</forms>