Jump to content

Lioelx

Members
  • Content count

    165
  • Joined

  • Last visited

  • Days Won

    1

Lioelx last won the day on April 10 2017

Lioelx had the most liked content!

4 Followers

Profile Information

  • Real Name
    Lionel
  • Gender
    Male
  • Location
    Spain

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  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. Hi. all work well with php7.1.1 and php5.6.30. Paypal app works fine, although I only use standard mode. The rest of payment modules do not use them. Regards
  4. 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
  5. Sorry @@burt, but i dont have a fresh installation of 2.3.4 bootstrap, all changes makes on live shop. i sharing other works like a translations. If you tell me that files from the store are not modified by addons, I send them with the changed variables.
  6. Hi, I have changed theall vars $HTTP_POST_VARS and $HTTP_GET_VARS, months ago on admin & shop and I have not noticed any fault. Regards
  7. Lioelx

    Login with Paypal

    Which is? I can not find it
  8. 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
  9. 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
  10. 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.
  11. Lioelx

    Login with Paypal

    Hi, i dont know this, i prove all url but dont work... waht ist the correct returnurl? Regards
  12. 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
  13. 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
  14. 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
  15. Hi @@auzStar You're right in what you say, but I think the habit of users is to scroll down. Regards
×