Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Running 2 Seperate Shops on One Domain (WordPress Multisite)

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Running 2 Seperate Shops on One Domain (WordPress Multisite)

Tagged: multi site

  • This topic has 6 replies, 2 voices, and was last updated 13 years, 9 months ago by amin007.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • July 24, 2011 at 6:54 am #3873
    martinkoss
    Member

    Please note: I will be more than happy to pay for this to work!

    I would like to use your wonderful ecommerce system on a MultiSite install of WP. It works beautifully with one exception: If I have 2 shops on the same site (domain.com/shop1/ and domain.com/shop2) and want to keep them individual, I can’t because the cookie puts shopping cart items from ‘shop1’ together with shopping cart items from shop2.

    That is the ONLY thing that prevents having 2 separate shops on one site.

    Is there a way of separating the 2 shops?

    Here’s my situation:

    Client sells 2 completely different ranges of products, roofing and window blinds. When someone goes to the window blinds shop (shop1), adds a blind to their shopping cart, doesn’t checkout yet. Then visits the roofing products shop (shop2) and adds a product. When they view the shopping cart they will see the blinds in there along with the roofing products.

    For most people this would be fine but there are so many differences between the 2 parts of the business that they insist on keeping the 2 shops completely independent of each other, but on the same domain. This is why I installed WordPress MultiSite for them.

    So, can the Plugin be tweaked to ensure the 2 shop cookies are independent of each other?

    Cheers.

    Martin

    July 24, 2011 at 7:25 am #34626
    martinkoss
    Member

    I think it is a simple case of including

    . $blog_id . (which is the identifier of the site in MultiSite)

    in the cookie ID and/or any reference to the cookie.

    I’d happily place it in myself if you could tell me where it would need to be placed.

    Cheers.

    Martin

    July 25, 2011 at 4:35 am #34627
    amin007
    Participant

    I have thought about this one for a while and this one is a little hard to tackle. It’s not just a matter of adding blog ID to the cookie value. What we can do is use cookies to detect if the customer went from site 1 to site 2 (or vice versa) and if that event happens then it will just reset the cart. Will this method help?

    July 25, 2011 at 8:25 am #34628
    martinkoss
    Member

    Yes.

    I was looking at the cart code and wondering the same thing. I did a bit of research about ‘clearing the cookie on exiting a site’ but since the 2 shops are, essentially, on the same site, that wouldn’t work.

    So your idea is better. If the user goes from domain.com/shop1 to domain.com/shop2 (or vice versa) then the cookie (cart) would be reset.

    That little change would make your plugin THE BEST for MultiSite as well as already being the best for single sites.

    Believe me, I have tried them all. Free ones and all the paid ones. I keep coming back to WP eStore! I love it.

    Thanks for understanding my question and seeing the potential of the change.

    Cheers.

    Martin

    July 26, 2011 at 3:55 am #34629
    amin007
    Participant

    Okay, I added some condition in the plugin that should cater for this on a multi site install. Please get a new build of the eStore plugin from here and test it out:

    https://support.tipsandtricks-hq.com/update-request

    July 28, 2011 at 6:31 pm #34630
    martinkoss
    Member

    Well that has certainly worked to prevent shopping cart items from carrying through from one shop to another. Excellent work!

    Slight issue: We use https consistently and I added images and links to the product using https and got this error:

    The URL specified in the “Thumbnail Image URL” field does not seem to be a valid URL! Please check this value again:

    https://www.cmsfb.com/spireblinds/files/2011/04/perfect-fit-blinds-voile.jpg

    The URL specified in the “Product Page URL” field does not seem to be a valid URL! Please check this value again:

    https://www.cmsfb.com/spireblinds/blinds/voile/

    It works even though the error appears after the product is added or updated.

    Thanks for your work.

    Martin

    July 29, 2011 at 1:34 am #34631
    amin007
    Participant

    If you know for sure that the URL is correct then simply ignore this message (this message is only shown to the admin)

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