Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with Contributions


ontherun

Recommended Posts

Posted

Add Multi Products Checkbox v1.0

 

 

 

From the read me:

 

 

 

FIND:

----

 

if (isset($HTTP_GET_VARS['action'])) {

if (DISPLAY_CART == 'true') {

$goto = FILENAME_SHOPPING_CART;

$parameters = array('action', 'cPath', 'products_id', 'pid');

} else {

$goto = basename($PHP_SELF);

if ($HTTP_GET_VARS['action'] == 'buy_now') {

$parameters = array('action', 'pid', 'products_id');

} else {

$parameters = array('action', 'pid');

}

}

 

ADD AFTER THE FOUND CODE:

------------------------

 

if ($HTTP_GET_VARS['action'] == 'add_multi') {

$parameters = array('action', 'pid', 'products_id');

}#

 

 

 

 

When I look for this code it is different:

 

if (isset($HTTP_GET_VARS['action'])) {

// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled

if ($session_started == false) {

tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));

}

 

if (DISPLAY_CART == 'true') {

$goto = FILENAME_SHOPPING_CART;

$parameters = array('action', 'cPath', 'products_id', 'pid');

} else {

$goto = basename($PHP_SELF);

if ($HTTP_GET_VARS['action'] == 'buy_now') {

$parameters = array('action', 'pid', 'products_id');

} else {

$parameters = array('action', 'pid');

}

}

 

 

 

When I apply the changes all I get is a blank page, So with the change in the code where

 

would I add the changes?

Posted

It sounds like the contribution is a bit out of date. Of course, you may have already gathered that. I tend to stay away from out of date contributions.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...