magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Refactor catalog/product/price.phtml

Open ihor-sviziev opened this issue 13 years ago • 22 comments

I found file, that should be refactored. It migrated from Magento 1.x. For now we have 400+ lines in view file. https://github.com/magento/magento2/blob/master/app/code/Magento/Catalog/view/frontend/product/price.phtml

ihor-sviziev avatar Nov 06 '13 15:11 ihor-sviziev

:+1:

lukenm avatar Nov 06 '13 23:11 lukenm

+1000 that file needs a :bomb: or :gun: or at least :scissors: please please please :pray:

jonpday avatar Nov 06 '13 23:11 jonpday

:thumbsup: Clean that :poop: up

kalenjordan avatar Nov 06 '13 23:11 kalenjordan

:+1: :+1: :+1:

brentaligent avatar Nov 06 '13 23:11 brentaligent

Hell yes :thumbsup:

aligentjim avatar Nov 06 '13 23:11 aligentjim

:+1:
I :heart: :lantern:

growdev avatar Nov 06 '13 23:11 growdev

Yes Yes Yes! ;)

psapoznik avatar Nov 06 '13 23:11 psapoznik

Hasn't this (price display logic) already been refactored, and this template is just legacy/accident?

[image: Blue Acorn]

Benjamin H. Marks Director of Development | [email protected] | @benmarkshttp://twitter.com/benmarks

o: 843-641-0045 | m: 843-670-4240 | skype: blueacorn_ben

Blue Acorn | www.blueacorn.com Subscribe to our Blog http://www.blueacorn.com/feed/ | Follow us on Twitter http://www.twitter.com/blueacorn

benmarks avatar Nov 07 '13 00:11 benmarks

Oh please refactor it! :+1:

SchumacherFM avatar Nov 07 '13 01:11 SchumacherFM

Anyone who has ever worked with this file will like this idea :-) :+1:

avoelkl avatar Nov 07 '13 06:11 avoelkl

:+1:

tzyganu avatar Nov 07 '13 08:11 tzyganu

I was taking already with core guys to create price renderers per product type and price decorators for applying taxes. Hope they will do it this way :) :+1:

IvanChepurnyi avatar Nov 07 '13 10:11 IvanChepurnyi

:+1:

therouv avatar Nov 07 '13 11:11 therouv

Obviously :+1:

ajbonner avatar Nov 07 '13 13:11 ajbonner

When I need to open this template it makes me sad and somewhere in the world a helpless kitten dies. :+1:

guks avatar Nov 07 '13 16:11 guks

I wish I could work on websites that give away products for free for not having to open this file. But this does not happen. (Y)

herveguetin avatar Nov 07 '13 23:11 herveguetin

Please!

aoldoni avatar Nov 10 '13 22:11 aoldoni

It'd be really nice to have this in a named block as well, makes esi easier for price per customer

On Sunday, November 10, 2013, Alisson Oldoni wrote:

Please!

— Reply to this email directly or view it on GitHubhttps://github.com/magento/magento2/issues/403#issuecomment-28163250 .

Jonas Cooper Lethal Performance http://www.lethalperformance.com [email protected] 561.753.8105


*This e-mail message, including any attachments, is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged and/or confidential. If you are not the intended recipient or the employee or agent responsible for delivering the communication to the intended recipient, please notify us immediately by replying to this message and then delete this message from your system. You are hereby notified that any use, dissemination, distribution and/or reproduction of this message and/or any attachments by unintended recipients is unauthorized and may be unlawful. Furthermore, although we have taken precautions to minimize the risk of transmitting software viruses, we advise you to perform your own virus checks on any attachment to this message. We do not accept liability for any loss or damage caused by software viruses. *


j0ney3 avatar Nov 10 '13 23:11 j0ney3

Hi All, we have addressed the issue in our backlog, and we will work on improving the template. If you have specific issues to share with us - please do not hesitate and let us know.

maksek avatar Dec 09 '13 10:12 maksek

@maksek, any updates on this issue?

ihor-sviziev avatar Apr 19 '14 07:04 ihor-sviziev