Sorted, so in case it helps someone else the revised MySQL script looks as follows:
update products set products_availability_id = 5 where products_id in (select products_id from products_to_categories where categories_id = 22)
This will update the products in category 22 and set the product availability id to 5 for all of these.
- osCommerce Support Forum
- → Viewing Profile: pafranklin
Latest News: (loading..)
Community Stats
- Group Community Member
- Active Posts 245 (0.11 per day)
- Most Active In General Support (157 posts)
- Profile Views 8,732
- Age 49 years old
- Birthday January 25, 1963
-
Real Name
Paul Franklin
-
Gender
Male
-
Location
Gloucestershire, UK
-
Interests
OSC (Obviously), general website design, cricket, cinema and theatre. Oh yes - and red wine!
0
Neutral
Latest Visitors
Posts I've Made
In Topic: MySQL Script
26 January 2012, 09:23
In Topic: [Contribution] Ship In Cart
11 January 2012, 15:56
Hi there,
I haven't trawled every page in this thread but wanted to post an update for all of those who have experienced an error on the product page whereby anyone clicking on the "update cart" button gets an error of page cannot be dispayed and the url appears something like http://www.xyzdomain.com/_.
To correct this find:
and add </form> just before it so that the code looks something like:
I hope this helps someone - It worked for me and the module works well, so thanks to those for developing it.
Paul.
I haven't trawled every page in this thread but wanted to post an update for all of those who have experienced an error on the product page whereby anyone clicking on the "update cart" button gets an error of page cannot be dispayed and the url appears something like http://www.xyzdomain.com/_.
To correct this find:
<tr>
<td>
<br>
<?php
$cart->add_cart($product_info['products_id']); //add current to cart for estimator
if (CARTSHIP_ONOFF == 'Enabled') { require(DIR_WS_MODULES . 'product_shipping_estimator.php'); } else {};
$cart->remove($product_info['products_id']); //lets remove current product from cart
?>
</td>
</tr>
and add </form> just before it so that the code looks something like:
</form>
<tr>
<td>
<br>
<?php
$cart->add_cart($product_info['products_id']); //add current to cart for estimator
if (CARTSHIP_ONOFF == 'Enabled') { require(DIR_WS_MODULES . 'product_shipping_estimator.php'); } else {};
$cart->remove($product_info['products_id']); //lets remove current product from cart
?>
</td>
</tr>
I hope this helps someone - It worked for me and the module works well, so thanks to those for developing it.
Paul.
- osCommerce Support Forum
- → Viewing Profile: pafranklin
- Forum Rules






Find content


