amitmodak89 / magento-w2p

Automatically exported from code.google.com/p/magento-w2p
0 stars 0 forks source link

Configurable product pricing #499

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We need to make fixed qty work with configurable products.

Any reasons why it cannot or should not be done?

Original issue reported on code.google.com by zetapri...@gmail.com on 29 Mar 2011 at 5:41

GoogleCodeExporter commented 8 years ago
Issue 487 has been merged into this issue.

Original comment by zetapri...@gmail.com on 29 Mar 2011 at 5:42

GoogleCodeExporter commented 8 years ago
#487 is not about fixed qty, just close it if it is solved.

Original comment by jamb...@gmail.com on 29 Mar 2011 at 7:45

GoogleCodeExporter commented 8 years ago
Yes, #487 is not about fixed qty, but it has some b/g info, so I merged it in. 

Original comment by zetapri...@gmail.com on 29 Mar 2011 at 8:39

GoogleCodeExporter commented 8 years ago
We'll need to write a help post with an example of w2p + fixedqty on a 
configurable product. Not sure if wiki is needed.

Original comment by zetapri...@gmail.com on 5 Apr 2011 at 7:43

GoogleCodeExporter commented 8 years ago
I have tried fq with configurable product on 1.5
Actually all went fine and product was added to cart and purchase made.

There are however some things that need be decided on.

1. Configurable products use different price model than rest of product types. 
To make FQ matter at all we need to override this price model with ours (as we 
did with base price model)

2. Above works fine but the main thing about configurable products are their 
configurable parts. When you add a subproduct you have the option to set price 
correction for that variation. That price correction has to be positive number 
and can be either fixed amount or percentage.
So main question is - do we account for that price correction?
If yes how do we handle it?

It is pretty straightforward with percentage - it works now without changes.

If price correction is fixed amount then what we do? Assume that user that set 
the amount is aware of FQ and this amount should be applied to every product 
unit - that is default behavior? Assume that correction should be applied as 
one correction to final price?

When we decide on above I can apply it relatively quickly.

Original comment by jamb...@gmail.com on 8 Apr 2011 at 2:55

GoogleCodeExporter commented 8 years ago

Original comment by jamb...@gmail.com on 11 Apr 2011 at 8:39

