Jump to content

fourmat

Members
  • Content count

    82
  • Joined

  • Last visited

Everything posted by fourmat

  1. Hello Pektsekye, I've tried to send you a PM, but you seem to have that capability turned off, so here goes. Thank you for the great YMM contribution. I have been looking for a method of doing this for quite a while. I have had to break down your instructions and install things manually into my highly modified cart. I do have a question though. Do you have a method to include the filter drop down boxes in the header? I would rather do that than take up another box. I have tried to patch the code in, but I am having a problem with the YMM parameters being passed, and it seems to mess up the buy now, add to cart buttons, and some things with the shopping cart functions. If I remove that code, everything is working fine. Basically I just inserted a modified version if your infobox code into the header, but I think that the tep_get_al_-get_params() function is messing some things up. Any ideas you have would be much appreciated. Thanks! Matt
  2. Hi Guys, I have a general question about payment modules. I have moved from the Linkpoint payment module to the SkipJack module. Linkpoint actually wrote the CC type and the CC number to the order screen and the database. The Skijack Module does not. I would like to know exactly what function in the payment module actually writes the numbers into the database. I have done a comparative analysis of the two modules (as well as others including the cc.php module), but something is getting past me. I can't quite determine how the module initiates the movement of the CC information into the database. Any help would be greatly appreciated. Thank you. Matt
  3. fourmat

    UPS Down

    Thanks Jan, It went down for about an hour, and must have come back up right before you looked... The bad part about it when they go down is that it causes some browsers to time out, and the carts get abandoned. Guess there isn't a way around that...but t happens so infrequently it's not worth messing with I suppose.
  4. fourmat

    UPS Down

    Hey is anyone else having problems connecting to UPS right now? All of my sites have suddenly gone down when trying to use the UPS XML in the checkout_shipping.php, and it returns this error: Rating and Service 1.0001 0 An unknown error occured while attempting to contact the UPS gateway But I haven't changed anything recently that would cause this to go down... If you can, please confirm that it's a UPS problem. Thanks.
  5. fourmat

    [Contribution] Cross Sell (X-Sell) Admin

    Prioritize Bug? I have installed v2.4 of the cross sell, and I'm having an issue with the Prioritize function. Say I have a series of t-shirts that I want to xsell. (Yes I know that I could use attributes here, but this is just an example) One Black Style, small medium large xlarge One White Style, small medium large xlarge I set up a xsell for the small White with all of the others as xsells and prioritize like this: 1-white medium, 2-white large, 3-white xlarge, 4-black small, 5-black medium, 6-black-large, 7-black xlarge Then I set up a xsell for the Black Small with all the others as xsells and prioritize like this: 1-black medium, 2-black large, 3-black xlarge, 4-white small, 5-white medium, 6-white -large, 7-white xlarge Here is the problem. When I prioritize one with the same xsell items, it overrides the xsell priority for the other product. It's as if each product can have only one priority assigned to it no matter where it is used, rather than have independent priorities. Is this a bug, or a feature I'm not getting?
  6. fourmat

    Shipping Challenge

    Hi Guys, I have a challenge for you. My client has a difficult shipping scenario for me to tackle. 1) Free Shipping to the 48 continental US 2) Anyone outside of the continental 48 needs to call for a shipping quote 3) One set of products ships free to a commercial address, and a fixed fee to a residential address. I have several contributions set up: Commercial/Residential, Individual Shipping, Free Shipping Only (Shipping Mod) among others. I have everything wiorked out except the scenario where the commercial/residential addresses come into play. Does anyone have any ideas how to accomplish this? Thanks! FourMat
  7. fourmat

    Orderlist contrib

    Hello, I actually found a fix for the problem that I was having where if the search criteria found no records, then there would be a SQL error. Here's what I did, In orderlist.php near line 388 find $rows = 0; $orders_split = new splitPageResults($_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, $orders_query_raw, $orders_query_numrows); $orders_query = tep_db_query($orders_query_raw); Just before, insert if ($records > 0){ Then towards the bottom of the file, find if ($printable != 'on') { and insert a } just before the statement to close out the "if" started previously. This seems to fix the problem and skips the offending code when no records are found.
  8. fourmat

    Orderlist contrib

    HI Guys, I have the Orderlist contrib installed and it seems to work fine. I have found a few bugs corresponding to the manufacturers, but I'm not concerned with that aspect so it's not a big deal. But there is an annoying bug that I can seem to figure out how to fix. When I first go to the contrib, and have yet to define any kind of search criteria, I get this error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-20, 20' at line 1 select *, ot.text as order_total from orders o left join orders_total ot on (o.orders_id = ot.orders_id), orders_status s where o.orders_status = s.orders_status_id and s.language_id = '1' and o.orders_status = '' and ot.class = 'ot_total' order by o.orders_id DESC limit -20, 20 I searched the orerlist.php file for the place where the limit -20, 20 section gets inserted but I've come up empty. There is apparently something that I don't understand yet concering the building of the SQL statement. The script seems to work fine without errors once I set some search criteria, but it doesn't instill confidence in my customer when they see this every time they initiate the contribution. Any help you can give would be greatly appreciated.
  9. fourmat

    New UPS XML Shipping Module available

    Jan that worked like a charm! Excellent work. And so fast to! I don't know if you are a man or a woman, but I'd kiss you on the lips for this either way! Thank you, Thank you!
  10. fourmat

    New UPS XML Shipping Module available

    Hi Jan, We are running into another problem with a shipping certain scenario. We have the cart set up so that there is a maximum weight of 50 lbs that goes into any one box for most items. But we have some single products that are over 50 lbs. The cart then separates these single products into 2 boxes. Is there a way to make the shopping cart put these items into once single box if a single item is over the max weight that should go into one box? I know this sounds a little weird, but we have many heavy products and many light products. We want to limit the weight of a single box that contains multiple pieces to prevent extra charges, but still have the heavier single items be considered a 1 box item. I hope I'm making this issue understandable. Thanks.
  11. fourmat

    New UPS XML Shipping Module available

    Well, your right, that probably isn't the best method to go after what I'm looking for. Even though I can hack through someone else's code to make what I need, I am not close to understanding everything that goes in in an order process yet. I think that your method has a lot of merit and I will integrate it into the code sometime tomorrow (I hope) and get back with you on it. Even though there isn't an admin panel, the number of products that we need to do this for isn't high enough to make it a pain to do through phpmyadmin until the time comes when someone has a few spare minutes to rub together to make it nice. Thanks for the help. You've saved my bacon (hopefully)....
  12. fourmat

    New UPS XML Shipping Module available

    Could it be as easy as creating a "shadow product" that is linked to a master product? We are currently using the Americart shopping cart service and it works like this. You add code to your HTML page that indicates that there is an extra box needed for a product, the service sees that then adds a separate product item to the shopping cart called something like "Widet1" (with the full item cost and weight of first box) and "Widget 1 Second Box" with a zero cost but the weight of the second box. The fact that it's added as two separate items before it gets to the shipping modules allows you to use any shipping method. Not sure how to go about getting that done though. That method wouldn't involve messing around with the UPSXML module and wouldn't be gemain to this topic anyway...
  13. fourmat

    New UPS XML Shipping Module available

    Hi JanZ, I have asked about this before in this topic and many times over the course of a couple of years in this message foum, and come to the conclusion that there isn't a contribution or method that is already out there that will easily allow a single product item to be split into 2 or more boxes and quoted as such through UPS. We have several items that are shipped into two separate Ready To Ship boxes, but sold as a single unit. I have had several instances of customers needing these capabilities, so I'm sure that it's not a rare shipping scenario. We've made due by increasing the weight of an item to compensate for the added cost, but it's a rough method at best wit complications. I am to the point where I am ready to start modifying the UPSXML module, product pages, and tables to accomplish this. The problem that I face is that I don't want to deviate from a supported module because I know that UPS changes their methodology once in a while and I would rather not be 100% responsible for a custom module, when I'm not all that knowledgeable about the other inner workings. The holy grail for me is if this feature could be integrated into the current UPSXML module as a version update so that we can keep the integrity of the work flow consistent. I would be willing to help in any way that I can with work flow, testing, or whatever else needs to be done to make this happen (within my capabilities). In my mind, I see this as an add on to RTS/dimensional support add on. If there are two boxes that need to be shipped for a single item, then they should each be RTS by themselves. All that would need to be done is add second weight field, and additional LWH fields for the separate items. Then the package QTY's and weights would need to be passed to the shopping_cart.php and UPSXML module for processing. (this is where I'm a little fuzzy as to all the in's and out's). Do you think that this is a worthy subject to apply effort to for the next upgrade to the UPSXML module?
  14. fourmat

    New UPS XML Shipping Module available

    OK , I figured out why the weight was 0 on the RTS orders. When I installed the dimensional stuff, I overwrote the weight select statement in the SQL query in shopping_cart.php . duh....I knew it was something stupid. Thanks for pointing me in the right direction JanZ!
  15. fourmat

    New UPS XML Shipping Module available

    OK I've taken a look at this trying to debug why I'm getting 0 weight when I enable Ready To Ship. The products weights are not low, so that's not the issue. It appears that the total weight is being transfered, but when the following code tries to separate the products and calculate the weight, apparently the weight information is not being transfered. This is the section in question. I have added echos to verify what data is or isn't being transfered. } elseif ($this->dimensions_support == '1') { $totalWeight = 0; $total_non_ready_to_ship_weight = 0; $total_non_ready_to_ship_value = 0; // sort $productsArray according to ready-to-ship (first) and not-ready-to-ship (last) usort($productsArray, ready_to_shipCmp); $non_ready_to_shipArray = array(); // walk through the productsArray, separate the items ready-to-ship and add them to // the items (boxes) list, add the weight to the totalWeight // and add the other items to a separate array for ($i = 0; $i < count($productsArray); $i++) { if ($productsArray[$i]['ready_to_ship'] == '1') { for ($z = 0 ; $z < $productsArray[$i]['quantity']; $z++) { echo "productsArray[$i]['quantity']= " . $productsArray[$i]['quantity'] . " | $i <br>"; $this->_addItem($productsArray[$i]['length'], $productsArray[$i]['width'], $productsArray[$i]['height'], $productsArray[$i]['weight'], (MODULE_SHIPPING_UPSXML_INSURE == 'False' ? $this->pkgvalue : $productsArray[$i]['final_price'])); echo "productsArray[$i]['weight']= " . $productsArray[$i]['weight'] . " | <br>"; $totalWeight += $productsArray[$i]['weight'] ; echo "totalWeight= " . $totalWeight . " | <br>"; } // end for ($z = 0 ; $z < $productsArray[$i]['quantity']; $z++) } // end if($productsArray['ready_to_ship'] == '1') else { $non_ready_to_shipArray[] = $productsArray[$i]; } } // end for ($i = 0; $i < count($productsArray); $i++) // Ready_to_ship items out of the way, now assess remaining weight and remaining value of products for ($x = 0 ; $x < count($non_ready_to_shipArray) ; $x++) { $total_non_ready_to_ship_weight += ($non_ready_to_shipArray[$x]['weight'] * $non_ready_to_shipArray[$x]['quantity']); echo "non_ready_to_shipArray[$x]['weight']= " . $non_ready_to_shipArray[$x]['weight'] . " |<br> "; echo "non_ready_to_shipArray[$x]['quantity']= " . $non_ready_to_shipArray[$x]['quantity'] . " | <br>"; $total_non_ready_to_ship_value += ($non_ready_to_shipArray[$x]['final_price'] * $non_ready_to_shipArray[$x]['quantity']); } // end for ($x = 0 ; count($non_ready_to_shipArray) ; $x++) if (tep_not_null($non_ready_to_shipArray)) { // adapted code from includes/classes/shipping.php $shipping_non_ready_to_ship_boxes = 1; $shipping_non_ready_to_ship_weight = $total_non_ready_to_ship_weight; if (SHIPPING_BOX_WEIGHT >= $total_non_ready_to_ship_weight*SHIPPING_BOX_PADDING/100) { $total_non_ready_to_ship_weight = $total_non_ready_to_ship_weight+SHIPPING_BOX_WEIGHT; } else { $total_non_ready_to_ship_weight += $total_non_ready_to_ship_weight*SHIPPING_BOX_PADDING/100; } if ($total_non_ready_to_ship_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes $shipping_non_ready_to_ship_boxes = ceil($total_non_ready_to_ship_weight/SHIPPING_MAX_WEIGHT); $shipping_non_ready_to_ship_weight = round($total_non_ready_to_ship_weight/$shipping_non_ready_to_ship_boxes,1); } // end adapted code from includes/classes/shipping.php // weight and number of boxes of non-read-to-ship is determined, now add them to the items list for ($y = 0; $y < $shipping_non_ready_to_ship_boxes ; $y++) { $this->_addItem(0, 0, 0, $shipping_non_ready_to_ship_weight, (MODULE_SHIPPING_UPSXML_INSURE == 'False' ? $this->pkgvalue : number_format(($total_non_ready_to_ship_value/$shipping_non_ready_to_ship_boxes), 2, '.', '')) ); $totalWeight += $shipping_non_ready_to_ship_weight; } // end for ($y = 0; $y < $shipping_non_ready_to_ship_boxes ; $y++) } // end if (tep_not_null($non_ready_to_shipArray)) } else { I placed an order with 4 items, 2 RTS and 2 Non-RTS and here is the echo output: shipping_weight1= 7.15 | shipping_num_boxes1= 1 | total_weight1= 6.15 | productsArray[0]['quantity']= 1 | 0 productsArray[0]['weight']= | totalWeight= 0 | productsArray[1]['quantity']= 1 | 1 productsArray[1]['weight']= | totalWeight= 0 | non_ready_to_shipArray[0]['weight']= | non_ready_to_shipArray[0]['quantity']= 1 | non_ready_to_shipArray[1]['weight']= | non_ready_to_shipArray[1]['quantity']= 1 | It is receiving the shipping weight (7.15) and the total_weight (6.15 - subtract 1 lb for box weight) just fine. It seems as though the productsArray[$i]['weight'] and non_ready_to_shipArray[$x]['weight'] is not receiving the weight information from wherever is was supposed to get it. Any ideas? Everything else seems to be functioning properly and is working fine, quoting, package numbers, etc. Just this one major problem left....
  16. fourmat

    New UPS XML Shipping Module available

    Thanks for eh reply JanZ. All of my products do have a default package size entered into the fields as 12x12x12. I have taken a look at the function you specified earlier and it seems to want to find a package size of 0x0x0. Once it finds that, it will calculate a package density of 0.7. Should I set them all to 0? I guess I could try it. (Just did, but didn't seem to change anything. Still got 0 weight) Now, does the size of the box that the "ready to ship" item goes in need to be set up in the Packaging section for the function to work properly? Just enetered that, and it didn't seem to do much either.... I also have another problem where we have several products that need to be shipped in 2 separate boxes by themselves. I have yet to figure out a way to make this happen and get accurate shipping. I thought that the ready to ship function might work, but as I dig into it a little more, it doesn't seem to. I have also installed an "Individual Shipping" method, but when that is activated, the UPSXML method ceases to work at all. Does anyone have any idea how I might pull this off?
  17. fourmat

    New UPS XML Shipping Module available

    argh, sorry about the multiple posts, can someone delete the dups for me? browser hung....seems like a common problem on this board....
  18. Hello, I have the UPS XML 1.2.6 installed. I have a need to use the Ready To Ship feature for only a few of the products we carry, but then have all of the rest be calculated using the standard UPS method. I do not want to use the dimensional support for any products other than the ones designated ready to ship. When I enable Ready To Ship I get the following outcomes: 1) For items that do not use the Ready To Ship designation: UPSXML returns 0 lbs total and calculates based on the minimum shipping weight/size. 2) 1 item designated ready to ship, 1 item supposed to be calculated normally: UPSXML returns 2 packages with 0 lbs total With Ready To Ship turned off, standard shipping turned on, all calculations come out OK. Correct me if I'm wrong. In reading the instructions for the dimensional support feature, I understood that the Ready To Ship option would be used to calculate any product that was designated as ready to ship in the admin section. All other products in the same order would then be grouped together and calculated using the standard UPS weight basis. Am I reading or understanding something wrong? Should this be the outcome for the above scenarios? Thank you for any help you can give.
  19. fourmat

    New UPS XML Shipping Module available

    Hello, I have the UPS XML 1.2.6 installed. I have a need to use the Ready To Ship feature for only a few of the products we carry, but then have all of the rest be calculated using the standard UPS method. I do not want to use the dimensional support for any products other than the ones designated ready to ship. When I enable Ready To Ship I get the following outcomes: 1) For items that do not use the Ready To Ship designation: UPSXML returns 0 lbs total and calculates based on the minimum shipping weight/size. 2) 1 item designated ready to ship, 1 item supposed to be calculated normally: UPSXML returns 2 packages with 0 lbs total With Ready To Ship turned off, standard shipping turned on, all calculations come out OK. Correct me if I'm wrong. In reading the instructions for the dimensional support feature, I understood that the Ready To Ship option would be used to calculate any product that was designated as ready to ship in the admin section. All other products in the same order would then be grouped together and calculated using the standard UPS weight basis. Am I reading or understanding something wrong? Should this be the outcome for the above scenarios? Thank you for any help you can give.
  20. fourmat

    New UPS XML Shipping Module available

    Hello, I have the UPS XML 1.2.6 installed. I have a need to use the Ready To Ship feature for only a few of the products we carry, but then have all of the rest be calculated using the standard UPS method. I do not want to use the dimensional support for any products other than the ones designated ready to ship. When I enable Ready To Ship I get the following outcomes: 1) For items that do not use the Ready To Ship designation: UPSXML returns 0 lbs total and calculates based on the minimum shipping weight/size. 2) 1 item designated ready to ship, 1 item supposed to be calculated normally: UPSXML returns 2 packages with 0 lbs total With Ready To Ship turned off, standard shipping turned on, all calculations come out OK. Correct me if I'm wrong. In reading the instructions for the dimensional support feature, I understood that the Ready To Ship option would be used to calculate any product that was designated as ready to ship in the admin section. All other products in the same order would then be grouped together and calculated using the standard UPS weight basis. Am I reading or understanding something wrong? Should this be the outcome for the above scenarios? Thank you for any help you can give.
  21. fourmat

    New UPS XML Shipping Module available

    Hello, I have the UPS XML 1.2.6 installed. I have a need to use the Ready To Ship feature for only a few of the products we carry, but then have all of the rest be calculated using the standard UPS method. I do not want to use the dimensional support for any products other than the ones designated ready to ship. When I enable Ready To Ship I get the following outcomes: 1) For items that do not use the Ready To Ship designation: UPSXML returns 0 lbs total and calculates based on the minimum shipping weight/size. 2) 1 item designated ready to ship, 1 item supposed to be calculated normally: UPSXML returns 2 packages with 0 lbs total With Ready To Ship turned off, standard shipping turned on, all calculations come out OK. Correct me if I'm wrong. In reading the instructions for the dimensional support feature, I understood that the Ready To Ship option would be used to calculate any product that was designated as ready to ship in the admin section. All other products in the same order would then be grouped together and calculated using the standard UPS weight basis. Am I reading or understanding something wrong? Should this be the outcome for the above scenarios? Thank you for any help you can give.
  22. I have been trying to find a solution to this problem for quite some time. I have a client who has set up the Standard UPS shipping methods and typically ships by item weight. Some of the items however are shipped in 2 separate boxes. Is there a way to set this up inside of OSC so that we can designate that there are multiple boxes per item? Or is there another way to tackle this problem without having to create a dimensional packaging setup with the UPS XML contrib and go through all of the products (1500+) and get dimensions?
  23. Hello all, I have a situation where I have a single product that needs to be shipped in multiple boxes via UPS. I had been using another shopping cart service (Americart) which would let you designate a multiple box product, but so far, I haven't been able to find any way to make OSC perform that function. I did see the UPS XML contrubution with the dimensional support, but I have over 1100 products, and there are only 3 or 4 which need the multiple box scenario. I can't go through and enter the boxing dimensions for all of the other products. So it's important to be abel to speficy this multiple box option for each product. Is there a contribution out there or a method to get this done? Any help would be greatly appreciated, and I'm sure that there are others out there who could benefit from this information.
  24. I now have the UPS XML contrib up and running, but I still need the multiple box options for some products. Does anyone have any idea where I might start to build this feature in? I would imagine that you would have to add another column for a second box weight in the SQL table and then tell the UPS module to calculate te cost of the second box, then addit to the cost of the first box. I'm nt familiar enough with the scripts to make this happen. Anyone have any ideas here? Thanks...
  25. Hi Tom, This is a really great contrib and I have been able to get everything working except for the thumbnail cache. Here's my story: I'm using the Content Management system PHPnuke with OSC intergrated into it (www.osc2nuke.com). OSC contributons usually integrate just fine with small path modifications. Yours is especially nice in that way because it is a simple mod. I have been able to implement the contribution just fine with a modification to the path html_output.php file, but I am having a problem with the thumbnail cache creation. The script is located in the directory http://www.fourmattech.com/osc2nuke2/html/.../imagemagic.php. I have tried various locations in the admin for the thumbnail directory from /thumbnails to thumbnails (among others) without the / to the full path. I have created thumbnail directories in just about every folder from the root, down to the images under the catalog and made sure that the permissions were set to 0777, but no matter what I do, I get the following statement when I go to view the image that was supposed to have been generated: I changed the code to add echo "$path"; just above line 374 and as you can see from the top of the code, it's trying to find the right folder, but it is having problems. Where exactly is the path designation for the script to find the thumbnail directories? Is there a location where I can hard code the beginning of the thumbnail path or the location where it needs to start looking? Any help would be appreciated. http://www.fourmattech.com/osc2nuke2/html/index.php You need to turn off the thumbnail cache. Read through the other section of this forum, and then through the readme file to find out how to get the thumbnail cache working for you.
×