Register FAQ Search Today's Posts Mark Forums Read
Miva Merchant Community Forums
User Name
Password
Mark Stephens
  #1  
Old Posted: 09-02-09, 09:35 AM
Mini Mivite
Joined Apr 2008
Posts: 79 Mark Stephens is on a distinguished road
Best Seller Displays
While I am using the Tool Kit to display the best selling products of the whole store, and it's nice, but is there another way?

The trouble I have is that neither the product custom fields nor the product ratings/reviews (Sebenza) are available through this array. And I want 'em - I want to show the customer ratings and two of my custom prod fields.

On our home page I'm displaying "Most Popular Products" and it'd be really nice if this display would also show the additional information. Is there a solution out there?

Thanks,
Mark
Last edited by Mark Stephens; 09-02-09 at 09:36 AM..
 
Reply With Quote
wcw
  #2  
Old Posted: 09-02-09, 09:44 AM
Developer Partner
Joined Mar 2006
Posts: 8,168 wcw is on a distinguished road
Re: Best Seller Displays
You should be able to see both. For the custom product fields, see the function "custom" in the tool kit admin page. Change the variable to match the specific array variable you are using.

 
Reply With Quote
Mark Stephens
  #3  
Old Posted: 09-02-09, 03:13 PM
Mini Mivite
Joined Apr 2008
Posts: 79 Mark Stephens is on a distinguished road
Re: Best Seller Displays
Okee dokee. My mistake. I'm familiar with the custom function, I guess I just didn't think of it.

I'll give that a try.

Thanks
 
Reply With Quote
kayakbabe
  #4  
Old Posted: 09-02-09, 11:13 PM
Mighty Mivite
Joined Jun 2008
Posts: 565 kayakbabe is on a distinguished road
Re: Best Seller Displays
bill,
would that be something like &mvt:bestsellers:code; for the bestseller product code?

Does your bestsellers from toolkit just grab all the normal product variables into the bestsellers array? I know it got the product image. Just wondering about the rest.
 
Reply With Quote
wcw
  #5  
Old Posted: 09-03-09, 12:18 AM
Developer Partner
Joined Mar 2006
Posts: 8,168 wcw is on a distinguished road
Re: Best Seller Displays
l.all_settings:bestsellroduct_id

name, code, thumbnail, image, product_id, counter, formatted price and cost

 
Reply With Quote
Mark Stephens
  #6  
Old Posted: 09-03-09, 11:55 AM
Mini Mivite
Joined Apr 2008
Posts: 79 Mark Stephens is on a distinguished road
Re: Best Seller Displays
Smiley got in the way there:
l.all_settings:bestsell:product_id

And here's how I've been able to grab the custom fields in this best seller display:
Code:
<mvt:item name="toolkit" param="custom|list|l.all_settings:bestsell:product_id|reg_price" />
<mvt:if expr="g.list">
List Price: &mvte:global:list;
</mvt:if>
Thanks for the help, Bill
Last edited by Mark Stephens; 09-03-09 at 11:56 AM..
 
Reply With Quote
wcw
  #7  
Old Posted: 09-03-09, 12:03 PM
Developer Partner
Joined Mar 2006
Posts: 8,168 wcw is on a distinguished road
Re: Best Seller Displays
Those darn smiley faces. I wish this forum would get rid of them.

 
Reply With Quote
Mark Stephens
  #8  
Old Posted: 09-03-09, 12:19 PM
Mini Mivite
Joined Apr 2008
Posts: 79 Mark Stephens is on a distinguished road
Re: Best Seller Displays
Say, another question. I'm trying to make a conditional statement now for disaplaying the custom field for 'regular price,' in case the selling price is not lower than the regular price (like if the product is on sale)

For instance:
Code:
<mvt:if expr="g.list GT l.all_settings:bestsell:formatted_price">
Is this not an appropriate comparison? My syntax wrong? g.list always displays now . . . even if that conditional should be canceling some out. You can see it here, mid way down: http://www.woodworkerssource.com/index.php Some products have an equal list price, but I'd think my conditional should be forcing those not to display. HMMMMMM
 
Reply With Quote
wcw
  #9  
Old Posted: 09-03-09, 12:23 PM
Developer Partner
Joined Mar 2006
Posts: 8,168 wcw is on a distinguished road
Re: Best Seller Displays
Formatted price is a text string (not a number). Hence g.list will always be greater. Use price.

 
Reply With Quote
Mark Stephens
  #10  
Old Posted: 09-03-09, 12:40 PM
Mini Mivite
Joined Apr 2008
Posts: 79 Mark Stephens is on a distinguished road
Re: Best Seller Displays
Ahhhh right. I didn't notice that. Got it. Thank you.
 
Reply With Quote

Thread Tools
Display Modes

Posting Rules

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


All times are GMT -7. The time now is 02:19 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.