• Resolved smalldetails

    (@smalldetails)


    I was THRILLED to find your plugin after trying FOUR others. I’m building a site for a friends class reunion (gratis) and wanted a cart for merchandise (with color, size and price options) plus ticket sales. YOUR plugin was the only one that offered a fairly simple solution. I have everything in place but NOW find my Gravity contact forms produce a fatal error: Fatal error: Class ‘SimpleEcommCartGravityReader’ not found in /home/classreu/public_html/ehs84/wp-content/plugins/simple-e-commerce-shopping-cart/models/SimpleEcommCartShortcodeManager.php on line 433

    The website is: http://www.ehs84.classreunionpro.com and I would appreciate any help you might provide. This is a CUSTOM theme, btw but it’s based on WP’s twentyeleven (ten?).

    Signed, Desperate in Maryland

    PS I will upgrade for future installations since I really like the simplicity of this plugin.

    https://ww.wp.xz.cn/plugins/simple-e-commerce-shopping-cart/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author n.showket

    (@nshowketgmailcom)

    CODE BELOW IS CASUING THE ISSUE BECAUSE I ONLY SUPPORT GRAVITY FORM IN PRO VERSIOn..However feel free to modify it to make it work in simple ecomm.

    public function gravityFormToCart($entry) {
    if(SIMPLEECOMMCART_PRO) {
    $formId = SimpleEcommCartGravityReader::getGravityFormIdForEntry($entry[‘id’]);
    if($formId) {
    $productId = SimpleEcommCartProduct::getProductIdByGravityFormId($formId);
    if($productId > 0) {
    $product = new SimpleEcommCartProduct($productId);
    $qty = $product->gravityCheckForEntryQuantity($entry);
    $options = $product->gravityGetVariationPrices($entry);
    SimpleEcommCartSession::get(‘SimpleEcommCartCart’)->addItem($productId, $qty, $options, $entry[‘id’]);
    $cartPage = get_page_by_path(‘store/cart’);
    $cartPageLink = get_permalink($cartPage->ID);
    SimpleEcommCartSession::set(‘SimpleEcommCartLastPage’, $_SERVER[‘HTTP_REFERER’]);
    wp_redirect($cartPageLink);
    exit;
    }
    }
    }
    }

    Thread Starter smalldetails

    (@smalldetails)

    Thank you so much for getting back to me. I see the code in SimpleEcommCartShortcodeManager.php but my coding knowledge is limited. I wasn’t attempting to run the Gravity Forms THROUGH the Simple E-Comm cart plugin. I thought they would function separately. Gravity Forms is set up to handle contact forms only.

    As I said, I will purchase the pro version of the plugin for a paid project in the VERY near future but in the meantime can you please tell me how to adjust the code? Also where can I find pricing info for purchasing the pro version? I’ve done a search with no luck. MUCH APPRECIATED.

    Thread Starter smalldetails

    (@smalldetails)

    The above is NOT resolved, btw… I would REALLY appreciate help with this plugin conflict.

    Thread Starter smalldetails

    (@smalldetails)

    I resolved this on my own by deactivating Gravity Forms and installing a different contact form plugin (“Fast Secure Contact…”). There were no conflicts between your cart and this particular plugin. I also found info (on my own) in your “Orders” section of the dashboard (Simple Ecomm Cart plugin) as far as purchasing the Pro version of the cart. You might consider making this a little easier to find… I actually stumbled upon it after running some test transactions. (Renamed WpShopcart or http://smartwpplugin.com). We’re not ALL trying to rip you off or take advantage. We’re all in this together. I still like the plugin and hope to work with it again in the near future.

    Plugin Author n.showket

    (@nshowketgmailcom)

    I will keep this in my mind for future.
    Thanks
    Niaz

    I am having the same problem with my gravity forms. Can you tell me where to put the above code that you said would work:

    public function gravityFormToCart($entry) {
    if(SIMPLEECOMMCART_PRO) {
    $formId = SimpleEcommCartGravityReader::getGravityFormIdForEntry($entry[‘id’]);
    if($formId) {
    $productId = SimpleEcommCartProduct::getProductIdByGravityFormId($formId);
    if($productId > 0) {
    $product = new SimpleEcommCartProduct($productId);
    $qty = $product->gravityCheckForEntryQuantity($entry);
    $options = $product->gravityGetVariationPrices($entry);
    SimpleEcommCartSession::get(‘SimpleEcommCartCart’)->addItem($productId, $qty, $options, $entry[‘id’]);
    $cartPage = get_page_by_path(‘store/cart’);
    $cartPageLink = get_permalink($cartPage->ID);
    SimpleEcommCartSession::set(‘SimpleEcommCartLastPage’, $_SERVER[‘HTTP_REFERER’]);
    wp_redirect($cartPageLink);
    exit;
    }
    }
    }
    }

    Thank you,

    DHailey

    Plugin Author n.showket

    (@nshowketgmailcom)

    Hi,
    This gravity form will only work with PRO version.

    Thanks
    Niaz

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Simple Ecommerce Cart – Gravity Forms Conflict’ is closed to new replies.