Make 'Hide Price' really hide the price!
-
- Ensign (ENS)
- Posts: 5
- Joined: Sat Jan 10, 2009 10:18 pm
Make 'Hide Price' really hide the price!
Nothing looks more like a mistake than a price of $0.00! Yet some vendors disallow the showing of pricing on the web and don't allow direct online ordering of certain items. They do, however, allow these items be displayed online without pricing and ordered by phone.
Checking 'Disable purchase' removes the 'Add to Basket' button, which is good. The 'Add to Wishlist' is also removed, which is not necessarily good.
Checking 'Hide Price' does hide the price -- BUT it replaces it with 'Click for pricing' link which displays the supposedly hidden price in a popup. This makes no sense!
I tried replacing the prices with 'CALL', but being a numeric field, it displays as $0.00.
Checking 'Hide Price' should totally hide the price and optionally replace it with text (Call 800-123-4567).
Checking 'Disable purchase' should give me the option to leave 'Add to Wishlist' enabled.
Martin
Checking 'Disable purchase' removes the 'Add to Basket' button, which is good. The 'Add to Wishlist' is also removed, which is not necessarily good.
Checking 'Hide Price' does hide the price -- BUT it replaces it with 'Click for pricing' link which displays the supposedly hidden price in a popup. This makes no sense!
I tried replacing the prices with 'CALL', but being a numeric field, it displays as $0.00.
Checking 'Hide Price' should totally hide the price and optionally replace it with text (Call 800-123-4567).
Checking 'Disable purchase' should give me the option to leave 'Add to Wishlist' enabled.
Martin
Re: Make 'Hide Price' really hide the price!
I agree... AbleCommerce has got to be have most wackiest interpretation of "hide prices". If the admin is trying to hide a price, how does a popup link still mean hiding the price???
Basem Emara:
http://BasemEmara.com
http://BasemEmara.com
Re: Make 'Hide Price' really hide the price!
by the way, you can disable the link in /ConLib/Utility/ProductPrice.acsx.cs
Add to the end of Page_Init:
ShowPriceLink.Enabled = false;
Add to the end of Page_Init:
ShowPriceLink.Enabled = false;
Basem Emara:
http://BasemEmara.com
http://BasemEmara.com
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Make 'Hide Price' really hide the price!
I think the reason they did it that way is because it will allow a price to show when the merchant is not supposed to show on with a MAP pricing agreement, but they can show one if they don't "advertise" it.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Re: Make 'Hide Price' really hide the price!
I think so too. This is the way Amazon displays 1000's of prices that are "hidden" due to MAP pricing rules. In my personal travels through the e-commerce world, I cannot recall ever seeing "call for price" in a situation that looked like MAP rules...or if I did, I left in such a hurry it left no lasting impression. I have seen many "call for price" products that require a quote because they have complicated pricing rules or the vendor is open to negotiation.jmestep wrote:I think the reason they did it that way is because it will allow a price to show when the merchant is not supposed to show on with a MAP pricing agreement, but they can show one if they don't "advertise" it.
It makes sense to have an option to display text instead of price.
- RichWendrock
- Commander (CMDR)
- Posts: 134
- Joined: Sat Apr 05, 2008 12:55 am
- Location: Austin Texas
- Contact:
Re: Make 'Hide Price' really hide the price!
Is it possible to modify the code to check for a price of zero and display CALL FOR PRICING?
Regards,
Richard
http://www.TheHomePageStore.com
AbleCommerce
VERSION: 7.0.7.14588
MSSQL v2005
AC SCHEMA v2005
.NET CLR v2.0.50727.3634
Richard
http://www.TheHomePageStore.com
AbleCommerce
VERSION: 7.0.7.14588
MSSQL v2005
AC SCHEMA v2005
.NET CLR v2.0.50727.3634
Re: Make 'Hide Price' really hide the price!
Yes possible, you need to handle this in ConLib/Utilit/ProductPrice.ascx controlRichWendrock wrote:Is it possible to modify the code to check for a price of zero and display CALL FOR PRICING?
Re: Make 'Hide Price' really hide the price!
Something like thisRichWendrock wrote:Is it possible to modify the code to check for a price of zero and display CALL FOR PRICING?
viewtopic.php?f=44&t=11519
Re: Make 'Hide Price' really hide the price!
Hello.
I'm not a developer and I'm new to the ablecommerce cart. I need to hide the product prices to anonymous users and visible only to registered users. I don't know how to go about this, as I mentioned I'm very new to development work. So any assistance you could supply would be most appreciated.
Big thanks.
I'm not a developer and I'm new to the ablecommerce cart. I need to hide the product prices to anonymous users and visible only to registered users. I don't know how to go about this, as I mentioned I'm very new to development work. So any assistance you could supply would be most appreciated.
Big thanks.
Re: Make 'Hide Price' really hide the price!
Where you want to show/hide products prices if in CategoryGridPage.ascx then locate this code
and replace with this code
.
Code: Select all
<uc:ProductPrice ID="Price" runat="server" Product='<%#Container.DataItem%>' ShowRetailPrice="true" />
Code: Select all
<uc:ProductPrice ID="Price" runat="server" Visible='<%# !Token.Instance.User.IsAnonymous %>' Product='<%#Container.DataItem%>' ShowRetailPrice="true" />
hope this helps!
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
Re: Make 'Hide Price' really hide the price!
@s_ismail: Many thanks!
Re: Make 'Hide Price' really hide the price!
Hello.s_ismail wrote:Where you want to show/hide products prices if in CategoryGridPage.ascx then locate this codeand replace with this codeCode: Select all
<uc:ProductPrice ID="Price" runat="server" Product='<%#Container.DataItem%>' ShowRetailPrice="true" />
.Code: Select all
<uc:ProductPrice ID="Price" runat="server" Visible='<%# !Token.Instance.User.IsAnonymous %>' Product='<%#Container.DataItem%>' ShowRetailPrice="true" />
I did as instructed but it still shows the price somehow. Could I have missed something?
Again, thanks.
Re: Make 'Hide Price' really hide the price!
The store has a one-page anonymous checkout. Does this need to be disabled or removed, in order to have the prices show only for registered users?
Re: Make 'Hide Price' really hide the price!
You need to put this Check
everywhere manually where product price is displayed.
But if you need only in OnePageCheckout.ascx
locate this code
then replace by this one
Code: Select all
Visible='<%# !Token.Instance.User.IsAnonymous %>'
everywhere manually where product price is displayed.
But if you need only in OnePageCheckout.ascx
locate this code
Code: Select all
<asp:GridView ID="BasketGrid" runat="server" AutoGenerateColumns="False"
ShowFooter="False" Width="100%" SkinID="PagedList">
<Columns>
<asp:TemplateField HeaderText="Shipment">
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<%# GetShipmentNumber(Container.DataItem) %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="SKU">
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<%# ProductHelper.GetSKU(Container.DataItem) %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Item">
<ItemStyle HorizontalAlign="Left" />
<ItemTemplate>
<asp:PlaceHolder ID="ProductPanel" runat="server" Visible='<%#((OrderItemType)Eval("OrderItemType") == OrderItemType.Product)%>'>
<uc:BasketItemDetail id="BasketItemDetail1" runat="server" BasketItem='<%#(BasketItem)Container.DataItem%>' ShowAssets="true" ShowSubscription="true" LinkProducts="false" /><br />
</asp:PlaceHolder>
<asp:PlaceHolder ID="OtherPanel" runat="server" Visible='<%#((OrderItemType)Eval("OrderItemType") != OrderItemType.Product)%>' EnableViewState="false">
<%# Eval("Name") %>
</asp:PlaceHolder>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Tax">
<HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Center" Width="50px" />
<ItemTemplate>
<%#TaxHelper.GetTaxRate((BasketItem)Container.DataItem).ToString("0.####")%>%
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Price">
<HeaderStyle HorizontalAlign="Right" />
<ItemStyle HorizontalAlign="Right" Width="80px" />
<ItemTemplate>
<%#TaxHelper.GetInvoicePrice(Token.Instance.User.Basket, (BasketItem)Container.DataItem).ToString("ulc")%>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Qty">
<HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Center" />
<ItemTemplate>
<%# Eval("Quantity") %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Total">
<HeaderStyle HorizontalAlign="Right" />
<ItemStyle HorizontalAlign="Right" Width="80px" />
<ItemTemplate>
<%#TaxHelper.GetInvoiceExtendedPrice(Token.Instance.User.Basket, (BasketItem)Container.DataItem).ToString("ulc")%>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
Code: Select all
<asp:GridView ID="BasketGrid" runat="server" AutoGenerateColumns="False"
ShowFooter="False" Width="100%" SkinID="PagedList">
<Columns>
<asp:TemplateField HeaderText="Shipment">
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<%# GetShipmentNumber(Container.DataItem) %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="SKU">
<ItemStyle HorizontalAlign="Center" />
<HeaderStyle HorizontalAlign="Center" />
<ItemTemplate>
<%# ProductHelper.GetSKU(Container.DataItem) %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Item">
<ItemStyle HorizontalAlign="Left" />
<ItemTemplate>
<asp:PlaceHolder ID="ProductPanel" runat="server" Visible='<%#((OrderItemType)Eval("OrderItemType") == OrderItemType.Product)%>'>
<uc:BasketItemDetail id="BasketItemDetail1" runat="server" BasketItem='<%#(BasketItem)Container.DataItem%>' ShowAssets="true" ShowSubscription="true" LinkProducts="false" /><br />
</asp:PlaceHolder>
<asp:PlaceHolder ID="OtherPanel" runat="server" Visible='<%#((OrderItemType)Eval("OrderItemType") != OrderItemType.Product)%>' EnableViewState="false">
<%# Eval("Name") %>
</asp:PlaceHolder>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Tax">
<HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Center" Width="50px" />
<ItemTemplate>
<%#TaxHelper.GetTaxRate((BasketItem)Container.DataItem).ToString("0.####")%>%
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Price">
<HeaderStyle HorizontalAlign="Right" />
<ItemStyle HorizontalAlign="Right" Width="80px" />
<ItemTemplate>
<asp:Panel ID="PricePanel" runat="server" Visible='<%# !Token.Instance.User.IsAnonymous %>'>
<%#TaxHelper.GetInvoicePrice(Token.Instance.User.Basket, (BasketItem)Container.DataItem).ToString("ulc")%>
</asp:Panel>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Qty">
<HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Center" />
<ItemTemplate>
<%# Eval("Quantity") %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Total">
<HeaderStyle HorizontalAlign="Right" />
<ItemStyle HorizontalAlign="Right" Width="80px" />
<ItemTemplate>
<asp:Panel ID="ExtendedPricePanel" runat="server" Visible='<%# !Token.Instance.User.IsAnonymous %>'>
<%#TaxHelper.GetInvoiceExtendedPrice(Token.Instance.User.Basket, (BasketItem)Container.DataItem).ToString("ulc")%>
</asp:Panel>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
hope this helps!
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
Re: Make 'Hide Price' really hide the price!
Thanks, s_ismail. I appreciate all the help.
But I ran into a snag, the prices of recently viewed items don't show even when logged in.
But I ran into a snag, the prices of recently viewed items don't show even when logged in.
Re: Make 'Hide Price' really hide the price!
Hello again.
Could you also help me as to what I could add to this line of code so that the price could be seen only if you were logged in?
My knowledge here is vastly insufficient but I've began some tutorials and classes but it's still way over my head. Really big thanks.
Could you also help me as to what I could add to this line of code so that the price could be seen only if you were logged in?
Code: Select all
<uc:ProductPrice ID="OurPrice" runat="server" EnableDefaultKitProducts="false" />
Re: Make 'Hide Price' really hide the price!
Replace with this one
Code: Select all
<uc:ProductPrice ID="OurPrice" runat="server" EnableDefaultKitProducts="false" Visible='<%# !Token.Instance.User.IsAnonymous %>' />
hope this helps!
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
Re: Make 'Hide Price' really hide the price!
Hey, thanks.
I replaced the code with what you suggested and the price still shows:
Any idea how I can hide it when the user is not logged in? I may have supplied the wrong code to fix.
Thanks again. Really appreciate it.
I replaced the code with what you suggested and the price still shows:
Any idea how I can hide it when the user is not logged in? I may have supplied the wrong code to fix.
Thanks again. Really appreciate it.
Re: Make 'Hide Price' really hide the price!
You need to control it everywhere where price is displayed..
Give a try by this one.
Locate this code in 'buyproductdialog.ascx.cs'
and replace with this one
.
Give a try by this one.
Locate this code in 'buyproductdialog.ascx.cs'
Code: Select all
if (!_Product.UseVariablePrice)
{
trOurPrice.Visible = true;
trVariablePrice.Visible = false;
}
Code: Select all
if (!_Product.UseVariablePrice)
{
trOurPrice.Visible = !Token.Instance.User.IsAnonymous;
trVariablePrice.Visible = false;
}
hope this helps!
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
Re: Make 'Hide Price' really hide the price!
@s_ismail
Thanks! That worked out just fine.
Thanks! That worked out just fine.
Re: Make 'Hide Price' really hide the price!
Hello.
Is there a code i can add to hide all prices and show them when the user is logged in? i would need some other items' prices hidden even when logged in. Thanks in advance for the help.
Is there a code i can add to hide all prices and show them when the user is logged in? i would need some other items' prices hidden even when logged in. Thanks in advance for the help.
-
- Ensign (ENS)
- Posts: 5
- Joined: Thu Oct 07, 2010 1:47 pm
Re: Make 'Hide Price' really hide the price!
Is there any way to enable/disabled Recently Viewed item.
Re: Make 'Hide Price' really hide the price!
Go to Edit Screen of your page and comment out the code liketariqjamil wrote:Is there any way to enable/disabled Recently Viewed item.
Code: Select all
<!---[[ConLib:RecentlyViewed]]-->
hope this helps!
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
Re: Make 'Hide Price' really hide the price!
Or better remove it altogether.s_ismail wrote:Go to Edit Screen of your page and comment out the code liketariqjamil wrote:Is there any way to enable/disabled Recently Viewed item.Code: Select all
<!---[[ConLib:RecentlyViewed]]-->