Announcement

Collapse
No announcement yet.

Server side PHP issue and ca00001.pl

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

    Server side PHP issue and ca00001.pl

    I am developing a site that is using server-side PHP within the product pages.

    This all works fine until you click on the "Add to basket" button with the number of products being = 0.

    This generates the ca000001.pl script, displays the error message at the top of the page and screws up my PHP.

    The PHP has to be server side otherwise I would have used it on the desktop.

    I know that you cant run PHP code within CGI scripts and it is not a problem on some CGI script pages like the Search Results page whereby I can check for the pagetype = Search Results and hide the PHP.

    Is there anything I can check for on the this page?
    Regards
    David

    #2
    You have answered your question really, just check for the basket, or in Actinic speak, 'Add to Cart Confirmation' and/or 'Shopping Cart'.
    Cheers

    David
    Located in Edinburgh UK

    http://twitter.com/mcfinster

    Comment


      #3
      Hi Dave - just did some further testing and I'm afraid this does not work. When it runs this CGI script the pagetype of the resultant page with the error = Section
      Regards
      David

      Comment


        #4
        Hmmm, works for me. Although it could be the bounce page you need to be looking at, something like this maybe:-

        Code:
        <actinic:variable name="PageType" /> != 'Add To Cart Confirmation' AND <actinic:variable name="PageType" /> != 'Bounce Page'
        Cheers

        David
        Located in Edinburgh UK

        http://twitter.com/mcfinster

        Comment

        Working...
        X