Announcement

Collapse
No announcement yet.

Product Hyperlinks in Shopping Cart

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

    Product Hyperlinks in Shopping Cart

    When veiwing the order/cart the product names that should act as a hyperlink back to the product page are not working. The browser displays the error message:

    "The specified product reference (488.9) couldn't be found."

    (even though the product reference is correct!)

    and then bounces to a page with the error message:

    "A General Script Error Occurred

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

    My site is live and this does not look good to the user!
    In testing everything was ok here and I think (although I am not 100% sure) that this problem has only just started recently on the live site.

    I have set the store up a bit different to the norm in that a product page is a section, which in trun contains a fragment for the description and then products for each of my price lines of the product itself.

    URL to my store is:
    http://www.inclusive.co.uk/catalogue/index.html

    Any help would be great thanks.

    Steve Pritchard
    Inclusive Technology
    01457 819790
    Steve Pritchard
    Inclusive Technology
    http://www.inclusive.co.uk/catalogue/index.html

    #2
    if you do a search for "The input is NULL" there are several threads on this error

    Comment


      #3
      Hi Jo,

      Thanks for the info. I've looked through these threads and the only one with the same problem as me is at:

      http://community.actinic.com/showthread.php?t=13233

      Unfortunatley this thread ends with a post from Nadeem saying:

      "I'm afraid there is no workaround for this bug as the moment, it will be fixed in a later release."

      Out of luck I guess!
      Anyone any ideas as to why this used to work on my site and has suddenly stopped?

      Thanks
      Steve Pritchard
      Steve Pritchard
      Inclusive Technology
      http://www.inclusive.co.uk/catalogue/index.html

      Comment


        #4
        Hi Steve,

        But you have got a workaround to take out the product link, so clients do not get this error message.

        Anyone any ideas as to why this used to work on my site and has suddenly stopped?
        Did you make any templates changes to do with searching? If so you may want to restore the original search template which is found in: C:\Program Files\Actinic v7\Formats\Themes\Business.

        Kind Regards
        Nadeem Rasool
        SellerDeck Development

        Comment


          #5
          Hi Nadeem,

          Thanks again for your advise.

          I now realise what has caused this after the penny dropped with the search fucntion.

          I have set my store up with a section to represent each product page. These sections contain a fragment for the description and then products for each of the price lines for the main product (e.g. a software title as the section and then all the formats as products). Because of this my search page would return a line for each of the price lines, which was messy and confusing for a user. As such I don't index products in the search anymore, only the fragments and their parent sections. Here in lies my problem on the hyperlink in the cart which uses the product refernce as part of the href.

          Looks like I'll have to settle for removing the hyperlink with the workaround.

          If anyone knows how I could pass the URL of the parent section of the product in the cart as the HREF to make the hyperlink work again I would be greatful for the advise.

          Regards
          Steve Pritchard
          Inclusive Technology
          http://www.inclusive.co.uk/catalogue/index.html
          Steve Pritchard
          Inclusive Technology
          http://www.inclusive.co.uk/catalogue/index.html

          Comment


            #6
            Problems with the work around

            Hi again,

            I have tried the work around to remove the hyperlink from the product name as below:

            You need to edit ActinicOrder.pm.

            Search for $sProdLinkFormat, you should see...

            my $sProdLinkFormat = "<A
            HREF=\"$::g_sSearchScript?PRODREF=%s&NOLOGIN=1$sShop\">%s</A>";

            replace with...

            my $sProdLinkFormat = "%s";


            Unfortunately this then removes the product name from the cart line and relaces it with the product reference (which means nothing to the customer).

            I have tried to edit the line of code so that the name is retained, but not the hyperlink, but I end up with a line of code generated nonsence.

            Can anyone help me to keep the name but loose the link please?
            Steve Pritchard
            Inclusive Technology
            http://www.inclusive.co.uk/catalogue/index.html

            Comment


              #7
              Try using
              Code:
              my $sProdLinkFormat = "<!-- %s -->%s";
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Norman,

                Works a treat - thank you very much sir.
                Steve Pritchard
                Inclusive Technology
                http://www.inclusive.co.uk/catalogue/index.html

                Comment


                  #9
                  Hi there i have just done this and it works well, for those having difficulty finding this line it is around line 3500, alternitavely you could open the file in dreamweaver and goto window- results (opens in properties panel) and you will see a search tab.

                  Comment

                  Working...
                  X