Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

jsmith2

Archived
  • Posts

    44
  • Joined

  • Last visited

Posts posted by jsmith2

  1. I'm not sure if QT pro is the issue here, basically its a mod that checks the stock of each product attribute. Because OSC did not come with this ugh.

     

    The line I'm supposed to replace in products_info.php is

     

    $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'");

     

     

    BUT, its this line instead:

     

     

     

    $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");

    $products_attributes = tep_db_fetch_array($products_attributes_query);

    if ($products_attributes['total'] > 0) {

     

    @ line 134

     

     

     

     

     

    This is the error message I'm getting~

     

     

     

    Parse error: parse error, unexpected '}' in /home/content/j/s/m/jsmith1/html/bac/product_info.php on line 253

  2. I am using the Authorize.net AIM module bundled in with OS Commerce v2.2:

     

    Authorize.net Advanced Integration Method v1.0

    http://www.oscommerce.com/community/contri...M+authorize.net

     

    My site is on a godaddy server, and i know i have to modify the php in order for it to support curl.

     

    According to godaddy:

    http://help.godaddy.com/article/289?prog_id=GoDaddy

     

    1) Which files do i have to modify so the php will support curl? Please specify line by line value if possible (according to this contribution) ...

    2) How do I know which is my correct curl directory (that the module asks for)?

     

    Currently when it gets to the checkout page it just sits there and sort of hangs. Please help!

     

    ------------

     

    Please let me know also if there are any better contributions out there that will work flawlessly with Authorize.net AIM and on a godaddy server, or what I can do to fix my issue. I've scoured the forums for any documentation and have found none.

     

    Thank you!

     

    Have you found an issue to this?

     

     

    Here is a few lines in my authorizenet_cc_aim.php

     

    if (function_exists('curl_init')) {

    $curl = curl_init($server['scheme'] . '://' . $server['host'] . $server['curl'] . (isset($server['query']) ? '?' . $server['query'] : ''));

    curl_setopt($curl, CURLOPT_PORT, $server['port']);

    curl_setopt($curl, CURLOPT_HEADER, 0);

    curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);

    curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);

    curl_setopt($curl, CURLOPT_FORBID_REUSE, 1);

    curl_setopt($curl, CURLOPT_FRESH_CONNECT, 1);

     

     

    Where do I Put

     

    curl_setopt($curl, CURLOPT_HTTPPROXYTUNNEL, TRUE);

    curl_setopt($curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);

    curl_setopt($curl, CURLOPT_PROXY, "http://proxy.shr.secureserver.net:3128");

  3. Where are the defines for CURLPROXY_HTTP etc - I do not have it- can someone help suggest what it's value should be and where to place it

     

    Thanks

     

    George

     

     

    Yes, I need this too!

     

    I need to figure out where to place this, who said they're going to make a guide?

     

    Please!

×
×
  • Create New...