Jump to content
Latest News: (loading..)

Peper

Members
  • Content count

    490
  • Joined

  • Last visited

About Peper

Profile Information

  • Real Name
    Pierre
  • Gender
    Male
  • Location
    South Africa
  • Website

Recent Profile Visitors

23,853 profile views
  1. I have it working on CE after a few changes I have modified it also with extra feature so that a customer can convert wishlist into a printable quotation
  2. Header Tags SEO

    HT SEO for frozen version? I do no necessarily want to drop this addon as Google and other search engine progresses, whether tags carry some weight or nothing Few good uses remains for this addon The same with USU5 sitemap, as a user i don't want to see some product_info.php?products_id=3713. Users can go back easily by typing in name of product and chrome does the rest - link discussion A few more corrections will be handy, please help. Notice errors in admin - HTC page control: Notice: Undefined index: products , Undefined index: cats, Undefined index: manu in includes\functions\header_tags.php Notice: Undefined index: line \includes\functions\header_tags.php on line 237 Notice: Undefined index: pseudo \includes\functions\header_tags.php on line 330 Next: The FILENAME_ issues deprecated in includes/header_tags.php when updating admin/header_tags_seo.php , messes up FILENAME links Next: header_tags_seo_silo.php = couple of Notice: Undefined Next: changed: admin/categories.php $category_inputs_string = $category_description_string = $category_seo_description_string = $category_seo_keywords_string = $category_seo_title_string = ''; to $category_inputs_string = $category_description_string = $category_seo_description_string = $category_seo_keywords_string = $category_seo_title_string = $category_htc_title_string = $category_htc_title_alt_string = $category_htc_title_url_string = $category_htc_desc_string = $category_htc_keywords_string = $category_htc_breadcrumb_string = $headertags_editor_str = $category_htc_description_string = ''; Catalog: Catalog - product page errors: Notice: Undefined offset: 3 in \includes\functions\header_tags.php on line 115 Notice: Undefined offset: 3 in \includes\functions\header_tags.php on line 116 Notice: Undefined offset: 3 in \includes\functions\header_tags.php on line 120 Notice: Undefined offset: 3 in \includes\functions\header_tags.php on line 124 Starting with 115: $header_tags_array['title_alt'] = (tep_not_null($the_product_info['products_head_title_tag_alt'])) ? strip_tags($the_product_info['products_head_title_tag_alt']) : (HEADER_TAGS_USE_PAGE_NAME == 'false' ? strip_tags($the_product_info['products_head_title_tag']) : strip_tags($the_product_info['products_name'])); $tmpTags['prod_desc'] = (tep_not_null($the_product_info['products_head_desc_tag'])) ? strip_tags($the_product_info['products_head_desc_tag']) : ''; if (HEADER_TAGS_ENABLE_ADDITIONAL_WORDS == 'true') { $add_kwrds = ''; if (isset($the_product_info['products_head_keywords_tag'][0]) && tep_not_null($the_product_info['products_head_additional_words'])) { $add_kwrds = HEADER_TAGS_SEPARATOR_KEYWORD . $the_product_info['products_head_additional_words']; Homepage - index.php errors: includes\header_tags.php Notice: Undefined index: manufacturers_id Notice: Undefined variable: args includes\functions\header_tags.php on line 167 function GetCanonicalURL() { global $request_type; $parts = explode("&", $_SERVER['QUERY_STRING']); $cnt = count($parts); if ($cnt == 1 && basename($_SERVER['SCRIPT_FILENAME']) === 'index.php') { //home page global $cPath,$category_depth; if (tep_not_null($cPath) || (isset($_GET['manufacturers_id']) && $category_depth == 'top')) { $args = tep_get_all_get_params(array('action','currency', tep_session_name(),'cPath','manufacturers_id','sort','page', 'language')); return StripSID(tep_href_link('index.php', $args, $request_type, false) ); } $url = StripSID(tep_href_link('/', $args, $request_type, false) ); if (substr($url, -2) == '//') { $url = substr($url, 0, -1); //remove duplicate slashes } return $url; } $args = tep_get_all_get_params(array('action','currency', tep_session_name(),'cPath','manufacturers_id','sort','page', 'language')); return StripSID(tep_href_link(basename($_SERVER['SCRIPT_FILENAME']), $args, $request_type, false) ); }
  3. My bad, after many hours(days) i found in template top 2x echo $oscTemplate->getBlocks('header_tags');
  4. Hello @raiwa I'm busy working to update my entire site to PHP7.2 On my live shop everything works well (not PHP7) but on my xampp testing server PHP7 the discount code displays twice I have only one instance of this code checkout_payment.php file, I have uninstalled/reinstalled the module, cleared database cache and browser cache : <hr> <div class="contentText"> <div class="form-group"> Also; when entering a valid discount coupon code I get the red circle - not valid icon but the coupon is showing discount at checkout_confirmation.php Let me know if there is anything to check on
  5. PHP 7

    Many many updates required for PHP7.2 So far so good - testing everything and eliminating bugs
  6. PHP 7

    Thanks, working 100% no errors
  7. PHP 7

    @John W @wHiTeHaT I have updated this 2 years ago -fpdf v1.81 (2015-12-20) Sir, elaborate pls - casting the variables to an Interger? i have no idea to do that
  8. PHP 7

    I'm stuck on this pdf catalogue function for testing upgrading to php7 pdf_catalogue.php from admin generating the store catalogues Notice: A non well formed numeric value encountered in C:\xampp\htdocs\edge\admin\pdf_catalogue.php on line 150 if($this->GetY()+$h>$this->PageBreakTrigger) is the bugger generating hundreds notices function CheckPageBreak($h) { //If the height h would cause an overflow, add a new page immediately if($this->GetY()+$h>$this->PageBreakTrigger) $this->AddPage($this->CurOrientation); } Any help on this one please
  9. Ok, bump on this one The Add to cart buttons not correct in this one - old version but was not updated I'm struggling to fix that part - see code <?php /* $Id: xsell_products.php, v1 2002/09/11 // adapted for Separate Pricing Per Customer v4 2005/02/24 osCommerce, Open Source E-Commerce Solutions <http://www.oscommerce.com> Copyright (c) 2002 osCommerce Released under the GNU General Public License */ //fixed bug //require('includes/languages/' . $language . '/' . FILENAME_XSELL_PRODUCTS); // global variable (session): $sppc_customers_group_id -> local variable $customer_group_id if (isset($_SESSION['sppc_customer_group_id']) && $_SESSION['sppc_customer_group_id'] != '0') { $customer_group_id = $_SESSION['sppc_customer_group_id']; } else { $customer_group_id = '0'; } if ((USE_CACHE == 'true') && empty($SID)) { // include currencies class and create an instance require_once(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); } if ($_GET['products_id']) { //$xsell_query = tep_db_query("select distinct p.products_id, p.products_image, p.image_folder, p.image_display, pd.products_name, p.products_tax_class_id, products_price, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, specials_new_products_price //fixed bug // $xsell_query = tep_db_query("select distinct p.products_id, p.products_image, p.image_folder, p.image_display, pd.products_name, p.products_tax_class_id, products_price, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price $xsell_query = tep_db_query("select distinct p.products_id, p.products_image, pd.products_name, p.products_tax_class_id, products_price, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price from " . TABLE_PRODUCTS_XSELL . " xp left join " . TABLE_PRODUCTS . " p on xp.xsell_id = p.products_id left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id and pd.language_id = '" . $languages_id . "' left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id where xp.products_id = '" . $_GET['products_id'] . "' and p.products_status = '1' order by sort_order asc limit " . MAX_DISPLAY_XSELL); $num_products_xsell = tep_db_num_rows($xsell_query); if ($num_products_xsell > 0) { ?> <!-- xsell_products //--> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => TEXT_XSELL_PRODUCTS); //new contentBoxHeading($info_box_contents); $row = 0; $col = 0; $info_box_contents = array(); while ($xsell = tep_db_fetch_array($xsell_query)) { if ($customer_group_id < '1') { if (tep_not_null($xsell['specials_new_products_price'])) { $xsell_price = '<s>' . $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</s><br>'; $xsell_price .= '<span class="productSpecialPrice">' . $currencies->display_price($xsell['specials_new_products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</span>'; } else { $xsell_price = $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])); } if ($xsell['products_image'] == 1) { $text = '<a href="' . tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']) . '">' . tep_image('includes/languages/' . $language . '/images/' . 'no_picture.gif', TEXT_NO_PICTURE, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']) . '">' . $xsell['products_name'] .'</a><br>' . $xsell_price. '<br><a href="' . tep_href_link('product_info.php', tep_get_all_get_params(array('action')) . 'action=buy_now&product_to_buy_id=' . $xsell['products_id'], 'NONSSL') . '">' . tep_draw_button( IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link( 'product_info.php', tep_get_all_get_params(array('action', 'products_id')) . 'action=buy_now&products_id=' . $xsell['products_id'])); } elseif (($xsell['products_image'] != 2) && tep_not_null($xsell['products_image'])) { $text = '<a href="' . tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']) . '">' . tep_image('images/' . $xsell['products_image'], $xsell['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']) . '">' . $xsell['products_name'] .'</a><br>' . $xsell_price. '<br><a href="' . tep_href_link('product_info.php', tep_get_all_get_params(array('action')) . 'action=buy_now&product_to_buy_id=' . $xsell['products_id'], 'NONSSL') . '">' . tep_draw_button( IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link( 'product_info.php', tep_get_all_get_params(array('action', 'products_id')) . 'action=buy_now&products_id=' . $xsell['products_id'])); } $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => $text) ; $col ++; if ($col > 2) { $col = 0; $row ++; } } else if ($customer_group_id > '1') { if (tep_not_null($xsell['specials_new_products_price'])) { $xsell_price = '<s>' . $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</s><br>'; $xsell_price .= '<span class="productSpecialPrice">' . $currencies->display_price($xsell['specials_new_products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])) . '</span>'; } else { $xsell_price = $currencies->display_price($xsell['products_price'], tep_get_tax_rate($xsell['products_tax_class_id'])); } if ($xsell['image_display'] == 1) { $text = '<a href="' . tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']) . '">' . tep_image('includes/languages/' . $language . '/images/' . 'no_picture.gif', TEXT_NO_PICTURE, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']) . '">' . $xsell['products_name'] .'</a>>'; } elseif (($xsell['image_display'] != 2) && tep_not_null($xsell['products_image'])) { $text = '<a href="' . tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']) . '">' . tep_image('images/' . $xsell['products_image'], $xsell['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link('product_info.php', 'products_id=' . $xsell['products_id']) . '">' . $xsell['products_name'] .'</a>'; } $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => $text) ; $col ++; if ($col > 2) { $col = 0; $row ++; } } } //new contentBox($info_box_contents); //new contentBoxStart($info_box_contents); ?> <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header ui-corner-top infoBoxHeading"> <span><?php echo TEXT_XSELL_PRODUCTS; ?></span> </div> <?php new contentBoxStart($info_box_contents); ?> </div> <!-- xsell_products_eof //--> <?php } } ?>
  10. Help with explode function

    <?php echo tep_address_format(6, $order->delivery, '', '', "\n"); ?> database added 6th address format <br />$firstname $lastname<br />$streets<br />$city,$postcode
  11. Need some help with trying to shorten the way the address is displayed. I have only 5 lines available for print, In the database - address_format i tried changing and removing $firstname $lastname$cr$streets$cr$postcode $city$cr$country - gives me same result Below prints out 7 lines, Customer Company Name Customer Name Street address 1 Street Address 2 Suburb City, Post code, Region, Country The last attempt was as follows: <td width="390" height="155px" valign="top" align="left"><div style="line-height:1.7em; margin-top:10px"><?php $content = tep_address_format($order->delivery['format_id'], $order->delivery, 1); $lines = explode(" \t\n\r", $content,1); echo $lines[0].'<br>'.$lines[2].'<br>'; ?></div></td> I need to display something like this: Customer Company Name Customer Name Street address 1 Street Address 2 Suburb, City, Post code
  12. NEW! Complete Order Editing Tool!

    @dr_lucas I can test for you!
  13. NEW! Complete Order Editing Tool!

    @Tsimi Tried yours as well .. then when i click the plus sign to add a line, i can type in name for the line and once i click over to price block ajax updates but that line is discarded and gone.
  14. NEW! Complete Order Editing Tool!

    @Tsimi No, not working in ajax for me. When ajax is enabled, then when i click the plus sign to add a line, i can type in name for the line and once i click over to price block ajax updates but that line is discarded and gone.
  15. NEW! Complete Order Editing Tool!

    Will test more. will try ajax now
×