Announcement

Collapse
No announcement yet.

Comments Field

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

    #16
    I have found it :-)

    Heres the instructions for other people as it seems to be quite a common question.


    Having a larger box for the 'Other Info' Prompt

    By default, customers only have a single line to provide an answer for the 'Other Info' question online. It is possible to edit the product layout and the 'Design | Text' area to provide a 'text area' box instead of a single line
    First of all, you just need to edit the 'Other Info' prompt that appears as part of your product layout on the store pages (if you are using a shopping mode of 'Quantity on Product Page').
    To do this:
    1. Select your product layout in the 'Design' tab and locate the following line:

    <<input type="text" name="O_ProductReference" size="40" maxlength="1000" value="" />

    Note that in 8.5.1HFUA onwards it would be:

    Code:
    <input type="text" name="O_ProductID" size="40" maxlength="1000" value="" />


    2. Replace this line with the following code:
    <textarea name="O_<Actinic:Variable Name="ProductID"/>" rows="5" cols="40" maxlength="1000" value="" /></textarea>
    You now need to edit the code for the other info prompt that appears in the shopping cart. To do this:
    3. Go to 'Design | Text'
    4. Click 'Go To' and in the ID field enter '2161'.
    5. It should highlight a line that says find a line that says:

    %s<input type="text" name="%s" size="%d" maxlength="%d" value="%s" %s />
    6. Change the prompt to read:

    %s<textarea name="%s" rows="5" cols="40" %d maxlength="%d">%s</textarea>
    7. Click 'OK' to save your changes.
    8. Now go into your 'Site1' folder and locate a file called 'ActinicOrder.pm'. Open it in Notepad.
    9. Search for '2161', you should see...

    $sHTML = ACTINIC::GetPhrase(-1, 2161, "", $sIndex, 35, 1000, $sValue, $sStyle);
    10. Comment out this line by preceding it with a #.
    11. Insert the following immediately after the above line...

    $sHTML = ACTINIC::GetPhrase(-1, 2161);
    $sHTML =~ s/%d/%s/;
    $sValue =~ s/%0a//ig; # we seem to need to remove some Line Feeds here
    $sHTML = sprintf( $sHTML, "", $sIndex, $sStyle, 1000, $sValue);
    12. Save the file.
    13. Now go into your 'Site1' folder and locate a file called 'OrderScript.pl'. Open it in Notepad.
    14. Look for:-

    if (length $$pProduct{'OTHER_INFO_PROMPT'} > 0)
    {
    MailOrderLine( "",
    $$pProduct{'OTHER_INFO_PROMPT'} . "\r\n " . $CurrentItem{'INFO'},

    15. Change to:-

    if (length $$pProduct{'OTHER_INFO_PROMPT'} > 0)
    {
    my $PatchIt = $CurrentItem{'INFO'};
    $PatchIt =~ s/%0a/\r\n /ig;
    MailOrderLine( "",
    $$pProduct{'OTHER_INFO_PROMPT'} . "\r\n " . $PatchIt,
    16. Save the file and then upload your Actinic store.
    Actinic is not able to provide any detailed support for script changes made. If you find that there is a problem, an original copy of the script can be found within the 'Original' folder in your installation. Copy this into your site folder.

    Comment


      #17
      3 hours start to finish, not bad, nice one.

      Comment


        #18
        The annoying thing it doesnt work.

        1 I dont have a ID called 2161

        2 I also dont have the line

        <input type="text" name=="0" ProductReference" size="40" maxlength="1000" value="" />

        So now what....

        Comment


          #19
          You do have it Darren, it's in your product layout towards the bottom. If not you must have deleted it, revert the layout back to factory settings in the design-library and you should then see it.

          Comment


            #20
            Hi,

            I dont believe I have...

            Im using the standard layout using css

            This is what it shows


            <form method="post" action="<actinic:variable name="OnlineScriptURL" value="Shopping Cart Script URL" />">
            <input type="hidden" name="SID" value="<Actinic:Variable Name="SectionID"/>" />
            <input type="hidden" name="PAGE" value="PRODUCT" />
            <input type="hidden" name="PAGEFILENAME" value="<actinic:variable name="SectionPageName" />" />
            <Actinic:SECTION BLOB='<Actinic:Variable Name="SectionCatFile"/>'/>
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsHostMode%22%20%2f%3e">
            <!-- Hidden field when in trial mode -->
            <input type="hidden" name="SHOP" value="<Actinic:Variable Name="HiddenFields"/>" />
            </actinic:block>
            </actinic:block>

            <div class="product_list">
            <div class="image_product"><actinic:variable name="ProductImageLayout" /></div>
            <div>
            <div style="float: right;">
            <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>
            </div>

            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsOutOfStockShown%22%20%2f%3e">
            <div style="float: right;"><strong><span class="actrequired"><Actinic:Variable Name="OutOfStock"/></span></strong></div>
            </actinic:block>

            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsCatalogSuspendedShown%22%20%2f%3e">
            <div style="float: right;"><strong><span class="actrequired"><Actinic:Variable Name="CatalogSuspended"/></span></strong></div>
            </actinic:block>

            <a name="<Actinic:Variable Name="EncodedProductAnchor"/>"></a>
            <h3 class="product"><Actinic:Variable Name="ProductName"/></h3>
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductReferenceVisible%22%20%2f%3e" >
            <p>Ref: <actinic:variable Name="ProductReference" /></p>
            </actinic:block>
            <h3 class="product_price">
            <actinic:block if="%3cactinic%3avariable%20name%3d%22PriceIsEnabled%22%20%2f%3e">
            <Actinic:PRICES PROD_REF="<actinic:variable Name="ProductID" />" RETAIL_PRICE_PROMPT="<Actinic:Variable Name="ProductPriceDescription"/>">
            <actinic:variable name="PriceListRetail" />
            </Actinic:PRICES>
            </actinic:block>
            <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e%20%3d%3d%20False">
            <Actinic:NOTINB2B><br /><actinic:variable name="ProductPriceNotEnabledMessage" /></Actinic:NOTINB2B>
            </actinic:block>
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsCustomerMessageUsed%22%20%2f%3e">
            <br />
            <Actinic:PRICE_EXPLANATION PROD_REF="<actinic:variable Name="ProductID" />" COMPONENTID=-1><Actinic:Variable Name="RetailCustomerMessage"/></Actinic:PRICE_EXPLANATION>
            </actinic:block>
            </h3>
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptShown%22%20%2f%3e">
            <p>
            <span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span><input type="text" name="Q_<actinic:variable Name="ProductID"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" class="form_input_general" />
            </p>
            </actinic:block>
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptHidden%22%20%2f%3e">
            <input type="hidden" name="Q_<actinic:variable Name="ProductID"/>" value="<actinic:variable name="DefaultQuantity"/>" />
            </actinic:block>
            <actinic:variable name="AttributeList" />
            <actinic:variable name="ComponentList" />
            </div>
            <p>
            <actinic:variable name="CartError" />
            <actinic:variable name="ProductDescription" />
            <actinic:variable name="ExtendedInformationLinks" />
            <actinic:block if="%3cactinic%3avariable%20name%3d%22FileURLNotEmpty%22%20%2f%3e">
            <br />
            <a href="<Actinic:Variable Name="ProductLinkInfo"/>">
            <Actinic:Variable Name="ProductLinkText"/>
            </a>
            </actinic:block>
            <actinic:block if="%3cactinic%3avariable%20name%3d%22DiscountDescriptionIsShownForProducts%22%20%2f%3e">
            <br /><actinic:variable name="DiscountList" value="Standard Discount List" />
            </actinic:block>

            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsOtherInfoPromptShown%22%20%2f%3e">
            <br />
            <span class="actrequired"><Actinic:Variable Name="OtherInfoPrompt"/></span><br />
            <input type="text" name="O_<actinic:variable Name="ProductID"/>" size="40" maxlength="1000" value="" />
            </actinic:block>

            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsDatePromptShown%22%20%2f%3e">
            <br />
            <span class="actrequired"><actinic:variable name="DatePrompt"/></span><br />
            <actinic:variable name="DayList" /><actinic:variable name="MonthList" /><actinic:variable name="YearList" />
            </actinic:block>

            <actinic:variable name="ProductAlsoBoughtList" />

            <actinic:variable name="ProductRelatedProductsList" />
            </p>
            </div>

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

            Comment


              #21
              1. Select your product layout in the 'Design' tab and locate the following line:

              <input type="text" name=="0" ProductReference" size="40" maxlength="1000" value="" />
              You've got 4 typo's in this line in your post #17 above. It should be

              Code:
              <input type="text" name="O_ProductReference" size="40" maxlength="1000" value="" />
              Note that in 8.5.1HFUA onwards it would be:
              Code:
              <input type="text" name="O_ProductID" size="40" maxlength="1000" value="" />
              Which when fully expanded looks like
              Code:
              <input type="text" name="O_<actinic:variable Name="ProductID"/>" size="40" maxlength="1000" value="" />
              </actinic:block>
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #22
                15 lines up from the bottom, looks like the AUG is using ProductReference still not ProductID.

                <input type="text" name="O_<actinic:variable Name="ProductID"/>" size="40" maxlength="1000" value="" />

                Comment


                  #23
                  HI Norman,

                  That would explain it.

                  How would anybody know that?

                  Surley the advance user guide should be relevant to the current version?

                  Comment


                    #24
                    Surley the advance user guide should be relevant to the current version?
                    It should be relevant to every version. Unfortunately that means that quite a few articles would need a list of sub-version specific notes. Probably confuse as much as it helps.

                    Regarding the line that you were to look for, someone went top the trouble of embedding an image of that line - so people could see it as displayed in the default Actinic prettyfied view. I guess that got missed when doing a global search / replace for ProductReference --> ProductID to keep the thing up to date after HFUA came out.

                    It is the Advanced Guide, so it could be expected that people using it have a reasonable level of technical skill and suss out minor tweaks themselves.
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #25
                      Maybe.....

                      I wouldnt say I wasnt technical but I'm also not a developer so wouldn't have a reason to know what each variable is used for etc. The guide is designed as a guide and therefore should be that....

                      Oh well, I've done the changes now...

                      Thanks for your help

                      Comment

                      Working...
                      X