Announcement

Collapse
No announcement yet.

Showing Choices as Out of Stock problem

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

    Showing Choices as Out of Stock problem

    I am using the "Showing Choices as Out of Stock" section in the AUG to remove options from the drop down list if they are not in stock however i want to remove the add to cart button if there are no longer any options left in the drop down.

    Any ideas ? I have tried to write a bit of php to take care of this but with no success.

    #2
    Hi Phil

    In additon to applying the workaround from the Advanced User's guide you will need to do the following .
    __________

    1. Make a copy of the product layout that you are using. You will need to use the copied layout as the "Product Layout" for the products with choices.
    2. Switch to the design mode and click on one of the choice's drop downlist .
    3.Now click on the "Click here to edit list layout settings" and in the subsequent window switch to the "Overall Design" tab and replace the code that appears in the 'end of list" with the following

    <actinic:block if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e%20AND%20%0d%28%3cactinic%3avariable%20name%3d%22NumberAttributesInPushButtonGrid%22%20%2f%3e%20%3d%3d%200%29" ><actinic:variable name="AddToCartButton" /></actinic:block>

    4. Now from the Product Layout that you are using for the product with choices remove the Addtocart button.

    5. Apply the changes.
    _____________

    This will put an Addtocart button next to the choices dropdown list and when all of the choices go out of stock the Addtocart buttom will disappear.
    Kiran Chandran
    Technical Support - SellerDeck
    http://www.sellerdeck.co.uk/

    Further help can also be found at http://community.sellerdeck.com/forumdisplay.php?f=27

    Comment

    Working...
    X