-
Posts
97 -
Joined
-
Last visited
Everything posted by luigicosta
-
does anyone know a contribution whish list for oscommerce 2.3? thanks LC
-
Add to Wishlist Button in product_listing.php
luigicosta replied to BenjaminJ.Gremillion's topic in General Add-Ons Support
work whith oscommerce 2.3??? -
ok, something starts to work .... although I have only a blank page ..... :sweating:
-
install fresh new website no changes except for seo tags I've added the Italian language and then the contribution to print pdf nothing ...... or have something wrong or is there something else this contribution is too complicated for me and maybe it too unstable and not enough compatible .... I do not know .... I'm sorry! thanks too LC http://www.firstcellular.co.uk/product_info.php?products_id=29 Notice: Undefined variable: has_list_price in /web/htdocs/www.firstcellular.co.uk/home/includes/modules/pdf_datasheet/pd_image_price.php on line 133 Notice: Use of undefined constant TEXT_YOUR_PRICE - assumed 'TEXT_YOUR_PRICE' in /web/htdocs/www.firstcellular.co.uk/home/includes/modules/pdf_datasheet/pd_image_price.php on line 274 Fatal error: Call to undefined function tep_get_products_attributes() in /web/htdocs/www.firstcellular.co.uk/home/includes/modules/pdf_datasheet/pd_image_price.php on line 314
-
I will thanks
-
Hello everyone, I'm trying to create me a very simple contribution for shipping through DHL using an existing module that is called table.php But I can not make it work. any ideas or comments are always welcome thanks <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2008 osCommerce Released under the GNU General Public License */ class dhl { var $code, $title, $description, $icon, $enabled; // class constructor function dhl() { global $order; $this->code = 'dhl'; $this->title = MODULE_SHIPPING_DHL_TEXT_TITLE; $this->description = MODULE_SHIPPING_DHL_TEXT_DESCRIPTION; $this->sort_order = MODULE_SHIPPING_DHL_SORT_ORDER; $this->icon = ''; $this->tax_class = MODULE_SHIPPING_DHL_TAX_CLASS; $this->enabled = ((MODULE_SHIPPING_DHL_STATUS == 'True') ? true : false); if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_DHL_ZONE > 0) ) { $check_flag = false; $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_SHIPPING_DHL_ZONE . "' and zone_country_id = '" . $order->delivery['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->delivery['zone_id']) { $check_flag = true; break; } } if ($check_flag == false) { $this->enabled = false; } } } // class methods function quote($method = '') { global $order, $shipping_weight, $shipping_num_boxes; if (MODULE_SHIPPING_DHL_MODE == 'price') { $order_total = $this->getShippableTotal(); } else { $order_total = $shipping_weight; } $dhl_cost = preg_split("/[:,]/" , MODULE_SHIPPING_DHL_COST); $size = sizeof($dhl_cost); for ($i=0, $n=$size; $i<$n; $i+=2) { if ($order_total <= $dhl_cost[$i]) { $shipping = $dhl_cost[$i+1]; break; } } if (MODULE_SHIPPING_DHL_MODE == 'weight') { $shipping = $shipping * $shipping_num_boxes; } $this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_DHL_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_DHL_TEXT_WAY, 'cost' => $shipping + MODULE_SHIPPING_DHL_HANDLING))); if ($this->tax_class > 0) { $this->quotes['tax'] = tep_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); } if (tep_not_null($this->icon)) $this->quotes['icon'] = tep_image($this->icon, $this->title); return $this->quotes; } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_SHIPPING_DHL_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 Table Method', 'MODULE_SHIPPING_DHL_STATUS', 'True', 'Do you want to offer dhl rate shipping?', '6', '0', '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 ('Shipping Table', 'MODULE_SHIPPING_DHL_COST', '25:8.50,50:5.50,10000:0.00', 'The shipping cost is based on the total cost or weight of items. Example: 25:8.50,50:5.50,etc.. Up to 25 charge 8.50, from there to 50 charge 5.50, etc', '6', '0', 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 ('Table Method', 'MODULE_SHIPPING_DHL_MODE', 'weight', 'The shipping cost is based on the order total or the total weight of the items ordered.', '6', '0', 'tep_cfg_select_option(array(\'weight\', \'price\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Handling Fee', 'MODULE_SHIPPING_DHL_HANDLING', '0', 'Handling fee for this shipping method.', '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 ('Tax Class', 'MODULE_SHIPPING_DHL_TAX_CLASS', '0', 'Use the following tax class on the shipping fee.', '6', '0', 'tep_get_tax_class_title', 'tep_cfg_pull_down_tax_classes(', 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 ('Shipping Zone', 'MODULE_SHIPPING_DHL_ZONE', '0', 'If a zone is selected, only enable this shipping method for that zone.', '6', '0', '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, date_added) values ('Sort Order', 'MODULE_SHIPPING_DHL_SORT_ORDER', '0', 'Sort order of display.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_SHIPPING_DHL_STATUS', 'MODULE_SHIPPING_DHL_COST', 'MODULE_SHIPPING_DHL_MODE', 'MODULE_SHIPPING_DHL_HANDLING', 'MODULE_SHIPPING_DHL_TAX_CLASS', 'MODULE_SHIPPING_DHL_ZONE', 'MODULE_SHIPPING_DHL_SORT_ORDER'); } function getShippableTotal() { global $order, $cart, $currencies; $order_total = $cart->show_total(); if ($order->content_type == 'mixed') { $order_total = 0; for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { $order_total += $currencies->calculate_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']); if (isset($order->products[$i]['attributes'])) { reset($order->products[$i]['attributes']); while (list($option, $value) = each($order->products[$i]['attributes'])) { $virtual_check_query = tep_db_query("select count(*) as total from " . DHL_TABLE_PRODUCTS_ATTRIBUTES . " pa, " . DHL_TABLE_PRODUCTS_ATTRIBUTES_DOWNLOAD . " pad where pa.products_id = '" . (int)$order->products[$i]['id'] . "' and pa.options_values_id = '" . (int)$value['value_id'] . "' and pa.products_attributes_id = pad.products_attributes_id"); $virtual_check = tep_db_fetch_array($virtual_check_query); if ($virtual_check['total'] > 0) { $order_total -= $currencies->calculate_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']); } } } } } return $order_total; } } ?>
-
any idea???
-
I have installed many contributions including the Italian language in the end your contribution.
-
yes!
-
I followed the instructions on the pdf step by step I tried to change and put the Italian language in the two strings to line 212 but nothing .... All things considered contribution is quite simple to install does not understand why it no works. I also read the previous posts but nothing .... I do not understand.
-
Warning: constant() [function.constant]: Couldn't find constant MODULE_PDF_DATASHEET_INITIALIZE_TITLE_ITALIAN in /web/htdocs/www.footballshirtstar.com/home/includes/modules/pdf_datasheet/pd_initialize.php on line 59 Warning: constant() [function.constant]: Couldn't find constant MODULE_PDF_DATASHEET_INITIALIZE_SUBJECT_ITALIAN in /web/htdocs/www.footballshirtstar.com/home/includes/modules/pdf_datasheet/pd_initialize.php on line 66 Warning: constant() [function.constant]: Couldn't find constant MODULE_PDF_DATASHEET_INITIALIZE_KEYWORDS_ITALIAN in /web/htdocs/www.footballshirtstar.com/home/includes/modules/pdf_datasheet/pd_initialize.php on line 72 Warning: constant() [function.constant]: Couldn't find constant MODULE_PDF_DATASHEET_HEADER_TEXT_ITALIAN in /web/htdocs/www.footballshirtstar.com/home/includes/modules/pdf_datasheet/pd_header.php on line 66 Notice: getimagesize() [function.getimagesize]: Read error! in /web/htdocs/www.footballshirtstar.com/home/includes/modules/pdf_datasheet/pd_description.php on line 54 TCPDF ERROR: [image] Unable to get image: images/ Fatal error: Call to a member function store() on a non-object in /web/htdocs/www.footballshirtstar.com/home/includes/modules/ultimate_seo_urls5/main/usu5.php on line 78 // Get the PDF language and config files require_once( 'ext/tcpdf/config/lang/eng.php' ); require_once( 'ext/tcpdf/tcpdf.php' ); the difference... more error....
-
still not work not have idea where is the problem....... Warning: require_once(/ext/tcpdf/config/lang/eng.php) [function.require-once]: failed to open stream: No such file or directory in /web/htdocs/www.footballshirtstar.com/home/pdf_datasheet.php on line 212 Fatal error: require_once() [function.require]: Failed opening required '/ext/tcpdf/config/lang/eng.php' (include_path='.:/php5/lib/php/') in /web/htdocs/www.footballshirtstar.com/home/pdf_datasheet.php on line 212 inside the file pdf_datasheet.php on line 212 // Get the PDF language and config files require_once( '/ext/tcpdf/config/lang/eng.php' ); require_once( '/ext/tcpdf/tcpdf.php' ); and this are the server setup: Server OS: Linux 2.6.32-71.29.1.el6.x86_64 Database: MySQL 5.5.24-55-log HTTP Server: Apache/2.4.2 (Unix) mod_fcgid/2.3.7 PHP Version: 5.2.17 (Zend: 2.2.0)
-
hi, I found this error any suggestion or idea???? http://www.footballshirtstar.com/product_info.php/maglia-calcio-inter-trasferta-stagione-2010-2011-p-32 thanks
-
hello all, has anyone ever had this kind of error? thanks Deprecated: Function split() is deprecated in /web/htdocs/www.bestsoccershirt.com/home/admin/whos_online.php on line 583 Deprecated: Function split() is deprecated in /web/htdocs/www.bestsoccershirt.com/home/admin/whos_online.php on line 587 Deprecated: Function split() is deprecated in /web/htdocs/www.bestsoccershirt.com/home/admin/whos_online.php on line 587 Maglia Calcio Germania Trasferta stagione 2011 - 2012 (Product)
-
Simple Checkout - for 2.3.1 (official support thread)
luigicosta replied to a topic in General Add-Ons Support
maybe was already discussed the topic. In any case, I found a bug when buying something as a guest and select the payment method is out of this bad error. http://simplecheckout.oscbyjetta.com/checkout.php Fatal error: Can not redeclare class payment in / home/oscbyj5/public_html/simplecheckout/includes/classes/payment.php on line 13 would be good to make a payment default? I apologize if it has already been dealt with. I report because I did not find any notes in add-ons -
for oscommerce 2.3 ??? you mind this? http://addons.oscommerce.com/info/8280 http://addons.oscommerce.com/info/7659 http://addons.oscommerce.com/info/7704 thanks
-
Hello. someone can recommend a SEO add-ons and other add-ons to be indexed in search engines that is not too complicated but it works? thanks LC
-
Hi, I just deleted all my shop for make a new and fresh install but I have this error No input file specified. has anyone had the same problem? any idea what could be? thanks http://www.clubsoccershirt.com/index.php?language=en
-
someone can tell me where mistake? thanks <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ class bm_categories { var $code = 'bm_categories'; var $group = 'boxes'; var $title; var $description; var $sort_order; var $enabled = false; function bm_categories() { $this->title = MODULE_BOXES_CATEGORIES_TITLE; $this->description = MODULE_BOXES_CATEGORIES_DESCRIPTION; if ( defined('MODULE_BOXES_CATEGORIES_STATUS') ) { $this->sort_order = MODULE_BOXES_CATEGORIES_SORT_ORDER; $this->enabled = (MODULE_BOXES_CATEGORIES_STATUS == 'True'); $this->group = ((MODULE_BOXES_CATEGORIES_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right'); } } function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= " "; } $categories_string .= '<a href="'; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">'; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '<strong>'; } // display category name $categories_string .= $tree[$counter]['name']; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '</strong>'; } if (tep_has_category_subcategories($counter)) { $categories_string .= '->'; } $categories_string .= '</a>'; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= ' (' . $products_in_category . ')'; } } $categories_string .= '<br /></td></tr></table><table border="0" cellpading="7" cellspacing="7" align="left"><tr><td>' . tep_image(DIR_WS_IMAGES . '/freccia.jpg'). '' ; if ($tree[$counter]['next_id'] != false) { $this->tep_show_category($tree[$counter]['next_id']); } } function getData() { global $categories_string, $tree, $languages_id, $cPath, $cPath_array; $categories_string = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } } if (tep_not_null($cPath)) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } $this->tep_show_category($first_element); $data = '<div>' . '<div><h1>' . MODULE_BOXES_CATEGORIES_BOX_TITLE . '</h1></div>' . '<div><h3>' . tep_image(DIR_WS_IMAGES . '/freccia.jpg') . $categories_string . '</h3></div>' . '<div>' . tep_image(DIR_WS_IMAGES . '/iconsocial.jpg',"seguici su facebook") . '</div>' . '</div>'; return $data; } function execute() { global $SID, $oscTemplate; if ((USE_CACHE == 'true') && empty($SID)) { $output = tep_cache_categories_box(); } else { $output = $this->getData(); } $oscTemplate->addBlock($output, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_BOXES_CATEGORIES_STATUS'); } 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 Categories Module', 'MODULE_BOXES_CATEGORIES_STATUS', 'True', 'Do you want to add the module to your shop?', '6', '1', '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, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_CATEGORIES_CONTENT_PLACEMENT', 'Left Column', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Column\', \'Right Column\'), ', 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', 'MODULE_BOXES_CATEGORIES_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_BOXES_CATEGORIES_STATUS', 'MODULE_BOXES_CATEGORIES_CONTENT_PLACEMENT', 'MODULE_BOXES_CATEGORIES_SORT_ORDER'); } } ?> http://www.clubsoccershirt.com/index.php
-
still the same problem, I installed the contribution but within admin has remained the same throughout But when I go to change some attribute I get out of this error 1136 - Column count doesn't match value count at row 1 insert into products_attributes values (null, '29', '1', '2', '0', '+') [TEP STOP] anyone has any idea what could be? thanks
-
Hi, chris, I try to take a look inside css and jquery.... but now I have a little problem.... <table width="190" border="1"><tr><td width="190" height="40" background=' . tep_image(DIR_WS_IMAGES . '/c_bg6.gif') .'></td></tr></table> why not work??? thanks
-
where is the function $categories_string ??????? damm oscommerce.................
-
catalog\includes\modules\boxes\bm_categories.php $data = '<div><h3><b>--------</b></h3></div>' . '<div><h3>qua qua qua </h3></div>' . '<div><h3>' . MODULE_BOXES_CATEGORIES_BOX_TITLE . '</h3></div>' . '<div><h3><table border="1"><tr><td>' . $categories_string . '</td></tr></table></h3></div>' . '<div><h2>@@@</h2></div>'; return $data; } why not work????? www.maslame.it thanks
-
Yes, thanks Chris, that's something .... but I'm not agree when he says that is equal There were several files in the previous version with different names like: column_left.php column_right.php etc. .. and inside were made with the tables. and now? css .... do not understand anything .... ???
-
I know but the menu categories is not easy to change and also I do not find any contributions What do I do? any ideas? because the new version of oscommerce 2.3 are very different from the previous and I can not understand well how to change. specifically the damn categories thanks