Announcement

Collapse
No announcement yet.

Product Code

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

    Product Code

    Hi there,

    Is it possible to get the product code to display on the shopping cart. I'm sure it is and I've searched through the other entries but I am still a little unsure.

    It would also be good if I could get a thumb of the product to appear.

    Thanks as always,

    Neil

    #2
    I've found the solution for the image thumbnail although I'm still having trouble with the product code.

    On the ShoppingCartXMl template the following code seems to be to do with product ref:

    NETQUOTEDEL:REFERENCE
    <TD WIDTH=90>
    <SPAN CLASS="actxsmall">NETQUOTEVAR:PRODUCTREFERENCE NETQUOTEVAR:PRODREF</SPAN></TD>
    NETQUOTEDEL:REFERENCE

    Sorry if I haven't displayed that correctly, however I still can't get my product code to show on cart pages.

    Any help greatly appreciated.


    Cheers,

    Neil

    Comment


      #3
      Hi,

      If you go to 'View | Business Settings | Options tab' and untick the 'Auto-generate product references, then they will be shown online.
      ********************
      Tracey
      SellerDeck

      Comment


        #4
        Hi Tracey,

        I have the products shown online but not in the cart section where my client specifically wants them to be. The reason is a lot of her products have the same name e.g. fashion ring, and she wants to avoid any confusion in terms of what they have in the shopping basket.

        Cheers,

        Neil

        Comment


          #5
          Why not type them in the front of the product description i.e.

          abc123b Red Sweatshirt
          Chris Ashdown

          Comment


            #6
            Cheers Chris,

            I have got about 100 hundred products so it could be a bit time consuming but if that is the only solution then so be it.

            I had a look around the ShoppingCartXMl template and it was confusing to day the least and I'm pretty good with HTML.

            Cheers,

            Neil

            Comment


              #7
              Hi,

              I have the products shown online but not in the cart section
              Do you mean the product references? If you have unticked 'auto-generate' product references then they should show against each product and be shown in the cart automatically. If they are not doing this then maybe you need to replace Act_ShoppingCartXML.html with an original template (c:\program files\actinic v7\formats\themes\ and then the BusinessCSS folder if you have stylesheet theme or Business folder if not).
              ********************
              Tracey
              SellerDeck

              Comment


                #8
                Yep thats done the trick, thanks Tracey.

                Now a couple of questions.

                Is there anyway to turn the visibilty of the product ref off for the components in the shopping basket as that does look confusing.

                The site is for female clothes and showing a different product ref for the item and the size / colour looks a bit muddled.

                Also is there anyway to get the product thumbnail in a seperate column in the shopping cart as it looks a bit messy in the column with the product description.

                Thank you everyone for your help thus far.

                Neil

                Comment


                  #9
                  Hi,

                  Is there anyway to turn the visibilty of the product ref off for the components in the shopping basket
                  Open ActinicOrder.pm found in your Site1 folder in a text editor such as notepad and search for:

                  $ProdTable .= ProductLineHTML($pComponent->{'REFERENCE'},

                  change this to:

                  $ProdTable .= ProductLineHTML($pComponent->{''},

                  Save and close the file and update your site.

                  Also is there anyway to get the product thumbnail in a seperate column in the shopping cart
                  This is a little more tricky. I have attached an amended template that should do what you want but you may get issues with the alignment of the component descriptions. These are brought in by the scripts and I can't see a way of aligning them exactly. The bits I've amended have comments surrounding them (with **** to make them stand out from the normal commenting in the template). You can change the cell widths as you like.

                  I hope this helps.
                  Attached Files
                  ********************
                  Tracey
                  SellerDeck

                  Comment


                    #10
                    Hi Tracey,

                    That works brilliantly. One last question (I hope).

                    When I select an item using "add to cart" the cart page (ca000001.pl) shows the component Ref Number. I didn't notice this before (was it there?).

                    Anyway to remove it?

                    Thanks,

                    Neil

                    Comment


                      #11
                      Hi,

                      I am assuming that you have your shopping mode set to 'Quantity on Confirmation Page' which is why you still get the component reference number when adding to basket. To get rid of this:

                      1. open ShoppingCart.pl (found in your Site1 folder) in a text editor such as notepad.

                      2. search for:

                      Code:
                      {
                      $hVariables{$::VARPREFIX."DISPLAYPRODUCTREF"} = '&nbsp;' . $sLine; # add the component ref to the var table
                      3. remove DISPLAYPRODUCTREF so it looks like:

                      Code:
                      ]{
                      $hVariables{$::VARPREFIX.""} = '&nbsp;' . $sLine; # add the component ref to the var table
                      4. Save and close the file and update your site.
                      ********************
                      Tracey
                      SellerDeck

                      Comment


                        #12
                        Hi Tracey,

                        Sorry I haven't gotten back sooner.

                        I tested the code and it stopped my cart from working altogether! Is there a typo in the code or something or is the error (more than likely) at my end!

                        Cheers,

                        Neil

                        Comment


                          #13
                          The ] is a typo. Use
                          Code:
                          {
                          $hVariables{$::VARPREFIX.""} = '&nbsp;' . $sLine; # add the component ref to the var table
                          However this is pretty weird code. Why not just comment out the entire line?
                          Norman - www.drillpine.biz
                          Edinburgh, U K / Bitez, Turkey

                          Comment


                            #14
                            Cheers Norman, I can take my dunces hat off now!

                            Comment


                              #15
                              Hi,

                              The ] is a typo.
                              Oops, sorry. I don't know how that got in there
                              ********************
                              Tracey
                              SellerDeck

                              Comment

                              Working...
                              X