Jump to content

Help me get going please...


Recommended Posts

Hi, i'm new to Prestashop and e-commerce. I have a good amount of experience of working with Wordpress, and i'm hoping the crossover isn't too hard!

I'm stuck already though, i've been having a poke about and have done a few things so far;

- Copied the default theme and started to modify it ( works well with wordpress )
- Tried to add an item
- Tries to make the URLs settings "friendly"

So far the theme has shown up, I did a find and replace on all the links across the site as something like copy of prestashop was coming up and the pages were not being found. That seems to be working now.

I've added an item but the image uploader will not work and no image is being displayed. Is this a rewrite problem of some sort? I've generated a .htaccess file as advised by prestashop when changing the friendly URLs settings.

So, no pictures / uploader problems so far...

Also, I haven't seen the syntax before. I assume in a piece of code like this the normal <?php tage is now a "{" ?



Feel free to poke me in the right direction :)

Dan

               {if $product.on_sale}
{l s='On sale!'}
Link to comment
Share on other sites

The quote you have above is from a smarty file not a php file.

What is in your htaccess file right now?
Have you checked on your server to see if the image is being uploaded? It should be in the folder /img/p/. Is there an image displayed in the admin area? Have you got the correct folder permissions? If the folder permissions of /img/p/ are incorrect prestashop wont be able to copy across the file and generate the images it uses. They should be 755 for folders and 644 for files.

Link to comment
Share on other sites

Hi, this is my htaccess file;

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

# URL rewriting module activation
RewriteEngine on

# URL rewriting rules
RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [QSA,L,E]
RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [QSA,L,E]
RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]
RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [QSA,L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]
RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]
RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]
RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]
RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]

# Catch 404 errors
ErrorDocument 404 /404.php



The site is http://www.ransomedesignshop.co.uk/ - please ignore the large image in the header, it was the first thing on my hard drive I spotted... I managed to upload it in the end, but now I can't replace it....

As for permissions - img is set to 777 and img/p/ is 755 currently.

Ta, Dan

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...