Jump to content

[SOLVED] B2C Features On V1.5... Possible?


Recommended Posts

Hi there,

 

I have been testing the new version, and i must say I liked watt i see!!

Major and very nice upgrades!!

 

But I am particulary interested in one new B2C Features... Like this possibility:

 

We have to major supplyers selling on my Shop. Now i am having the work of inserting all products here, but i would like to guive access to both of them and allow them to create new products, but not see the other supplyer products...

 

 

Is there any way to do this now? And in a new version?

 

 

Best Regards!!

 

Arlindo

Link to comment
Share on other sites

Hi Arlindo,

The biggest new feature of version 1.5 is MultiStore, allowing you to create multiple storefronts for your site. You can create one for each supplier with a separate login, allowing them to manage their own inventory without seeing that of other suppliers.

 

I hope this helps.

 

-Mike

  • Like 1
Link to comment
Share on other sites

Hi Mike,

 

I believe you have solved my issue...

I can even create multiple storefronts in sub-domains... I Like the idea!!

 

I have already tryed to test MultiStore, but i had some difficulty..

 

I have the same question that this fellow here:

 

http://www.prestashop.com/forums/topic/147144-how-shops-multistore-work/

 

Can you clarify that please?

 

Best Regards,

 

Arlindo

 

PS- THANKS for the Idea!!

Link to comment
Share on other sites

Hi Arlindo,

I'm glad I could help! Version 1.5 was just introduced to everyone (including yours truly) as a beta release less than a week ago, so I am still discovering all the awesome new things that will come with this next major update.

 

Just to make sure you understand, this version cannot be used on a live website until it is fully released, but you are more than welcome to set it up in a test environment to play around with the new features and learn how to properly adapt it to your needs.

 

In this situation, it would probably be best to have one of the developers of this feature answer you, so I will try to have one of them pop onto here and help you out.

 

-Mike

Link to comment
Share on other sites

Hi Mike,

 

I will be Gratefull for your intervencion to obtain one faster awnser.

I Understant this is not for production, but i am testing in advance... ;) , and with all of these new features, documentation is still not available. I believe one "How to set up MultiStore" manual will be available... or not. But with a few tipps i know i can get there.

 

Thanks again, and sorry my English!

 

Arlindo

Link to comment
Share on other sites

Hello,

in order to use multishop you have to follow these steps :

 

1) Create some other shops in the "Shop" tab (E.g. Store 2, Store 3, Store 4, etc..)

 

2) You have to link your new shops with an URL, each shop MUST have at least 1 URL (1 main URL), so you have to go in the "Shop -> Shop URL" tab in BO, and create new URLs for each shop

 

3) When you create an URL you have 2 choice : you create URLs with differents domains (so you have to config your server / vhost), or you create virtual URLs (you need the rewrite mod in apache, this mod is the same that the one required for friendly urls).

Virtual URLs are the easiest way to test multishop, for exemple if your website is http://www.prestashop.com, you can have these URLs : http://www.prestashop.com/store1/, http://www.prestashop.com/store2/, http://www.prestashop.com/store3/

 

In order to use this when you create your URL :

domain : www.prestashop.com

domain ssl : www.prestashop.com

physical url : - let this field empty -

virtual url : store 1

 

Best regards

Link to comment
Share on other sites

Hi there Raphael,

 

For me i think the best choice is the 2nd one, creating virtual URLs with the exact example you give...

But it is still not working, and I think it is becouse of the "rewrite mod in apache", i have one plesk server and i think that will not be easy for me.

 

Just to confirm that my problem is in the "rewrite mod in apache", please see the image below and confirm if my configurations are correct.

 

Also, is there one manual of how to change the "rewrite mod in apache" on one plesk virtual server, or do i have to speak with the hosting company??

 

Many thanks and Best Regars:

 

Arlindo

 

 

post-26377-0-88562000-1325177822_thumb.png

Are these configurations OK?

 

PS - I Have installed Prestashop 1.5.x in one sub-folder of my domain, called "VR15"

Link to comment
Share on other sites

Hi again,

 

I do not had Friendly URLs activated in prestashop.

So i went here:

 

post-26377-0-17730200-1325179743_thumb.png

 

Followed the instructions ( adding one .htss...file... ) and get this error when click on "generate .htaccess file":

 

 

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

 

 

 

But it writes in the .htaccess file on the prestashop home directory this information:

 

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution

# http://www.prestashop.com - http://www.prestashop.com/forums

 

<IfModule mod_rewrite.c>

RewriteEngine on

 

RewriteCond %{HTTP_HOST} ^www.xxxxxx.com$

RewriteRule ^loja2/(.*) /vr15/$1 [L]

 

RewriteCond %{HTTP_HOST} ^www.xxxxxxxxx.com$

RewriteRule ^loja3/(.*) /vr15/$1 [L]

 

RewriteRule ^api/?(.*)$ webservice/dispatcher.php?url=$1 [QSA,L]

 

# Images

RewriteRule (*UTF8)^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1-$2$3$4.jpg [L]

RewriteRule (*UTF8)^([0-9]+)\-([0-9]+)(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1-$2$3.jpg [L]

RewriteRule (*UTF8)^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$1$2$3.jpg [L]

RewriteRule (*UTF8)^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$1$2$3$4.jpg [L]

RewriteRule (*UTF8)^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]

