PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Product Pricing not Showing or Adding Up - Cart 66 Integration

  1. I have a form integrated under a Cart 66 product at http://www.speedypost.net/order-form in which my products are not showing prices, and when I "add to cart", the total is $0. I went in and checked all of the pricing on each product (Post Style, Solar Post Light, etc...) and they are all entered into a "product" drop down with pricing and values added.

    Am I missing something in regards to settings in Gravity Forms?

    Also, when I add a 'total' space at the bottom of the form, it does not update the totals either. Pulling my hair out on this one, so any help is welcomed! THANKS!

    Posted 9 years ago on Monday April 18, 2011 | Permalink
  2. Ok, update! I got the products and options to finally tally up in the 'total' box, but it still does not show in the Cart 66 cart. Is there a selection on your end that I am missing, or do I need to bark up the Cart 66 tree for integration?

    THANKS!

    Posted 9 years ago on Monday April 18, 2011 | Permalink
  3. You would have to contact the Cart66 team for integration questions related to the Gravity Forms / Cart66 integration. We aren't familiar with the integration and it is entirely handled by Cart66 itself.

    Posted 9 years ago on Monday April 18, 2011 | Permalink
  4. Thanks, I found out they do not support 1.5 as of yet. On another note, is there anywhere online that has some training on writing hooks to dynamically fill in fields that would be easy to relate over to Gravity Forms?

    Posted 9 years ago on Monday April 18, 2011 | Permalink
  5. mrhoneyfoot
    Member

    Had the same problem with cart66. Here's to hoping they clean up their act.

    Posted 9 years ago on Wednesday April 20, 2011 | Permalink
  6. I'm having same issue...

    Posted 9 years ago on Tuesday May 3, 2011 | Permalink
  7. @skyyomedia See above, we have no involvement in the Cart66 integration. It's entirely on their end so you will need to get with their support to work out the issue.

    Posted 9 years ago on Tuesday May 3, 2011 | Permalink
  8. Ok, thanks. It appears that they don't support your pricing fields.

    Question: How well does GF work as an ordering system?

    Do any customers use GF solely for this purpose? ( specifically for order forms and management of orders)

    Thanks

    Posted 9 years ago on Tuesday May 3, 2011 | Permalink
  9. Gravity Forms works fine for order forms if you don't require shopping cart functionality and you are fine with using PayPal Standard as that is currently the only Payment Gateway currently supported and yes people use it solely for this purpose. It just depends on what your needs are and how advanced your use case is. If your ordering can be accomplished through the use of a simple order form with PayPal then Gravity Forms should do the job.

    Posted 9 years ago on Tuesday May 3, 2011 | Permalink
  10. I've worked with passing the "Total" to Cart66 with a little bit of hacking, and it works great. In my case I wanted to sell three different priced tickets with a choice of performance all from the same order form. I found that without gravity forms and my hack I couldn't do it and have quantities for each ticket type. Works great, although if anyone was to change the shopping cart quantity it would multiply the entire order (but in a lot of ways that makes sense, plus you can always hide the quantity column on the shopping cart).

    Posted 8 years ago on Wednesday June 15, 2011 | Permalink
  11. paulc010
    If you get this email - can you post your code for the hack if you can- for cart66 and GF. I am using it in a similar manner and it would be helpful to see what you did.
    Thanks

    FM

    Posted 8 years ago on Tuesday June 21, 2011 | Permalink
  12. There are only 2 files affected. First we need to pass the gravityform Id to the Cart66Product::gravityGetVariationPrices() function. This is called from Cart66ShortcodeManager::gravityFormToCart. In 1.1.3 this function is at line 484 (models/Cart66ShortcodeManager.php) and you need to change line 492 to:
    $options = $product->gravityGetVariationPrices($entry, $formId);

    The we modify the Cart66Product::gravityGetVariationPrices function (model/Cart66Product.php). In reverse order to preserve the line numbers:

    Insert after line 712:

    if ($id && $id == $totalField)
              $options[] = '+$'.$value;

    Insert after line 705

    $totalField == false;
    
        if($formId!=0) {
          $gForm = new Cart66GravityReader($formId);
          if ($gForm) {
            $gFields = $gForm->getStandardFields();
            foreach ($gFields as $key => $value)
              if (strtolower($value) == 'total')
                $totalField = $key;
          }
          Cart66Common::log('[' . basename(__FILE__) . ' - line ' . __LINE__ . "] Gravity Form:  " . print_r($totalField, true));
        }

    And finally modify line 704 to become:

    public function gravityGetVariationPrices($gfEntry, $formId = 0) {

    Basically you avoid using the "+$x.xx" in any form elements as this is what Cart66 uses to indicate a price-affecting field. The above then converts the "total" field into such a price-affecting field and as a result passes the total as computed by Gravity forms as the complete price. Note that the total field must be called "Total"!! If you want it to be called something else, then you need to edit the comparison in the above. Remember also that changing the quantity in the Cart66 "Shopping Cart" multiplies this total.... could be confusing.

    Posted 8 years ago on Wednesday June 22, 2011 | Permalink
  13. mrez
    Member

    paulc010, This looks like I need your hack as well....could you please post the entire function after the above changes so I can be sure I've inserted the changes correctly!

    thanks

    Posted 8 years ago on Wednesday July 6, 2011 | Permalink