636 users online
Register
Log in
Shopping Cart
(0)
Home
Product
Overview
Features
Store demo
Screenshots
Showcase - live shops
Copyright Notice Removal
System Requirements
Roadmap
Contribute
Team Members
License
Downloads
Download nopCommerce
Extensions
Release Notes
Support
Documentation
Forums
Partners
Recommended Hosting
Solution Partners
Become a Partner
Community sponsorship program
My Account
Contacts
Tweet
Home
/
Forums
/
General
/
General Support
/
MinimalPriceProductVariant Help
MinimalPriceProductVariant Help
Reply
steveeb
Total Posts:
89
Karma:
465
Joined:
7/2/2010
Location:
United States
PM
Posted:
one year ago
Quote
Long story short, I'm using OneVariant template for my Product details display because I want to have a pull-down menu for my users rather than the separate ProductsInGrid. To me it's cleaner interface. The product's single variant has multple variant attributes.
I set my Product's price=0 and each ProductVariantAttribute to equal the sale price. So in my pulldown for the variant prices looks like:
$10.00 - 20 toothpicks
$20.00 - 50 toothpicks
...
I have the first attribute ($10.00 -20 toothpicks) set to Pre-Selected and the Enable Dynamic Price Update checked in Global Settings.
Everything works great EXCEPT when the products are displayed in the grid, it shows "From $0.00" as the price.
It should really be "From $10.00" which is the $0 product price PLUS the $10 minimumVariant price.
UPDATE:
I have a feeling no one will have an answer to this question. I did find a simple work-around (albeit not pretty) by putting the low price in the admin comments for the variant and adding the code below to a strategic spot in the ProductBox1.ascx.cs code. It works good enough.
if (finalPriceWithoutDiscountBase == decimal.Zero && productVariant.AdminComment != "")
{
lblPrice.Text = "From " + PriceHelper.FormatPrice(decimal.Parse(productVariant.AdminComment));
btnAddToCart.Visible = false;
}
0
Please
login or register
to vote for this post.
(click on this box to dismiss)