Jump to content

RAC

Members
  • Content count

    167
  • Joined

  • Last visited


Reputation Activity

  1. Like
    RAC got a reaction from JcMagpie in Unable to reinstall app   
    Hello again Zahid
    We must stop meeting like this.
    Thanks for your suggestion, I restored my installation from backup now everything seems fine.
    It may have been due to the pwa install, but as the PayPal app has the Guest Checkout, I will stick with this for now.
    Thanks again Shaun💀
  2. Thanks
    RAC reacted to burt in "Index Page Title/" showing in search results   
    In the index.php language file.
  3. Thanks
    RAC reacted to BrockleyJohn in edge, customers not able to create an account   
    Careful - don't do exactly what you've said here. Where you see function __something that's a magic method
    if you want to know about magic methods and how classes work, you could try this https://www.culttt.com/2014/04/16/php-magic-methods/
    but all you really need to know is that there's a special method that gets called when an object of the class is created - it's known as the constructor. In the php4 syntax for classes, the constructor had the same name as the class. From php5 there's the magic method __construct for the constructor but php4 classname methods still work silently as constructors. From php7, the classname methods still get executed when a new object is created but if you have one and no __construct method you get a warning because the php parser is telling you you're running old code on borrowed time that won't behave as expected at some point in the future.
    If you don't want to understand or think about any of this and just want a general rule you can always apply for your changes it is this: if you have a class throwing the warning, then it will be like this:
    class exampleclass { function exampleclass($param1, $param2) { .... and a change that will always work and behave the same as the old code is this
    class exampleclass { function __construct($param1,$param2) { return $this->exampleclass($param1,$param2); } function exampleclass($param1,$param2) { .... by doing them all this way they will all work, but you are making more changes than are actually needed because most of the time you can get away with renaming the function exampleclass to __construct
    There are some places where the code behaves differently in php7 than it did in php5 because the order of evaluation of things in a statement is different. I think one of them is in the admin security checks but I don't recall them exactly - you'll need to check through that commit.
  4. Thanks
    RAC reacted to BrockleyJohn in .htaccess redirect and robots.txt confilct   
    I'm not totally sure I understand your site structure but assuming the site is actually in the subdirectory /RAC_Shop/ I can see a couple of issues
    RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?/$1 [L] redirects any file or directory name that doesn't exist sending it as a parameter to /index.php
    I guess this is url rewriting but if your shop is in a subdirectory then the rewrite should point to the subdirectory:
    RewriteRule ^(.*)$ /RAC_Shop/index.php?/$1 [L] The other issue is with the last redirect - when anyone looks for robots.txt they get redirected to the subdirectory so you need an extra rule to exclude the file:
    RewriteCond %{REQUEST_URI} !^/robots.txt$ [NC] put before the last rewrite rule
  5. Like
    RAC got a reaction from gadlol in product_info.php next previous product module   
    OK John, thank you.
    Shaun
  6. Like
    RAC reacted to Jack_mcs in SEO and BS Edge (07/17 version)   
    It depends on what you mean by SEO. Most times a question like this is asked, it refers to the meta tag code of the shop. If that is what you mean then, no, you don't need to install an additional meta tag addon. The only one that is current is Header Tags SEO. The code in Edge is modeled after it but there are some differences. Once installed, HTS offers more options. Whether those other options are worth the time to install it is something only you can decide.
    If you mean SEO in a more general sense, then you definitely need the google sitemap addon and I would suggest both All Products SEO and Sitemap SEO.
  7. Like
    RAC got a reaction from raiwa in KissIT Image Thumnailer   
    Hello @raiwa
    I can not explain how the files I uploaded into the admin side disappeared, even though the admin thumbs were still there throughout despite ctrl + F5 refresh, spooky!
    However I reinstalled and double checked all file edits, now all seems fine, thank you. 
    --------------------------------------
     
     @beerbee
    These were additional instructions for adding thumbs into admin.
    --------------------------------------------------------
    6.) catalog/ADMIN/includes/configure.php
    NOTE: You need to change permissions for this file to 755 or 777 to be able to change it.
    Don’t forget to set permissions back to it’s original value 444 or 400 once you finished editing.
    Find these lines
    define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
     Replace with the following:
    define('DIR_WS_CATALOG_IMAGES', '../images/');
    ---------------------------------------------------------
    Thank you for your help, again!
     
    Kind regards to both, Shaun
×