Results 1 to 8 of 8
  1. #1
    Join Date
    May 2014
    Location
    Sydney, Australia
    Posts
    2
    Plugin Contributions
    0

    Default How to set which attributes price to be display on product listing

    Hi all,
    My problem with attribute is how to set which attribute price to be displayed in product listing page.
    I set 100 gram as default selection in attribute controller, but the display price in product listing is the 50g option.

    please see image for details Click image for larger version. 

Name:	pic 2.jpg 
Views:	248 
Size:	44.1 KB 
ID:	14025Click image for larger version. 

Name:	pic 1.jpg 
Views:	192 
Size:	19.9 KB 
ID:	14026


    Thanks in advance.

    Richard

  2. #2
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: How to set which attributes price to be display on product listing

    Quote Originally Posted by kluki2008 View Post
    Hi all,
    My problem with attribute is how to set which attribute price to be displayed in product listing page.
    I set 100 gram as default selection in attribute controller, but the display price in product listing is the 50g option.

    please see image for details Click image for larger version. 

Name:	pic 2.jpg 
Views:	248 
Size:	44.1 KB 
ID:	14025Click image for larger version. 

Name:	pic 1.jpg 
Views:	192 
Size:	19.9 KB 
ID:	14026


    Thanks in advance.

    Richard
    If not mistaken, this would require custom coding as the default process is to show the lowest price of the attributes that are associated with the product. Otherwise, would have to split the product(s) to have the 100mg product as the lowest priced attribute in the single product.Besid

    Besides the suggested method of setting up products with attributes is to include a default item that is display only. This prevents a customer from "accidentally" selecting the wrong attribute for the product and thus preventing returns and other issues.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to set which attributes price to be display on product listing

    There is a setting on the Attributes on whether they should be used to calculate the base price ...

    The default is to use the lowest value on the Attribute Groups to make the calculation ... if that is not obtaining the price you want, then you can use the setting to mask the prices that you do not want to be included in calculating the price ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    May 2014
    Location
    Sydney, Australia
    Posts
    2
    Plugin Contributions
    0

    Default Re: How to set which attributes price to be display on product listing

    Thanks all,

    From my website the attribute price shows in product listing is not the lowest attribute price. I will look into the code in these few days and hope I can figure out.

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to set which attributes price to be display on product listing

    If your lowest attribute price is not being used in the product base price, then you need to look at the "include in base price" settings in Attributes Controller, not start tinkering with the code.

  6. #6
    Join Date
    Mar 2014
    Location
    Central California
    Posts
    104
    Plugin Contributions
    0

    Default Re: How to set which attributes price to be display on product listing

    I also am trying to work with attributes.
    Zen Cart 1.5.1
    I have 1 product that comes in 3 sizes.
    Right now all 3 are on one shop page. The user has to click the produce they want and go to that product page.
    I want to have the generic product on one page where the user can choose the size they want.
    I can't seem to get the prices to come up for the size that is chosen.
    Do I need to create a new category or can I use the category that is already there.
    Also is it possible to have the picture updated to show the one the user has chosen.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to set which attributes price to be display on product listing

    Seeing the product(s) live would make it easier to understand your situation. Do you currently have three separate products in one category, or do you have the attribute set up to handle sizes in one product? Also, how do you expect the price for the chosen attribute to "come up"? Do you want it to display in a central location on the same page after a size is selected? That would require some custom javascript, as would switching out the image to reflect the selection. There may be one or more mods in Plugins to do these things, so I would investigate there first.

  8. #8
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,731
    Plugin Contributions
    27

    Default Re: How to set which attributes price to be display on product listing

    In case anyone needs a fix, I've posted it here:
    https://www.zen-cart.com/showthread....ice-not-lowest
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    Twitch Base8 - Obsidian - This, is what's new.

 

 

Similar Threads

  1. How can I display which Attributes are in / out of stock
    By sretep in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 11 Jul 2009, 10:33 AM
  2. How can I display which Attributes are in / out of stock
    By cgarforth in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 11 Jul 2009, 02:57 AM
  3. How can I display which Attributes are in / out of stock
    By cgarforth in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Jul 2009, 10:41 AM
  4. How to Set a TABLE for Attributes In Product Display Page?
    By louisp25 in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 13 Oct 2006, 02:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR