Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2006
    Posts
    75
    Plugin Contributions
    0

    Default Provide PHP code (module) how to?

    Hi,
    I have been provided some code to use for a shipping module. Which can be incorporated in Zen Carts. I am no coder and have no idea where to start.
    This is the code i was given. Can someone help.

    [FONT=Courier][FONT=Arial]These instructions are for web sites built using PHP scripting language versions 3 and 4.[/FONT]

    [FONT=Arial]1 ACTIVATING THE DRC [/FONT]


    [FONT=Arial]Send the following code to the DRC : [/FONT]

    [FONT=Courier]$myfile=file('http://drc.edeliver.com.au/ratecalc.asp?Pickup_Postcode='.$var_pickup.'&Destination_Postcode='.$var_destina tion.'&Country='.$var_country.'&Weight='.$var_weight.'&Service_Type='.$var_servi ce.'&Length='$var_length.'&Width='.$var_width.'&Height='.$var_height.'&Quantity= '.$var_quantity);[/FONT]


    [FONT=Arial]Note[/FONT][FONT=Arial] : Code in the above must be built as a single line.[/FONT]

    [FONT=Arial]Example of PHP query to obtain data for above code[/FONT]

    $qs .= 'Height='.$HTTP_POST_VARS["Height"].'&';
    $qs .= 'Length='.$HTTP_POST_VARS["Length"].'&';
    $qs .= 'Width='.$HTTP_POST_VARS["Width"].'&';
    $qs .= 'Weight='.$HTTP_POST_VARS["Weight"].'&';
    $qs .= 'Pickup_Postcode='.$HTTP_POST_VARS["Pickup_Postcode"].'&';
    $qs .= 'Destination_Postcode='.$HTTP_POST_VARS["Destination_Postcode"].'&';
    $qs .= 'Country='.$HTTP_POST_VARS["Country"].'&';
    $qs .= 'Service_Type='.$HTTP_POST_VARS["Service_Type"].'&';
    [FONT=Courier New]$qs .= 'Quantity='.$HTTP_POST_VARS["Quantity"]; . [/FONT]

    [/FONT]
    [FONT=Courier][FONT=Times New Roman]I have also been provided with Country Codes which can also be used.[/FONT]
    [FONT=Times New Roman]I.E. Australia --- AU[/FONT]

    I had a go and copyed the above code into a new file called it aust_post.php and uploaded it to
    **/catalog/includes/modules/shipping/
    This was a stab in the dark and didnt work :)

    Thanks to anyone that can help[/FONT]

  2. #2
    Join Date
    Dec 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: Provide PHP code (module) how to?

    Change of plan.
    I found in the modules download section, a pre-made Aust post module by Rod Gasson -- link to module http://www.zen-cart.com/index.php?ma...roducts_id=471

    I have installed this as directed. Directly into the /ADMIN folder and i have installed the file in the CUSTOM folder in to my own template folder.

    How do i see the necessary changes for this module? There is nothing in the Admin side of the webpage to give me information. So i dont know if this is working correctly or not. In the Modules/Shipping drop down there is no reference to Aust Post or its configuration.

    Any advice would be helpful.

    Thank you

    Tony Greenleaf

  3. #3
    Join Date
    Dec 2006
    Posts
    75
    Plugin Contributions
    0

    Default AU_Post Shipping mod by Rod Gasson - Help on installing

    [FONT=Verdana]I found in the modules download section, a pre-made Aust post module by Rod Gasson -- link to module http://www.zen-cart.com/index.php?ma...roducts_id=471[/FONT][FONT=Verdana]I have installed this as directed. Directly into the /ADMIN folder and i have installed the file in the CUSTOM folder in to my own template folder.[/FONT][FONT=Verdana]How do i see the necessary changes for this module? There is nothing in the Admin side of the webpage to give me information. So i dont know if this is working correctly or not. In the Modules/Shipping drop down there is no reference to Aust Post or its configuration.[/FONT][FONT=Verdana]Any advice would be helpful.[/FONT][FONT=Verdana]Thank you[/FONT][FONT=Verdana]Tony Greenleaf[/FONT]

  4. #4

    Default Re: AU_Post Shipping mod by Rod Gasson - Help on installing

    Did you go into your zen-cart admin and turn on the Australia Post Shipping Module (from the main menu, select Modules / Shipping) and make sure it's enabled (ie. has a green dot next to it).

  5. #5
    Join Date
    Dec 2006
    Posts
    75
    Plugin Contributions
    0

    Default Re: AU_Post Shipping mod by Rod Gasson - Help on installing

    Quote Originally Posted by funkey View Post
    Did you go into your zen-cart admin and turn on the Australia Post Shipping Module (from the main menu, select Modules / Shipping) and make sure it's enabled (ie. has a green dot next to it).
    Thanks worked it out. I had uploaded alittle incorrectly installing the catalog folder inside the catalog folder and so my setup was /catalog/catalog. Fixed it now.

    Now i can play with my settings.

 

 

Similar Threads

  1. Need help Installing Email Address Exporter Mod
    By robynannw in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 29 May 2010, 12:59 PM
  2. Help...tried installing the Time Zone Mod
    By kenny724 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Mar 2010, 08:19 PM
  3. Installing stock mod help
    By XlancealotX in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 May 2009, 04:50 AM
  4. Rod G's Austpost module - estimate shipping not showing?
    By caznjj in forum Addon Shipping Modules
    Replies: 0
    Last Post: 27 Apr 2007, 01:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg