Announcement

Collapse
No announcement yet.

Products won't add to cart

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

    Products won't add to cart

    This is my first real effort at an ecommerce site, in fact it's my first real effort at anything other than a static page site really so please go easy on me!

    I've been putting together a site www.authentics.info on location for a company and have had numerous problems, many of which i'm pleased to say i've found the answers to on these forums. One that i'm struggling with now though is an error as you try to add a product to the cart. Quite a major one considering the site will be useless without it!

    When you click the 'add to cart' button it comes up with the error message -
    'A General Script Error Occured - Error: Could not locate the product reference.'

    Heres an example product on the site so you can see what i mean [link]

    I also get the error "Variable 'ProductID' is used out of context" as I upload the site and guess this is something to do with it.

    I've been tearing a 2nd a***hole in the Actinic layout code so i figure i may have altered something of importance along the way. However i don't really fancy checking every single change i've made and wondered if someone can point me in the right direction.

    Any help would be greatly appreciated!
    Freelance web and graphic design - noncents.co.uk

    Multimedia internet marketing - melcroucher.com

    #2
    OK something is wrong with the cat files, thats what it looks like on first glance.

    Compact you databases then restart actinic, do a complete site refresh - not upload and see how you get on.

    You may need to ftp to your server and delete the files from your acatalog directory if it does not work then try a refresh

    Darren

    Comment


      #3
      Thanks for the response, I did everything you mentioned and i'm still getting the same errors i'm afraid. Anymore suggestions?
      Freelance web and graphic design - noncents.co.uk

      Multimedia internet marketing - melcroucher.com

      Comment


        #4
        Did you refresh the website from the Troubleshooting menu? Website Purge and refresh, tick cat and fil tickbox

        you need to be sure to clear all cat and fil files as part of the refresh routine.

        Comment


          #5
          I didn't try that first time but i just have now and i'm sorry to say it's still returning the same errors.

          When i click on the 'variable ProductID' errors they point towards various elements along these lines within the product segments:

          <actinic:block if="%3cactinic%3avariable%20name%3d%22CartButtonVisibleToAllCustomers%22%20%2f%3e" >
          <!-- This code is used when the cart button is visible to all customers -->
          <input type="submit" value="<Actinic:Variable Name="CartButtonText"/>" name="_<actinic:variable Name="ProductID"/>" class="form_button_add_to_cart" />
          </actinic:block>

          <actinic:block if="%3cactinic%3avariable%20name%3d%22EnabledForCustomerGroupID%22%20%2f%3e%20%21%3d%20%22%22">
          <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e">
          <!-- This code is used when the cart button is visible to retail customers, but not all other customer groups -->
          <Actinic:ShowForPriceSchedule Schedules="<actinic:variable name="EnabledForCustomerGroupID" />">
          <input type="submit" value="<Actinic:Variable Name="CartButtonText"/>" name="_<actinic:variable Name="ProductID"/>" class="form_button_add_to_cart" />
          </Actinic:ShowForPriceSchedule>
          </actinic:block>

          <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductPriceIsEnabled%22%20%2f%3e%20%3d%3d%20FALSE" >
          <!-- This code is used when the cart button needs to hidden from retail customers -->
          <Actinic:ShowForPriceSchedule Schedules="<actinic:variable name="EnabledForCustomerGroupID" />" HTML="<input type='submit' value='<Actinic:Variable Name="CartButtonText"/>' name='_<actinic:variable Name="ProductID"/>' class='form_button_add_to_cart' />"></Actinic:ShowForPriceSchedule>
          </actinic:block>
          </actinic:block>

          I don't know if that helps at all in solving the mystery. I've had the ProductID errors since i first got it up online a few days ago even on the default products i left in on my custom template.
          Freelance web and graphic design - noncents.co.uk

          Multimedia internet marketing - melcroucher.com

          Comment


            #6
            Revert the cart layouts back to factory settings and can you confirm that you have downloaded and applied the latest full version of the software and not the patch.

            Comment


              #7
              I've only installed the out the box version of Actinic V8, no patches or updates. Could you point me in the right direction for this?

              I'll try reverting the cart layouts now.
              Freelance web and graphic design - noncents.co.uk

              Multimedia internet marketing - melcroucher.com

              Comment


                #8
                Check what version you have first, may be an old CD. If it's not 8.5.1, then go to the actinic website and download the latest version.

                Comment


                  #9
                  I've only installed the out the box version of Actinic V8, no patches or updates.
                  this may be true but the site you've set us to is quite customised, therefore we suspect that you've customised something somewhere that has caused it to break.

                  Do you have a snapshot that does work that you can revert to, then you ca nreapply your changes in a more phased manner to catch your error.

                  If the site is still under dev then you should upgrade to 851 HFUA available on the actinic download area

                  Comment


                    #10
                    It's Alive!!!!

                    Just upgraded to V8.5.1 and re-uploaded and it's suddenly come to life!!!!!!!

                    Thanks for all the help guys, really appreciate you giving your time to help me on this, thats a massive weight of my mind. Time for stress free night of sleep for me now! Think i'll leave the rest of the minor tweaks til tomorrow.

                    Thanks again!
                    Freelance web and graphic design - noncents.co.uk

                    Multimedia internet marketing - melcroucher.com

                    Comment


                      #11
                      Nice design, well done.

                      Text on the drop down lists is maybe a bit small for some although it was fine for me.
                      Football Heaven

                      For all kinds of football souvenirs and memorabilia.

                      Comment


                        #12
                        Glad you got it sorted, just remember some buts in the layout look like they do nothing but actually do loads, the revert to factory default is a great new extra on V8

                        Nice layout though

                        Comment


                          #13
                          Now that it does work, just thought I'd point out that you have to scroll down a whole page to actually see the cart summary after clicking cart. This could confuse some people!

                          Nice clean design :-)

                          Comment


                            #14
                            Thanks for the kind comments on the site, still got a way to go on tweaking the layout yet before hand over. Expect to see a lot more of me on here in the future as i've just been offered another 2 Actinic based sites so be prepared for plenty of silly questions in the not too distant future!
                            Freelance web and graphic design - noncents.co.uk

                            Multimedia internet marketing - melcroucher.com

                            Comment


                              #15
                              so be prepared for plenty of silly questions in the not too distant future!
                              maybe you'll stop around for a while and answer a few Qs too

                              Comment

                              Working...
                              X