Jump to content

Presta_Kev

Members
  • Posts

    12
  • Joined

  • Last visited

Profile Information

  • Location
    United Kingdom
  • Activity
    Developer

Presta_Kev's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi All, My mobile theme appears to be working incorrectly and I cannot determine why. When viewing my website on a mobile device, the "Categories" button to display a list of all categories does not seem to expand and instead only turns from a light shade of grey to a dark shade - resulting in visitors not being able to see my products. I have searched the forum and noticed some people had similar issues - some seemed to be solved by editing the PHP event which is fired, others seemed to be fixed by editing the CSS however none of these worked for me and my "Categories" button is still not working. The even weirder thing is that it seems to work fine with the default theme and therefore it leads me to believe it is something I have done whilst editing the CSS or TPL. Does anyone have any ideas or has anyone ever hit this issue before and managed to find a way through? My site url is: www.bobbinandbagel.co.uk P.S - I am aware that some of the CSS styles on the site are not working as they should (videos, images etc.) but I wanted to get this working before doing the finishing touches to the CSS.
  2. Hi All, My mobile theme appears to be working incorrectly and I cannot determine why. When viewing my website on a mobile device, the "Categories" button to display a list of all categories does not seem to expand and instead only turns from a light shade of grey to a dark shade - resulting in visitors not being able to see my products. I have searched the forum and noticed some people had similar issues - some seemed to be solved by editing the PHP event which is fired, others seemed to be fixed by editing the CSS however none of these worked for me and my "Categories" button is still not working. The even weirder thing is that it seems to work fine with the default theme and therefore it leads me to believe it is something I have done whilst editing the CSS or TPL. Does anyone have any ideas or has anyone ever hit this issue before and managed to find a way through? My site url is: www.bobbinandbagel.co.uk P.S - I am aware that some of the CSS styles on the site are not working as they should (videos, images etc.) but I wanted to get this working before doing the finishing touches to the CSS.
  3. Ok, I've got further. Taking Vekia's advice, I traced through the developer mode and found it was 404-ing when attempting to load many of my files. This required me to change the Base URL (sadly, I could not do this through the front end and this needed to be done in the database). It now looks like it loads the themes correctly. Interestingly, if I navigate to the "SEO & URLs" panel, when attempting to save I am met with the following error message (admin folder replaced with x for security): Fatal error: Uncaught Error: Access to undeclared static property: Validate::$values in E:\XAMPP\htdocs\prestashop\classes\controller\AdminController.php:1224 Stack trace: #0 E:\XAMPP\htdocs\prestashop\classes\controller\AdminController.php(765): AdminControllerCore->processUpdateOptions() #1 E:\XAMPP\htdocs\prestashop\controllers\admin\AdminMetaController.php(439): AdminControllerCore->postProcess() #2 E:\XAMPP\htdocs\prestashop\classes\controller\Controller.php(171): AdminMetaControllerCore->postProcess() #3 E:\XAMPP\htdocs\prestashop\classes\Dispatcher.php(373): ControllerCore->run() #4 E:\XAMPP\htdocs\prestashop\adminxxxxxxxxx\index.php(54): DispatcherCore->dispatch() #5 {main} thrown in E:\XAMPP\htdocs\prestashop\classes\controller\AdminController.php on line 1224 I am not sure if this is a side-effect of the transfer issue that I detailed in my first post or if this is something else. Should I chalk this issue up to being a bad copy from the server and get my files again (as it looks like my theme issue has now been resolved). Update: I have attempted to get another copy of the local site again however I found that this issue above still persisted.
  4. Sadly, I was unable to navigate through the front office to change the URL as I was receiving PHP script errors (from what I can see, this was simply due to a 404 not found when attempting to load some of the scripts) so I changed the URL to be "localhost/prestashop" (without quotes) in the database PS_SHOP_URL table. Sadly, this does not seem to have made any difference at the moment )I have cleared my browser cache, smarty cache and force recompile turned on).
  5. Vekia, That seems to have pointed me in the right direction. It appears that I have configured the website for a path of localhost/prestashop/*shop files* however when checking the console it appears to be attempting to load theme files from localhost/themes (excluding the prestashop part). Do you perhaps know what determines the path that Prestashop uses to search for the files themselves (is this the shop URL for example) or should I simply move my files back into the root localhost folder?
  6. I have cleared the Cache -> Smarty -> Cache folder and deleted the .htaccess file but sadly it has made no difference so far.
  7. Hi All, I have encountered a rather peculiar issue with my copy of Prestashop. The site itself is running fine but as a next phase of development, I wanted to get a local copy to work on my local PC and then push changes to the server, however whenever I get a local copy of my Prestashop, the admin panel (and all related administrative screens) do not seem to display any CSS or styles and appear as a mess of pure HTML. I have tested this on a fresh PC and my laptop which I previously used for development and have encountered the same issue on both. Interestingly, this only seems to affect the local version as all live versions of the admin panel are fine. I am specifically using Prestashop 1.6.0.13, I have used multiple version of FileZilla (and copied the files directly from the web server using their backup facility) and tried multiple versions of XAMPP. Another curiosity is that when getting a local copy, FileZilla prompts me that files already exist and ask if I want to overwrite. At this point, the target folder is empty so there should be no existing files contained and therefore, nothing to overwrite. Additionally, from what I can see, the files are in different locations and different sizes. I wasn't sure if this is related but I thought it worth mentioning. Screenshot of login page attached.
  8. Hi everyone, I am looking to create subscription based payment for my web shop. I just created this thread for a few answers and a little feedback. I want to use Paypal as the payment gateway, to which Paypal handily offer a subscription base / recurring payment option. Firstly, I am planning on creating a new piece of PHP that basically acts as a subscription flag. I would then use this to check each page that is loaded; if the user is a subscriber, it will load the page as normal, if not, they will be redirected to an upgrade page. Using groups, I managed to restrict certain products from a user that does not fit into a certain group. I was thinking about adding the Paypal subscription button in the 'My Account' page or 'Upgrade Now' page. This would require some form of submission to Paypal and retrieval of a token to confirm Payment and unblock any pages which the user is unable to view. To achieve this, I need to: - Create the piece of PHP that restricts non-subscribed users OR create PHP that restricts certain user groups (more likely). - Edit the back office slightly to add a simple radio button to my products that determines if the user needs a subscription to view the product or not. - Create a subscription page with a Paypal subscription button. - General tidying and optimisation. In all of your expert opinion, is there anything I have missed in these steps? Am I looking at this idea with rose tinted glasses and is it actually much harder than I predict? What are your thoughts and advice for this? It should also be noted that my budget for this project is as little as possible so I would prefer not to buy any modules. Edit: Clarification. Edit 2: I have made some progress. I have set up some user groups that only allow specific users to view a product (which in this case is a members only product) but am having trouble showing it on the products list. My intention is to have all products clickable by everyone and if they are a member, view the product, if not, redirect to a subscription page.
  9. I was worried about that. I do love how modular Prestashop is but there are some times that I would really like to simplify code and have a back office only for what I need. I guess my idea is a little unstable. It may be something worth suggesting to the dev team at some point (if it is even worth it), until then, I'll settle with what I can get. Thanks for the reply also, is it possible to keep this topic open in the event that someone knows any safe options?
  10. Hello everyone, From what I understand, you can extend the functionality of a module or set of controllers by overriding them, making it safe to update to the latest Prestashop version at any time but is it possible to do this in reverse? Whilst Prestashop offers a vast toolset, I know that I will never need all of the functionality and wish to remove all code that I will never need (some elements in the back office, some in the front office and some admin code). Is there a way to safely remove unneeded code whilst still maintaining the ability to safely update Prestashop? I know I haven't explained this very clearly but if you need any clarity, feel free to let me know and I'll try to explain it a little better. Thank you
  11. I'm still having trouble getting this to work. It seems to add it to the cart but none of the customisation seems to appear. Could you give me any advice as to what I'm doing wrong? I copied the attached file into cart/controllers/front/ I also copied the small code snippet onto the page (under the cart submission) which creates the text input box. But when I click submit, it adds the product to the cart as if there is no customisation option. Is there any advice for what I'm doing wrong? Also, probably worth mentioning that I am trying this on version 1.6.0.6. P.S - Is it also necessary to place the code snippet in a specific part of the .TPL file? Could I place it in a different place in the template?
  12. I would also like to add that I downloaded and tried the files above provided by ZenVisuals and it did not work. It added the product to the cart but ignored the customisation field. Just for reference, I tried this on version 1.5.6.1 with Ajax turned off.
×
×
  • Create New...