Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

BUY_TWO_MODULE


case510

Recommended Posts

Hi,

has anybody tried this module on a shop with more that 1500 products in database. (Plus x-sell, specials, featured).

 

It takes approx 4 minutes to open product info page.

I noticed that the query ($btpq) generated by buy_two_module.php takes too long to select a random product.

 

Any suggestion will be appreciated

 

The query is here:

 

select p.products_id, p.products_image, p.products_tax_class_id, s.status as specstat, s.specials_new_products_price, p.products_price, p.manufacturers_id from products p left join specials s on p.products_id = s.products_id , products_attributes pa where p.products_id != pa.products_id and p.products_status = '1' and p.products_id!='1474' and p.products_tax_class_id='0' order by rand(23469) DESC limit 1

Edited by case510
Link to comment
Share on other sites

No trick

 

just running on ms2 (maybe you not??) or it has to do with mysql or your hosting provider? eventually you have to look at your php server settings

 

cu

Kai

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...