Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

korsh

Archived
  • Posts

    109
  • Joined

  • Last visited

Profile Information

  • Real Name
    James O'Sullivan
  • Location
    Brisbane, Australia
  • Website

korsh's Achievements

  1. I am looking for a more flexible approach to AustPost and the DRC. I would like to be able to add the dimensions of each product in admin and send those dimensions along with the weight to the DRC instead of the standard 100x100x100 as set in admin because my products are all different sizes and weights. Is this possible? I have set up the data entry text boxes for length, width and height in admin and added the fields to the database but I am unsure where to look for the code that collects the information from the database to send to the DRC. Could anyone tell me which php file gathers this information together to send to the AUSTPOST module so I can try to add the lenght, width and height? I am almost certain it will not be as simple as I have described - it never can be so easy, but a pointer in the right direction would be a great help. James
  2. I changed the flat rate see flat rate() James
  3. Change line 120 in checkout_shipping.php 'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'), to 'title' => (($free_shipping == true) ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . $quote[0]['methods'][0]['title']), James
  4. Here is where I got it from http://www.visibone.com/catalog/CreditCardExplain.html James
  5. I can't remember where I go t it but here is what I use <body bgcolor=#FFFFFF> <table border="0" cellpadding="0" cellspacing="0" class="popupmain"> <tr> <td class="ppheading" style="height: 50px;" align="center">Insert Store logo here </TD> </tr> <tr><td><hr class="solid"></td></tr> <tr> <td class="pptext"> <p><span style="font:18px Verdana, Arial">It's easy to pay by credit card or by PayPal.</span> <br> <br> <span style="font:14px Verdana, Arial">You can pay by credit card without being a PayPal member. </span> <p><span style="font:14px Verdana, Arial">To pay by credit card, look for this button:<br><br> <img src="../images/PayPal-ContinueCheckout.gif" width="365" height="187"><br> <br> Or you may see this:<br> <br> <img src="../images/PayPal-no-account-Click-Here.gif" width="445" height="79"><br> <br> One of these options should appear on the first PayPal screen.<br> </span> <p><span style="font:14px Verdana, Arial">Note: if you are a PayPal member, you can either use your account, or use a credit card that is not associated with a PayPal account.<br> In that case you'd also need to use an email address that's not associated with a PayPal account. </span> <br> <p><span style="font:14px Verdana, Arial">Please email us if we can help. ? Store Staff, <a href="mailto:staff @mydomain.com">enquiries</a> </span> </td> </tr> <tr><td><br class="h10"></td></tr> </table> <p align="center"><center><span style="cursor:hand" onclick="javascript:window.close();return false;"><font color=blue><u>close this window</u></font></span></center></p> </span> </body> james
  6. Changing this line may be what you are looking for catalog/includes/modules/shipping/austpost.php line 98 $shipping_auspost_method = MODULE_SHIPPING_AUSPOST_TEXT_WAY. " <b>" . $topcode . "</b> - " . $days . " " . MODULE_SHIPPING_AUSPOST_TEXT_SHIPPINGDAYS . "<br>" .$shipping_num_boxes . " " .MODULE_SHIPPING_AUSPOST_TEXT_BOXES . " " . $total_weight . MODULE_SHIPPING_AUSPOST_TEXT_UNITS . $auspost_addons; and check catalog/includes/languages/english/modules/shipping/austpost.php <?php /* $Id: auspost.php,v 2.0.2 2003/10/15 osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ define('MODULE_SHIPPING_AUSPOST_TEXT_TITLE', 'AusPOST Parcel Post'); define('MODULE_SHIPPING_AUSPOST_TEXT_DESCRIPTION', 'AusPOST Parcel Post'); define('MODULE_SHIPPING_AUSPOST_TEXT_UNITS', 'kg(s)'); define('MODULE_SHIPPING_AUSPOST_TEXT_BOXES', 'boxes'); define('MODULE_SHIPPING_AUSPOST_TEXT_INCLUDE', 'incl'); define('MODULE_SHIPPING_AUSPOST_TEXT_HANDLING', 'handling'); define('MODULE_SHIPPING_AUSPOST_TEXT_INSURANCE', 'insurance'); define('MODULE_SHIPPING_AUSPOST_TEXT_SHIPPINGDAYS', 'days Estimated Delivery Time*'); define('MODULE_SHIPPING_AUSPOST_TEXT_WAY', 'Delivery to'); define('MODULE_SHIPPING_AUSPOST_TEXT_ERROR', '<font color="#FF0000">ERROR:</font></b> The delivery rate for this option cannot be determined at this time<br>If you prefer to use this option as your shipping method, please contact the store owner.'); ?> hth James
  7. you could also look at the shipping contributions Dimensional weight there may be some clues there james
  8. Hello Like yourself I am based in Australia and am interested in doing the same thing. I had a look at catalog/admin/categories.php around line 583 This is the code that creates the text box where you add the weight of your product in the admin. <tr> <td class="main"><?php echo TEXT_PRODUCTS_WEIGHT; ?></td> <td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . ' ' . tep_draw_input_field('products_weight', $pInfo->products_weight); ?></td> </tr> If I were to cut and paste these lines 3 times so that there were now four blocks of the same thing so I could change 3 of them for width, length and height. That's a very small step in the right direction. Now I am a bit of a hack at this so I would probably be guessing but you could search for all the references to TEXT_PRODUCTS_WEIGHT and make 3 copies of the lines of code and change WEIGHT for WIDTH, LENGTH and HEIGHT. As you have suggested you will have to add these items to the database. I should add that I would back up the database and admin/categories.php because this is sure to get very messy. There will no doubt be a whole lot of other files to change so it could take a while. You could wait until somebody knowlegeable comes along or you could jump in and have some fun. Work on a copy of your test copy so that if you break it you can just start again. hth James
  9. Harald, thanks for your prompt reply. No it occurs only on the second page. see screenshots
  10. <form name="checkout_confirmation" action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_cart"><input type="hidden" name="upload" value="1"><input type="hidden" name="item_name_1" value="Superglow"><input type="hidden" name="amount_1" value="3.60"><input type="hidden" name="tax_1" value="0.36"><input type="hidden" name="quantity_1" value="1"><input type="hidden" name="shipping_1" value="4.63"><input type="hidden" name="on0_1" value="Color"><input type="hidden" name="os0_1" value="two color mix"><input type="hidden" name="num_cart_items" value="1"><input type="hidden" name="business" value="[email protected]"><input type="hidden" name="amount" value="3.60"><input type="hidden" name="currency_code" value="USD"><input type="hidden" name="invoice" value="10072"><input type="hidden" name="custom" value="62"><input type="hidden" name="no_shipping" value="1"><input type="hidden" name="no_note" value="1"><input type="hidden" name="notify_url" value="http://www.mydomain.com/catalog/ext/modules/payment/paypal_ipn/ipn.php"><input type="hidden" name="return" value="http://www.mydomain.com/catalog/checkout_process.php"><input type="hidden" name="cancel_return" value="http://www.mydomain.com/catalog/checkout_payment.php"><input type="hidden" name="bn" value="osCommerce PayPal IPN v1.0"><input type="image" src="includes/languages/english/images/buttons/button_confirm_order.gif" border="0" alt="Confirm Order" title=" Confirm Order "></form>
  11. I would like to change the PayPal payment details showing using this contribution Sales tax to GST (the Australian taxation) and one instance of the total amount which appears twice see screenshot Does any one know where I can make these changes? James
  12. Thank you, I am glad that is cleared up.
  13. Yes, I modified the look tyo be comparable to v2.9 adding the following code to checkout_payment.php at line 252 <td class="main" colspan="3" nowrap><?php ? ? ? ? ? ? ? ? ? ? if ($selection[$i]['module'] == 'PayPal IPN') { ? ? ? ? ? ? ? ? ? ? ? ?> ? ? ? ? ? ? ? ? ? ? ? ? <big><b> ? ? ? ? ? ? ? ? ? ? ? ? ? Credit Card ? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="images/logo_ccVisa.gif" ? ? ? ? ? ? alt="Visa" width="37" height="21" ? ? border="0" ? ? ? ? ? ?align="bottom" title=" Visa "> ? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="/images/logo_ccMC.gif" ? ? ? alt="MasterCard" width="37" height="21" ? ? ? border="0" ? ? ?align="bottom" title=" MasterCard "> ? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="/images/logo_ccDiscover.gif" ? ? ? ? alt="Discover" width="37" height="21" border="0" ? ? ? ?align="bottom" title=" Discover "> ? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="/images/logo_ccAmex.gif" alt="American Express" width="37" height="21" ? ? border="0"align="bottom" title=" American Express "> ? ? ? ? ? ? ? ? ? ? ? ? ? or ? ? ? ? ? ? ? ? ? ? ? ? ? ? <img src="/images/banner_intl.gif" ? ? ? ? ? alt="PayPal" width="88" height="33" ? ? ?border="0" ? ? ? ? ?align="bottom" title=" PayPal "> ? ? ? ? ? ? ? ? ? ? ? ? </b></big> ? ? ? ? ? ? ? ? ? ? ? ? ? <br> ? ? ? ? ? ? ? ? ? ? ? ? ? You do not need to be a PayPal member to pay by credit card. ? ? ? ? ? ? ? ? ? ? ? ? ? <script> ? ? ? ? ? ? ? ? ? ? ? ? ? ? document.writeln('<a style="cursor:hand" onclick="javascript:popup=window.open(' ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?+ '\'http://www.mydomain.com/catalog/CreditCardExplain.htm\',\'popup\',' ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?+ '\'scrollbars,resizable,width=625,height=800,left=50,top=50\'); popup.focus(); return false;">' ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?+ '<font color="blue"><u>[info]</u></font></a>'); ? ? ? ? ? ? ? ? ? ? ? ? ? </script><noscript> ? ? ? ? ? ? ? ? ? ? ? ? ? ? <a href="CreditCardExplain.html" target="_blank"><font color="blue"><u>[info]</u></font></a> ? ? ? ? ? ? ? ? ? ? ? ? ? </noscript> ? ? ? ? ? ? ? ? ? ? ? <?php ? ? ? ? ? ? ? ? ? ? } else if ($selection[$i]['module'] == 'Check/Money Order') { ? ? ? ? ? ? ? ? ? ? ? ?><big><b>Check or Money Order </b></big> ? ? ? ? ? ? ? ? ? ? ? ? <img src="/check.gif" border=0 alt=" Send Us a Check " align="absmiddle"> ? ? ? ? ? ? ? ? ? ? ? <?php ? ? ? ? ? ? ? ? ? ? } else { ? ? ? ? ? ? ? ? ? ? ? echo '<big><b>' . $selection[$i]['module'] . '</b></big>'; ? ? ? ? ? ? ? ? ? ? } ? ? ? ? ? ? ? ? ? ?></td> and using CreditCardExplain.html from the contributions for a start I also changed the email notification in paypal_ipn.php hth James
  14. So far I have installed the new IPN from the OsCommerce team (easy) and tested (easy) and modified the look of it and the email sent out. Great simple solution. thank you. but I do have another query. When I attempt to activate the IPN on my Pay Pal account it is asking for the URL at which I will receive the payment notifications. (see screenshot). What is or where would I look for this URL address? Am I correct in using the notify URL address line 330 catalog/includes/modules/payment/paypal_ipn.php as the URL requested in the PayPal activation in my PayPal account? (see screenshot). $parameters['notify_url'] = tep_href_link('ext/modules/payment/paypal_ipn/ipn.php', '', 'SSL', false, false); so the address to enter would be www.mydomain.com/catalog/ext/modules/payment/paypal_ipn/ipn.php I placed this query in the wrong area and have added it here. James
  15. Am I correct in using the notify URL address line 330 catalog/includes/modules/payment/paypal_ipn.php as the URL requested in the PayPal activation in my PayPal account? (see screenshot). $parameters['notify_url'] = tep_href_link('ext/modules/payment/paypal_ipn/ipn.php', '', 'SSL', false, false); so the address to enter would be www.mydomain.com/catalog/ext/modules/payment/paypal_ipn/ipn.php'
×
×
  • Create New...