Page 1 of 1

Use of undefined constant IS_PRODUCT_SHOW_PRICE

Posted: Fri Nov 26, 2021 7:58 am
by heatherbell
Creating a module on 1.0.8.7 to show products.
The first product in the display gives notices for undefined constants as shown in the screenshot.
Always just the first product and cannot find out why.
Maybe somebody has experienced a similar behaviour and knows the fix.
Any help or advice gratefully received.
Screenshot-2021-11-26-075015.jpg

Re: Use of undefined constant IS_PRODUCT_SHOW_PRICE

Posted: Fri Nov 26, 2021 10:54 am
by ecartz
https://github.com/CE-PhoenixCart/PhoenixCart/issues/13

In general, you should use the new way of doing things rather than the old way, as the old way can be expected to have increasing problems. I.e. make it look like a 1.0.8.7 product listing rather than a 1.0.8.0 product listing. That looks like https://github.com/CE-PhoenixCart/Phoen ... 579258c979

Re: Use of undefined constant IS_PRODUCT_SHOW_PRICE

Posted: Sat Nov 27, 2021 4:16 pm
by heatherbell
ecartz wrote: Fri Nov 26, 2021 10:54 am https://github.com/CE-PhoenixCart/PhoenixCart/issues/13

In general, you should use the new way of doing things rather than the old way, as the old way can be expected to have increasing problems. I.e. make it look like a 1.0.8.7 product listing rather than a 1.0.8.0 product listing. That looks like https://github.com/CE-PhoenixCart/Phoen ... 579258c979
Thanks very much, the commit link explained it well :+1: :D