Jump to content

tomten

Members
  • Content count

    16
  • Joined

  • Last visited

Profile Information

  • Real Name
    Tom Tenaglia
  1. tomten

    2gether Discount

    Amanda, I guess I don't need to know what the new in_cart_clean function does. I just modeled its structure and created a get_quantity_clean and changed get_quantity like we changed in_cart, and it appears to work perfectly! You are THE BEST! Thank you so much, and if I happen to run into any issues while I test this thoroughly, I'll be sure to post.
  2. tomten

    2gether Discount

    I'm beginning to think that we have to modify get_quanitity like we modified in_cart so that the get_quantity calls in ot_together's function calculate_2gether_discount can actually find a quantity of an item with attributes. My guess is this call is using the product id without attributes, and since the attributes are not included, the get_quantity function returns 0. Do you think this is correct? If so, how can I modify the get_quantity function in the same way that we modified in_cart? (I don't know how the new in_cart function works, so I have no idea how to modify the get_quantity function so that we can give it to option to check the quantity without attributes). Thanks.
  3. tomten

    2gether Discount

    I added the True to the two 'in_cart's in ot_together.php. Where else do I need to change it so that the correct uprid can get passed to the calculate_2gether_discount() function?
  4. tomten

    2gether Discount

    Now I fixed that... The attributes pass, and it recognizes both items in the cart. However, on checkout_payment.php, the discuont does not show up.
  5. tomten

    2gether Discount

    Now that I put the attributes in the 2gether form tags, the cart shows each item with a 2gether Special option. In other words, it thinks only one of the two items is in the cart.
  6. tomten

    2gether Discount

    I fixed the parse error. The changed product ids to include the attributes are not coming through when I hit the buy-2gether button, and the attributes are within the form tags.
  7. tomten

    2gether Discount

    A typo - I meant in_cart_clean. I pasted this code and got a parse error, so I'll look at it later, unless you happen to have some idea now that I corrected my error. The in_cart_clean is a function you wrote for me in an earlier post.
  8. tomten

    2gether Discount

    I have also modified the clean function changing the product_id to comb_id. Either way has no effect. Something is preventing the uprid from passing to the shopping cart page... I'm sure the osC/php expert that you are will have some insight. Your help is very valuable. Thank you so much.
  9. tomten

    2gether Discount

    What I notice is that the attributes aren't getting passed if the add_cart_clean function is being called... In other words, I add the true parameter to the shopping cart class and this makes the clean function get called, which, if I hover over the items in the cart at shopping_cart.php, they do not contain the attributes.
  10. tomten

    2gether Discount

    Amanda, This code is awesome. I also changed the add_cart function calls in includes/classes/shopping_cart.php to include the "true" paramter. This allows the buy-2gether items to show up as bought together in the cart. If the true is not included, the items do not show up as a buy-2gether special when added to the cart by the buy-together link. I added tep_ to the get_prid function call in the revised in_cart function. The download links still do not show up. If I don't use the "true" in the shopping cart class, the download links show up, but the items don't show up as 2-gether. Any ideas? We're almost there... :)
  11. tomten

    2gether Discount

    I changed the in_cart function as you specified. How do I go about getting the attributes to pass in the 2gether form or how do I make the 2gether button add the items from the original product info pages?
  12. tomten

    2gether Discount

    I'm a little confused. What is the purpose of changing the in_cart function? Wouldn't I just need to get the attributes to pass in the 2gether form? The issue that I'm having is I'm not sure how exactly to get either the attributes to pass in the 2gether form or to add the products from the individual product info pages. The attributes for both products would have to be passed. The feedback is great. I have an idea of where to go; I'm just not sure how to do it.
  13. tomten

    2gether Discount

    How could I rig 2gether to work with attributes? Apparently the Buy_Two module is supposed to work with attributes, but I can't get that to work, and no one is responding to that forum. Do you have any ideas for how I can get the attributes to pass so that it works? If I add the items separate, the download works without the discount. If I add the items together, the discount works without the download. Thanks!
  14. tomten

    2gether Discount

    Okay. The sort order fixed the first issue. The second issue is that if I bundle two downloadable products, the option to download them does not show up in the "Your Order Has Been Processed" page. If I order them separtely (not within a 2gether package), the download links show up. Thanks so much for an awesome module and for your support!
  15. tomten

    2gether Discount

    1) The two products get added, but the discount does not show and doesn't calculate into the total. 2) Also, the products are downloadable. Will the checkout process allow them both to be downloaded? Thanks!
×