search on merchant side

Post feature requests to this forum and a pre-configured poll will automatically be created for you.

How important is this enhancement to you?

It's a critical enhancement that I must have.
12
67%
It's an important enhancement but others are more critical.
4
22%
I'd like to have it but it's not that important.
2
11%
I'd never use this feature.
0
No votes
 
Total votes: 18

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: search on merchant side

Post by mazhar » Thu Jul 23, 2009 6:46 am

mfreeze wrote:Is there any simple way to change the SKUsearch so it will return non-pulblic products?
Locate following code in the report

Code: Select all

<asp:ObjectDataSource ID="ProductDs" runat="server" DataObjectTypeName="CommerceBuilder.Products.Product"
        OldValuesParameterFormatString="original_{0}" SelectMethod="AdvancedSearch" SortParameterName="sortExpression"
        TypeName="CommerceBuilder.Products.ProductDataSource">
        <SelectParameters>
            <asp:ControlParameter Name="keyword" Type="String" ControlID="Keywords" PropertyName="Text" />
            <asp:Parameter Name="categoryId" Type="Int32" DefaultValue="0" />
            <asp:Parameter Name="manufacturerId" Type="Int32" DefaultValue="0" />
            <asp:Parameter Name="searchName" Type="boolean" DefaultValue="True" />
            <asp:Parameter Name="searchDescription" Type="boolean" DefaultValue="True" />
            <asp:Parameter Name="searchSKU" Type="boolean" DefaultValue="True" />
            <asp:Parameter Name="lowPrice" Type="decimal" DefaultValue="0" />
            <asp:Parameter Name="highPrice" Type="decimal" DefaultValue="0" />
        </SelectParameters>
    </asp:ObjectDataSource>
and replace it with following updated code

Code: Select all

<asp:ObjectDataSource ID="ProductDs" runat="server" DataObjectTypeName="CommerceBuilder.Products.Product"
        OldValuesParameterFormatString="original_{0}" SelectMethod="FindProducts" SortParameterName="sortExpression"
        TypeName="CommerceBuilder.Products.ProductDataSource">
        <SelectParameters>
            <asp:Parameter Name="name" Type="String" DefaultValue="" />
            <asp:ControlParameter Name="sku" Type="String" ControlID="Keywords" PropertyName="Text" />
            <asp:Parameter Name="categoryId" Type="Int32" DefaultValue="0" />
            <asp:Parameter Name="manufacturerId" Type="Int32" DefaultValue="0" />
            <asp:Parameter Name="vendorId" Type="Int32" DefaultValue="0" />
        </SelectParameters>
    </asp:ObjectDataSource>
This mod will change the sku search to include non-public items as well.

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: search on merchant side

Post by kastnerd » Thu Jul 30, 2009 5:37 am

mfreeze wrote:Is there any simple way to change the SKUsearch so it will return non-pulblic products?
My SKUseach on CreateOrder2.aspx returnes hidden and Private products.

User avatar
napacabs
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 45
Joined: Mon Jan 14, 2008 2:58 pm
Location: Chino, California
Contact:

Re: search on merchant side

Post by napacabs » Fri Sep 16, 2011 8:36 pm

Hi Mazhar, Do you have this code for CreateOrder2.aspx in 7.0.7, providing the ability to search for products by manufacturer when creating an order(admin side). Thank you.
mazhar wrote:
napacabs wrote:How can I add this modification (Manufacturer field) to the "Add Product to Order" search on the /Admin/Orders/PlaceOrder1.aspx page?
That would be an easy job. Take the backup of your existing Admin/Orders/PlaceOrder1.aspx and then use the following version of the file.

Post Reply