Jump to content

philpop

Members
  • Content count

    88
  • Joined

  • Last visited

Profile Information

  • Real Name
    Phil
  • Location
    Perth/Australia
  • Website
  1. philpop

    Seperate Pricing Per Customer v3.5

    Fixed, relised for some reason i had version 4.16 instead of the latest. Latest one works great and easy to install cheers!!!!
  2. philpop

    Seperate Pricing Per Customer v3.5

    okay ive managed to fix the errors so the frontpage is working agian. however when I go to admin i get this 1146 - Table 'rotortips_wikidrc.TABLE_ADMINISTRATORS' doesn't exist select id from TABLE_ADMINISTRATORS limit 1 [TEP STOP] anythoughts? thankyou
  3. philpop

    Seperate Pricing Per Customer v3.5

    Hi everyone, im starting to work on a new 2.2 site just as a personal project. Ive done a fresh install of 2.2 and wanted to add this contribution first as its one of the main things im after. I replaced the catalogue files and ran the sppc_v41_install.sql but its come up with errors now. DB to import to: rotortips_wikidrc (MySQL 5) File to import: /www/wikidrc/sppc_v41_install.sql The script has been imported successfully. www page Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/rotortips/www/wikidrc/catalog/includes/functions/database.php:13) anyhow does anyone have a copy of 2.2 with this contribution already added that I can do a fresh install with rather that trying to work through the errors im getting (im rather slow at this) many thanks Phil
  4. philpop

    Tax problem - Help Pleeease!!

    did you find a solution to this problem?
  5. philpop

    Total of order not correct

    me too, any fixes?
  6. philpop

    How do I remove Tax?

    Hi Peoples, I have a really weird problem. Im trying to remove any tax. In Admin, under Locations / Taxes, I have removed any Tax rates. Also removed any Tax classes and tax Zones However, the tax is still added to the products price. please help me asap, I cant understand why this is happening, any ideas? many thanks Phil
  7. I have managed to change the colour, but when I change this } SPAN.markProductOutOfStock { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 12px; color: #010CE7; font-weight: bold; it affects both in stock and out of stock icons. Dave says in the contribution; "1) I've created an extra style in catalog/stylesheet.css, which I use for the "In Stock" announcement. I've called it SPAN.markProductInStock, and it is just the same as SPAN.markProductOutOfStock, but the colour is blue." How do you do this? I tried just inserting the text } SPAN.markProductInStock { font-family: Tahoma, Verdana, Arial, sans-serif; font-size: 12px; color: #ffffff; font-weight: bold; into the stylesheet, but it doesnt do anything. Could you please tell me how you did this? thanks
  8. I have installed this contribution, works great. However, I would only like it to show the "out of stock" icon and never show the "instock" icon. Would a simple solution be to make the "instock" text just White, or the same colour as the background, and then you would just simply not see it? If this would be ok, how do I change the colour? In what file is the colour stored in? thanks in Advance
  9. When people shop at my site, they do not know if the product is instock or out of stock. Its only when they add it to the shopping cart, they are told if its instock. I have seen many commerce sites that have "instock" or "out of stock" written next to the product, and I would like to do the same to my site. Is there a contribution that does this? thanks
  10. philpop

    Paypal- "return to merchant error" please help

    dont have a paypal button, when you checkout, you have three options, bank transfer, money order, or paypal. when you select paypal, and press continue, it opens up the paypal page, except, it doesnt transfer the amount owing into the paypal page, meaning the customer has to manually type it in. Any Idea?
  11. philpop

    Paypal- "return to merchant error" please help

    All sounds good, but where do I start?
  12. philpop

    Paypal- "return to merchant error" please help

    ye ha, I think I fixed it, thanks to you, now the erro message is gone again. back to the problem that the amount wont transfer to the paypal page. Soryy for all this trouble,
  13. philpop

    Paypal- "return to merchant error" please help

    Hey, bad news, back to the first question. with the normal paypal module, your can select many currencys. every currency works except Aud. do you know why? then I installed the Aud paypal contribution, which has that error i mentioned above. this is it here. can you tell me what you think I need to change? <?php /* $Id: paypal.php,v 1.39 2003/01/29 19:57:15 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License Modification: 2003, J.H.J. Zimniak, PayPal Fee Charge */ class paypal { var $code, $title, $description, $enabled; // class constructor function paypal() { global $order; $this->code = 'paypal'; $this->title = MODULE_PAYMENT_PAYPAL_TEXT_TITLE; $this->description = MODULE_PAYMENT_PAYPAL_TEXT_DESCRIPTION; $this->sort_order = MODULE_PAYMENT_PAYPAL_SORT_ORDER; $this->enabled = ((MODULE_PAYMENT_PAYPAL_STATUS == 'True') ? true : false); if ((int)MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID > 0) { $this->order_status = MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID; } if (is_object($order)) $this->update_status(); $this->form_action_url = 'https://secure.paypal.com/cgi-bin/webscr'; } // class methods function update_status() { global $order; if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_PAYPAL_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_PAYPAL_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id"); while ($check = tep_db_fetch_array($check_query)) { if ($check['zone_id'] < 1) { $check_flag = true; break; } elseif ($check['zone_id'] == $order->billing['zone_id']) { $check_flag = true; break; } } if ($check_flag == false) { $this->enabled = false; } } } function javascript_validation() { return false; } function selection() { return array('id' => $this->code, 'module' => $this->title); } function pre_confirmation_check() { return false; } function confirmation() { return false; } function process_button() { global $order, $currencies, $currency; if (MODULE_PAYMENT_PAYPAL_CURRENCY == 'Selected Currency') { $my_currency = $currency; } else { $my_currency = substr(MODULE_PAYMENT_PAYPAL_CURRENCY, 5); } if (!in_array($my_currency, array('CAD', 'EUR', 'GBP', 'JPY', 'USD','AUD'))) { $my_currency = 'AUD'; } $process_button_string = tep_draw_hidden_field('cmd', '_xclick') . tep_draw_hidden_field('business', MODULE_PAYMENT_PAYPAL_ID) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('amount', number_format(($order->info['total'] - $order->info['shipping_cost']) * FEECHARGE_ORDER * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('shipping', number_format($order->info['shipping_cost'] * FEECHARGE_SHIPPING * $currencies->get_value($my_currency), $currencies->get_decimal_places($my_currency))) . tep_draw_hidden_field('currency_code', $my_currency) . tep_draw_hidden_field('return', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL')) . tep_draw_hidden_field('cancel_return', tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); return $process_button_string; } function before_process() { return false; } function after_process() { return false; } function output_error() { return false; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_PAYPAL_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable PayPal Module', 'MODULE_PAYMENT_PAYPAL_STATUS', 'True', 'Do you want to accept PayPal payments?', '6', '3', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('E-Mail Address', 'MODULE_PAYMENT_PAYPAL_ID', 'you@yourbusiness.com', 'The e-mail address to use for the PayPal service', '6', '4', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Currency', 'MODULE_PAYMENT_PAYPAL_CURRENCY', 'Selected Currency', 'The currency to use for credit card transactions', '6', '6', 'tep_cfg_select_option(array(\'Selected Currency\',\'Only USD\',\'Only CAD\',\'Only EUR\',\'Only GBP\',\'Only JPY\',\'Only AUD\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_PAYPAL_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_PAYPAL_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_PAYMENT_PAYPAL_STATUS', 'MODULE_PAYMENT_PAYPAL_ID', 'MODULE_PAYMENT_PAYPAL_CURRENCY', 'MODULE_PAYMENT_PAYPAL_ZONE', 'MODULE_PAYMENT_PAYPAL_ORDER_STATUS_ID', 'MODULE_PAYMENT_PAYPAL_SORT_ORDER'); } } ?>
  14. philpop

    Paypal- "return to merchant error" please help

    I have been mucking around with it for a while now, and relised I had 2 paypal modules on my server, and that gave me the error problem. I deleted one of them, now that bits all good. the only issue I have now is when someone checks out, the total amount does not transfer into the paypal page, the customer has to manually do it, and if they forgot, then they have to press back, which screws up everything. any idea? thanks
×