Jump to content


Corporate Sponsors


Latest News: (loading..)

stubbsy

Member Since 06 Aug 2003
Offline Last Active May 01 2012, 08:46
-----

Posts I've Made

In Topic: AJAX Attribute Manager support

15 February 2012, 12:08

I have a question about how this functions with QT Pro, which I hope someone can help with...

I sell for example a race kit made up of a jersey, pants and gloves.

Jerseys range from S - XXL
Pants from 28 - 38"
and gloves from S - XXL

Now that's quite a few options. What I thought I would be able to do with this was to put a quantity next to each item. e.g.

Jerseys

S = 1
M =10
L = 9
XL = 11.. etc

then the same with pants

28" = 5
30" = 6...etc

Gloves

S = 3
M = 5...etc

and so on.

But all I seem to be able to do it to pair everything together

so I have to enter

Jersey Pants Gloves
S = 1 28=1 S=1

and I have to try and think of every possible combination that a customer might select.

Is this how its supposed to work?

Any advice appreciated :)

Dave

In Topic: AJAX Attribute Manager support

15 February 2012, 11:57

View Postgfasal, on 14 October 2011, 08:03, said:



around line 244

if(AM_USE_SORT_ORDER) {
?>
<?php echo tep_draw_input_field("sortOrder_$optionValueId",$optionValueInfo['sortOrder'],' style="margin:3px 0px 3px 0px;" id="sortOrder_'.$optionValueId.'" size="4" onChange="return amUpdate(\''.$optionId.'\',\''.$optionValueId.'\');"'); ?>
<?php
}
?>

remove the //

Thank you very much, hard to believe that this functionality was already there :)

Much appreciated

Dave

In Topic: Can we have the old font back?

15 November 2011, 19:15

If you don't have anything useful to say then you shouldn't bother replying.

No wonder you have 8000 posts!

In Topic: NEW! Complete Order Editing Tool!

12 October 2011, 20:01

Hi,

I have server error when I add RusNNs' update for QT Pro which relates to his update for qtpro

This section causes a 500 server error

REPLACE WITH
 
		if (ORDER_EDITOR_USE_QTPRO == 'true') {
		  if (isset($_POST['add_product_options'])) {
			foreach($_POST['add_product_options'] as $option_id => $option_value_id) {
				$products_stock_attributes[] = $option_id . '-'. $option_value_id;
			} // for loop
			sort($products_stock_attributes, SORT_NUMERIC); // Same sort as QT Pro stock
			$products_stock_attributes = implode($products_stock_attributes, ',');
		  }
		}
		
		$sql_data_array = array('orders_id' => tep_db_prepare_input($oID),
								'products_id' => tep_db_prepare_input($add_product_products_id),
								'products_model' => tep_db_prepare_input($product['products_model']),
								'products_name' => tep_db_prepare_input($product['products_name']),
								'products_price' => tep_db_prepare_input($product['products_price']),
								'final_price' => tep_db_prepare_input(($product['products_price'] + $AddedOptionsPrice)),
								'products_tax' => tep_db_prepare_input($products_tax),
								'products_quantity' => tep_db_prepare_input($_POST['add_product_quantity']),
								'products_stock_attributes' => tep_db_prepare_input($products_stock_attributes));
		tep_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array);
 

The first section causes the issue.

Any ideas?

Thanks

Dave

In Topic: AJAX Attribute Manager support

16 September 2011, 13:44

Just a suggestion..

would it be possible to have a text entry box for the sort order as well as the up and down arrows?

The reason being: on existing older products which don't have sort orders, when you add a new attribute it creates a sort order which is all out of sync. It is quite easy to spend 20 minutes or so moving options up and down into the correct order. If there was a text entry box and you just popped in the numbers then it would be a bit quicker :)

Like I say this is just a suggestion as I'm not clever enough to do it myself :D

Dave