I just purchased 7.0 and I am floored. Great product! One thing missing (for me anyway), is unique availabilty messages per SKU/Variant.
Currently we have:
In Stock Message:
{0} units available
Out of stock message:
The product is currently out of stock
Which sets it globally. I need custom availability dates per product and variant.
IF out of stock "display custom message".
I am looking at the product templates and see that this could be used to store the message, but then there would need to be a script added as well. It would be great if this was something that was added to your cart. I am sure a lot of users need this feature.
If anyone has any sugestions on how I could implement this, I am all eyes.
Thanks!
Smurf
Able 7 RC1
Unique Out of Stock Msg - per SKU
Real programmers will probably cringe at this, but I think you could use a merchant field for this (under product templates).
- set up a merchant field called "stock message" (or whatever you want to call it)
- set the message for the given product
Use the nVelocity script to get the value and assign it to a variable:
Then you can display the message wherever you want using:
Or you can skip the variable step and just say:
If out of stock...
I think either should work.
- set up a merchant field called "stock message" (or whatever you want to call it)
- set the message for the given product
Use the nVelocity script to get the value and assign it to a variable:
Code: Select all
#foreach($tf in $Product.TemplateFields)
#if ($tf.InputField.IsMerchantField)
#if ($tf.InputField.Name == "stock message") #set ($pStockMessage = $tf.InputValue)
#end
#end
#end
Code: Select all
$pStockMessage
If out of stock...
Code: Select all
#foreach($tf in $Product.TemplateFields)
#if ($tf.InputField.IsMerchantField)
#if ($tf.InputField.Name == "stock message")
$tf.InputField.Value
#end
#end
#end
-
- Commander (CMDR)
- Posts: 172
- Joined: Mon Oct 15, 2007 2:53 pm
- Location: Palo Alto, CA
- Contact:
Out of Stock
We need this... did the custom script work for you?
Don
Don
Message in "options"
So this code would put an "out of stock" message in the options?
ie- If Elbow Pads, size 7, color blue was out, it would only put "out of stock" on this option and leave the rest of the sizes/colors alone?
thanks!
ie- If Elbow Pads, size 7, color blue was out, it would only put "out of stock" on this option and leave the rest of the sizes/colors alone?
thanks!