RewriteRule (*UTF8)^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]

RewriteRule (*UTF8)^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]

RewriteRule (*UTF8)^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]

RewriteRule (*UTF8)^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]

RewriteRule (*UTF8)^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]

RewriteRule (*UTF8)^c/([0-9]+)(\-[_a-zA-Z0-9-\pL]*)(-[0-9]+)?/[_a-zA-Z0-9-]*\.jpg$ img/c/$1$2$3.jpg [L]

RewriteRule (*UTF8)^c/([a-zA-Z-]+)(-[0-9]+)?/[a-zA-Z0-9-\pL]+\.jpg$ img/c/$1$2.jpg [L]

 

# Dispatcher

RewriteCond %{REQUEST_FILENAME} -s [OR]

RewriteCond %{REQUEST_FILENAME} -l [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

RewriteRule ^.*$ index.php [NC,L]

</IfModule>

 

<IfModule mod_expires.c>

ExpiresActive On

ExpiresByType image/gif "access plus 1 month"

ExpiresByType image/jpeg "access plus 1 month"

ExpiresByType image/png "access plus 1 month"

ExpiresByType text/css "access plus 1 week"

ExpiresByType text/javascript "access plus 1 week"

ExpiresByType application/javascript "access plus 1 week"

ExpiresByType application/x-javascript "access plus 1 week"

ExpiresByType image/x-icon "access plus 1 year"

</IfModule>

 

FileETag INode MTime Size

<IfModule mod_deflate.c>

AddOutputFilterByType DEFLATE text/html

AddOutputFilterByType DEFLATE text/css

AddOutputFilterByType DEFLATE text/javascript

AddOutputFilterByType DEFLATE application/javascript

AddOutputFilterByType DEFLATE application/x-javascript

</IfModule>

 

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

 

 

 

But, if i go to "Second Shop" (www.domaim.com/vr15/loja2/ ) created, now i get the same error described above.

 

But also the administration prestashop is showing the same error!!! ( Internal Server Error)

So i had to go and delete the contempt of the .htaccess file, and i was able to enter the prestashop administration Area Again... And now i have the information on the DashBoard that the "Friendly URLs" are activated. But the file .htaccess is empty, otherwise i loose access to administration.

 

 

post-26377-0-41802100-1325183031_thumb.png

 

 

Do you have any suggestion?

Link to comment
Share on other sites

Hi there,

 

.htaccess Issue Solved and MultiStore working OK with friendly urls making Magic!

 

Only one issue.. : I cannot make the theme working in the multiple storefronts (Modules and blocks yes...)

 

See how it looks one of the multiple shop storefront:

post-26377-0-00654500-1325247644_thumb.png

 

In the Thems TAB I have one diferente storefront selected... But nothibg appears...

Any suggestion?

 

Best regards, and have one exelent 2012!!!

 

Arlindo

Link to comment
Share on other sites

I also tried the multishop function and followed the above instructions.

If i enter the url http://localhost/prestashop/zilverenspaarpot/ i 'm redirected to the main shop:

 

[Debug] This page has moved

Please use the following URL instead: http://localhost/prestashop/en/

 

The friendly url seems to work oke.

What else can be wrong i used the last svn version.

Link to comment
Share on other sites

The .htacces contents:

 

 

 

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution

# http://www.prestashop.com - http://www.prestashop.com/forums

 

<IfModule mod_rewrite.c>

RewriteEngine on

 

RewriteCond %{HTTP_HOST} ^localhost$

RewriteRule ^zilverenspaarpot/(.*) /prestashop/$1 [L]

 

RewriteRule ^api/?(.*)$ webservice/dispatcher.php?url=$1 [QSA,L]

 

# Images

RewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1-$2$3$4.jpg [L]

RewriteRule ^([0-9]+)\-([0-9]+)(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1-$2$3.jpg [L]

RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$1$2$3.jpg [L]

RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$1$2$3$4.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]

RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/[_a-zA-Z0-9-\pL]*\.jpg$ img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]

RewriteRule ^c/([0-9]+)(\-[_a-zA-Z0-9-\pL]*)(-[0-9]+)?/[_a-zA-Z0-9-]*\.jpg$ img/c/$1$2$3.jpg [L]

RewriteRule ^c/([a-zA-Z-]+)(-[0-9]+)?/[a-zA-Z0-9-\pL]+\.jpg$ img/c/$1$2.jpg [L]

 

# Dispatcher

RewriteCond %{REQUEST_FILENAME} -s [OR]

RewriteCond %{REQUEST_FILENAME} -l [OR]

RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

RewriteRule ^.*$ index.php [NC,L]

</IfModule>

 

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

Link to comment
Share on other sites

Hello Mcrielaard,

the problem you had with URL was linked to our browser cache, that's why you had to restart it.

 

I can't explain you how virtual host are working because it is pretty complicated, this is an Apache basic function which allow you to manage several domain with same IP. I suggest you to search some informations on google : http://httpd.apache.org/docs/2.0/vhosts/examples.html

 

Regards

Link to comment
Share on other sites

Solved.

 

The problem was:

I added one diferent Template from the one I use in the "Default" shop, and it is now visable.

 

If i use the default template in the Default and multishop, I get the erros above, if i use different templates, it works.

 

For me it is OK...

 

Best Regards!

Link to comment
Share on other sites

×
×
  • Create New...