Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Products Specifications


kymation

Recommended Posts

Let's try this again: You must set the Filter Class to Multiple when using a Multiple select Filter type (Multi-Pulldown, Check Boxes, or Multi-Image.. See the User's Manual: Table 1 in Section 3.6, or Section 4.2.2.1 for the details.

 

Regards

Jim

 

Hi Jim, This then applies an OR type filter. So if I select option 1 and option 2 it shows products with option 1 OR option 2 not both like I desire (on check-boxes anyway).

Link to comment
Share on other sites

If I understand what you are saying, you want a multiple-of-multiple filter. That is, it selects multiple filters to apply to multiple values in the specification. That type does not exist. Also, all of the filters are OR rather than AND.

 

I can't even imagine what this could be used for. Maybe if you give an example I can suggest a way to make this work.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

If I understand what you are saying, you want a multiple-of-multiple filter. That is, it selects multiple filters to apply to multiple values in the specification. That type does not exist. Also, all of the filters are OR rather than AND.

 

I can't even imagine what this could be used for. Maybe if you give an example I can suggest a way to make this work.

 

Regards

Jim

 

Hi Jim,

 

Something like here - http://www.johnlewis.com/Electricals/Desktop+PCs/Desktop+PCs/Desktop+PCs/396/ProductCategory.aspx

 

Scroll down to the desktop features filter and select 2 or more - This is what I desire, let me know your thoughts.

 

Also thank you for your extended help thumbsup.gif .

Link to comment
Share on other sites

Thank you, Jim!

Gemma

in Product_info.php:

</form> from string 224 move to string move to string 203, yo will have:

 <br />
 <div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span>
 </div>
 </form>
 <div style="clear: both;"></div>
 <br />

 

in includes/modules/product_reviews change:

echo tep_draw_form ('product_review', tep_href_link (FILENAME_PRODUCT_INFO, 'action=process&tab=review&products_id=' . $_GET['products_id']), 'post', 'onSubmit="return checkForm();"');

to

 echo tep_draw_form ('product_review', tep_href_link (FILENAME_PRODUCT_INFO, 'action=process&tab=9&products_id=' . $_GET['products_id']), 'post', 'onSubmit="return checkForm();"');

 

 

 

For the life of me I cannot figure this one out - I need to get the "Ask a question" form working but it keeps adding the product to the shopping cart.

 

Can someone with fresh eyes have a look at my products_info.php file, as follows;

 

<?php

