Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY

Open to all! Ask other shopowners for help.
Post Reply
Boelle
Member
Posts: 12
Joined: Tue Sep 13, 2022 4:08 pm
Phoenix Version:

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/


Join The Code Co-op to get access to your library in the Code Co-op Forum
Boelle
Member
Posts: 12
Joined: Tue Sep 13, 2022 4:08 pm
Phoenix Version:

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
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 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
Member
Posts: 12
Joined: Tue Sep 13, 2022 4:08 pm
Phoenix Version:

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
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 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
Member
Posts: 12
Joined: Tue Sep 13, 2022 4:08 pm
Phoenix Version:

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
Member
Posts: 12
Joined: Tue Sep 13, 2022 4:08 pm
Phoenix Version:

Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY

Post by Boelle »

think i got it
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 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.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply