Announcement

Collapse
No announcement yet.

Single add to cart & mini cart

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

    Single add to cart & mini cart

    Hi,

    Not sure what the problem is I've just changed to single add to cart which works great until you press the add to cart button with-out selecting any quanities.

    The page returns with an error

    "No products have been added to the shopping cart. Please enter the quantity of each product being ordered before pressing the 'Add to cart' button."

    If you follow the instructions and press the add to cart.
    you recive an error page

    A General Script Error Occurred

    --------------------------------------------------------------------------------
    Error: The input is NULL
    --------------------------------------------------------------------------------
    Press the Browser back button and try again or contact the site owner.


    Any Ideas?

    http://www.farmerschoicefreerange.co...rk_Joints.html

    #2
    I see it failing as you describe. However even though the Error: The input is NULL message is displayed the items are being added to the cart.

    Have you tinkered with the bounce page?

    Also your server is so slow (over 30 seconds per page load) I gave up looking into this further.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      No I haven't touch the bounce page.

      I think the server is slow due to me keep updating the site.

      All I have added laterly is the mini cart, single button and quantity dropdown boxes.

      Comment


        #4
        Hi

        Where would I locate the Bounce page? and would me editing it help with this problem?

        Jay Cee

        Comment


          #5
          Apologies to Norman,

          Yes I have changed the bounce page as I'm using Kermy workaround.

          my ($sSearchTag, $sReplaceTag);
          $sSearchTag = '</TITLE>';
          $sReplaceTag = $sSearchTag . "\n" .

          $sMetaTag; $sHTML =~ s/$sSearchTag/$sReplaceTag/ig;

          return ($::SUCCESS, '', $sHTML, 0);
          }

          Replace that whole section with:


          my ($sSearchTag, $sReplaceTag);
          $sSearchTag = '</TITLE>';
          my $tempStr = ".pl?SECTIONID";
          if ($ENV{'HTTP_REFERER'} =~ /$tempStr/i){ $sReplaceTag = $sSearchTag . "\n" . $sMetaTag;
          }
          else{
          $sReplaceTag = $sSearchTag . "\n" . "</head><body><script type='text/javascript'>window.location=document.referrer;</script></body></html>";
          }
          $sHTML =~ s/$sSearchTag/$sReplaceTag/ig;
          return ($::SUCCESS, '', $sHTML, 0);
          }

          Which if I remove solves the problem. But, is there any way this code can be altered so I can use it?

          Jay Cee

          Comment


            #6
            I've no idea what that patch is meant to do. Best contact the author.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment

            Working...
            X