Announcement

Collapse
No announcement yet.

Back order message in cart

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

    Back order message in cart

    I am developing new site in V8 (first attempt) using Executive layout.

    Have successfully implemented backordering when out of stock on selected products using custom condition "IsBackOrderButtonShown":
    PHP Code:
    (<Actinic:Variable Name="CatalogIsSuspended"/> == FALSE) AND
    (<
    actinic:variable name="IsOnlineOrderingAllowed" /> == TRUE) AND 
    (<
    actinic:variable name="IsInStock" /> == FALSE) AND 
    (<
    actinic:variable name="StockLevel" /> > <actinic:variable name="StockSuspendLevel" />) AND 
    (<
    Actinic:Variable Name="CanBeOrderedOnline"/> == TRUE) AND 
    (<
    actinic:variable name="SingleAddToCartButtonIsUsed" /> == FALSE
    Now I want to use this in cart to show message for customer:
    PHP Code:
    <!-- Back Order Message Added 04/02/08 -->

        <
    actinic:block if="%3cactinic%3avariable%20name%3d%22IsBackOrderButtonShown%22%20%2f%3e" >

       <
    tr>

            <
    actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductReferenceVisible%22%20%2f%3e" >
            <
    td width="90">
            &
    nbsp;
            </
    td>
            </
    actinic:block>

            <
    td width="280">
            <
    actinic:variable name="BackOrderMsg" />
            </
    td>
        </
    tr>
        </
    actinic:block>
    <!-- 
    End Back Order Message --> 

    Test page is http://www.thaigiftstore.co.uk/acata...l_Vases_9.html

    Any ideas why the message is not showing in the cart?
    Alan Johnson

    Quality Parrot Cages & Accessories by Parrotize UK
    Pet Accessories by Animal Instinct

    #2
    How are you passing the condition through to the cart and testing it? At the moment you are just asking Actinic to see if it has been set but it has no means to know you have set this against the product and it has been clicked.


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      Hi Jont,

      Is this because the cart is generated by Perl script?
      No experience of Perl!!!
      Alan Johnson

      Quality Parrot Cages & Accessories by Parrotize UK
      Pet Accessories by Animal Instinct

      Comment


        #4
        Not especially due to Perl... you have told the product page to display back ordering message if a certain condition is met... when this product is added to the cart there is no way for the cart page to know if the product is on back order... in the cart you are currently only testing if the back order button is shown but this was on the previous screen... you need to test if it was pressed previously and that requires passing some information through from the product page to the cart page.


        Bikster
        SellerDeck Designs and Responsive Themes

        Comment


          #5
          I'm just thinking about ways around this. Not sure if it would work or not.

          Would it be possible to add some text to the product name, say (B) for 'Backorder' for example, and then test for that in the cart ?

          In my case I link each product to an excel spreadsheet and it would be simple to add the (B) to the product name when stocks hit zero.

          You could then use javascript to test for (B) and display whatever message you wanted.

          Mike
          -----------------------------------------

          First Tackle - Fly Fishing and Game Angling

          -----------------------------------------

          Comment


            #6
            OK guys. I understand the missing piece.

            I was thinking of passing a message similar to info questions, Mike.

            Will give it a try.

            Thanks
            Alan Johnson

            Quality Parrot Cages & Accessories by Parrotize UK
            Pet Accessories by Animal Instinct

            Comment

            Working...
            X