Announcement

Collapse
No announcement yet.

Discounts query

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

    Discounts query

    With Catalog 6.1.3, does anyone know a way of applying the discount feature only if customers enter a code? eg most people pay standard prices, but if those in the know type in "kjh256fdr" or some such secret code, the discounts kick in?

    Nick
    Fighting with sellerdeck on http://www.nickdobsonwines.co.uk

    #2
    Here's an idea that might be worth developing.

    Say you have product reference XYZ123. You could create a hidden product in the same section reference XYZ123-kjh256fdr priced at the discounted rate and add some Javascript to the original product that displays a textfield for the code and then emulates a submit button with the code appended to the submitted product reference. If the customer gets it wrong the product is "not found".

    You could also verify the code within the Javascript but some Jascript hackers might be able to infer the code by looking at the source unless you obfuscate it somewhat.

    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Attached are some notes on making a secret code buy a discounted product.

      Norman
      Attached Files
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Hi There,
        I think this is great idea.
        I have tried it with 6.1.3 but unfortunately I cannot get it to work.

        Has anyone managed it or got any suggestions.

        When I try to order using the secret code there is an error and it adds the full priced item to the basket.

        Any help appreciated.

        Simon

        Comment


          #5
          can anyone help with this please?

          Like I say there seems to be a script error and then it adds the full priced item to the cart.

          Very close, would like to get it working.

          Thanks

          Simon

          Comment


            #6
            Have you a URL so we can see the error and peek at the code>

            Norman
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Hi there,
              Here is a link to a test section I have made for you guys:
              http://www.bargain-shop-online.co.uk...test_only.html

              Only one item in there, self expalined. good luck

              Thanks

              Simon

              Comment


                #8
                Just another typo, sorry. I made the variable names more meaningful just before I posted this and in doing so I gave two things the same name.

                Here's a replacement Readme.

                Norman
                Attached Files
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Thanks Norman, will give it a go and let you know how I get on.

                  All the best

                  Simon

                  Comment


                    #10
                    Thanks Norman, that did the trick, its working perfectly now.

                    One last thing:
                    Do you think it would be possible to change the script to allow multiple secret codes that would all work.
                    E.g
                    xyzzy
                    xyzzy1
                    xyzzy2
                    xyzzy3 etc

                    Different codes for different people, not to allow different prices but so that you could stop say xyzzy2 from getting the discount (by removing that from the list) but still allow the others without issuing a new code.

                    Comment


                      #11
                      Here's a rewrite that allows several secret discount codes and also uses an unrelated suffix for the discounted product reference. This makes it harder for someone to crack the code as it's no longer visible as part the product reference.

                      Notes:-

                      Only tested with IE6.

                      Will only work on simple products with no attributes or prompts.

                      There are bound to be ways of getting round this but the customer would need some knowledge of Actinic and JavaScript.

                      Norman
                      Attached Files
                      Norman - www.drillpine.biz
                      Edinburgh, U K / Bitez, Turkey

                      Comment


                        #12
                        Thanks Norman,
                        Its got to be said, you are amazing.

                        Script works brilliantly.
                        For your info I'm currently using 6.1.3 with IE6

                        Thanks for taking the time to develop this.

                        Simon

                        Comment


                          #13
                          Please check with some alternative browsers as you won't want to annoy Netscape and Opera users (they're out there and they're usually quite vocal).

                          Norman
                          Norman - www.drillpine.biz
                          Edinburgh, U K / Bitez, Turkey

                          Comment


                            #14
                            Here's an update that allows for Prompts, Attributes, Components and also optionally displays the discounted price.

                            There are a few things it can't do but I think it will cover most types of products.

                            Norman
                            Attached Files
                            Norman - www.drillpine.biz
                            Edinburgh, U K / Bitez, Turkey

                            Comment


                              #15
                              Ignore the prior posting. I tidied the code a bit and this is the final version (for now).

                              Here's an update that allows for Prompts, Attributes, Components and also optionally displays the discounted price.

                              There are a few things it can't do but I think it will cover most types of products.

                              Norman
                              Attached Files
                              Norman - www.drillpine.biz
                              Edinburgh, U K / Bitez, Turkey

                              Comment

                              Working...
                              X