Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
-
krittleb
- Commander (CMDR)

- Posts: 111
- Joined: Tue Jan 06, 2009 11:27 pm
Post
by krittleb » Sat Jan 17, 2009 2:15 pm
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
-
krittleb
- Commander (CMDR)

- Posts: 111
- Joined: Tue Jan 06, 2009 11:27 pm
Post
by krittleb » Fri Jan 23, 2009 9:21 am
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
-
mazhar
- Master Yoda

- Posts: 5084
- Joined: Wed Jul 09, 2008 8:21 am
-
Contact:
Post
by mazhar » Fri Jan 23, 2009 9:49 am
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.
-
mazhar
- Master Yoda

- Posts: 5084
- Joined: Wed Jul 09, 2008 8:21 am
-
Contact:
Post
by mazhar » Fri Jan 23, 2009 10:15 am
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.
-
mazhar
- Master Yoda

- Posts: 5084
- Joined: Wed Jul 09, 2008 8:21 am
-
Contact:
Post
by mazhar » Fri Jan 23, 2009 10:28 am
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.
-
Robbie@FireFold
- Commodore (COMO)

- Posts: 433
- Joined: Wed May 28, 2008 9:42 am
- Location: Concord, NC
-
Contact:
Post
by Robbie@FireFold » Fri Jan 23, 2009 10:46 am
We do the multiple categories thing.
-
napacabs
- Lieutenant, Jr. Grade (LT JG)

- Posts: 45
- Joined: Mon Jan 14, 2008 2:58 pm
- Location: Chino, California
-
Contact:
Post
by napacabs » Mon Mar 23, 2009 5:42 pm
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.
-
mazhar
- Master Yoda

- Posts: 5084
- Joined: Wed Jul 09, 2008 8:21 am
-
Contact:
Post
by mazhar » Tue Mar 24, 2009 3:01 am
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);
}
-
Carolharry
- Commander (CMDR)

- Posts: 121
- Joined: Wed Dec 17, 2008 9:13 am
Post
by Carolharry » Wed Apr 01, 2009 1:32 pm
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
-
napacabs
- Lieutenant, Jr. Grade (LT JG)

- Posts: 45
- Joined: Mon Jan 14, 2008 2:58 pm
- Location: Chino, California
-
Contact:
Post
by napacabs » Sun Sep 20, 2009 12:41 am
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
-
mazhar
- Master Yoda

- Posts: 5084
- Joined: Wed Jul 09, 2008 8:21 am
-
Contact:
Post
by mazhar » Thu Sep 24, 2009 7:45 am
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);