Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Store Rating System - need some help

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-18-2008, 08:10 AM
 
aferg aferg is offline
 

Member
  
Join Date: Oct 2008
Posts: 18
 

Default Store Rating System - need some help

Hi,

I have designed a simple product rating system (ecoRating) for our products. I have built the html and css. However, I need to integrate it into the add/modify product admin section and product.tpl.

Here is a link to the example: http://www.littlebitgreen.com/ecoRating.html

Here is the hard-coded html with ideas how is may be implemented:
Code:
<!-- need database field to hold ratings input ie. ecorating --> <!-- need dropdown in add/modify product section to select rating and write to database - refer to CSS RATING SCALE for dropdown options --> <!-- need logic to display ecoRating code block if ratings exist --> <!-- need logic to display rating css after ecoRating class --> <!-- CSS RATING SCALE noRating =0 .half=9% .one=20% .oneAndHalf=30% .two=40% .twoAndHalf=50% .three=60% .threeAndHalf=70% .four paws=80% .fourAndHalf paws=91% .five=100% --> <div class="ecoRatingContainer"> <div class="ecoScale"><div class="ecoRating fourAndHalf"></div></div> <a href="#" target="_blank">How we rate our products</a></div>
and Here is the css:
Code:
.ecoRatingContainer { padding-top:27px; width:181px; text-align:right; margin:10px auto; clear:both; background: url(images/interface/ecoRating_heading.png) no-repeat right top; } .ecoRatingContainer a, .ecoRatingContainer a:hover { font-size:90%; text-decoration:none!important; color:#8e8b7b!important;} .ecoRating { background:#FFFFFF url(images/interface/ecoRating_scaleOn.png) no-repeat left top; height:23px; } .ecoScale { background:#FFFFFF url(images/interface/ecoRating_scaleOff.png) no-repeat left top; height:23px; width:148px; margin: 0 0 0 auto; margin-bottom:2px; display:block; text-align:left; } .half {width:9%;} .one {width:20%;} .oneAndHalf {width:30%;} .two {width:40%;} .twoAndHalf {width:50%;} .three {width:60%;} .threeAndHalf {width:70%;} .four {width:80%;} .fourAndHalf {width:91%;} .five {width:100%;}

Is there a kind soul who could help me implement this?

Thanks
AFerg
__________________
X-Cart DB Version: 4.1.11 GOLD
www.everylittlebitgreen.com
Reply With Quote
  #2  
Old 11-19-2008, 05:12 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Store Rating System - need some help

Is this something that you as the merchant rate, or is it something customers rate?
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 11-19-2008, 06:21 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Store Rating System - need some help

X-cart has a system of rating and reviews for product. Why write another?
Reply With Quote
  #4  
Old 11-19-2008, 10:41 AM
 
aferg aferg is offline
 

Member
  
Join Date: Oct 2008
Posts: 18
 

Default Re: Store Rating System - need some help

This is a product rating system for the store merchant to input; not customers. It will be based on the products eco friendliness determined by the merchant. They specifically want the graphics designed in the provided link.

We will still be using the other rating(stars) system for customers

Any help?
Thanks
__________________
X-Cart DB Version: 4.1.11 GOLD
www.everylittlebitgreen.com
Reply With Quote
  #5  
Old 11-20-2008, 07:18 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Store Rating System - need some help

I would probably start with x-cart's product rating system. Clone it, replace the text and graphics, and make it admin only.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:21 PM.

   

 
X-Cart forums © 2001-2020