Announcement

Collapse
No announcement yet.

Ideas on the best way to do this …

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

    Ideas on the best way to do this …

    Hiya

    I’m not sure if this scenario is unique to me but would appreciate any ideas on the best way forward.

    Scenario:

    I have a .php page outside the Acatalog folder. On this page the customer has to enter a CODE and a test is done on this CODE.

    If CODE is incorrect:

    Take customer to the confirmation.php page, tell them it was an incorrect CODE and give them the option to go back to the index page.

    If CODE is correct:

    Take customer to the confirmation.php page and tell them the CODE entered was correct and then give them the option to go ahead and buy the product. If they click the “buy now” button they will go to the product page in the Acatalog folder where they can make the purchase as per usual.

    PROBLEM:

    I need to carry over the variable holding the CODE they entered in the .php page into the checkout stage and include it in:

    1) The email the customer gets.
    2) (If possible & preferably), in the actual order information one gets when downloading the order off Actinic.

    I have scouted the forum and seen info on using the ‘user definable fields’ in the Invoice Address part of “'Design | Text | Web SIte (cont)”. I have also seen info on using Norman Rouxel’s ‘MultipleOtherInoPrompts’.

    Any idea’s on the best way of doing this. It’s only one extra field that is required in the checkout stage but the problem is that the field must be populated with a variable passed to it from a .php page outside the Acatalog folder.

    Many thanks,

    hp.
    mobilize-me ltd
    www.mobilize-me.com

    #2
    I don't know about including it in the email but you could use the rs000001.pl script as described in the User Guide on Page 67.

    This would set a cookie that would appear in orders.

    What you need to do is write your PHP so that:
    If code == valid then
    location = (referrer script with code in built).
    Else
    location = sorry-code-is-not-valid.php

    If you see what I mean.

    This would allow you to capture that code. An example referrer string to use is:

    http://www.YOURSITE.com/cgi-bin/YOUR...YOURCOUPONCODE
    http://www.johnsons-seeds.com - Actinic plugins, remote add to cart and custom CMS
    http://www.dtbrownseeds.co.uk - More seeds and plants....
    http://www.mr-fothergills.co.uk - Well it used to be Actinic...

    Comment


      #3
      Thanks

      Thanks for the reply Dave.

      I may have to look into using this method, but at the moment I'm working on the idea of passing a hidden variable with the "CODE" as it's value to one of the 'User Definable Variables' (general info variables) within the code of Act_Order02 ... not sure if it will work but i'm gonna try.

      Thanks again.

      hp.
      mobilize-me ltd
      www.mobilize-me.com

      Comment

      Working...
      X