WordPress.org

Ready to get started?Download WordPress

Forums

PrestaShop Integration
Problem with images of prducts (23 posts)

  1. rlaurent
    Member
    Posted 1 year ago #

    Hi,

    I have configured your plugin but i have a problem with the URL of images in the widget Prestashop integration products.

    I have my blog : blog.mywebsite.com
    And my prestashop : mywebsite.com

    the link of the prudct is mywebsite.com/id-name and it's fine
    But the link of the image is blog.mywebsite.com/home-id-id/...

    my server is configured like this :
    /web/
    /web/blog/
    /web/prestashop/

    Please help me.

    Regards,

    http://wordpress.org/extend/plugins/prestashop-integration/

  2. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Hi rkaurent,

    Sorry for my late response, but which version of PrestaShop do you have, as this seems not to be a problem for recent version : the bug seems inside PrestaShop. A configuration may be used using CDN if available to avoid the problem ?

    Hope it could help you.

    Kind Regards,
    François.

  3. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    I forget to add : you will get problems about the cookie furthermore and you will have to patch a little more the setcookie call in class/Cookie.php to match all subdomains : use ".mywebsite.com" (check setcookie on PHP manual).

  4. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Please do not forget to mark it resolved if this is the case !

  5. d4b
    Member
    Posted 1 year ago #

    how to fix it? I have the same problem

    wp 3.5.1 prestashop 1.5.3.1

    multishop off yet, maybe one day

  6. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, I managed to reproduce it : you have to set the media server 1 to match the PrestaShop domain, this will force PrestaShop to use the right domain instead of the currently used domain (of the blog).

  7. d4b
    Member
    Posted 1 year ago #

    Specifically, what set?
    I shop in the root domain, subdomain blog

  8. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    You need to force PrestaShop to use its domain instead of the domain of the blog, to achieve this you need to set a media server domain to be exactly the domain of the PrestaShop domain. Once saved, check to see if it is working. If you are already using media server, you should not have this problem...

    I managed to fix the PrestaShop bug this way.

    François.

  9. d4b
    Member
    Posted 1 year ago #

    Media servers (use only with CCC)

    You must enter another domain or subdomain in order to use cookieless static content.

  10. d4b
    Member
    Posted 1 year ago #

    CCC enable, but still does not work

  11. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    You can safely ignore this if you do not use real media servers : this will make PrestaShop use he media server you have (ie PrestaShop domain) instead of the domain used by the blog...

    If at some points (because CCC is not activated or "cookieless static content") is a problem, it will have absolutely no effects since the domain is the right domain !

    If there were no bug in PrestaShop : PrestaShop should have used the domain of the shop instead of the domain used to fetch the page (ie the blog)...

    François.

  12. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Please if this is effectively working : do not forget to pass this thread resolved...

  13. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry I did not see your answer : please empty the cache of both PrestaShop and your navigator, and retry.

  14. d4b
    Member
    Posted 1 year ago #

    Add PrestaShop products to your sidebar - dont display any products

    Viewing images is already running but if blockbestsellers module, columnsadverts indicates a bad domain and does not display the image in advertising.

  15. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    For using PrestaShop products with your sidebar : you need both products attached to a post and the widget displayed when the post is displayed.

    Does product images works now from the blog, by using the shortcode for example ?

    columnsadverts (I do not know this module) may have the same problem : you will have to force a full URL by adapting the template or fixing the module. Is see that blockstores has the same problem too...

    I guess now that using a different domain can be stated as not working (or too experimental : too many fixes in PrestaShop which gets confused by the PrestaShop domain not the same as the current domain)

  16. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    There is another fixe for the images not being displayed : you setup a .htaccess rules in your blog so that everything fetched from /img should be redirected to PrestaShop with the same pattern. It will fix all the product images (without using media server) and fix all the modules. You can use the Redirect plugin for that.

  17. d4b
    Member
    Posted 1 year ago #

    can you post example or update yours plugins ?

  18. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    As there is nothing to update according to this specific problem, I will post an example here :

    • you install redirection plugin ;
    • you make sure an .htaccess file is generated for WordPress (for example setting up a custom permalink structure) ;
    • you add a redirection with regular expression mode active (else if will not work) :
      source URL : /img/(.*)
      target URL : http://yourprestashop/img/$1
    • enjoy...

    It will posted in our FAQ for the next release.

    François.

  19. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, please do not forget to mark it resolved if it is the case. François.

  20. d4b
    Member
    Posted 1 year ago #

    "add a redirection with regular expression mode activ"
    Can you post example ready to paste .htaaacess

  21. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, do not modify .htaccess directly, use a plugin for that and for exemple the Redirection plugin as stated above. Your modification may be lost else... François.

  22. d4b
    Member
    Posted 1 year ago #

    Can you post link to plugin site ?

  23. aytechnet
    Member
    Plugin Author

    Posted 1 year ago #

    It is not very hard to find : only one plugin has this name...

    http://wordpress.org/extend/plugins/redirection/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.