Announcement

Collapse
No announcement yet.

Paypal Button in V5

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

    Paypal Button in V5

    I have been trying to insert a Paypal button into V5. The HTML code places the button in the place I want it but on clicking on the button I get the following message:

    "Error: The specified product (reference submit) has just been removed from the catalog. Please return to the catalog and continue shopping. If you press the Refresh or Reload button on your browser, the removed products will no longer be visible in the catalog. We apologize for the inconvenience."

    I have tested the code in an HTML test page elsewhere and it works fine and goes through to a Paypal payment page with all my details. Can anyone explain to me what I am doing wrong?

    The code I am using is as follows:

    !!<<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="JQ8UM5CWU4DR6">
    <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
    </form>!!

    Any pointers gratefully accepted.

    #2
    You are probably putting the PayPal form inside another Actinic form. Such nested forms are not valid HTML.

    Move your PayPal form so it's not nested.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      If you want to use a custom PayPal button putting it in the description will put it inside the product form as Norman said, but you can get around that by putting your code after the product form ends in the product layout and creating a custom variable for the "hosted_button_id" reference. It would show on all products unless you created a new product layout or used Javascript to hide it.
      Peblaco

      Comment


        #4
        If you really need to have your PayPal form inside the Product Description (as it seems you're doing) then the following will work - but only if your Product Description comes after all other form fields (like the Cart button, Prompts, Attributes / Choices, etc).
        Code:
        !!<</form>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="JQ8UM5CWU4DR6">
        <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
        </form>
        <form>>!!
        The first line ends the current Actinic Product form, so no more nested forms.

        Then your PayPal form code.

        Then a final line that starts a new form - which will match with the </form> that Actinic puts at the end of each Product.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Many thanks

          Many thanks Norman and Peblaco.

          I will be 'having a go' again later today and will be using your inputs to see if I can get a valid working Paypal button operational on my V5 site. I'll let you know here how I manage.

          I do appreciate the time and effort taken in answering my queries - in most aspects of programming/changing coding etc. I am a self taught novice learning as I go along so any help is always gratefully accepted.

          Comment


            #6
            I have my Paypal button up and running. The coding I used was Norman's and it works a treat in my V5. Again many thanks - I have kept the little hair I have left intact!

            Comment

            Working...
            X