Jump to content

Lioelx

Members
  • Content count

    165
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Lioelx

  1. Lioelx

    QTPro BS

    Hi, @@raiwa i have this error Warning: require(includes/classes/pad_PRODINFO_ATTRIBUTE_PLUGIN.php): failed to open stream: No existe el fichero o el directorio in /var/www/vhosts/nukua.es/product_info.php on line 149 This is my product_info <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License Modified for KISS Image Thumbnailer r19 August 2015 by @[member=raiwa] */ require('includes/application_top.php'); if (!isset($_GET['products_id'])) { tep_redirect(tep_href_link('index.php')); } require('includes/languages/' . $language . '/product_info.php'); $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query); require('includes/template_top.php'); if ($product_check['total'] < 1) { ?> <div class="contentContainer"> <div class="contentText"> <div class="alert alert-warning"><?php echo TEXT_PRODUCT_NOT_FOUND; ?></div> </div> <div class="pull-right"> <?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'fa fa-angle-right', tep_href_link('index.php')); ?> </div> </div> <?php } else { $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id, p.products_gtin from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$_GET['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); if ($new_price = tep_get_products_special_price($product_info['products_id'])) { $products_price = '<del>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</del> <span class="productSpecialPrice" itemprop="price" content="' . $currencies->display_raw($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } else { $products_price = '<span itemprop="price" content="' . $currencies->display_raw($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '">' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>'; } if ($product_info['products_date_available'] > date('d-m-Y H:i:s')) { $products_price .= '<link itemprop="availability" href="http://schema.org/PreOrder" />'; } elseif ((STOCK_CHECK == 'true') && ($product_info['products_quantity'] < 1)) { $products_price .= '<link itemprop="availability" href="http://schema.org/OutOfStock" />'; } else { $products_price .= '<link itemprop="availability" href="http://schema.org/InStock" />'; } $products_price .= '<meta itemprop="priceCurrency" content="' . tep_output_string($currency) . '" />'; $products_name = '<a href="' . tep_href_link('product_info.php', 'products_id=' . $product_info['products_id']) . '" itemprop="url"><span itemprop="name">' . $product_info['products_name'] . '</span></a>'; if (tep_not_null($product_info['products_model'])) { $products_name .= '<br /><small>[<span itemprop="model">' . $product_info['products_model'] . '</span>]</small>'; } ?> <?php echo tep_draw_form('cart_quantity', tep_href_link('product_info.php', tep_get_all_get_params(array('action')). 'action=add_product', 'NONSSL'), 'post', 'class="form-horizontal" role="form"'); ?> <div itemscope itemtype="http://schema.org/Product"> <div class="page-header"> <div class="row"> <h1 class="col-sm-8"><?php echo $products_name; ?></h1> <h2 class="col-sm-4 text-right-not-xs" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><?php echo $products_price; ?></h2> </div> </div> <?php if ($messageStack->size('product_action') > 0) { echo $messageStack->output('product_action'); } ?> <div class="contentContainer"> <div class="contentText"> <?php if (tep_not_null($product_info['products_image'])) { echo tep_image('images/' . $product_info['products_image'], NULL, NULL, NULL, 'itemprop="image" style="display:none;"'); $photoset_layout = (int)MODULE_HEADER_TAGS_PRODUCT_COLORBOX_LAYOUT; $pi_query = tep_db_query("select image, htmlcontent from " . TABLE_PRODUCTS_IMAGES . " where products_id = '" . (int)$product_info['products_id'] . "' order by sort_order"); $pi_total = tep_db_num_rows($pi_query); if ($pi_total > 0) { ?> <div class="piGal pull-right" data-imgcount="<?php echo $photoset_layout; ?>"> <?php $pi_counter = 0; $pi_html = array(); while ($pi = tep_db_fetch_array($pi_query)) { $pi_counter++; if (tep_not_null($pi['htmlcontent'])) { $pi_html[] = '<div id="piGalDiv_' . $pi_counter . '">' . $pi['htmlcontent'] . '</div>'; } echo tep_image('images/' . $pi['image'], '', '', '', 'id="piGalImg_' . $pi_counter . '"'); } ?> </div> <?php if ( !empty($pi_html) ) { echo ' <div style="display: none;">' . implode('', $pi_html) . '</div>'; } } else { ?> <div class="piGal pull-right"> <?php echo tep_image('images/' . $product_info['products_image'], addslashes($product_info['products_name'])); ?> </div> <?php } } ?> <!--<div class="clearfix"></div>--> <div itemprop="description"> <?php echo stripslashes($product_info['products_description']); ?> </div> <?php /* $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$_GET['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) { ?> <h4><?php echo TEXT_PRODUCT_OPTIONS; ?></h4> <p> <?php $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$_GET['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name"); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { $products_options_array = array(); $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)$_GET['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 . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } if (is_string($_GET['products_id']) && isset($cart->contents[$_GET['products_id']]['attributes'][$products_options_name['products_options_id']])) { $selected_attribute = $cart->contents[$_GET['products_id']]['attributes'][$products_options_name['products_options_id']]; } else { $selected_attribute = false; } ?> <strong><?php echo $products_options_name['products_options_name'] . ':'; ?></strong><br /><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute, 'style="width: 200px;"'); ?><br /> <?php } ?> </p> <?php } */ ?> <div class="clearfix"></div> <?php if ($product_info['products_date_available'] > date('d-m-Y H:i:s')) { ?> <div class="alert alert-info"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></div> <?php } ?> </div> <?php $reviews_query = tep_db_query("select count(*) as count, avg(reviews_rating) as avgrating from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd where r.products_id = '" . (int)$_GET['products_id'] . "' and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int)$languages_id . "' and reviews_status = 1"); $reviews = tep_db_fetch_array($reviews_query); if ($reviews['count'] > 0) { echo '<span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"><meta itemprop="ratingValue" content="' . $reviews['avgrating'] . '" /><meta itemprop="ratingCount" content="' . $reviews['count'] . '" /></span>'; } ?> <br> <!-- Back Back Button Start --> <div class="buttonSet row"> <div class="col-xs-4 text-left"><?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'fa fa-commenting', tep_href_link('product_reviews.php', tep_get_all_get_params())); ?></div> <div class="col-xs-4 text-center"> <?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'fa fa-angle-left', tep_href_link('index.php', tep_get_path())); ?> </div> <?php if (($product_info['products_quantity'] <> 0) and ($product_info['products_price'] > 0)) { ?> <div class="col-xs-4 text-right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'fa fa-shopping-cart', null, 'primary', null, 'btn-success'); ?></div> </div> <?php } else { ?> <div class="col-xs-4 text-right"> <button class="btn btn-danger" type="button">Agotado</button></div></div> <?php } ?> <!-- Back Back Button End --> <div class="row"> <?php echo $oscTemplate->getContent('product_info'); ?> </div> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include('includes/modules/also_purchased_products.php'); } if ($product_info['manufacturers_id'] > 0) { $manufacturer_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$product_info['manufacturers_id'] . "'"); if (tep_db_num_rows($manufacturer_query)) { $manufacturer = tep_db_fetch_array($manufacturer_query); echo '<span itemprop="manufacturer" itemscope itemtype="http://schema.org/Organization"><meta itemprop="name" content="' . tep_output_string($manufacturer['manufacturers_name']) . '" /></span>'; } } ?> </div> </div> </form> <?php } require('includes/template_bottom.php'); require('includes/application_bottom.php'); ?>
  2. Lioelx

    PHP 7

    Hi, @@BrockleyJohn, At the moment I can not check anything, I have problems with my vps and my web a week ago.
  3. Lioelx

    PHP 7

    Hi, @@burt, I have php7.1 installed on my vps. I volunteer to test. My shop is optimized with pack https://github.com/BrockleyJohn/Responsive-osCommerce/tree/php7_compatibility_01/ for php7 and work well. Regards
  4. Lioelx

    Login with Paypal

    Which is? I can not find it
  5. Lioelx

    Login with Paypal

    Hi @@raiwa i have the same what you say and the returnurl is https://www.nukua.es/login.php?action=paypal_login This url does not lead anywhere, Regards
  6. Lioelx

    Login with Paypal

    Hello @@raiwa, my case is the same as Bill, full ssl, return url https:// all same. incluides/modules/content/login/cm_paypal_login.php have this line $this->_app->loadLanguageFile('modules/LOGIN/LOGIN.php'); If refert to includes/modules/LOGIN/LOGIN.php doets exist but /includes/apps/paypal/LOGIN/LOGIN.php exist Has something to do? Regards
  7. Lioelx

    Login with Paypal

    Hi, @@raiwa, now have what you say, but dont work, all mi site run ssl https:// i prove the same url whit https and http but nothing.
  8. Lioelx

    Login with Paypal

    Hi, i dont know this, i prove all url but dont work... waht ist the correct returnurl? Regards
  9. Lioelx

    PHP 7

    Hi, I've talked to Redsys and they're working on compatibility with php7. I will continue using php5.6 for now. Thank you very much
  10. Lioelx

    PHP 7

    Hello @@BrockleyJohn, I can not change the encryption, the tpv server is the one that uses. Redsys technical service (payment gateway) says to enable mcrypt on the server, it has always been enabled!!! Regards
  11. Lioelx

    PHP 7

    Hi, wath is the correct code fro work whit php7 error: Deprecated: Function mcrypt_encrypt() is deprecated in /httpdocs/includes/modules/payment/apiRedsys/apiRedsysFinal.php on line 70 function encrypt_3DES($message, $key){ // Se establece un IV por defecto $bytes = array(0,0,0,0,0,0,0,0); //byte [] IV = {0, 0, 0, 0, 0, 0, 0, 0} $iv = implode(array_map("chr", $bytes)); //PHP 4 >= 4.0.2 // Se cifra $ciphertext = mcrypt_encrypt(MCRYPT_3DES, $key, $message, MCRYPT_MODE_CBC, $iv); //PHP 4 >= 4.0.2 return $ciphertext; } Regards
  12. Hi @@auzStar You're right in what you say, but I think the habit of users is to scroll down. Regards
  13. Lioelx

    SSL Certificate

    Hi, this is the way catalog/includes/configure.php define('HTTP_SERVER', 'https://www.domain.es'); define('HTTPS_SERVER', 'https://www.domain.es'); define('ENABLE_SSL', true); admin/includes/configure.php define('HTTP_SERVER', 'https://www.domain.es'); define('HTTPS_SERVER', 'https://www.domain.es'); define('ENABLE_SSL', true); define('HTTP_CATALOG_SERVER', 'https://www.domain.es'); define('HTTPS_CATALOG_SERVER', 'https://www.domain.es'); regards
  14. Lioelx

    ULTIMATE Seo Urls 5 - by FWR Media

    Hi @@piernas I have installed this http://addons.oscommerce.com/info/2823 (chemo) for install your new responsive version i made uninstall it? Regards
  15. Hi @ auzStar, i dont know this, sorry for my ignorace, Can not be made to load the products and to go up? Regards
  16. Lioelx

    PHP 7

    Tanks Dan
  17. Lioelx

    PHP 7

    Tanks @@xinn2005. Well put the 2.3.4 gold for php7 has a lot of work ...
  18. Hi all, When i clicking the pagination number or arrows for change the page on products_listing the page dont go to top... If ajax product listing is off work fine. Thanks for your help. Lionel bootstrap 2.3.4 on nukua.es
  19. Lioelx

    PHP 7

    Hi all This is correct? Original code class cm_navbar { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function cm_navbar() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_NAVBAR_TITLE; $this->description = MODULE_CONTENT_NAVBAR_DESCRIPTION; if ( defined('MODULE_CONTENT_NAVBAR_STATUS') ) { $this->sort_order = MODULE_CONTENT_NAVBAR_SORT_ORDER; $this->enabled = (MODULE_CONTENT_NAVBAR_STATUS == 'True'); } } Changed code for php7.1 class cm_navbar { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function __construct() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_NAVBAR_TITLE; $this->description = MODULE_CONTENT_NAVBAR_DESCRIPTION; if ( defined('MODULE_CONTENT_NAVBAR_STATUS') ) { $this->sort_order = MODULE_CONTENT_NAVBAR_SORT_ORDER; $this->enabled = (MODULE_CONTENT_NAVBAR_STATUS == 'True'); } } The cange is line 21 Regards
  20. Lioelx

    QTPro BS

    @@raiwa i put a new compress folder on github whit spanish traslation, i dont know make a folder in github. Regards
  21. Hi, this funcion is correct? protected function xcell_product_data_query( $xsell_contents_list ) { $xsell_contents_array = array(); xcell or xsell? Regards
  22. Lioelx

    Faq Desk

    Thanks @@Dan Cole
  23. Lioelx

    Faq Desk

    Hi @@Dan Cole @BrockleyJonh No Dan, the addon its this http://addons.oscommerce.com/info/7744 The problem as solved, The person who mounted the package accidentally changed catalog files by admin and biceversa Many thanks for your help. Regards.
  24. Lioelx

    Faq Desk

    Hi @@Dan Cole, sorry for my bad explain. I write the funcion on catalog/includes/functios/general.php install manual dont explain nothign to this. Whit the funcion the error Call to undefined function tep_get_languages() in /httpdocs/faq.php on line 17 is solved but.... Now show this fail: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'select f.faq_id, fd.faq_question, fd.faq_answer, f.last_modified, f.sort_order, ' at line 1 select count(select f.faq_id, fd.faq_question, fd.faq_answer, f.last_modified, f.sort_order, f.faq_status from faq f, faq_description fd where f.faq_id=fd.faq_id and fd.language_id=3 order by f.sort_order, fd.faq_id) as total this sentences are in catalog/admin/languages.php (manual installation) // create additional FAQ language records $faq_query = tep_db_query("select f.faq_id, fd.faq_question, fd.faq_answer from faq f left join faq_description fd on f.faq_id = fd.faq_id where fd.language_id = '" . (int)$languages_id . "'"); while ($faq = tep_db_fetch_array($faq_query)) { tep_db_query("insert into faq_description (faq_id, language_id, faq_question, faq_answer) values ('" . (int)$faq['faq_id'] . "', '" . (int)$insert_id . "', '" . tep_db_input($faq['faq_question']) . "', '" . tep_db_input($faq['faq_answer']) . "')"); } Or its caused whit the function... i dont know: function tep_get_languages() { $languages_query = tep_db_query("select languages_id, name, code, image, directory from " . TABLE_LANGUAGES . " order by sort_order"); while ($languages = tep_db_fetch_array($languages_query)) { $languages_array[] = array('id' => $languages['languages_id'], 'name' => $languages['name'], 'code' => $languages['code'], 'image' => $languages['image'], 'directory' => $languages['directory']); } return $languages_array; } Regards
  25. Lioelx

    Faq Desk

    catalog/admin/languages.php // create additional FAQ language records $faq_query = tep_db_query("select f.faq_id, fd.faq_question, fd.faq_answer from faq f left join faq_description fd on f.faq_id = fd.faq_id where fd.language_id = '" . (int)$languages_id . "'"); while ($faq = tep_db_fetch_array($faq_query)) { tep_db_query("insert into faq_description (faq_id, language_id, faq_question, faq_answer) values ('" . (int)$faq['faq_id'] . "', '" . (int)$insert_id . "', '" . tep_db_input($faq['faq_question']) . "', '" . tep_db_input($faq['faq_answer']) . "')"); }
×