If this is your first visit, check our documentation. To post, register or login.

Dynamic Pricing

Locked

Started by djbobble on 15 Dec 2006, 1:58 PM · Views: 4,013

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
15 Dec 2006, 1:58 PM
#1
djbobble avatar

djbobble

New Zenner

Join Date:
Aug 2005
Posts:
60
Plugin Contributions:
0

Post #1 by djbobble

I am setting up a cart for my boss and have stumbled into some difficulty. The site will be selling window blinds so I need to be able to produce a price based on the customers choice of style (venetian, roller etc), colour (from a list of hundreds!) and size (width and drop).

We have it set up as follows:

Vertical Blinds
|_Blues
|_Reds
etc
Cafe Blinds
|_Reds
etc

which is time consuming but not difficult but it is the price quoting that causing problems. I've searched quite heavily but found nothing to help. Is there a module to do this or some code to help?

I've spotted this post http://www.zen-cart.com/forum/showthread.php?t=53772 where the site seems to be doing much of what I want (but for stairways) but does not actually produce the quote.

As always, thanks in advance!

15 Dec 2006, 2:02 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

You need to read up on "attributes" as this will allow you to set pricing based upon your criteria.

Zen-Venom Get Bitten

15 Dec 2006, 3:02 PM
#3
djbobble avatar

djbobble

New Zenner

Join Date:
Aug 2005
Posts:
60
Plugin Contributions:
0

Post #3 by djbobble

I've used attributes in the past to great effect (different prices for different sized shirts) but I have not seen where it will allow me to accept a user's input and base a price on this. Any chance of a link to a good attributes guide? Thanks!

16 Dec 2006, 12:56 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,765
Plugin Contributions:
56

Post #4 by swguy

As kobra says, there's a great deal you can do with attributes with zencart alone (no extra code). If you want to (and need to) add code, here's an example of how I did it in one case:

http://www.thatsoftwareguy.com/zencart_pricing_by_attributes.html

Good luck,
Scott

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

16 Dec 2006, 7:48 AM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #5 by kobra

Somehow, what I thought I had reposted for this is not here(I might have posted it to the wrong thread???)

I do not see a condition from what you have listed that can not be handled as such:

 Vertical Blinds
Color
      |_Reds
      |_Blues
Width
      |_in inches or a range of inches radio or dropbox
 Length
      |_in inches or a range of inches radio or dropbox
 Style
      |_list of styles radio or drop box
 Other particulars
      |_Each listed by radio or drop box
