HomeHome Product Discus... Product Discus...SmithCartSmithCartPage TemlatesPage Temlates
Previous
 
Next
New Post
3/30/2013 6:33 AM
 
My client is using DNN 6.1.1 and SmithCart 4.67.

When I try to update the Page Templates, that changes to Product List Multi Column don't save and aren't reflected in the page. 
After I set up the template, I went to the Portals\0\SmithCart\Templates folder and modified the ascx to hilde the whole table (I changed <table class="products"> to <table class="products" style="visibility:hidden; display:none;">), but it had no effect and the changes were reflected in the Page Template web interface.

What's the point of having the Page Template section if it doesn't work?  I can't even upload the file that I have as I'm getting an error of "An error has occurred. Error: is currently unavailable." So I've pasted it below...

I had to go into ProductsList.ascx to make the change (which looks nothing like the template), and this is the second change I've needed to make directly in the Cart's ascx files in as many weeks. (The back button in the Cart is broken, too--and still is in the current version on the demo site).

What I was trying to accomplish is removing the QTY from the multiple column product listing.

As a side note, the Store State/Regaion (I'm in Australia) doesn't stay set on exit, after clicking the Save Settings button.

Regards,
David Baker

========================================================================================
<table class="products">
    <tr>
        <td class="prodCell">
            <ASP:LABEL ID="lblProductName" runat="server" Text='<%# Eval("ProductName") %>' CssClass="SmithLargeText" />
        </td>
    </tr>
    <tr class="SmithRowAlignBottom">
        <td class="prodCell2">
            <br />
            <ASP:LABEL runat="server" ID="lblPrice" CssClass="SmithLargeText" Text='<%# Eval("Price","{0:c}") %>'   />
            <ASP:TEXTBOX runat="server" ID="txtPrice" Width="50px" MaxLength="8" Visible="false" /> &nbsp;
            <ASP:LABEL ID="lblPriceUnits" runat="server" Text='<% #Eval("PriceUnits") %>' CssClass="SmithProdText"/>
                    
        </td>
    </tr>
    <tr runat="server" ID="trQty" visible="false">
        <td class="prodCell2">
            <ASP:LABEL runat="server" ID="lblQtyLabel" resourcekey="lblQtyLabel" CssClass="SmithProdText" />
            <ASP:TEXTBOX ID="txtQuantity" Width="50px" MaxLength="8" CssClass="SmithProdText" runat="server" Text="1" />
        </td>
    </tr>
    <tr>
        <td class="prodCell2">
            <%--<ASP:Button ID="btnSelect" runat="server" OnClick="btnSelect_Click" resourcekey="btnSelect" CausesValidation="false" CssClass="scButtonClass"  />--%>
            <ASP:BUTTON ID="btnSelect" runat="server" resourcekey="btnSelect" CommandName="SelectProduct" CausesValidation="false" CssClass="scButtonClass"  />
                    
        </td>
    </tr>
        <tr>
        <td class="prodCell2">
            <ASP:LABEL ID="Label1" runat="server" Text='<%# Eval("Description") %>' CssClass="SmithProdName" />
        </td>
    </tr>
        <tr>
        <td class="prodCell2">
            <ASP:LABEL ID="hndProductID" runat="server" Text='<% #Eval("ProductID") %>' Visible="false" />
            <ASP:LABEL ID="lblShowQty" runat="server" Text='<% #Eval("ShowQuantity") %>' Visible="false" />
            <ASP:LABEL ID="lblUserEnteredAmount" runat="server" Text='<% #Eval("UserEnteredAmount") %>' Visible="false" />
        </td>
    </tr>
</table>

 
New Post
3/30/2013 6:45 AM
 

FYI, I can fix it in ProductsList.ascx as below:
I tried this in the Template files (via FTP because the changes wouldn't save), with no effect on the Product List.

Around line 118: 
FROM

<tr runat="server" id="trQuantity" style="text-align:center;" visible="false">
    <td>
        <asp:Label runat="server" ID="lblQty2" resourcekey="lblQty" CssClass="SmithProdText"  />
        <asp:TextBox ID="txtQty2" Width="50px" MaxLength="4" CssClass="SmithProdText" runat="server" Text="1"  />
    </td>
</tr>

TO

<tr runat="server" id="trQuantity" style="text-align:center;" visible="false">
    <td>
        <asp:Label runat="server" ID="lblQty2" resourcekey="lblQty" CssClass="SmithProdText" visible="false" />
        <asp:TextBox ID="txtQty2" Width="50px" MaxLength="4" CssClass="SmithProdText" runat="server" Text="1" visible="false" />
    </td>
</tr>


 
New Post
4/1/2013 9:25 PM
 
Hi David,

Can you confirm which version of the Cart you are running? Page Templating was first introduced in v4.99.

To hide the QTY box you don't need to edit a template or the ascx file, just enable the "Hide Quantity" feature in your Cart Settings.

 
New Post
4/1/2013 9:42 PM
 
Kevin Carlson wrote:
Can you confirm which version of the Cart you are running? Page Templating was first introduced in the release of v4.99.

 Yes, I have version 4.67.  In the Store Admin Main Menu, there is an option (6th row, 3rd column) that says Page Templates, but since you are saying this wan't an option until 4.99, that would by why it doesn't work.  (I see options for both Single and Multi Column Page layouts.)

Kevin Carlson wrote:
To hide the QTY box you don't need to edit a template or the ascx file, just enable the "Hide Quantity" feature in your Cart Settings. 

Sure, if I don't want to see it on the Product List OR Cart.  No, that's not what my client wants.
My original post says (emphasis added):
"What I was trying to accomplish is removing the QTY from the multiple column product listing."

This is a known problem with the cart, there are a couple postings about this in the Forums.  As fart as I can see, nothing has been done about it, as the most recent fix that I found was to modify the Multi Column Page layouts.

 
New Post
4/2/2013 12:39 PM
 
Hi David,

Thanks for clarifying, I now understand that you want to hide the Qty box on the Product listing page ONLY. This is not an issue with the Cart, it is a feature that is currently not supported.

The current solution is to edit the ProductsList.ascx file.
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartPage TemlatesPage Temlates