Quantity Price Breaks
#821
Posted 12 October 2011, 11:08
// customer adds a product from the products page
case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {
//BOF qpbpp
//$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);
$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id'])) + $HTTP_POST_VARS['cart_quantity'], $HTTP_POST_VARS['id']);
//EOF qpbpp
// denuz text attr
tep_db_query("delete from customers_basket_text_attributes where products_id = " . $HTTP_POST_VARS['products_id'] . " and session_id = '" . $osCsid . "'");
$attr_query = tep_db_query("select * from products_text_attributes_enabled where products_id = " . $HTTP_POST_VARS['products_id']);
while ($attr = tep_db_fetch_array($attr_query)) {
tep_db_query("insert into customers_basket_text_attributes values ('$osCsid', " . $HTTP_POST_VARS['products_id'] . ", " . $attr['products_text_attributes_id'] . ", '" . addslashes($HTTP_POST_VARS['products_text_attributes_' . $attr['products_text_attributes_id']]) . "');");
}
// eof denuz text attr
}
tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));
break;
#822
Posted 25 October 2011, 13:32
berthz, on 12 December 2009, 23:09, said:
Anyone with the same problems try in includes/classes/shopping_cart.php to change:
// BOF qpbpp
if ($this->in_cart($products_id_string)) {
$this->update_quantity($products_id_string, $qty, $attributes, $discount_category);
} else {
$this->contents[$products_id_string] = array('qty' => (int)$qty, 'discount_categories_id' => $discount_category);
// EOF qpbpp
into:
// BOF qpbpp
if ($this->in_cart($products_id_string)) {
$this->update_quantity($products_id_string, $qty, $attributes, $product_info['discount_categories_id']);
} else {
// Berekening van aantal producten gaat niet goed zonder onderstaande code. Deze berekend de dichstbijzijnde minimale bundel afname bij het toevoegen van een product. Er word naar beneden afgerond.
$min_order_query = tep_db_query("select p.products_qty_blocks as min_quant FROM " . TABLE_PRODUCTS . " p where p.products_id = '".$products_id_string."'");
while ($min_order = tep_db_fetch_array($min_order_query))
{
if ($qty < $min_order['min_quant'])
{
$qty = $min_order['min_quant'];
}
if ($qty > $min_order['min_quant'])
{
$qty = ($qty - ($qty % $min_order['min_quant']));
}
}
$this->contents[$products_id_string] = array('qty' => (int)$qty, 'discount_categories_id' => $product_info['discount_categories_id']);
// EOF qpbpp
It will however round the final $qty down to the nearest products_qty_blocks rather then up. Math was not my best subject and I couldnt figure out how to do that.
After searching up&down the hole internet and spending days and weeks for find the soulition I did it! Here is! THANK YOU, YOU ARE THE GUY MAN!
#823
Posted 28 November 2011, 13:37
I did this mannually, it didn't show me any error.
I am just able to set the configuration for beaks and discount category and see the products by show products button.
what is wrong
can you please guide me
Thanks and regards
Edited by IAnil, 28 November 2011, 13:39.
#824
Posted 28 November 2011, 13:39
IAnil, on 28 November 2011, 13:37, said:
I did this mannually, it didn't show me any error.
I am just able to set the configuration for beaks and discount category and see the products by show products button.
what is wrong
can you please guide me
Thanks and regards
#825
Posted 24 December 2011, 00:05
I am running 2.3.1 and found the version for 2.3.1 actually uses a very old version of product_listing.php so I set out to get the newer (better looking version) working but have hit a snag and hope someone in here can help
// BOF qpbpp
$no_of_listings = tep_db_num_rows($listing_query);
while ($_listing = tep_db_fetch_array($listing_query)) {
$_listing['discount_categories_id'] = NULL;
$listing[] = $_listing;
$list_of_prdct_ids[] = $_listing['products_id'];
}
$list_of_prdct_ids = array_unique($list_of_prdct_ids);
$price_breaks_query = tep_db_query("select products_id, products_special_price_2, products_qty from " . TABLE_PRODUCTS . " where products_id in (" . implode(',', $list_of_prdct_ids) . ") order by products_id, products_qty");
while ($price_break = tep_db_fetch_array($price_breaks_query)) {
$price_breaks_array[$price_break['products_id']][] = array('products_price' => $price_break['products_special_price_2'], 'products_qty' => $price_break['products_qty']);
}
$discount_category_query = tep_db_query("select p.products_id, p.products_quantity, p.products_weight, discount_categories_id from " . TABLE_PRODUCTS ." p left join " . TABLE_PRODUCTS_TO_DISCOUNT_CATEGORIES . " using(products_id) where p.products_id in (" . implode(',', $list_of_prdct_ids) . ")");
while ($dc_array = tep_db_fetch_array($discount_category_query)) {
$discount_categories[] = array ('products_id' => $dc_array['products_id'], 'products_quantity' => $dc_array['products_quantity'], 'products_weight' => $dc_array['products_weight'], 'discount_categories_id' => $dc_array['discount_categories_id']);
}
for ($x = 0; $x < $no_of_listings; $x++) {
// add discount categories to the listing array
if(!empty($discount_categories)) {
for ($i = 0; $i < count($discount_categories); $i++) {
if ($listing[$x]['products_id'] == $discount_categories[$i]['products_id'] ) {
$listing[$x]['discount_categories_id'] = $discount_categories[$i]['discount_categories_id'];
$listing[$x]['products_quantity'] = $discount_categories[$i]['products_quantity'];
$listing[$x]['products_weight'] = $discount_categories[$i]['products_weight'];
}
}
} // end if(!empty($discount_categories)
}
// while ($listing = tep_db_fetch_array($listing_query)) { (was original code)
for ($x = 0; $x < $no_of_listings; $x++) {
$rows++;
$prod_list_contents .= ' <tr>';
for ($col=0, $n=sizeof($column_list); $col<$n; $col++) {
switch ($column_list[$col]) {
case 'PRODUCT_LIST_MODEL':
$prod_list_contents .= ' <td>' . $listing[$x]['products_model'] . '</td>';
break;
case 'PRODUCT_LIST_NAME':
if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
$prod_list_contents .= ' <td><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing[$x]['products_id']) . '">' . $listing[$x]['products_name'] . '</a></td>';
} else {
$prod_list_contents .= ' <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing[$x]['products_id']) . '">' . $listing[$x]['products_name'] . '</a></td>';
}
break;
case 'PRODUCT_LIST_MANUFACTURER':
$prod_list_contents .= ' <td align="center"><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing[$x]['manufacturers_id']) . '">' . $listing[$x]['manufacturers_name'] . '</a></td>';
break;
case 'PRODUCT_LIST_PRICE':
if (tep_not_null($listing[$x]['specials_new_products_price'])) {
$prod_list_contents .= ' <td align="right"><del>' . $currencies->display_price($listing[$x]['products_id'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</del> <span class="productSpecialPrice">' . $currencies->display_price($listing[$x]['specials_new_products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</span></td>';
} else {
$prod_list_contents .= ' <td align="right">' . $currencies->display_price($price_break['products_price'], tep_get_tax_rate($listing[$x]['products_tax_class_id'])) . '</td>';
}
break;
case 'PRODUCT_LIST_QUANTITY':
$prod_list_contents .= ' <td align="right">' . $listing[$x]['products_quantity'] . '</td>';
break;
case 'PRODUCT_LIST_WEIGHT':
$prod_list_contents .= ' <td align="right">' . $listing[$x]['products_weight'] . '</td>';
break;
case 'PRODUCT_LIST_IMAGE':
if (isset($HTTP_GET_VARS['manufacturers_id']) && tep_not_null($HTTP_GET_VARS['manufacturers_id'])) {
$prod_list_contents .= ' <td align="left"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'] . '&products_id=' . $listing[$x]['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing[$x]['products_image'], $listing[$x]['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>';
} else {
$prod_list_contents .= ' <td align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, ($cPath ? 'cPath=' . $cPath . '&' : '') . 'products_id=' . $listing[$x]['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing[$x]['products_image'], $listing[$x]['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td>';
}
break;
case 'PRODUCT_LIST_BUY_NOW':
$prod_list_contents .= ' <td align="center"> ' . tep_draw_input_field('cart_quantity', $listing[$x]['products_qty'], 'size="6"') . tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'products_id')) . 'action=buy_now&products_id=' . $listing[$x]['products_id'])) . '</td>';
break;
The problem is the array $price_break does not appear to be carrying down to the case: PRODUCT_LIST_PRICE if I use $listing[$x]['product_price'] it shows the normal price?
The part in case: PRODUCT_LIST_BUY_NOW ihas been changed to add qty box (but need to get it to action)
Anyone wanting to try this changed version must do a seach and replace for TABLE_PRODUCTS change to TABLE_PRODUCTS_PRICE_BREAK and products_special_price_2 change to products_price also change $price_break in case: PRODUCT_LIST_PRICE change to $listing[$x]
as I have modified this script to make use of and automated import that has brice breaks built in the feed.
If anyone can help solve the PRODUCT_LIST_PRICE problem i would be greatful.
#826
Posted 27 December 2011, 17:46
I have now managed to get it working correctly but I have hit ONE bug which i cannot seem to narrow down to a cause.
what happens is when I ADD an item to the cart from product_listing the price displayed in product_listing becomes ZERO (the correct price is shown in the cart and checkout) it just loses the price on any item that is in the cart but only in the Product_listing page.
I have checked all my currency settings etc are correct (besides it works okay from product_info).
Here is the code i have inserted into product_listing.php
} $pf->loadProduct((int)$_GET['products_id'], (int)$languages_id); $products_price=$pf->getPriceString(); $prod_list_contents = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header ui-corner-top infoBoxHeading">' . ' <table border="0" width="100%" cellspacing="0" cellpadding="2" class="productListingHeader">' . ' <tr>';
$no_of_listings = tep_db_num_rows($listing_query);
while ($_listing = tep_db_fetch_array($listing_query)) {
$_listing['discount_categories_id'] = NULL;
$listing[] = $_listing;
$list_of_prdct_ids[] = $_listing['products_id'];
}
$list_of_prdct_ids = array_unique($list_of_prdct_ids);
$price_breaks_query = tep_db_query("select products_id, products_special_price_2, products_qty from " . TABLE_PRODUCTS . " where products_id in (" . implode(',', $list_of_prdct_ids) . ") order by products_id, products_qty");
while ($price_break = tep_db_fetch_array($price_breaks_query)) {
$price_breaks_array[$price_break['products_id']][] = array('products_price' => $price_break['products_special_price_2'], 'products_qty' => $price_break['products_qty']);
}
$discount_category_query = tep_db_query("select p.products_id, p.products_quantity, p.products_weight, discount_categories_id from " . TABLE_PRODUCTS ." p left join " . TABLE_PRODUCTS_TO_DISCOUNT_CATEGORIES . " using(products_id) where p.products_id in (" . implode(',', $list_of_prdct_ids) . ")");
while ($dc_array = tep_db_fetch_array($discount_category_query)) {
$discount_categories[] = array ('products_id' => $dc_array['products_id'], 'products_quantity' => $dc_array['products_quantity'], 'products_weight' => $dc_array['products_weight'], 'discount_categories_id' => $dc_array['discount_categories_id']);
}
for ($x = 0; $x < $no_of_listings; $x++) {
// add discount categories to the listing array
if(!empty($discount_categories)) {
for ($i = 0; $i < count($discount_categories); $i++) {
if ($listing[$x]['products_id'] == $discount_categories[$i]['products_id'] ) {
$listing[$x]['discount_categories_id'] = $discount_categories[$i]['discount_categories_id'];
$listing[$x]['products_quantity'] = $discount_categories[$i]['products_quantity'];
$listing[$x]['products_weight'] = $discount_categories[$i]['products_weight'];
}
}
} // end if(!empty($discount_categories)
}
// while ($listing = tep_db_fetch_array($listing_query)) { (was original code)
for ($x = 0; $x < $no_of_listings; $x++) {
$rows++;
case 'PRODUCT_LIST_PRICE':
if (isset($price_breaks_array[$listing[$x]['products_id']])) {
$price_breaks_from_listing = $price_breaks_array[$listing[$x]['products_id']];
if (tep_not_null($listing['specials_new_products_price'])) {
$prod_list_contents .= ' <td align="left"><del>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span></td>';
} else {
}
$pf->loadProduct($listing[$x]['products_id'], $languages_id, $listing[$x], $price_breaks_from_listing);
$prod_list_contents .= ' <td align="right">' . $pf->getPriceStringShort() . '</td>';
}
break;
Can anyone see why it is losing the prices once the item is added to the cart?
Edited by ShaGGy, 27 December 2011, 17:50.
#827
Posted 29 December 2011, 12:26
ShaGGy, on 27 December 2011, 17:46, said:
case 'PRODUCT_LIST_PRICE':
if (isset($price_breaks_array[$listing[$x]['products_id']])) {
$price_breaks_from_listing = $price_breaks_array[$listing[$x]['products_id']];
if (tep_not_null($listing['specials_new_products_price'])) {
$prod_list_contents .= ' <td align="left"><del>' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del> <span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span></td>';
} else {
}
$pf->loadProduct($listing[$x]['products_id'], $languages_id, $listing[$x], $price_breaks_from_listing);
$prod_list_contents .= ' <td align="right">' . $pf->getPriceStringShort() . '</td>';
}
break;
Can anyone see why it is losing the prices once the item is added to the cart?
No, but to me a number of things looks suspicious in the above piece of code. In the line:
if (tep_not_null($listing['specials_new_products_price'])) {
it looks like the [$x] is missing. Also there is a "del" tag in the html-code. I assume most browsers will display it as text with a line through it but the appropriate way to do it is probably using CSS like:<span style="text-decoration: line-through;">
#828
Posted 29 December 2011, 17:23
Jan Zonjee, on 29 December 2011, 12:26, said:
if (tep_not_null($listing['specials_new_products_price'])) {
it looks like the [$x] is missing. Also there is a "del" tag in the html-code. I assume most browsers will display it as text with a line through it but the appropriate way to do it is probably using CSS like:<span style="text-decoration: line-through;">
Hi Jan, yes i fixed the [$x] after posting, as for the del that is part of the special price feature (built into OSC) and is default 2.3.1 code which just puts a strike through on the original price if the item is on special offer.
as a temporary (fix) i have put
function display_price($products_price, $products_tax, $quantity = 1) {
if ($products_price > 0){
return $this->format(tep_add_tax($products_price, $products_tax) * $quantity);
}else{
return "Already in your Cart";
}
}
}
into includes/classe/currencies.php to show Already in your Cart in place of the £0.00 it wants to display
#829
Posted 05 January 2012, 13:52
First of all big-big thanks for the feedback for every person who sended especially for Mr. Jan Zonjee and for the GREAT contirb!
After trying lots of hours unsuccessfully manage my problem I am trying to ask some help for my problem.
My problem details:
Everything works great (minimum order quantity, rounding, volume discounts etc) except one half thing.
I am selling products in different colors and of course I setted up for every product a discount category (if someone orders 5 red and 10 black thing from the same product it would count as it would be 15).
The problem is with the price calculation. It doesn't corrects the price after adding 2-3 colors from the same product (of course after reaching a volume discount category) JUST when the customer cicks on the update cart or if the customers logs in-out.
I have already went through 2-3 times if it is everything correct or not, and to tell you the truth I am fully disappointed...
I really really hope that somebody could help me out.
#830
Posted 17 January 2012, 13:21
Can some one please tell me if this updated add-on can be used with products which have 2 attributes ie. size and colour and can it be used along side the QTPro???
Also is there a working site with it working, so I can have a peak.
Thanks in advance
A
#831
Posted 20 January 2012, 17:42
I am having trouble with the admin/categories page. I have tried 3 times to get it working, and each time have failed.
Does anyone have a working copy of this mod with sppc that i could have please
I am not a coder. OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
#832
Posted 22 January 2012, 17:27
first of all many thanks for this great contribution i have installed it together with sppc.
the problem is that i would like to update the gross and net price of all price breaks prices similar to the solution which was
mentioned on page 38 ( http://forums.oscommerce.com/topic/220794-quantity-price-breaks/page__st__740 )
but i can get it working.
can someone give met the right code for this problem ?
many thanks
eric
#833
Posted 24 January 2012, 15:18
I have narrowed it down to the following javascript code
<script language="javascript" src="includes/general.js"></script>
<!-- BOF QPBPP for SPPC - Javascript for Tabs //-->
<link rel="stylesheet" href="includes/tabs.css" type="text/css" media="screen">
<script src="includes/javascript/jquery-1.2.6.js" type="text/javascript"></script>
<script src="includes/javascript/ui.core.js" type="text/javascript"></script>
<script src="includes/javascript/ui.tabs.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
/* Tabs for Languages */
$("#langtabs > ul").tabs();
/* Tabs for Customer Groups */
$("#qpbpp > ul").tabs();
});
</script>
I have tried removing this bit of the code
<script src="includes/javascript/jquery-1.2.6.js" type="text/javascript"></script>
but still the page does not load correctly. there are no errors, its just that the buttons do not load correctly and the delete image text is always highlighted and i an then unable to add extra images. Can anyone shed any light on this.
I am not a coder. OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
#834
Posted 25 January 2012, 13:11
14steve14, on 24 January 2012, 15:18, said:
I have narrowed it down to the following javascript code
<script language="javascript" src="includes/general.js"></script>
<!-- BOF QPBPP for SPPC - Javascript for Tabs //-->
<link rel="stylesheet" href="includes/tabs.css" type="text/css" media="screen">
<script src="includes/javascript/jquery-1.2.6.js" type="text/javascript"></script>
<script src="includes/javascript/ui.core.js" type="text/javascript"></script>
<script src="includes/javascript/ui.tabs.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
/* Tabs for Languages */
$("#langtabs > ul").tabs();
/* Tabs for Customer Groups */
$("#qpbpp > ul").tabs();
});
</script>
I have tried removing this bit of the code
<script src="includes/javascript/jquery-1.2.6.js" type="text/javascript"></script>
but still the page does not load correctly. there are no errors, its just that the buttons do not load correctly and the delete image text is always highlighted and i an then unable to add extra images. Can anyone shed any light on this.
Problem sorted.
I am not a coder. OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
#835
Posted 15 February 2012, 00:22
But I am unable to see price breaks in admin also menu on left side is messed up, two buttons appear on product info page, etc...
Has anyone had multiple errors? Thanx.
#836
Posted 24 February 2012, 22:46
I have got a problem when I need to make changes in the application_top.php file.
It says, find this:
$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);
And replace with this code:
//BOF qpbpp //$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id'])) + $HTTP_POST_VARS['cart_quantity'], $HTTP_POST_VARS['id']); //EOF qpbpp
But my code looks like this:
$cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $attributes, false);
Becourse of other adons.
Can anyone see how my code should look when I replace it?
Edited by Blondinen, 24 February 2012, 22:46.
osCommerce 2.2
#837
Posted 25 February 2012, 11:16
Blondinen, on 24 February 2012, 22:46, said:
$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);And replace with this code:
//BOF qpbpp //$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']); $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id'])) + $HTTP_POST_VARS['cart_quantity'], $HTTP_POST_VARS['id']); //EOF qpbppBut my code looks like this:
$cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $attributes, false);Becourse of other adons. Can anyone see how my code should look when I replace it?
not relevant any more.. I gave up
osCommerce 2.2
#838
Posted 26 February 2012, 22:51
Updating our website to the V2.3.1
On our current (old) website we can upload Quantity Price breaks through Easypopulate
Through my testing so far we can not do this with the current version.
Is this correct?
Thank you
Ray
#839
Posted 03 April 2012, 06:50
14steve14, on 25 January 2012, 13:11, said:
14steve14, on 24 January 2012, 15:18, said:
I have narrowed it down to the following javascript code
<script language="javascript" src="includes/general.js"></script>
<!-- BOF QPBPP for SPPC - Javascript for Tabs //-->
<link rel="stylesheet" href="includes/tabs.css" type="text/css" media="screen">
<script src="includes/javascript/jquery-1.2.6.js" type="text/javascript"></script>
<script src="includes/javascript/ui.core.js" type="text/javascript"></script>
<script src="includes/javascript/ui.tabs.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
/* Tabs for Languages */
$("#langtabs > ul").tabs();
/* Tabs for Customer Groups */
$("#qpbpp > ul").tabs();
});
</script>
I have tried removing this bit of the code
<script src="includes/javascript/jquery-1.2.6.js" type="text/javascript"></script>
but still the page does not load correctly. there are no errors, its just that the buttons do not load correctly and the delete image text is always highlighted and i an then unable to add extra images. Can anyone shed any light on this.
CAn you indicate what your solution was in the end
#840
Posted 03 April 2012, 08:46
<script src="includes/javascript/jquery-1.2.6.js" type="text/javascript"></script>
<script src="includes/javascript/ui.core.js" type="text/javascript"></script>
<script src="includes/javascript/ui.tabs.js" type="text/javascript"></script>
The code is already called in your includes/template_top as it is now part of the jquery files in your ext/jquery/ui/jquery-ui-1.8.6.min.js.
I think that was all i had to do.
I am not a coder. OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.