```Using attributes craftily will allow most all conditions to be dealt with

Zen-Venom Get Bitten

16 Dec 2006, 9:51 AM
#6
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #6 by ryk

Specifically you need to look at pricing by attributes, and, as kobra says, what you want to do is quite feasible.

Setting up attributes takes time (and it would certainly pay you to install the Advanced Attributes Controller) but for example, you only need to set up your lists of colours, widths, lengths etc once and then apply them where you need them.

You may find it easier to set up one "test" product with the full range of variations then use this as a master to copy the attributes to other products as needed. As copying is an "all or nothing" approach, sometimes it's quicker to copy the lot and delete the ones you don't need.

On the other hand, when you are pricing by attributes it may be quicker to set up a product and then duplicate the product.

This is very much one of those areas of ZC where once you get stuck in and start playing around, you'll realise just how powerful it can be.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

16 Dec 2006, 10:54 AM
#7
djbobble avatar

djbobble

New Zenner

Join Date:
Aug 2005
Posts:
60
Plugin Contributions:
0

Post #7 by djbobble

Thanks for the tips and advice guys! I'm going to look into this in some detail and see if I can get things running the way the boss wants. If not, then I think I'll get him to implement a simpler pricing structure which would be beneficial to both me and the customers!

16 Dec 2006, 11:11 AM
#8
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Post #8 by ryk

I'm working on a store at the moment that involves something similar - shelving units for shop displays. Take a look at this , specifically the 3 standard wall units ('cos I haven't finished the others! LOL) for an idea.

The only problem with doing things this way is that the final price is only displayed when the item is added to cart.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

20 Dec 2006, 1:23 PM
#9
djbobble avatar

djbobble

New Zenner

Join Date:
Aug 2005
Posts:
60
Plugin Contributions:
0

Post #9 by djbobble

Thanks for the link. I've had to implement something else because the way you have will not work for me (though I wish it could!!). The additions to the prices need to be percentages.

The way was planning was that the item was priced by an attribute and then a percentage added depending on the width. The percentage was been calculated from the base price rather than the price of the option chosen.

In the end I set up 3 products (one for each width), kept the attributes for length the same on each of them and manually updated there price. A bit of a long-winded process but workable from a user's perspective and they don't get a shock when the price is shown in the cart as they see it on the product page now.

20 Dec 2006, 4:46 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #10 by kobra

DJ,

Attributes can perform percentage increments...and text can forewarn of this fact or indicate incremental prices. This is in the attributes controller and has to do with the price factor and offset (this is an inverse function) and any percentage can be applied. Just for your information

Zen-Venom Get Bitten

20 Dec 2006, 7:38 PM
#11
djbobble avatar

djbobble

New Zenner

Join Date:
Aug 2005
Posts:
60
Plugin Contributions:
0

Post #11 by djbobble

Yeah Kobra, I got the price factoring to work nicely, or so I thought, but the factor only applies to the base price but as the pricing is also been done by attributes it didn't work.

For example: the smallest size blind cost £25 - if the slat width was 35mm then 20% had to be added to the price. Zen correctly adds £5 to the price in this instance. The next sized blind was £30 but Zen was still adding the £5 instead of 20%.

To get around this I set the three slat widths (25mm, 35mm & 50mm) as separate products and used attributes for the pricing and the colour selection - not as elegant but certainly workable.

20 Dec 2006, 10:44 PM
#12
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #12 by kobra

attribute:

35mm
factor = 1
offset = .8

increment = .2x25 = 5.00

40mm
factor = 1
offset = .65

increment = .35x25 = 8.75

50mm
factor = 1
offset = .5

increment = .5x25 = 12.50

etc.

Zen-Venom Get Bitten

21 Dec 2006, 12:10 AM
#13
djbobble avatar

djbobble

New Zenner

Join Date:
Aug 2005
Posts:
60
Plugin Contributions:
0

Post #13 by djbobble

That's different to how I had it set up. I'll give that a go tomorrow and see if it works. If it does I'll owe a debt of gratitiude :)

21 Dec 2006, 11:09 AM
#14
djbobble avatar

djbobble

New Zenner

Join Date:
Aug 2005
Posts:
60
Plugin Contributions:
0

Post #14 by djbobble

Sadly this method is not working. It is still applying a percentage based on the lowest price rather than the attribute price that is selected. As Ajeh has posted in another thread, this is not something the cart is designed to do. I will have to stick to my current method for now and hope that this functionality is added in the future either as a feature or as a third party add-on.

21 Dec 2006, 5:49 PM
#15
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #15 by kobra

It is still applying a percentage based on the lowest price rather than the attribute price that is selected.
Yes, this is what it is supposed to do....I do not see the issue...it must be a % based from some base and not from an "attribute selected" as the attribute has no price until selcted and then calculated...

But I am glad that you have a solution that is acceptable to you.

Zen-Venom Get Bitten

10 Nov 2009, 6:45 PM
#16
zahid_hussain avatar

zahid_hussain

New Zenner

Join Date:
Sep 2009
Posts:
54
Plugin Contributions:
0

Post #16 by zahid_hussain

Hi,
As u know about my situation, at product info page, user will come, he/she enter there footer sq/ft, so according to that there price will be adjusted,
now i done my calculation , my problem is that , i will assigne my new user price will be assgine to that zencart product pice, but i dont know about that zencart price variable at this point.

Thanks
Zahid:clap: