Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2005
    Location
    Hampshire, UK
    Posts
    97
    Plugin Contributions
    0

    Default How to show individual attribute price in shopping cart?

    I've been searching various forum threads for a solution but can't quite find the answer. I'm not a developer but very good with cutting and pasting code :)

    I've managed to set up 4 attributes for a product. This can be seen at https://tinyurl.com/y3h63tsv

    For a particular string of lights, the customer can select length of lights, power source, extension cable, 3-way splitter required.

    I would like to show the itemised pricing for the attributes selected in the shopping cart, checkout and invoice if possible.

    For example:
    If the followed attributes were selected:
    LENGTH REQUIRED - 10m
    POWER - 1 x Plug
    EXTENSION CABLE - 2 x 5m Cable
    3-WAY SPLITTER - 1 x 3-way Splitter

    The shopping cart just shows just the total of all I selected:
    Professional Connectable Cold White String Lights on Black Cable £51.74
    LENGTH REQUIRED - 10m
    POWER - 1 x Plug
    EXTENSION CABLE - 2 x 5m Cable
    3-WAY SPLITTER - 1 x 3-way Splitter

    I would like the shopping cart/checkout and invoice to show:
    Professional Connectable Cold White String Lights on Black Cable £51.74
    LENGTH REQUIRED - 10m (£21.98)
    POWER - 1 x Plug (£6.59)
    EXTENSION CABLE - 2 x 5m Cable (£16.18)
    3-WAY SPLITTER - 1 x 3-way Splitter (£6.99)

    Is this straightforward to do? Any advice greatly appreciated!

  2. #2
    Join Date
    Jul 2012
    Posts
    14,576
    Plugin Contributions
    17

    Default Re: How to show individual attribute price in shopping cart?

    This is something that would be addressed mostly from within the shopping_cart and/or orders class while processing/stepping through the attributes. As far as "easy" it can be, but I believe it may also depend on some other factors such as sales and other discounts.

    The reason I say that is that in essence may need to expand on the price keeping arrays so that more granularity can be obtained on each attribute.

    Note that also by retaining each such sub-price that if/when taxes come into play and are expected to also be disayed that the accounting might not work out properly. Eg. The tax on each item (rounded to the currency used) where the tax is then added together may not equal the tax on the total of all items.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    7,283
    Plugin Contributions
    8

    Default Re: How to show individual attribute price in shopping cart?

    sounds like a good tweak for your dynamic price updater
    Did you read the posting tips?!?
    Responsive Color Changes for 155-156c demo here.
    Zen Cart PCI Compatible Hosting

  4. #4
    Join Date
    Jul 2012
    Posts
    14,576
    Plugin Contributions
    17

    Default Re: How to show individual attribute price in shopping cart?

    Quote Originally Posted by dbltoe View Post
    sounds like a good tweak for your dynamic price updater
    Borderline... Not what I would call "dynamic" per se unless now the contents of the shopping cart page should be dynamically updated with product quantity added.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...
    Upgraded to Zen Cart V1.5.3 from V1.5.1 from V1.5.0 from V1.3.9h

 

 

Similar Threads

  1. how to show attribute image on Shopping Cart page?
    By Player in forum Setting Up Specials and SaleMaker
    Replies: 2
    Last Post: 14 Jul 2010, 07:08 AM
  2. Can I build a package that disassembles in shopping cart to show individual parts?
    By BritishAgent in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 16 Mar 2010, 08:49 PM
  3. Attribute price doesn't show in shopping cart
    By hedera in forum Setting Up Categories, Products, Attributes
    Replies: 9
    Last Post: 30 Jan 2010, 12:52 PM
  4. Show individual unit price in addition to total in shopping cart
    By JimmyV in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 24 Mar 2008, 05:07 AM
  5. How to show red sales price in shopping cart too
    By minneapolis_dan in forum Setting Up Specials and SaleMaker
    Replies: 0
    Last Post: 21 Dec 2007, 06:16 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