Jump to content

ajspiano

Members
  • Posts

    16
  • Joined

  • Last visited

Profile Information

  • Location
    Australia
  • Activity
    Project Owner

ajspiano's Achievements

Newbie

Newbie (1/14)

6

Reputation

  1. that doesn't really solve the problem that the data does not display in the html source code.
  2. I don't have access to the apache config files because its a shared server.. strongly doubt that the host will change it just for me. What are the implications of not having it? The site seems to function just fine the way it is now (not using that module) with the alterations made to tools.php and in turn the htaccess file.
  3. Next question: I just noticed (when I do a "view source" from my browser) the meta descriptions and meta keywords are missing. When I add to header.tpl as a test the following code: <meta name="keywords" content="test" /> Nothing happens happens in the source. Comparitively, when I enter the following code examples in header.tpl: <title>TEST TITLE</title> <link href="test.css"> these items do show up in the source between the <head></head> So this code which is already in the head.. {if isset($meta_description) AND $meta_description} <meta name="description" content="{$meta_description|escape:html:'UTF-8'}" /> {/if} {if isset($meta_keywords) AND $meta_keywords} <meta name="keywords" content="{$meta_keywords|escape:html:'UTF-8'}" /> {/if} is apparently failing because somewhere somehow prestashop will not allow custom meta content to be placed in the header...? Pretty annoying. Any ideas?
  4. I've been avoiding updating prestashop, mostly because I initially (stupidly) made quite a few modifications to files that will perhaps be overwritten.. and the version I have functions fine, I don't want to create problems for myself and delay getting the shop live even further. While I was trying to figure out the error I turned on error reporting within prestashop but its didn't really tell me anything, i gather because the 500 error was happening so early, before any prestashop code was being processed (maybe? i dont really know) ..maybe I don't know where to look? I did post my servers error message up above, but here it is again: public_html/mystore/.htaccess: Invalid command 'SetEnv', perhaps misspelled or defined by a module not included in the server configuration
  5. I'm using 1.5.6.0 So i can place this code.. // Ensure HTTP_MOD_REWRITE variable is set in environment fwrite($write_fd, "<IfModule mod_env.c>\n"); fwrite($write_fd, "SetEnv HTTP_MOD_REWRITE On\n"); fwrite($write_fd, "</IfModule>\n\n"); Great, can I also put the other problem line in there, or perhaps does it make sense to? or should I have a separate if test for "RewriteEngine on"
  6. Hi guys, Thanks for your help. Elpatron - Thanks, exactly what I needed to know. ibndawood - an if command seems like a good idea, i think the mod_env thing went a little over my head though and so I didn't try that yet, I will have to read up on the apache link you posted. I did however modify tools.php function generatehtaccess in the following way. The question remains though, is this a good idea generally? (as opposed to utilising an 'if' construct) and will I remember what to undo it if I move to a different server later down the track? (probably not :/) // RewriteEngine fwrite($write_fd, "<IfModule mod_rewrite.c>\n"); // Ensure HTTP_MOD_REWRITE variable is set in environment /* COMMENTED TO REMOVE FROM htaccess file * fwrite($write_fd, "SetEnv HTTP_MOD_REWRITE On\n");*/ // Disable multiviews ? if ($disable_multiviews) fwrite($write_fd, "\n# Disable Multiviews\nOptions -Multiviews\n\n"); /* COMMENTED TO REMOVE FROM htaccess file * fwrite($write_fd, "RewriteEngine on\n"); */ if (!$medias) $medias = array(_MEDIA_SERVER_1_, _MEDIA_SERVER_2_, _MEDIA_SERVER_3_); I have now also allowed prestashop to regenerate my htaccess file and there has been no 500 error resulting from it.
  7. Yes, spent ages with that when I first moved to the godaddy host. I tried to use that setting via the BO, and I tried inputing it manually, either way I still get a 500 error. After reviewing the servers error log, and seeing this: "public_html/mystore/.htaccess: Invalid command 'SetEnv', perhaps misspelled or defined by a module not included in the server configuration" I removed the line: "SetEnv HTTP_MOD_REWRITE On" and subsequently: "RewriteEngine on" ..and then the site works with friendly URLs active. I have the solution to the 500 error - I only need to know how to alter the way prestashop generates the htaccess file - not via the BO, via changing the actual code. There is no BO option to do what I want to do.
  8. No, the code is within the section automatically generated by prestashop, I have to remove it everytime, and with each new generation it puts it back. If I was somehow able to override it by placing something above then that would be an acceptable solution - but knowing what to write to achieve that is beyond my knowledge.
  9. Hi guys, Have moved my site from local server to host godaddy. Had enormous trouble with on going internal server error 500, not fixed by any of the solutions already available on the forum or other websites. However, I did manage to solve it in the end. When SEO settings are adjusted the regenerated file has two lines almost at the top: SetEnv HTTP_MOD_REWRITE On RewriteEngine on At this stage I'm assuming that because its a shared server there is a file at a higher level with these instructions in it and so it doesn't like being told twice. I can manually remove the lines and then everything works fine. However, this means that whenever I change any SEO & URL settings in the back office my site goes down, and I have to then manually download the htaccess file via ftp, change it and reupload it, which is a pain in the arse. But (and here's the actual question) surely there's a presatshop file that is responsible for generating the htaccess file, and I could alter it so that those to lines are not added with every regeneration.. but where is the file..? I can't for the life of me find something that performs that function..
  10. SOLVED As it turns out, without my knowing manufacturers/suppliers had been globally disabled in general preferences. Not sure if I did it after installation and forgot or if someone else did it and didn't tell me. Sorry for the waste of time query.
  11. Hi vekia, Thanks for you're reply. The store is currently hosted on a local server so the URL can't be accessed by anyone but me. That said, this is how they are currently structured. mysite.com/brands AKA - mysite.com/index.php?controller=manufacturer returns the problem manufacturers page.. below is text copied directly from the page > Manufacturers: Manufacturers:There are no manufacturers. _________ If use either of the below URLS however.. mysite.com/brands/2-brandname mysite.com/index.php?id_manufacturer=2&controller=manufacturer > Phud's Dog Food List of products by manufacturer Phud's Dog Food Info About Phuds Info About Phuds More Sort by -- Price: Lowest first Price: Highest first Product Name: A to Z Product Name: Z to A In stock Reference: Lowest first Reference: Highest first NEW Phud's Food - 10KGPhud's Dog Food. Healthy, fresh and tasty. $70.00Available Add to cart Sort by -- Price: Lowest first Price: Highest first Product Name: A to Z Product Name: Z to A In stock Reference: Lowest first Reference: Highest first
  12. Hi everyone, I have added manufacturers to my store, they are enabled and visible in the front office by directly entering the appropriate URL. However, if I access the manufacturers page, the manufacturers list code seems to fail or be for some reason unable to access the manufacturers information and the page returns nothing but a "there are no manufacturers" message.. I can't figure out why at all... any thoughts?
  13. So this is a problem I've been mulling over for a while, I even considered buying a module to do this which required professional installation due to database modifications. But! today I solved this using 'features' and a few code alterations on product.tpl (albeit messy ones i suspect) So now I'm sharing because I'd have loved this have to been on the forum last week (my apologies if I simply failed to find it). ..................... Alright, if you add a feature you can set up a customised value for every product, its like adding your own custom product field to the database. Cool. But by default it displays in a 'datasheet' tab alongside your other product tabs like 'more info' and accessories. This didn't help me.. I want it to display up near the prices, and not with bullets. Down near the bottom of product.tpl you'll find this, ~line 515 <div id="more_info_block" class="clear"> <ul id="more_info_tabs" class="idTabs idTabsShort clearfix"> {if $product->description}<li><a id="more_info_tab_more_info" href="#idTab1">{l s='More info'}</a></li>{/if} {if $features}<li><a id="more_info_tab_data_sheet" href="#idTab2">{l s='Data sheet'}</a></li>{/if} and this a bit further down.. {if isset($features) && $features} <ul id="idTab2" class="bullet"> {foreach from=$features item=feature} {if isset($feature.value)} <li><span>{$feature.name|escape:'htmlall':'UTF-8'}</span> {$feature.value|escape:'htmlall':'UTF-8'}</li> {/if} {/foreach} </ul> {/if} If you put a comment tag <!-- CODE CODE CODE -->around both of these you'll disable the datasheet completely, but without destroying its function should you need it later. If you need the datasheet, you can try this.. (untested) {if isset($feature.value)} {if $feature.name==name_of_feature} <!-- do nothing --> {else} <li><span>{$feature.name|escape:'htmlall':'UTF-8'}</span> {$feature.value|escape:'htmlall':'UTF-8'}</li> {/if} {/if} Right, once you've done that you have a new variable that you can call on with a foreach and if statement anywhere.. So back up the top of my file I now have this.. {if isset($features) && $features} <!-- product's additional features --> <ul style="list-style-type: none;"> {foreach from=$features item=feature} {if isset($feature.value)} {if $feature.name==RRP} {if $feature.value > $productPrice} <li>{l s='RRP : '}<span style="text-decoration:line-through;">{convertPrice price=$feature.value}</span></li><br> <li>{l s='You Save : '}{convertPrice price=$feature.value-$productPrice}</li><br> <li>{l s='You Save : '}{round((($feature.value-$productPrice)/$feature.value)*100)}{l s='%'}</li><br> {/if} {else} <li>{$feature.value|escape:'htmlall':'UTF-8'}</li><br> {/if} {/if} {/foreach} </ul> {/if} I haven't formatted it yet so that it displays visually quite the way I want it to, or decided if I like percentages or dollar figures, but here's a pic to show its basically functional.. image uploading site
  14. Thanks, I've arrived at a half solution from this plus a bit of digging. I had been using www.shoptest.com as defined in my hosts file to 127.0.0.1. I tried putting 192.168.142.1 www.shoptest.com in the alternate PC's hosts file so that it would match my stores shop domain and base URI settings... but that didn't work, and neither did directly entering the IP. However, I've now set the shop's domain and URI to "192.168.142.1" and "/" - which works, as my presta install has now been placed in the root htdocs folder of xampp. I find it strange though that I was able to access the back office fine without any problems before adjusting these settings. Its accessible now so no worries. I fee a bit frustrated though that it wouldn't allow me to specify a domain name with the hosts files.
  15. Hi All, I have a test site that I'm working on on my laptop, hosted locally using Xampp. I'm trying to get access to the site from an alternate PC so that both I and my business partner can work on it at the same time. Using a program called "virtual router manager" I've been able to get my laptop to act as a router, the other PC to connect to it and access the sites hosted locally on the laptop. Except for prestashop. On this PC, i've used the required IP address to access the docs, like this: http://192.168.142.1/test-file.html (works fine) http://192.168.142.1/prestashop/index.php (doesn't work) also tried http://192.168.142.1/prestashop/test-file.html (works fine) .... as unlikely as I thought it would be I also confirmed that its nothing to do with PHP/SQL not being accessible on the new PC because I can access phpMyAdmin fine and all the prestashop database information is accessible from there. So my conclusion is that the prestashop coding is somehow blocking access to itself over the network.. not really at all sure where to begin on working out why or how its doing that.. any ideas? Thanks.
×
×
  • Create New...