Jump to content
Sign in to follow this  
silverboy65

Ajax vote system with top ten list

Recommended Posts

Hi

i think a important feature on your add-on is missing and that is a feature that user can be vote on index page

i try add it in a simple way but don't work

 

please add this feature to your great add-on

thanks

Share this post


Link to post
Share on other sites

Poll Booth

 

On the surface that looks like what you want (to me anyway).

 

You might want to check the contributions before posting...

:huh:


If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Share this post


Link to post
Share on other sites

no i think the ajax behaviour is better for my shop

 

i have another question

in my new_products.php the code's are :

 

 if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {
	 $sql = "select distinct p.products_date_added, p.products_id, p.products_image, p.products_model, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price, mnf.manufacturers_name, rvw.reviews_rating from " . TABLE_PRODUCTS . " p left join ".TABLE_SPECIALS." s on p.products_id = s.products_id left join ".TABLE_MANUFACTURERS." mnf on p.manufacturers_id = mnf.manufacturers_id left join ".TABLE_REVIEWS." rvw on p.products_id = rvw.products_id where p.products_status = '1' order by p.products_date_added desc limit ".MAX_DISPLAY_NEW_PRODUCTS;
	 $new_products_query = tep_db_query($sql); 


 } else {

$sql = "select distinct p.products_date_added, p.products_id, p.products_image, p.products_model, p.products_tax_class_id, if(s.status, s.specials_new_products_price, p.products_price) as products_price, mnf.manufacturers_name, rvw.reviews_rating from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on (p.products_id = s.products_id) left join " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c on (p.products_id = p2c.products_id) left join " . TABLE_CATEGORIES . " c on (p2c.categories_id = c.categories_id) left join ".TABLE_MANUFACTURERS." mnf on (p.manufacturers_id = mnf.manufacturers_id) left join ".TABLE_REVIEWS." rvw on (p.products_id = rvw.products_id) where c.parent_id = '" . (int)$new_products_category_id . "' and p.products_status = '1' order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS;
$new_products_query = tep_db_query($sql); 
}

 

how i can add the cod's of this module in my file :

  if ( (!isset($new_products_category_id)) || ($new_products_category_id == '0') ) {
 $new_products_query = tep_db_query("select p.products_id, pd.products_name, p.products_image, p.products_model, pd.products_description, p.products_tax_class_id, p.products_price, s.specials_new_products_price, r.* from " . TABLE_PRODUCTS . " p inner join " . TABLE_SPECIALS . " s on p.products_id = s.products_id right join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id inner join rating r on p.products_id = r.id where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' ORDER BY p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);

 } else {

  $new_products_query = tep_db_query("select p.products_id, p.products_image, p.products_model, p.products_tax_class_id, p.products_price, s.specials_new_products_price, r.* from " . TABLE_PRODUCTS . " p inner join " . TABLE_SPECIALS . " s on p.products_id = s.products_id right join "  . TABLE_PRODUCTS_TO_CATEGORIES . " p2c on p.products_id = p2c.products_id join rating r on p.products_id = r.id,  " . TABLE_CATEGORIES . " c where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . (int)$new_products_category_id . "'   order by p.products_date_added desc limit " . MAX_DISPLAY_NEW_PRODUCTS);

 }

Share this post


Link to post
Share on other sites

i still have question but nobody no answer to me

 

i find this google boot 66.249.71.227 that's enter to vote links and votes to products

how i can stop it?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×