Announcement

Collapse
No announcement yet.

Ad-hoc Payments

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

    Ad-hoc Payments

    There are occsaions when we have discussed a purchase with an overseas buyer and we just want them to send us a payment (an additional carriage charge for example).

    Is it possible to set up a product called, say, 'payment' and allow the customer to enter an amount in the price field?

    Richard

    #2
    I'm not aware of any way that a customer can amend the totals in their shopping cart or alike, the only way they make adjustments is by buying or removing something.

    The only thing that springs to mind is Paypal, where the user gets the chance to amend things before paying.

    Comment


      #3
      Is it possible to set up a product called, say, 'payment' and allow the customer to enter an amount in the price field?
      The rough and ready way: If you wanted to take payment to the nearest £ (or $), you could set up a product priced at £1 per unit quantity. You then ask the customer to buy n units.

      The exact way: Allowing the exact amount to be entered in a price field on the product can be done but requires a lot of bespoke Perl patching. Contact me by email if you want to discuss this.
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Lee, Norman, many thanks for the fast response.

        Norman, I think your idea is brilliant. However, if I set the product at 0.01p that should do the trick.

        I don't want to appear mean in not asking you for a bespoke solution. It's just this scenario happens maybe, once or twice a year and we'll collect something like £5 per time.

        Richard

        Comment


          #5
          Hi, Richard

          Sometimes the quick and dirty solutions work best. Especially if it's only for a rare occasion. Two things to watch out for

          1) The maximum quantity is 32767 so that's only £327ish if you use pennies.

          2) You may have problems if you use vat inc pricing as you can only enter 1p (ex vat) as the minimum product price.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Here is a replacement Product layout that hides the Quantity field and displays a Price £[ ] field instead. When you add this to cart the amount entered is multiplied by 100 and stored in the hidden Quantity field.

            Code:
            <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductFormUsed%22%20%2f%3e">
                  <form onsubmit="document.getElementById('Q_<Actinic:Variable Name="ProductReference" encoding="perl" selectable="false" />').value = Math.round(document.getElementById('PRC_<Actinic:Variable Name="ProductReference" encoding="perl" selectable="false" />').value * 100);" 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>
                     <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 value="Add To Cart Button With Cart Icon" name="AddToCartButton" />
                     </actinic:block>
            
                     <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="ProductReference" />" 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="ProductReference" />" 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">Price £</span>
                        <input type="text" id="PRC_<Actinic:Variable Name="ProductReference"/>" name="PRC_<Actinic:Variable Name="ProductReference"/>" size="4" value="1.00" class="form_input_general" />
                        <input type="hidden" id="Q_<Actinic:Variable Name="ProductReference"/>" name="Q_<Actinic:Variable Name="ProductReference"/>" size="4" value="" />
                        </p>
                     </actinic:block>
                     <actinic:block if="%3cactinic%3avariable%20name%3d%22IsQuantityPromptHidden%22%20%2f%3e">
                        <input type="hidden" name="Q_<actinic:variable name="ProductReference"/>"  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="ProductReference"/>" 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>
            To install this go to Design / Library / Layouts / Products. Right-click Standard Layout Using CSS and choose Copy. Rename this copy to be Price Override Standard Layout Using CSS. Open it and replace all the code with the code above. I've also attached the code to this post as it may not be too easy to copy from the sample above.

            Use it with a product where the price is set to 1p (ex VAT). And use on a Quantity on Product Page type of Section.
            Attached Files
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Norman, as ever, you're a star!

              Richard

              Comment


                #8
                Ad-hoc payments

                Hi Norman your solution seems to be the answer to a problem I have for ad-hoc payments however I am unable to install it. You wrote:

                To install this go to Design / Library / Layouts / Products....

                I don't know where to find the file "Design / Library / Layouts / Products Standard Layout Using CSS".

                I am using Actinic developer V7.0.6.000.GBGA.

                Could you give any pointers please.
                Wonkey Monkey
                Creative Design

                Web Design, Graphic Design and Print

                Comment


                  #9
                  This is the V8 forum and the patch above will only work in V8.
                  Norman - www.drillpine.biz
                  Edinburgh, U K / Bitez, Turkey

                  Comment

                  Working...
                  X