Announcement

Collapse
No announcement yet.

Show 'Out of Stock message when choices from associated products are out of stock.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Show 'Out of Stock message when choices from associated products are out of stock.

    Test product is at http://www.webeg.co.uk/stock/acatalo...T01.html#SID=1 - 8, 10 and 11mm are out of stock. I would like them still to appear in the drop down with an 'out of stock' message. I changed the layout Drop Down Permutation Entry thus:

    Code:
    <actinic:block if="%3cactinic%3avariable%20name%3d%22PermutationIsValid%22%20%2f%3e" >
    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPermutationHidden%22%20%2f%3e%20%3d%3d%20FALSE%0dOR%0d%28%3cactinic%3avariable%20name%3d%22IsPermutationHidden%22%20%2f%3e%20%3d%3d%20TRUE%20AND%20%3cactinic%3avariable%20name%3d%22RealTimeStockEnabled%22%20%2f%3e%20%3d%3d%20TRUE%29" >
    <option value="<actinic:variable name="PermutationChoiceList" value="Permutation Choice ID List" />" <actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsUsedNoneChoiceLabel%22%20%2f%3e%20%3d%3d%20FALSE%29%0dOR%0d%28%28%3cactinic%3avariable%20name%3d%22IsUsedNoneChoiceLabel%22%20%2f%3e%20%3d%3d%20TRUE%29%20AND%20%28%3cactinic%3avariable%20name%3d%22IsSelectedByDefault%22%20%2f%3e%20%3d%3d%20FALSE%29%29" ><actinic:block php="true" >
        echo ($bOptionSelected == false) ? 'checked="checked"' : '';
       $bOptionSelected = true;
        </actinic:block></actinic:block> <actinic:block if="%3cactinic%3avariable%20name%3d%22AssociatedProduct%3a%3aProductID%22%20%2f%3e" >
        class="rts_<actinic:variable name="AssociatedProduct::ProductID" />_<actinic:block php="true" if="%3cactinic%3avariable%20name%3d%22IsComponentCheckboxShown%22%20%2f%3e%20%3d%3d%20TRUE" >    echo ' chk' . $sCompCheckBox;</actinic:block>"
    </actinic:block>>
       <actinic:block if="%3cactinic%3avariable%20name%3d%22PermutationAssociatedNameIsUsed%22%20%2f%3e%20%3d%3d%20FALSE">
           <actinic:variable name="PermutationChoiceList" value="Permutation Choice Name List" />
       </actinic:block>
       <actinic:block if="%3cactinic%3avariable%20name%3d%22PermutationAssociatedNameIsUsed%22%20%2f%3e">
          <actinic:variable name="AssociatedProduct::ProductName" />
       </actinic:block>
       <actinic:block if="%3cactinic%3avariable%20name%3d%22IsPriceShownForComponents%22%20%2f%3e">
           <actinic:variable name="PermutationPrice" />
       </actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22IsAssociatedProductInStock%22%20%2f%3e%20%3d%3d%20FALSE" >'Out of Stock'</actinic:block>
      </option>
    </actinic:block>
    </actinic:block>
    Giving this appearance off line in page preview:

    Click image for larger version

Name:	oos.jpg
Views:	122
Size:	139.4 KB
ID:	550269

    But on the live site this is not displayed the same.

    I am guessing I need to edit a javascript file (actinicextras ???) Has anyone any guidance or advice please.

    Thank you

    Jonathan
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    This is how the product and hidden products are laid out in Sellerdeck

    Click image for larger version

Name:	oosii.jpg
Views:	65
Size:	101.2 KB
ID:	550271
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    Comment

    Working...
    X