GoogleCodeExporter commented 8 years ago
Let's stick with the default behavior.
Make an alpha release with the changes.
Explain the problems with the price update on product page. Maybe just disable 
the price update altogether and shock the customer at the checkout? Not a good 
idea :(

Original comment by ad...@zetaprints.com on 12 Apr 2011 at 10:44

GoogleCodeExporter commented 8 years ago
Fixed prices updated, latest version is 0.5.0a
committed as r1539 , commit has all changes that are made for configurable 
products.
Changes include: overriding configurable product price model to extend FQ price 
model instead of M. price model - 
http://code.google.com/p/magento-w2p/source/browse/branches/ZetaPrints_Fixedpric
es/ZetaPrints_Fixedprices/ZetaPrints/Fixedprices/Model/Configurable/Fixedprices.
php?spec=svn1539&r=1539
and - 
http://code.google.com/p/magento-w2p/source/browse/branches/ZetaPrints_Fixedpric
es/ZetaPrints_Fixedprices/ZetaPrints/Fixedprices/etc/config.xml?spec=svn1539&r=1
539#97

Price update on product page was not functioning correctly - it was updating 
total price with amount for one unit of product. Calculation is correct further 
on in cart and order but still is misleading for customer.

This problem is solved by updating price values for every configurable 
subproduct via javascript. Changes here - 
http://code.google.com/p/magento-w2p/source/browse/branches/ZetaPrints_Fixedpric
es/ZetaPrints_Fixedprices/frontend/default/default/js/fixedprices.js?spec=svn153
9&r=1539#100

To test - install latest version from Magentocommerce it should be 0.5.0a
Apply FQ to configurable product.
Make sure choosing different FQ options update prices correctly.
Make sure that choosing configurable option also updates prices correctly.
Make sure that labels in configurable options drop downs reflect correct 
ammounts depending on FQ chosen. For example if you have configurable option 
with price correction of $1 and you have FQ with qty=100 in drop down for that 
option you should see label of the option + $100. The same should work with 
percentage values.

Original comment by jamb...@gmail.com on 12 Apr 2011 at 5:18

GoogleCodeExporter commented 8 years ago
Tested on /mageimage/
ZetaPrints_Fixedprices  0.5.0a (alpha)

FQ options disapeared as soon as I upgraded FQ ext to v. 0.5.0a
Was using this product for testing:
http://ec2-174-129-95-130.compute-1.amazonaws.com/mageimage/index.php/magentot-0
2/configurable-test.html

I also tried assigning FQ to this:
http://ec2-174-129-95-130.compute-1.amazonaws.com/mageimage/index.php/magentot-0
2/remax-3img.html
but they don't show in the front end

Original comment by agur...@gmail.com on 13 Apr 2011 at 1:48

GoogleCodeExporter commented 8 years ago
My mistake, some files left out of the release.
Try now with o.5.1a

Original comment by jamb...@gmail.com on 13 Apr 2011 at 2:06

GoogleCodeExporter commented 8 years ago
Tested on /mageimage/
ZetaPrints_Fixedprices  0.5.1a (alpha)

http://ec2-174-129-95-130.compute-1.amazonaws.com/mageimage/index.php/magentot-0
2/configurable-test.html

- The configurable product has 4 x FQ assigned (10 for $100.00, 20 for 
$200.00...)
- It is associated with 3 other simple products (Large, Medium and Small) with 
fixed prices of $6, $4 and $2
- If a user chooses a FQ of 20 for $200, the price gets updated to $200
- If the user chooses "Small" size from the options, which is $2, the price is 
calculated as 20 items x $2 = $40
- The final price is $200 from the FQ + $40 for the custom option = $240

I set "Medium" option to 10% instead of a fixed price. It also calculates the 
final amount correctly.

Shopping cart table shows the unit price calculated from the final amount 
divided by Qty.

Original comment by agur...@gmail.com on 13 Apr 2011 at 3:19

GoogleCodeExporter commented 8 years ago

Original comment by ad...@zetaprints.com on 17 Apr 2011 at 9:48

GoogleCodeExporter commented 8 years ago
http://code.google.com/p/magento-w2p/wiki/FixedQty_Configurable_Products 
Brief explanation what is changed

Original comment by jamb...@gmail.com on 3 May 2011 at 10:08

GoogleCodeExporter commented 8 years ago
Post is ready for review:
http://www.zetaprints.com/magentohelp/complex-products-with-fixed-quantities/

Not to be published yet. Needs to be linked to a demo product on /magento/

Original comment by agur...@gmail.com on 6 May 2011 at 6:43

GoogleCodeExporter commented 8 years ago
Reviewed and edited. Publish when ready. Update the publication date to make it 
show at the top in RSS.

Original comment by ad...@zetaprints.com on 6 May 2011 at 9:34

GoogleCodeExporter commented 8 years ago
Post published
http://www.zetaprints.com/magentohelp/complex-products-with-fixed-quantities/
and linked to a demo product
http://www.zetaprints.com/magento/index.php/featured/configurable-w2p-product-wi
th-fixed-quantities.html

There were some configurable products created in the demo store. Did you create 
them, Max? I don't recall doing these:
http://www.zetaprints.com/magento/index.php/featured/configurable-product-with-d
ynamic-file-attachments.html
http://www.zetaprints.com/magento/index.php/featured/configurable-product-with-f
ixed-quantity-prices.html
http://www.zetaprints.com/magento/index.php/featured/configurable-product-with-d
ynamic-file-attachments-1.html

Anyway, I made a new configurable demo product, as linked in the post. Decided 
to go with a new one since the screenshots and examples in the post are better 
in sync with it and it is a web-to-print configurable product, not just a 
simple Magento one.

Original comment by agur...@gmail.com on 9 May 2011 at 1:37

GoogleCodeExporter commented 8 years ago

Original comment by agur...@gmail.com on 9 May 2011 at 4:45

GoogleCodeExporter commented 8 years ago

Original comment by ad...@zetaprints.com on 9 May 2011 at 7:42