Jump to content

laslo_holyfeld

Members
  • Content count

    21
  • Joined

  • Last visited

  1. Thanks for the response Spooks, after doing this @ line 193 Find case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = $button; break; replace with: case 'PRODUCT_LIST_BUY_NOW': $lc_align = 'center'; $lc_text = ($listing['products_quantity'] <= 0 || $listing['products_status']==0 ? tep_image_button('button_sold_out.gif', IMAGE_BUTTON_SOLD_OUT) : $button); break; I am now getting a Parse error: syntax error, unexpected T_VARIABLE on line 193 do I need to put if($listing['products_quantity'] <= 0 || $listing['products_status']==0) $lc_text = tep_image_button('button_sold_out.gif', IMAGE_BUTTON_SOLD_OUT) . ' '; else $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; After this case 'PRODUCT_LIST_BUY_NOW': $lc_text = (strstr(LISTING_BUTTON, 'buy now')? TABLE_HEADING_BUY_NOW : TABLE_HEADING_DETAIL); $lc_align = 'center'; Thanks for the help
  2. Hey Spooks, After 3 days it finally let me download it. The contribution works great!. One question; I am using the show-soldout v1.0 contribution as well. I would really love to get these two working together. The code replacement to the original product_listing.php is around line 133 Original $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; replacement /** show-soldout-v1.0 **/ if($listing['products_quantity'] <= 0 || $listing['products_status']==0) $lc_text = tep_image_button('button_sold_out.gif', IMAGE_BUTTON_SOLD_OUT) . ' '; else $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> '; /** end show-soldout-v1.0 **/ the product_listing.php included in your contribution does not include those lines. Any Ideas would be greatly appreciated. Much Respect, Laslo
  3. I have been looking for this solution! I have tried downloading it and I get file not found. Any recommendations? Much Respect, Laslo
  4. laslo_holyfeld

    International Shipping

    For some reason international orders can only use Global Express Guaranteed for shipping. In the delivery information, it allows the user to select various methods but during confirmation, it switches to Global Express Guaranteed. Anyone else have this problem? Laslo
  5. laslo_holyfeld

    Categories and Subcategories

    Hello Everyone, Looking to do some thing like this http://www.mishkanyc.com/catalog/?cPath=0 Any suggestions? Laslo
  6. Hello everyone, I originally posted this in the Paypal IPN thread but that doesn't seem to be the problem. I have everything set up for the USPS module. When checking out of my store, it gives you the different shipping options and is added to the total. But when you confirm the transaction in paypal the the shipping price is removed from the total and the customer is only charged for the product price. Still new to oscommerce, has anyone had this problem or any suggestions what the problem is? Laslo
  7. laslo_holyfeld

    Official PayPal IPN Support Thread

    I am using the contribution v2.3
  8. laslo_holyfeld

    Official PayPal IPN Support Thread

    Hello, When I a customer checks out of my store, once in Paypal the shipping charges are not included. Not sure if this is a USPS shipping issue or the paypal IPN issue. any suggestions?
  9. laslo_holyfeld

    QT 4.3 Product quantities

    hello everyone, I am running Qt Pro. This maybe a stupid question but how do I change the stock manual on the Product Stock page. It only gives me the option add. If I add in a new quantity, it does not change the present but adds ex: to begin: Large 6 after adding Large 6 Large 5 Does the new quantity overwrite the previous?
  10. laslo_holyfeld

    Paypal Payment module

    Hi Guys I am a newbie so forgive me I added the Qt Pro 4.3 contribution and found where the error is coming from in checkout_process.php //**si** 14-11-05 fix missing att list asort($products_stock_attributes_array, SORT_NUMERIC); $products_stock_attributes = implode(",", $products_stock_attributes_array); //**si** 14-11-05 end } else { asort($products_stock_attributes_array, SORT_NUMERIC); $products_stock_attributes = implode(",", $products_stock_attributes_array); $attributes_stock_query = tep_db_query("select products_stock_quantity from " . TABLE_PRODUCTS_STOCK . " where products_stock_attributes = '$products_stock_attributes' AND products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); if (tep_db_num_rows($attributes_stock_query) > 0) { $attributes_stock_values = tep_db_fetch_array($attributes_stock_query); $attributes_stock_left = $attributes_stock_values['products_stock_quantity'] - $order->products[$i]['qty']; tep_db_query("update " . TABLE_PRODUCTS_STOCK . " set products_stock_quantity = '" . $attributes_stock_left . "' where products_stock_attributes = '$products_stock_attributes' AND products_id = '" . tep_get_prid($order->products[$i]['id']) . "'"); $actual_stock_bought = ($attributes_stock_left < 1) ? $attributes_stock_values['products_stock_quantity'] : $order->products[$i]['qty']; } else { $attributes_stock_left = 0 - $order->products[$i]['qty']; tep_db_query("insert into " . TABLE_PRODUCTS_STOCK . " (products_id, products_stock_attributes, products_stock_quantity) values ('" . tep_get_prid($order->products[$i]['id']) . "', '" . $products_stock_attributes . "', '" . $attributes_stock_left . "')"); $actual_stock_bought = 0; } } } where and how do I insert the product_stock_attributes database, if that is the problem.
  11. laslo_holyfeld

    Paypal Payment module

    Hello, I searched this thread for some answers but no dice. During the paypal confirmation when I click return to merchant I receive this error 1054 - Unknown column 'products_stock_attributes' in 'field list' insert into orders_products (orders_id, products_id, products_model, products_name, products_price, final_price, products_tax, products_quantity, products_stock_attributes) values ('12', '32', '', 'Team Robotics', '15.0000', '15', '0', '1', '2-17') [TEP STOP] In my website payment preference I have auto return set to on and return url set to http://www.mysite.com/catalog/checkout_success.php Any ideas?
×