Jump to content

wisekurt

Members
  • Content count

    7
  • Joined

  • Last visited

  1. wisekurt

    Restrict Shipping Method for 2.3

    Yes it works. Most likely what is happening here is the name of the shipping has a variable in it e.g. it gives the shipping time dynamically in the name. The mod looks for the name as its identifier, this is why I suggest flat rate as the best method. Otherwise you will need to modify the code for your shipping module so it doesn't implement time/weight quotes within the actual name itself. The only reason "Ground" wouldn't work is the above explanation, but it is good to know you got UPS to work. And yes the items must be separated by semi colon only. I didn't take much notice of this while writing up the guide.
  2. wisekurt

    Restrict Shipping Method for 2.3

    Sure all of this would be relative easy to do. The code to integrate some type of "icon" or notification that an order is unavailable is a good idea. I quickly knocked up this code taking advantage of the other loop on the page to achieve exactly this: checkout_shipping.php Find (approximately line 295): <tr> <td colspan="3"><strong><?php echo $quotes[$i]['module']; ?></strong> <?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } ?></td> </tr> Replace with: <?php if ($order->restrict_delivery == false || in_array($quotes[$i]['module'], $restrict_delivery_allowed) ) { echo '<tr><td colspan="3"><strong>' . $quotes[$i]['module'] . '</strong> '; if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon'] . '</td></tr>'; } } else { echo '<tr><td colspan="3"><strong>' . $quotes[$i]['module'] . '</strong> '; if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) { echo $quotes[$i]['icon']; } echo '(Unavailable on this order)</td></tr>'; } ?> You only need to change the text "(Unavailable on this order)" to what ever you want. This could be a static image e.g. <img src="" alt=""/> I will implement this code into the next version if there is enough interest. To use this code to pick up on DOB or the accounts state you would only really need to change what restrict_delivery actually refers to (which is currently a shipping type). But yes it can be done.
  3. This is the official support thread for Restrict Shipping Method for 2.3. This addon allows you to restrict shipping types/methods for certain products, or alternatively exclude certain shipping types for products. It is very effective if for example you have an item for sale in your shop that can ONLY be sent via courier but not post. So "courier" can be set as the restricted type of shipping method and enabled in (by selecting "1") that product. This addon is a modification of the "Restrict Delivery" addon for 2.2 by idolcemia, including modifications suggested by ReDYeViL. I have added instructions to allow you to modify which products are the restricted class in the admin backend (categories.php), where previously you had to modify it directly through the SQL database which can be extremely tedious. I changed the name of the addon to help with search results (personally it took me ages stumbling to find the original). See the addon here: http://addons.oscommerce.com/info/9071 Full credit to the original author idolcemia for the original code and addon.
  4. wisekurt

    FEDEX WSDL for v3 to v2.2

    I can't expect this to die as Fedex is quite a large postage company, however it is important that it is made soon. I have been talking to the IT web department from FedEx to see if they have any type of support for this, as their current "web server" software isn't really as easy to integrate as they are making out. Interestingly i cannot get this module to even display an error, nothing comes up other than a heading, if this is added. So it is not a sort order issue.
  5. wisekurt

    Bpay Module Support

    Hey guys, The Stephen Jang module is looking quite old, does anyone know of its compatibility with the RC2? For anyone non-Australian, BPAY is a reference number pay system. I'm sure multiple people will be greatly helped by an answer to this. :thumbsup:
  6. wisekurt

    Easy Discount

    Hi guys, been attempting to get this working, however have ran into an issue that i can't seem to fix. I have installed the application_top.php as per instructions Uploaded files installed module installed addons This is my code in shopping_cart require("includes/application_top.php"); include_once (DIR_WS_FUNCTIONS.'easy_discount.php'); $easy_discount->reset(); if ($cart->count_contents() > 0) { include(DIR_WS_CLASSES . 'payment.php'); $payment_modules = new payment; } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_SHOPPING_CART); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_SHOPPING_CART)); if ($cart->count_contents() == 2) { $easy_discount->add('QD','Cart discount',4.9); } else { $easy_discount->clear('QD'); } Works fine however in checkout_confirmation i have the standard pricing with no discount. I have fiddled with the sort order to no prevail, and yes it is installed. Any ideas?
×