Jump to content

MyBookShop

Members
  • Content count

    51
  • Joined

  • Last visited

Profile Information

Recent Profile Visitors

1,984 profile views
  1. But your real problems might be somewhere in \includes\functions\gerneral.php
  2. Fredi, you need to change the includes/english/english.php in both the admin and store sections. (files are slightly different) I have not fully checked everything works yet. but its a start for you. mine looks like, Im in Australia. ... // 'en_AU.UTF-8', 'en_AU.UTF8', 'ena_au' @setlocale(LC_ALL, ['en_AU.UTF-8', 'en_AU.UTF8', 'ena_au']); const DATE_FORMAT_SHORT = '%-d/%-m/%Y'; // this is used for strftime() const DATE_FORMAT_LONG = '%A %w %B, %Y'; // this is used for strftime() const DATE_FORMAT = 'd/m/Y'; // this is used for date() const DATE_TIME_FORMAT = DATE_FORMAT_SHORT . ' %H:%M:%S'; const JQUERY_DATEPICKER_FORMAT = 'dd/mm/yy'; // see http://docs.jquery.com/UI/Datepicker/formatDate // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the application's default currency (used when changing language) const LANGUAGE_CURRENCY = 'AUD'; ... refer to this:- https://www.programiz.com/python-programming/datetime/strftime
  3. MyBookShop

    Remove Paypal Express Checkout bottom!

    Sorry to drag up an old thread, I would like to remove this button (Paypal Checkout) from Phoenix 1.0.7.9 , but only this page, where it says https://www.somewebsite.com/shopping_cart.php ..... [>Check Out] - OR - (Paypal Checkout) ..... But only this page. Also if somebody could tell me how this page is constructed I will learn's me alot. Thanking you. Mark
  4. MyBookShop

    ULTIMATE Seo Urls 5 - by FWR Media

    and in seo_class.php changed all occurrences of HTTPS_SERVER . DIR_WS_HTTPS_CATALOG to '/' soz
  5. MyBookShop

    ULTIMATE Seo Urls 5 - by FWR Media

    Got this to work on Phoenix 1.0.7.9 stock install. Phoenix assumes SSL so this has to be done. Version 'oscom-ultimate-seo-urls-36rDo-Bsxp5' at date 13.10.2020 My base directory is '/' in seo_class.php changed all occurrences of HTTP_SERVER . DIR_WS_HTTP_CATALOG to '/' and in href_link.php $connection = 'SSL' I have not fully tested it to a purchase but seems to work so far. I'm not a coder but if this helps... Mark
  6. An update on this old thread which never worked for me properly and I just lived with it. I finally got this to fully work with images, I'm using CE Phoenix v1.0.7.9 *** First Back-up your website ** You should have setup your SSL certificates etc. and opened port 443 on your router or firewall before you do this. Step 1. Edit files : [root directory] /includes/configure.php Change the line const HTTP_SERVER = 'http://www.youwwebsitename.com'; to const HTTP_SERVER = 'https://www.youwwebsitename.com'; Step 2. Edit files : [root directory] /admin/includes/configure.php Change these two lines... const HTTP_SERVER = 'http://www.youwwebsitename.com'; to const HTTP_SERVER = 'https://www.youwwebsitename.com'; and const HTTP_CATALOG_SERVER = 'http://www.youwwebsitename.com'; to const HTTP_CATALOG_SERVER = 'https://www.youwwebsitename.com'; Now the hard part. Do one of these two things (you or your host is most likely using Apache2) (1) Your hosting company may have a single check box to click to rewrite http to https so check with them or peruse your control panel. or (2) Follow this tutorial to change your server to rewrite http to https https://www.tecmint.com/redirect-http-to-https-on-apache/ Hint. Your .htaccess file is located in the [root directory] of your website. Goodluck!
  7. MyBookShop

    Header Tags SEO

    Had to add the lines from the latest 1.0.7.9 <title><?php echo htmlspecialchars($oscTemplate->getTitle()); ?></title> <base href="<?php echo HTTP_SERVER . DIR_WS_CATALOG; ?>"> to your supplied template_top for the latest 1.0.7.9 or the images disappeared in product listing (im using Kissit)
  8. MyBookShop

    switching the site to https

    Don't forget to open the port 443 on your router or firewall.
  9. Thank-you, as embarrassing as this is to say the problem was with AddBlock+ the mozilla plugin was blocking the banner on my browser I use.
  10. Thanks Jc I understand that you can't support every variation in host platform. The issue is with the host and is a PHP restriction. I keep my eye out in case its ever revised. Ta Muchly
  11. Hello, I get an error in the log : PHP message: PHP Warning: is_dir(): open_basedir restriction in effect. https://www.php.net/manual/en/function.is-dir.php I understand that this restriction is so I cannot access other users files. https://stackoverflow.com/questions/1846882/open-basedir-restriction-in-effect-file-is-not-within-the-allowed-paths#34980645 (the above discussion leaves me with no real acceptable answer) Is there other logic that could replace this function found in file cm_header_jcm_carouselbanner ? $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); $files_array = array(); if ($dir = @dir(DIR_FS_CATALOG)) { while ($file = $dir->read()) { if (!is_dir(DIR_FS_CATALOG . $file)) { if (substr($file, strrpos($file, '.')) == $file_extension) { $files_array[] = $file; } } } sort($files_array); $dir->close(); } Mark.
  12. MyBookShop

    Product listing

    Thankyou. I am still clueless to the cut and paste error in Notepad++, I also used the compare in it and, sent to notepad for clear txt. Still the attachment has fixed this for me. And allowed me to move on with the site. So I did this, hope you do not mind I donated to Burt. Thankyou again Raiwa.
  13. MyBookShop

    Product listing

    Thank you for your response Raiwa. The cut and paste is fine, I have two Frozen sites perfect. And now a new site. Installation showed all green ticks for compatibility. As I said the original code installed with this module leaves me with a blank website. As stated this is a vanilla install with just this mod. The above prior changes gave me back my website with images but the images were stretched horizontally. -------------------------------------- I have now changed code to this, and it gives me my site with the images not stretched but also not centered on the main page only (index.php) the (product_info) pages appear to be centered. ... require_once 'includes/modules/kiss_image_thumbnailer/classes/Image_Helper.php'; $attributes = array( 'alt' => $alt, 'width' => $width, 'height' => $height ); $image = null; if (tep_not_null($width) && tep_not_null($height)) { $image .= ' width="' . tep_output_string($width) . '" height="' . tep_output_string($height) . '"'; } $bs_parameters = ' class=img-fluid"'; // if (tep_not_null($responsive) && ($responsive === true)) { // $bs_parameters .= 'img-fluid'; //not working // $bs_parameters .= 'img-responsive'; //works // } -------------------------------------- I'm no coder. Rawia I'm just trying to get this plugin to work on my config. I'm not saying this is a solution, just that it brings the site back for me. It appears to me that some parameters are not being added together or passed through to other functions or are the incorrect type, but the log shows no such error. As stated I'm trying to tell you what I'm doing to get my site up in case anybody else has this trouble and diagnose if there is a problem that only manifests on some configs. I really would appreciate any help, can provide you (Raiwa) with site access if you like, Thankyou. Mark http://www.143books.com.au/index.php
  14. MyBookShop

    Product listing

    I had some trouble installing this, its a vanilla CE-Phoenix-1.0.3.0 new install with just this to reduce any conflict. I run 3 sites from the same hosting platform, I guess its the PHP version or a host issue the two existing Frozen CE sites had no issue in install. In Phoenix : After install the site is blank. Admin side works (I did not install on admin side) the KissIt gallery module was installed, the gallery removed. No Kissit options appeared in Admin :- Images settings. The DataBase appears not installed. Apache Log shows errors : [Sun Nov 17 15:56:05.715202 2019] [proxy_fcgi:error] [pid 24890] [client 204.12.###.###:58108] AH01071: Got error 'PHP message: PHP Parse error: syntax error, unexpected '\xef\xbb\xbf' (T_STRING) in /web/includes/functions/html_output.php on line 139\n' [Sun Nov 17 15:56:10.267878 2019] [proxy_fcgi:error] [pid 24884] [client 204.12.###.###:36812] AH01071: Got error 'PHP message: PHP Warning: Use of undefined constant KISS_DISABLE_UPSIZE - assumed 'KISS_DISABLE_UPSIZE' (this will throw an Error in a future version of PHP) in /web/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 273\nPHP message: PHP Warning: Use of undefined constant KISSIT_MAIN_PRODUCT_WATERMARK_PLACEMENT - assumed 'KISSIT_MAIN_PRODUCT_WATERMARK_PLACEMENT' (this will throw an Error in a future version of PHP) in web/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 402\nPHP message: PHP Warning: Use of undefined constant KISSIT_SHARPEN_THUMBNAIL - assumed 'KISSIT_SHARPEN_THUMBNAIL' (this will throw an Error in a future version of PHP) in /web/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 290\nPHP message: PHP Warning: Use of undefined constant KISSIT_SHARPEN_THUMBNAIL - assumed 'KISSIT_SHARPEN_THUMBNAIL' (this will throw an Error in a future version of PHP) in /web/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 443\nPHP message: PHP Warning: Use of undefined constant KISSIT_APPLY_BACKGROUND - assumed 'KISSIT_APPLY_BACKGROUND' (this will throw an Error in a future version of PHP) in /web/includes/modules/kiss_image_thumbnailer/classes/Image.php on line 300\n' Comparing html_output.php to the working CE install I changed the line Approx 139 back to : if (tep_not_null($responsive) && ($responsive === true)) { $bs_parameters .= 'img-responsive'; } This brought the site back to life and KissIt installed in the Admin :- Image options. I also have this error showing regularly in the Apache log and may be related. [Sun Nov 17 13:58:30.084360 2019] [proxy_fcgi:error] [pid 17091] [client 207.180.###.###:44052] AH01071: Got error 'Primary script unknown\n' I provide this post as a solution if anyone else has a similar issue to try. Mark
  15. MyBookShop

    Customer Birthday Discount

    Does the discount apply immediately? or can you make the customer wait about a month. I can see some people just create a fake date or account just to get discount at the expense of loyal client following and shop.
×