Jump to content



Latest News: (loading..)

Gergely

Member Since 08 Feb 2009
OFFLINE Last Active Today, 10:58 AM
*****

Topics I've Started

Where need header response 404 or redirects?

06 April 2013 - 10:48 AM

Hi,

I would like to collect here 404 page error handling points. There are behaviour and core problems. The core problems exist now, the behaviour problems occurs after catalog actions (move, hide, delete).
  • For all pages where need to log in before (products_reviews_write.php)
  • Look at github commit acidvertigo 5baaf67d3b60c4f9e44278e9a6ee5da7d26efbdd (split page results)
  • Moved catagories or products would be usefull a redirection addon (hidden categories)
  • Non-exist (invalid) parameters (example: uninstall language collection or non exist currency)
    filter_id
    sort
    page
    currency
    action
    language

    and so on
https://support.google.com/webmasters/bin/answer.py?hl=en&answer=2409443

We should do a page handling class or function library later. Probably header tag module handling process would be usefull. In parameter handling could use an error flag and finaly redirect the page if error flag exist.

Example but not figured out:
// error_flag is global
$error_flag = array();
if ($parameter == false) {
$error_flag = array(head => '404',
		   info => 'blabla'
		   page=>''
		   );
}

if (sizeof( $error_flag)>0) {
//do header action
//redirect and so on
}

Previous error reports:
http://forums.oscommerce.com/tracker/issue-444-non-existing-links-containing-indexphp-do-not-return-404-file-not-found/


Thanks for more advices
Gergely

Upsell

14 March 2013 - 08:46 PM

Hi all,

Incrase product selling in the checkout approx. by 10%
When the checkout shipping page upload a fancybox popup give a product upsell. Give a product id in the module settings and product will displayed in upsell.

Download package: http://addons.oscommerce.com/info/8723


  Upsell language constant could be edited in standard oscommerce language editor.
  http://your-domain/admin/define_language.php?lngdir=english&filename=english/popup_upsell.php




Note: this Upsell module use iframe or Modal type
If you would like prefer modal popup you have to do button and page styles.



KNOWN PROBLEM or CONFLICTS:
******************************************************************************
  The upsell header tags scripts need loading after fancybox scripts!
  The scripts sort orders very important.

  If newer jQuery function library used change to the requested codes in popup_upsell.php header by iFrame type.

  The popup use default or browser language. Not cleared the issue.
  http://forums.oscommerce.com/topic/391674-localization/

Regards,
Gergely

Best ways to display manufacturer and categories descriptions in product_info page

27 February 2013 - 08:01 AM

Hi all,

I wonder how could you solve display manufacturer and categories descriptions in similar bulk products page. I am trying now nofollowed fancybox popups. Could you give any other suggestions?
I thought pdf downloads links, but look like ancient solution and required pdf reader for vendors.

An example for master slave products relations:
<?php
  if ($master_check['products_master_status'] == 0 && $master_check['products_master'] !== '0') {
?>
<p>  [ <a class="iframeFancybox" href="<?php echo tep_href_link('popup_master.php'); ?>" rel="nofollow"><span class="underline"><?php echo INFO_PRODUCTS_DESCRIPTION; ?></span></a> ]</p>
<?php
  }
?>

Tips: using code in popups generators to get products_id
  $back = sizeof($navigation->path)-2;
  if (isset($navigation->path[$back])) {
	$products_id = $navigation->path[$back]['get']['products_id']
}

Regards,
Gergely

Some problem with facebookexternalhit/1.1

19 February 2013 - 07:53 PM

I wonder how can do this error message?

Quote

Date / Time: 19-02-2013 17:49:04
Error Type: [Unique error code: tep_db_error] 2006 - MySQL server has gone away Open Connection
On line 48
File includes/functions/database.php
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Date / Time: 19-02-2013 17:49:04
Error Type: [Unique error code: tep_db_error] 2006 - MySQL server has gone away Open Connection
On line 48
File includes/functions/database.php
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Date / Time: 19-02-2013 17:49:04
Error Type: [Unique error code: tep_db_error] 2006 - MySQL server has gone away Open Connection
On line 48
File includes/functions/database.php
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Date / Time: 19-02-2013 17:49:04
Error Type: [Unique error code: tep_db_error] 2006 - MySQL server has gone away Open Connection
On line 48
File includes/functions/database.php
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Date / Time: 19-02-2013 17:49:04
Error Type: [Unique error code: tep_db_error] 2006 - MySQL server has gone away Open Connection
On line 48
File includes/functions/database.php
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Date / Time: 19-02-2013 17:49:04
Error Type: [Unique error code: tep_db_error] 2006 - MySQL server has gone away Open Connection
On line 48
File includes/functions/database.php
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

and why happening this when the facebook robot hits servers?


An example hit:

Quote

.
.
.
69.171.243.245 - - [19/Feb/2013:17:49:03 +0100] "GET /16-colos-disztarcsa/leoplast/images/social_bookmarks/digg.png HTTP/1.1" 404 460 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)"
.
.
.

Is it safety for MySql database handling?

Easy template style proposal for v2.3

22 October 2012 - 04:59 PM

Hi,

I think something like this would be usefull in xhtml header:

<style type="text/css">
<?php echo $oscTemplate->getBlocks('css_styles'); ?>
</style>


Every dinamic module may use "css_styles" and in development mode would be customizing styles.
After development job the styles may write into css file.

Does everybody use hardcoding at this time?


In template module to call css_style and can calculate with divs, columns and pixels in php by this way:

	  $template_calculated_value = $x-$y;
	  $head_output = '.myclass { width:" . $template_calculated_value . "px }';
	  $oscTemplate->addBlock($head_output, 'css_styles');


Oscommerce templates would be very flexible. Some standard basic template skeletons needs and evrything will be easy.
Currently aspire to such a module to me. My special box modules call self css files.