/*

$Id$

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2010 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

 

// Start Products Specifications

require_once (DIR_WS_FUNCTIONS . 'products_specifications.php');

 

// Process data from the on-page forms

require_once( DIR_WS_MODULES . 'product_info_process.php' );

// End Products Specifications

 

 

 

$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)$HTTP_GET_VARS['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(DIR_WS_INCLUDES . 'template_top.php');

?>

 

<script type="text/javascript"><!--

function popupWindow(url) {

window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')

}

//--></script>

 

<?php echo tep_draw_content_top();?>

<?php

if ($product_check['total'] < 1) {

?>

<?php echo tep_draw_title_top();?>

<h1><?php echo TEXT_PRODUCT_NOT_FOUND; ?></h1>

<?php echo tep_draw_title_bottom();?>

 

 

<div class="contentContainer">

<div class="contentPadd">

 

<div class="buttonSet">

<span class="fl_right"><div class="bg_button2" onMouseOut="this.className='bg_button2';" onMouseOver="this.className='bg_button2-act';"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?></div></span>

</div>

 

</div>

</div>

 

<?php

} else {

// Products Specifications

$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, pd.products_tab_1, pd.products_tab_2, pd.products_tab_3, pd.products_tab_4, pd.products_tab_5, pd.products_tab_6 from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['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)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

 

if ($new_price = tep_get_products_special_price($product_info['products_id'])) {

$products_price = ' <span class="productSpecialPrice fl_left">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span> <del class="fl_left">' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</del>';

} else {

$products_price = '<span class="productSpecialPrice">' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';

}

 

if (tep_not_null($product_info['products_model'])) {

$products_name = $product_info['products_name'] . '<br /><span class="smallText">[' . $product_info['products_model'] . ']</span>';

} else {

$products_name = $product_info['products_name'];

}

?>

<?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?>

 

<?php

// if ($product_check['total'] > 1) {

echo tep_draw_content_top() . tep_draw_title_top() . "<h1>" . $product_info['products_name'] . "</h1>" . tep_draw_title_bottom();

// } else{ include (DIR_WS_INCLUDES . 'products_next_previous.php');}

?>

 

<?php echo tep_draw_separator('pixel_trans.gif', '100%', '7'); ?>

 

<div class="contentContainer page_un">

<div class="contentPadd extra77">

<?php // <div class="contentPadd extra77"> - GOES TO EDGE ?>

 

 

<div class="prods_content prods_info decks big">

<div class="forecastle">

 

<li class="port_side">

 

 

<?php

if (tep_not_null($product_info['products_image'])) {

$pi_query = tep_db_query("select image, htmlcontent from " . TABLE_PRODUCTS_IMAGES . " where products_id = '" . (int)$product_info['products_id'] . "' order by sort_order");

?>

<?php

if (tep_db_num_rows($pi_query) > 0) {

?>

 

<div id="piGal" onmouseover="alert("'SimplytheBest DHTML Scripts & Javascripts'")">

<ul>

 

<?php

$pi_counter = 0;

while ($pi = tep_db_fetch_array($pi_query)) {

$pi_counter++;

 

$pi_entry = ' <li class="wrapper_pic_div"><a href="';

 

if (tep_not_null($pi['htmlcontent'])) {

$pi_entry .= '#piGalimg_' . $pi_counter;

} else {

$pi_entry .= tep_href_link(DIR_WS_IMAGES . $pi['image']);

}

 

$pi_entry .= '" target="_blank" rel="fancybox" title='.(TEXT_CLICK_TO_ENLARGE_1).' style="width:'.(PROD_INFO_IMAGE_WIDTH).'px;height:'.(PROD_INFO_IMAGE_HEIGHT).'px;">' . tep_image(DIR_WS_IMAGES . $pi['image'], '', (PROD_INFO_IMAGE_WIDTH), (PROD_INFO_IMAGE_HEIGHT), ' style="width:'.(PROD_INFO_IMAGE_WIDTH).'px;height:'.(PROD_INFO_IMAGE_HEIGHT).'px;"') . '</a>';

 

if (tep_not_null($pi['htmlcontent'])) {

$pi_entry .= '<div style="display: none;"><div id="piGalimg_' . $pi_counter . '">' . $pi['htmlcontent'] . '</div></div>';

}

 

$pi_entry .= '</li>';

 

echo $pi_entry;

}

?>

 

</ul>

</div>

<?php

if (PROD_INFO_IMAGE_WIDTH != PROD_INFO_IMAGE_HEIGHT){

$coeff = ((PROD_INFO_IMAGE_HEIGHT/PROD_INFO_IMAGE_WIDTH));

}else{

$coeff = 1;

}

?>

 

<script type="text/javascript">

$(function(){

var myWidth = <?php echo (($pi_counter > 1) ? '58' : '0'); ?>;

var myHeight = myWidth * <?php echo $coeff;?>;

$('#piGal ul').bxGallery({

maxwidth: '',

maxheight: '',

thumbwidth: myWidth,

thumbheight: myHeight,

thumbcontainer: 240,

load_image: 'ext/jquery/bxGallery/spinner.gif'

})

});

</script>

 

<?php

} else {

// $image_width = (PROD_INFO_IMAGE_WIDTH +(262 - PROD_INFO_IMAGE_WIDTH));

?>

 

 

<?php echo '<div id="piGal" class="wrapper_pic_div fl_left" style="width:'.(PROD_INFO_IMAGE_WIDTH).'px;height:'.(PROD_INFO_IMAGE_HEIGHT).'px;"><a class="prods_pic_bg" href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="fancybox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), (PROD_INFO_IMAGE_WIDTH), (PROD_INFO_IMAGE_HEIGHT), ' style="width:'.(PROD_INFO_IMAGE_WIDTH).'px;height:'.(PROD_INFO_IMAGE_HEIGHT).'px;"', '', '') . '</a></div>'; ?>

 

 

<?php

}

?>

 

<script type="text/javascript">

$("#piGal a[rel^=fancybox]").fancybox({

cyclic: true

});

</script>

<?php

}

?>

 

 

</li>

<li class="starboard_side">

<?php

if (tep_db_num_rows($pi_query) > 0) {

?>

<div class="info">

<?php

}else{

?>

</li>

<li class="starboard_side">

<div class="info">

<?php

}

?>

<?php

if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {

?>

 

<div class="data data_padd small_title"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></div>

 

<?php

}else{

?>

 

<!-- DATE ADDED

<div class="data data_padd small_title">

 

<?php // echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></div>

//-->

 

<?php

}

?>

<h2><?php echo $products_name; ?></h2>

<div style="float:right; width:200px;text-align:left; max-height:105px; overflow:hidden; background-color:#f4f4f4; padding:0 0 0px 15px;">

<?php

// Document Manager

if (DOCUMENTS_SHOW_PRODUCT_INFO == 'True') {

include_once (DIR_WS_MODULES . FILENAME_DOCUMENTS);

}

?>

</div>

<h2 class="price"><?php echo '<b>'.PRICE. '</b>'.$products_price; ?></h2>

 

<?php

// QUANTITY AVAILABLE

if($product_info['products_quantity']>0 ) {

echo TEXT_PRODUCT_STOCK_LEVEL . (($product_info['products_quantity'] > 0) ? ' (' . $product_info['products_quantity'] . ')' : '');

}

elseif ($product_info['products_quantity']<=0 ) {

echo TEXT_PRODUCT_STOCK_LEVEL . (($product_info['products_quantity'] <=0) ? ' (' . TEXT_OUT_OF_STOCK_LEVEL . ')' : '');

}

?><br /><br />

 

<h3>

<?php

$sbm_array = explode(';', MODULE_SOCIAL_BOOKMARKS_INSTALLED);

$social_bookmarks = array();

foreach ( $sbm_array as $sbm ) {

$class = substr($sbm, 0, strrpos($sbm, '.'));

if ( !class_exists($class) ) {

include(DIR_WS_LANGUAGES . $language . '/modules/social_bookmarks/' . $sbm);

include(DIR_WS_MODULES . 'social_bookmarks/' . $class . '.php');

}

$sb = new $class();

if ( $sb->isEnabled() ) {

$social_bookmarks[] = $sb->getOutput();

}}

if ( !empty($social_bookmarks) ) {

$data = implode( $social_bookmarks);}

echo $data;

?>

</h3>

 

<?php

if ($product_info['products_quantity']>=1 ) { ?>

<div style="padding:15px 0px 5px 0px; border:1px solid #d3d3d3; border-width:1px 0px 0px 0px; margin-top:10px;"><p class="options-title">

<?php echo TEXT_ENTER_QUANTITY .":"; ?>

<?php $val = $product_info['products_quantity']; ?>

<select name="cart_quantity">

<?php for($i=1;$i<=$val;$i++)

{?>

<option><?php echo $i;?></option></option>

<?php }

?>

</select>

</p>

</div>

<?php }

// ORDER QUANTITY

?>

 

<!-- MAke the lower decritption area 100% width - remove both LI to keep the dec. on the right //-->

 

 

</li>

<li class="starboard_side_lower">

 

 

<!-- OLD DATE LOCATION

<div class="data data_padd small_title">

 

<?php // echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></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)$HTTP_GET_VARS['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) {

?>

 

<div class="options">

<p class="options-title"><?php echo TEXT_PRODUCT_OPTIONS; ?></p>

 

<ul class="ofh">

<?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)$HTTP_GET_VARS['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)$HTTP_GET_VARS['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($HTTP_GET_VARS['products_id']) && isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {

$selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];

} else {

$selected_attribute = false;

}

?>

<li class="fl_left"><label><?php echo $products_options_name['products_options_name'] . ':'; ?></label><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></li>

<?php

}

?>

</ul>

<?php

if (tep_not_null($product_info['products_model'])) {

?>

<br><?php echo TEXT_PRODUCT_PART_NUMBER;?> <a style="font-weight:bold; color:#006;"><?php echo $products[$i][$option]['products_options_code'] ;?></a>

<?php

}

?>

</div>

<?php

}

?>

 

<div class="desc desc_padd">

<?php

include_once (DIR_WS_MODULES . FILENAME_PRODUCTS_TABS);

// End Products Specifications

?>

 

</div>

<div class="desc desc_padd_lite" style=" font-size:11px;"><?php

//PRODUCT REVIEW

$reviews_box_contents =

'<a class="box_icon" href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . $HTTP_GET_VARS['products_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icons/write_new_review.gif', IMAGE_BUTTON_WRITE_REVIEW) . '</a><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . $HTTP_GET_VARS['products_id']) . '">' . MODULE_BOXES_REVIEWS_BOX_WRITE_REVIEW .'</a>';

echo $reviews_box_contents;

?><div style="float:right; margin-right:15px;">

<?php

// PRODUCT URL

if ($product_info['products_url'] == true) {

echo '<a class="box_icon" target="_blank" href="http://' . $product_info['products_url'] . '">' . tep_image(DIR_WS_IMAGES . 'icons/web_icon.gif', TEXT_PRODUCT_MANUFCACTURERS_URL) . '</a><a target="_blank" href="http://' . $product_info['products_url'] . '">' . TEXT_PRODUCT_MANUFCACTURERS_URL .'</a>';

 

}

?>

 

</div></div>

 

<?php

$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and reviews_status = 1");

$reviews = tep_db_fetch_array($reviews_query);

?>

 

<div class="buttonSet">

<span class="buttonAction"><div class="bg_button22" onMouseOut="this.className='bg_button22';" onMouseOver="this.className='bg_button22-act';"><?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?></div></span>

 

<div class="fl_right" align="right"><div class="bg_button2" onMouseOut="this.className='bg_button2';" onMouseOver="this.className='bg_button2-act';"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?>

 

</div>

</div>

</div>

 

</li>

 

</div>

</div>

 

</div>

</div>

<?php

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_also_purchased(3600);

} else {

include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);

}

?>

 

 

</form>

 

 

 

<?php

}

?>

<?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>

<?php echo tep_draw_content_bottom();?>

 

<?php

require(DIR_WS_INCLUDES . 'template_bottom.php');

require(DIR_WS_INCLUDES . 'application_bottom.php');

?>

Link to comment
Share on other sites

 

Hi Jim,

 

Something like here - http://www.johnlewis...ctCategory.aspx

 

Scroll down to the desktop features filter and select 2 or more - This is what I desire, let me know your thoughts.

 

Also thank you for your extended help thumbsup.gif .

That's a set of Exact filters. Each checkbox is a separate filter on a separate Specification.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

That's really hard for me to read. Paste code in a code or PHP box to preserve the formatting.

 

<?php

if ((USE_CACHE == 'true') && empty($SID)) {

echo tep_cache_also_purchased(3600);

} else {

include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);

}

?>

 

 

</form>

The part in red is wrong. It must be above the tabs.

 

Regards

Jim

Edited by kymation

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Thanks Jim, that helped - on submit its now not gowing to shopping cart, however the form does not send nor do any warnings appear when the user enters nothing in the fields and clicks submit.

 

Many thanks, I will have to look into the php at how this all working.

Link to comment
Share on other sites

1. Yes. Set up a Manufacturer filter and import the manufacturers list.

 

2. Using attributes as an existing database field is not currently possible. It's on my list of things to add. For now you'll have to add a new Specification and fill it by hand.

 

See the User's Manual for details.

 

Regards

Jim

 

How to do this???

Set up a Manufacturer filter and import the manufacturers list.

 

Having difficulty doing this:

 

plase explain.

 

Thanks

Edited by gfasal
Link to comment
Share on other sites

Hi, can someone help me...

 

I have a problem with "Products Filters", when i install the "product filter box" or the "filter module" on a clean oscommerce 2.3, i can see this error :

 

Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in c:\easyphp\www\catalog\includes\classes\specifications.php on line 17

 

I would like to use just the "filters module" on this website (www.newmotorz.com) and to start i test on a clean oscommerce, but it doesn't workkkk.

 

Thanks for your help !

 

Regards,

Romain

Link to comment
Share on other sites

It appears that you are using an old version of PHP. The only solution to that is to upgrade. I can't tell any more without more information.

 

Regards

Jim

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

Jim,

 

I meet a problem with the section "Specifications in Group".

 

When i create a "Specifications in Group" all it's ok, but when I want to change the parameters of one specification, these 3 lines below are lost... :-(

 

- Filter Class

- Display the Filter as

- Enter Specification Values as

 

Can you help me ?

 

Romain

Link to comment
Share on other sites

That usually means some sort of error in the file. I would try reloading that file from the distribution package. If that doesn't work, reload all of the other files in the Admin side.

 

Regards

JIm

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

You'll have to find the error message in your PHP error logs. I can't do anything without knowing what the error is.

 

Special characters do not work in filters. This is a known bug that I haven't had time to fix.

 

Regards

JIm

See my profile for a list of my addons and ways to get support.

Link to comment
Share on other sites

is it possible to mix this addon of "Products Specifications" with the addon of "Master Products for V2.3x V2.1 " (http://addons.oscommerce.com/info/1681)

I'm trying in several ways buth I always get stuck with this parts

 

// Start Products Specifications

if (SPECIFICATIONS_BOX_FRAME_STYLE == 'Tabs') {

// Insert the javascript for the tabs

and

 

// Master Products

$master_status_query = tep_db_query("select products_id, products_master_status, products_master from " . TABLE_PRODUCTS . " where products_status = '1' and products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");

$master_check = tep_db_fetch_array($master_status_query);

 

if ($master_check['products_master_status'] > 0) {

echo tep_draw_form('buy_now_', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_slave', 'NONSSL'));

} else {

// this line should be disactivated by PRODUCTS SPECIFICATIONS

echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product'));

}

// Master Products EOF

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...