Jump to content



Photo
- - - - -

osCom sub-shop? Only certain categories on sub page


This topic has been archived. This means that you cannot reply to this topic.
10 replies to this topic

#1   Fyod

Fyod
  • Members
  • 130 posts

Posted 10 June 2012 - 00:25

Hey guys!
I have a fully functioning shop and what I would like to do is create an oscom filesystem copy under http://newstore.mystore.com.
The new store will be a duplicate with a different design and different (versions of) products.

But to be able to stay in one administration and allow users to shop in both "stores" under one id / customer / session, I need a way to only show a certain admin catalog category = certain products in subcategories in that "new store" category.
Not sure if I'm explaining this clearly. Is there a contribution for something like this?

Thanks for you ideas!

#2   DunWeb

DunWeb

    The Censored One

  • Members
  • 13,084 posts

Posted 10 June 2012 - 02:43

@Fyod

The multi-store contribution might work with some updating but the shared log on is a nightmare waiting to happen as the OSCID is not transferable from shop to shop. What I would suggest, is post a link from your current shop to the new store for those customers to find it. They would have to create an account and log in separately but it is the most stable way to do it.



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

#3   Fyod

Fyod
  • Members
  • 130 posts

Posted 10 June 2012 - 02:58

Even if I plan to use just one database?
Basically the backend (admin, database) will be only one. The frontend store is duplicated, but the "new store" is just a gateway to different product categories.
Only a couple links in the new store configuration will be edited to make it work, and I may actually use just one image folder for both. I'm pretty sure I can deal wit that.
What I don't know is what to change in index.php, product_listing, etc. to show products only from certain categories.
I think I saw a contribution for that a long time ago but I can't find it.

Edited by Fyod, 10 June 2012 - 02:59.


#4   Fyod

Fyod
  • Members
  • 130 posts

Posted 16 June 2012 - 23:10

Pretty much got this working except I have one problem now. Is there any way to "carry" the cookie session from www.mystore.com to newstore.mystore.com?
Even though I only have one administration and everything is working fine, the customer needs two shopping carts. I need to somehow make a session for both so that products from either store will show up in both carts.

Example:
- add two products to www.mystore.com cart
- browse over to newstore.mystore.com (through a link) and add two more products
- go to newstore.mystore.com cart, see four products
- checkout

Edited by Fyod, 16 June 2012 - 23:13.


#5   DunWeb

DunWeb

    The Censored One

  • Members
  • 13,084 posts

Posted 17 June 2012 - 00:08

@Fyod

No, the session cannot be carried to sub domain. Once the session is assigned, it can only be used in that cart.


Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

#6   Fyod

Fyod
  • Members
  • 130 posts

Posted 17 June 2012 - 00:41

Not even by changing sql based sessions to file based (saw that in the admin but never used it) and directing sub-shop to main-shop sessions dir?
There's gotta be a way to "fool it" into the same cart session.

#7   Fyod

Fyod
  • Members
  • 130 posts

Posted 23 September 2012 - 22:49

Anyone have an idea?
All I need is www.store.com and subdir.store.com on the same host and same database to have common cookie sessions.

#8   DunWeb

DunWeb

    The Censored One

  • Members
  • 13,084 posts

Posted 23 September 2012 - 23:18

@Fyod

Again, this cannot be done. Cookies are set for each installation and each session. Sharing the same database is not common practice either because of session control for each customer.


Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

#9   Fyod

Fyod
  • Members
  • 130 posts

Posted 23 September 2012 - 23:47

They aren't two different stores. I may have explained that wrong.
It is one store, which has a two "series" of products. The series are to be devided by the overall look of the store.
Product series 1 - black background, specific categories and products
Product series 2 - white background, specific categories and products different and not mixed with series 1

To accomplish this on the user interface, I've made the subdomain and it's own css, images, etc. to make it look like a different "theme" if you will.
The categories are set so that the products are not mixed betweeen the two series.

But in the admin it all is one database, one administration, common orders should be recieved from the two series.

^^ All of this works just fine as of now. I can PM you a link DunWeb

So everything is just fine, except the fact that the customer would have to log in again and make a second order if shopping in both "themes", though with the same user name and pass because this is in the same database.

-------

I think making a small change somewhere would be able to set the cookie for both, ie.

setcookie(tep_session_name(), '', time()-42000, $session_data['path'], $session_data['domain']);

to have $session_data['domain']) and $session_data['domain2']) maybe?

Edited by Fyod, 23 September 2012 - 23:53.


#10   toyicebear

toyicebear
  • Community Sponsor
  • 6,410 posts

Posted 24 September 2012 - 00:54

just make it

www.store.com and www.store.com/subdir/


instead of

www.store.com and subdir.store.com



#11   Fyod

Fyod
  • Members
  • 130 posts

Posted 24 September 2012 - 15:21

Wow, such a simple solution and I didn't think of it.
Will try it tonight. Thank you.

Is there a way to have the url bar show "subdir.store.com", but actually be in "www.store.com/subdir/"?
This is solely to differentiate the url for the customer.