Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    114
    Plugin Contributions
    0

    Default Unit price to change based on quantity

    Hi all

    I have run into a problem on our website. If I can use http://ergonomiceducationfurniture.c...roducts_id=221 as an example, the unit price is determined on quantity. eg between 2-5 is price A, 6-11 Price B etc. This is selected and then the individual fills in the quantity box as to how many units they actually want.

    The problem is, this is a) very fiddly and b) what's to stop the buyer selecting the cheapest price on the drop-down list and ordering a low quantity? As its payment online, by the time we've got the order they'd be very little we can do about it.

    My question is, how can we resolve this? Is there an add-on (although I have looked and found nothing yet) or am I simply approaching this the wrong way?

    Please, any help will be gratefully received.

    Thanks in advance
    Debbie Harrison
    DVH Design | Web Design blog

  2. #2
    Join Date
    Jan 2004
    Posts
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Unit price to change based on quantity

    Instead of using attributes to select quantities and lower pricing, use the built-in Discount Quantities feature: http://tutorials.zen-cart.com/index.php?article=59
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    114
    Plugin Contributions
    0

    Default Re: Unit price to change based on quantity

    Thank you DrByte - that works better

    However, rather than have a list of unit groups and prices, we did like the lowest cost being displayed and labelled "prices starting from:" Like how it shows up when you use attributes. How would we achieve that?

    I hope you can help.
    Debbie Harrison
    DVH Design | Web Design blog

  4. #4
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    114
    Plugin Contributions
    0

    Default Adding 'prices start from' for group prices

    Hi all

    Following on from http://www.zen-cart.com/forum/showthread.php?t=180118 where I was using attributes to fix prices depending on the quantities order, I was just wondering how I can change the price field to read 'Prices from £xx' ?

    I have basic knowledge of PHP, and can learn patterns of script easily if that helps.

    Many thanks
    Debbie Harrison
    DVH Design | Web Design blog

  5. #5
    Join Date
    Jan 2004
    Posts
    58,246
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Adding 'prices start from' for group prices

    These articles may be of help if you're trying to replace existing wording with something else:
    http://tutorials.zen-cart.com/index.php?article=38
    http://tutorials.zen-cart.com/index.php?article=39
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,677
    Plugin Contributions
    6

    Default Re: Unit price to change based on quantity

    Are you just trying to put the words:
    Prices from

    in front of the £275.00 ...

    And just to confirm ... who "owns" the price ... the Product or the individual Attributes?
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  7. #7
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    114
    Plugin Contributions
    0

    Default Re: Unit price to change based on quantity

    Hi Ajeh

    That is correct. The prices are structured using Product price manager. The attributes just show the price for each unit so the client can see it.

    When I did use attributes The lowest price was quoted with the prefix "Prices starting from". We would like to replicate that rather than showing the most expensive prices as we currently do.

    Not all of our products are ordered in bulk so to just write a prefix in the language file would not work.

    I hope this helps (and I hope I have explained that OK!)
    Debbie Harrison
    DVH Design | Web Design blog

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,677
    Plugin Contributions
    6

    Default Re: Unit price to change based on quantity

    If you look at the template tpl_product_info_display.php and change it in your templates and overrides around line 71 to read:
    Code:
      echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : 'Price from ') . zen_get_products_display_price((int)$_GET['products_id']);
    Does that accomplish what you want?
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  9. #9
    Join Date
    Mar 2009
    Location
    Essex, UK
    Posts
    114
    Plugin Contributions
    0

    Default Re: Unit price to change based on quantity

    Hi Ajeh

    I wish it did! That just adds Prices starting from at the front of every cost.

    Not all of our items are dependent on bulk orders. And it still lists the highest price regardless.

    Thanks anyway
    Debbie Harrison
    DVH Design | Web Design blog

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,677
    Plugin Contributions
    6

    Default Re: Unit price to change based on quantity

    You could use an IF statement and check if the Product uses discount:
    Code:
    (zen_products_lookup((int)$_GET['products_id'], 'products_discount_type') !=0 ? 'Price from ' : '')
    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.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. total price is double unit price once in shopping cart?
    By wittyusername in forum General Questions
    Replies: 2
    Last Post: 21 Jul 2010, 05:51 PM
  2. Unit Price combines quantity and attribute costs?
    By Crunch in forum General Questions
    Replies: 2
    Last Post: 8 Feb 2010, 10:17 AM
  3. Product Quantity adn unit price
    By charlesblake in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 12 Sep 2009, 10:25 PM
  4. Change price of item based on what else is ordered
    By tigergirl in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Aug 2007, 03:11 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
  •