Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Feb 2011
    Posts
    26
    Plugin Contributions
    0

    help question Help Query - How can I clone a Cart to have a different set of items?

    I have responsibility for a site with a working ZEN CART which I have been supporting for a few years. Although I did not do the initial install and configuration of the software nor creation of the initial set of items, I have not had any problem with adding new items and removing old ones.

    Recently I have been thrown a curve ball by a request to create a new batches of items which are to be isolated from the current set of items.

    I assume that the simplest method of doing this is to clone my current zencart directory, create a new MySQL Database, populate it from my current one via an export and import run, and then open the new database and hide the original items and create the new ones (like I have been doing all along).

    If this is the correct method, what I need help with is some hand holding on what I need to change/update in the cloned directory to point at the new database in lieu of the current one.

    OTOH, if there is a way to use the current database and somehow when I access it automatically select which set of items are to be displayed, then I would like instructions on how to do that.

    I lean towards the separate database method since it is looking like I am going to end up with 4 sets of items. Thus I want to have a solution where depending on which link I use to access the cart I get only the correct set of items.

    Thank You for any assistance I can be provided to achieve this goal.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Help Query - How can I clone a Cart to have a different set of items

    Quote Originally Posted by rarpsl View Post
    Recently I have been thrown a curve ball by a request to create a new batches of items which are to be isolated from the current set of items.
    I don't know exactly what that means. You want a separate store with different products, but with the same customers, etc ?

    You might look in the Free Software Add Ons for the Multisite mod - I haven't used it.

  3. #3
    Join Date
    Feb 2011
    Posts
    26
    Plugin Contributions
    0

    Default Re: Help Query - How can I clone a Cart to have a different set of items

    Quote Originally Posted by stevesh View Post
    I don't know exactly what that means. You want a separate store with different products, but with the same customers, etc ?

    You might look in the Free Software Add Ons for the Multisite mod - I haven't used it.
    Basically yes. This is for a convention. Right now we have one cart for memberships at the convention. What I have been asked to do is set up a separate cart to sell tables in our dealers room to the dealers and a 3rd cart to sell display space in our art show to the artists. Thus we need to display different items depending on who we are selling to (ie: Dealers, Artists, or Attendees).

    I will look into your mod to see if it meets my needs. I was looking at a short cut so I do not need to establish the initial carts from scratch. I just need to know which files I need to edit in the cloned ZenCart directory to point at the new database (which I will then add the new items to while removing the Membership items). While I can live with one database I do not think there is a way to select which items are to be displayed based on who we are selling to - Thus the idea of having multiple databases.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help Query - How can I clone a Cart to have a different set of items

    Who decided that you/they needed separate carts for the three functions? I know other festivals where admission tickets and artists or dealers use separate categories (and separate paths to get to them) on one main website. See my festival site for an example.
    All you really need to do is create separate portal pages (ez-pages can work well) for the different destinations. You would not use one overall categories menu, but link directly to the relevant categories.

  5. #5
    Join Date
    Feb 2011
    Posts
    26
    Plugin Contributions
    0

    help question Re: Help Query - How can I clone a Cart to have a different set of items

    Quote Originally Posted by gjh42 View Post
    Who decided that you/they needed separate carts for the three functions? I know other festivals where admission tickets and artists or dealers use separate categories (and separate paths to get to them) on one main website. See my festival site for an example.
    All you really need to do is create separate portal pages (ez-pages can work well) for the different destinations. You would not use one overall categories menu, but link directly to the relevant categories.
    This sounds much simpler. I have created a 2nd category for my dealer's room and added one item to test with. Right now when I go to my convention registration cart it goes to that category and lists the two items in it (Children and Adult). The URL is a pointer to the zencart directory. How do I set up the pointer to point at my dealer's room category as you suggest? Once I do that I can create the 2 needed categories and populate them and supply separate URLs for each category (as well as setting up the Registration URL in the same way).

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help Query - How can I clone a Cart to have a different set of items

    What is the category id of your dealers room? You can just put that in the URL in place of the existing category id to get the proper link.
    I would have to see how you have these links set up to advise on the best way to add new links.

  7. #7
    Join Date
    Feb 2011
    Posts
    26
    Plugin Contributions
    0

    help question Re: Help Query - How can I clone a Cart to have a different set of items

    Quote Originally Posted by gjh42 View Post
    What is the category id of your dealers room? You can just put that in the URL in place of the existing category id to get the proper link.
    I would have to see how you have these links set up to advise on the best way to add new links.
    The URL to get the current Registration Category items is http://www.lunacon.org/zencart/. This is a redirect from http://registration.lunacon.org/ (either works).

    This is category 65. I have a second set of items as category 66 for dealers. I also have an empty 67 which will be Art Show.

    Note that there is no parm being passed and it seems to default to cat 65 automatically.

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help Query - How can I clone a Cart to have a different set of items

    It's category 66 which is displaying: id="cat66Table".
    What do you have for admin > Configuration > Layout Settings > Categories - Always show on homepage and Main Page Opens with category?
    You can get to the other categories by specifying their URL: lunacon.org/zencart/index.php?main_page=index&cPath=67 goes to the Dealers category listing.

  9. #9
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Help Query - How can I clone a Cart to have a different set of items

    I presume you will want the dealers cart link from the Dealers Room page, and the art show cart link from the Art Show page?

    When you go to any of those categories, there will be no way to get to the others without actually entering the URL in the address bar; this should be good for your purpose.

    BTW, I noticed some invalid HTML (broken code)
    Code:
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
      <tr>
    
     <td id="navColumnOne" class="columnLeft" style="width: 150px">
    <div id="navColumnOneWrapper" <style="width: 150px"></div></td>
        <td
    <!-- bof upload alerts -->
    
    <!-- eof upload alerts -->
    These tags are left open, due to some prior editing, possibly in tpl_main_page.php, or maybe column_left.php?

    Actually, this
    <div id="navColumnOneWrapper" <style="width: 150px">
    is supposed to be one div tag. Somebody inserted a < before the style attribute.
    <div id="navColumnOneWrapper" style="width: 150px">
    Last edited by gjh42; 12 Jan 2012 at 04:22 PM.

  10. #10
    Join Date
    Feb 2011
    Posts
    26
    Plugin Contributions
    0

    Default Re: Help Query - How can I clone a Cart to have a different set of items

    Quote Originally Posted by gjh42 View Post
    It's category 66 which is displaying: id="cat66Table".
    What do you have for admin > Configuration > Layout Settings > Categories - Always show on homepage and Main Page Opens with category?
    You can get to the other categories by specifying their URL: lunacon.org/zencart/index.php?main_page=index&cPath=67 goes to the Dealers category listing.
    Thank You.

    That was EXACTLY what I needed.

    I will add the index.php?... to the URL for each of the three links to the respective Zen Carts and that will get me to the respective carts pages.

    Since the Main Page Opens setting was 66, I was always going there and the person who originally installed the site (and who I assumed responsibility from) had the link default to that category via the setting instead of having the parms in the URL. That was what I needed to know (ie: Need to supply the index.php with parms,

    THANK YOU for the hand holding and I should be able to handle the rest by myself.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h how many Flate rate clone can i have?
    By tony_sar in forum Addon Shipping Modules
    Replies: 3
    Last Post: 18 Apr 2012, 02:21 PM
  2. How to create a Cart with a different set of items
    By rarpsl in forum Basic Configuration
    Replies: 0
    Last Post: 13 Dec 2011, 06:05 AM
  3. Can I have two different checkout methods dependent upon the qty of items in cart?
    By kbascombe in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 28 Aug 2009, 05:28 PM
  4. How do i set shipping cost of different products and its different items?
    By jinit in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 4 Feb 2009, 09:23 PM
  5. How to Set Different Shipping Price for Different Items
    By metakomm2 in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 2 Jan 2007, 05:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR