That would be a good addition i agree, really like that idea. I think there was a hack recently detailed on the forum about how to do it automatically, but it should be a standard option ideally.
Announcement
Collapse
No announcement yet.
'Cost Price' relevance
Collapse
X
-
Hi - when you create options in v9 using the 'Product Options' wizard you have the option to include the price of the option in the drop down list. You can enable this without using the Product Options wizard by selecting the 'Include Prices' checkbox in the 'Layout' tab of the component (you need to be using the 'Standard Component Layout' for this to work).
Comment
-
Originally posted by cdickenHi - when you create options in v9 using the 'Product Options' wizard you have the option to include the price of the option in the drop down list. You can enable this without using the Product Options wizard by selecting the 'Include Prices' checkbox in the 'Layout' tab of the component (you need to be using the 'Standard Component Layout' for this to work).
Comment
-
While we're talking about Component pricing, I have a question.
If you have a Component that doesn't have any permutations, is there any way of getting at the Component price (the entry in the Price field on the Component details / Prices tab)?
I can see this as nValue2 in the database but cannot see any variable (or List as it's possibly dependent on price schedule) that gets at this.
If you associate a product with said Component and use associated prices, then it is possible to access the price via AssociatedProduct::ProductPriceRaw.
Reason I'm asking, is that I've just done an add-on that dynamically displays a products price and it's working for every type of variant except Components with simple pricing. You have to associate a product and use it's price if you want to have a simple checkbox.Norman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
omg hax
PHP Code:<actinic:block php="true" >
$prodrefs = "<actinic:variable name="ProductID" />";
$connect = odbc_pconnect("ActinicCatalog9","","", SQL_CUR_USE_ODBC);
$query = "SELECT [nCostPrice] FROM [Product] WHERE [Product Reference]='".$prodrefs."'";
$result = odbc_exec($connect, $query);
while(odbc_fetch_row($result)){ $ThisCostPrice = odbc_result($result, 1); }
odbc_close_all();
$ProductCostPriceFormatted = "£".number_format($ThisCostPrice/100, 2, '.', ',');
$ProductCostPriceRaw = number_format($ThisCostPrice/100, 2, '.', '');
//echo $ProductCostPriceRaw;
echo $ProductCostPriceFormatted;
</actinic:block>
Drop this into your template at the product level.
I made a template with it in and called it like this:
HTML Code:<strong><actinic:variable name="CroweCostPrice" /></strong>
Comment
-
Originally posted by cdicken View PostHi all
The next maintenance release of Actinic will feature two new variables to use online:
ProductCostPriceFormatted - which will display the cost price with all currency symbols etc.
ProductCostPriceRaw - the unformatted price for use in calculations etc.
Hopefully these two will start to mean the cost price field is rather more useful than it is currently as it will basically work as a second price field.
(Cost Price is already in the flat file import btw, so you may want to shorten those odds)
A new client wants to have original and sale prices on their site and was hoping to avoid using a custom variable for them.
Comment
-
I asked this a few days, happened to see Chris reading it, but no answer yet, I expect that no news is bad news.
http://community.actinic.com/showthread.php?t=38457
Comment
-
Originally posted by TraceyHand View PostI'm fairly sure CD has already confirmed that the CostPrice variable would be made available to the design, hasn't he?
I'm sure I have read it somewhere on the forum previously (don't think I dreamt it...my dreams aren't quite THAT square!)
Comment
Comment