Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY

Ask the community for help and support.
Post Reply
Boelle
Posts: 12
Joined: Tue Sep 13, 2022 4:08 pm

Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY

Post by Boelle »

just dowmloaded and installed and got this error

Warning
: Use of undefined constant IS_PRODUCT_BUTTON_BUY - assumed 'IS_PRODUCT_BUTTON_BUY' (this will throw an Error in a future version of PHP) in
.....test/templates/default/includes/components/product_card.php
on line
19

so edited product_card.php but it does not work correct. have a look at my test site: http://test.emoncms.net/
Boelle
Posts: 12
Joined: Tue Sep 13, 2022 4:08 pm

Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY

Post by Boelle »

similar in includes/system/versioned/1.0.7.other/1.0.7.12\product.php line 71

return sprintf(IS_PRODUCT_SHOW_PRICE, $this->format());
heatherbell
VIP Member
VIP Member
Posts: 2024
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 28 times
Been thanked: 187 times

Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY

Post by heatherbell »

Boelle wrote: Fri Sep 30, 2022 9:39 am : Use of undefined constant IS_PRODUCT_BUTTON_BUY
Maybe you are missing this file on your server:
https://github.com/CE-PhoenixCart/Phoen ... roduct.php
Boelle
Posts: 12
Joined: Tue Sep 13, 2022 4:08 pm

Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY

Post by Boelle »

file was missing yes, but after creating it still the same
tried incognito also
heatherbell
VIP Member
VIP Member
Posts: 2024
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 28 times
Been thanked: 187 times

Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY

Post by heatherbell »

Boelle wrote: Fri Sep 30, 2022 11:10 am file was missing yes, but after creating it still the same
tried incognito also
Your installation was obviously not successful so maybe do a complete new install.
Boelle
Posts: 12
Joined: Tue Sep 13, 2022 4:08 pm

Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY

Post by Boelle »

you are right

it was the copy to ftp that somehow failed to transfer all files

left with one missing price

Lime
IS_PRODUCT_SHOW_PRICE
Boelle
Posts: 12
Joined: Tue Sep 13, 2022 4:08 pm

Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY

Post by Boelle »

think i got it
heatherbell
VIP Member
VIP Member
Posts: 2024
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 28 times
Been thanked: 187 times

Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY

Post by heatherbell »

Boelle wrote: Fri Sep 30, 2022 11:49 am it was the copy to ftp that somehow failed to transfer all files
Yes, they can fail.
Always be sure to check for queued files that have not uploaded successfully in your FTP software.
Good FTP software will show that.
Post Reply