Page 1 of 1
Sale items link?
Posted: Sat Jan 17, 2009 2:15 pm
by krittleb
I am ready to add my "sale items" and "new products" links in my sidebar, and was shocked to not find any controls for either of these. So, I did a search on the forums and found out that as of 2004 neither of these were an option and that it would require extensive customization and knowledge to be able to create these.
The $7.95/mo hosting/web-site plan we were on included these so I am appalled that such a "bells-and-whistles" program like Able Commerce does not!! There is not hardly a retail site that you will visit that doesn't have a "sale" link. If they don't, I guess it would be because it is an AbleCommerce site
This is really an essential part of our page, so any input on this would be appreciated!
Kristi
Re: Sale items link?
Posted: Fri Jan 23, 2009 9:21 am
by krittleb
I just found this web site on the Able Commerce display sites that has a sale link:
http://www.PegasusShoes.com
Has anyone created this code that is willing to share? I really like how they have the "sale" items broken down into categories. I am really at a loss here. I have just briefly looked at the product input page and don't even see a place there to classify products as "on sale".
I also saw a site with a "new item" link. Apparently, sale items and new items are commonly used links in Able Commerce but just not easily available
Sorry to keep pestering on this topic, but I really need these links and will maybe have to hire a designer if I can't figure this out.
Thanks,
Kristi
Re: Sale items link?
Posted: Fri Jan 23, 2009 9:49 am
by mazhar
I don't think so its something we can say the missing feature. If we talk more specifically we can say that its a custom display requirement. If you want to offer sales the discounts are in place. In fact all you need is to have some place where you can display these discounted items collectively. You can create some custom user control responsible for displaying the discounted items available at sale. Another possible solution could be to create a new category naming it the sale and then move products those are available for sale to this category.
Re: Sale items link?
Posted: Fri Jan 23, 2009 10:15 am
by mazhar
OK here is the control that can list all the products for some specific discount. Install the control in the ConLib folder and then you need to create a volume discount in the admin side and apply it some products which are at sale. Now from the database open the ac_VolumeDiscounts table and find out the VolumeDiscountId of the newly created discount. Now put this control on some page where you want to show the discounted items as below
Code: Select all
[[ConLib:SaleDisplay DiscountId="2"]]
where replace the 2 in DiscountId="2" with the discount id you got from your database.
Re: Sale items link?
Posted: Fri Jan 23, 2009 10:28 am
by mazhar
Products can exist in multiple categories. So if you want to have a category for sale another solution could be to create a category ie Sales and then edit desired products and assign them the Sales category as well. This will list all the products available for sale when some one will visit that category page.
Re: Sale items link?
Posted: Fri Jan 23, 2009 10:46 am
by Robbie@FireFold
We do the multiple categories thing.
Re: Sale items link?
Posted: Mon Mar 23, 2009 5:42 pm
by napacabs
Is there away of omitting items that are hidden? Currently, out of stock items that have been hidden from display still appear with this control.
Re: Sale items link?
Posted: Tue Mar 24, 2009 3:01 am
by mazhar
Locate following code in control
Code: Select all
foreach (ProductVolumeDiscount productVolumeDiscount in productsWithDiscounts)
{
products.Add(productVolumeDiscount.Product);
}
and make it look like
Code: Select all
foreach (ProductVolumeDiscount productVolumeDiscount in productsWithDiscounts)
{
if(productVolumeDiscount.Product.Visibility == CatalogVisibility.Public)
products.Add(productVolumeDiscount.Product);
}
Re: Sale items link?
Posted: Wed Apr 01, 2009 1:32 pm
by Carolharry
Hi,
Is there a way to display the sale price. This control gives the original price of the product.
Can there be the feature like a strike on Reg price and sale price.
Appreciate any help.
Thanks,
Carol
Re: Sale items link?
Posted: Sun Sep 20, 2009 12:41 am
by napacabs
Hi Mazhar,
Just updated to 7.03 and the saledisplay control displays the following error:
SaleDisplay2.ascx(115): error CS0121: The call is ambiguous between the following methods or properties: 'CommerceBuilder.Products.ProductCalculator.LoadForProduct(int, short, string, System.Collections.Generic.List<int>)' and 'CommerceBuilder.Products.ProductCalculator.LoadForProduct(int, short, string, string)'
Any update/fix?
Thanks
Re: Sale items link?
Posted: Thu Sep 24, 2009 7:45 am
by mazhar
Edit the control's file and locate following line of code
Code: Select all
ProductCalculator pc = ProductCalculator.LoadForProduct(product.ProductId, 1, string.Empty, null);
and update it with below code line
Code: Select all
ProductCalculator pc = ProductCalculator.LoadForProduct(product.ProductId, 1, string.Empty, string.Empty);