Page 1 of 1
Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY
Posted: Fri Sep 30, 2022 9:39 am
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/
Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY
Posted: Fri Sep 30, 2022 9:48 am
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());
Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY
Posted: Fri Sep 30, 2022 10:55 am
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
Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY
Posted: Fri Sep 30, 2022 11:10 am
by Boelle
file was missing yes, but after creating it still the same
tried incognito also
Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY
Posted: Fri Sep 30, 2022 11:21 am
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.
Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY
Posted: Fri Sep 30, 2022 11:49 am
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
Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY
Posted: Fri Sep 30, 2022 12:05 pm
by Boelle
think i got it
Re: Warning : Use of undefined constant IS_PRODUCT_BUTTON_BUY
Posted: Fri Sep 30, 2022 1:54 pm
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.