Page 20 of 224 FirstFirst ... 1018192021223070120 ... LastLast
Results 191 to 200 of 2237
  1. #191
    Join Date
    Jul 2007
    Location
    Stockholm, Sweden and Palermo, Italy
    Posts
    6
    Plugin Contributions
    0

    Default Re: Emulating MultiSite using a common file structure

    Quote Originally Posted by stav View Post
    I dont't know why you need different zencart_root/index.php pages for each site.
    No, as I wrote in my post you don't.

    But if your Zen cart is in a folder, it has nothing to do with the index page in the root folder. And then you need a different solution, outside the Zen Cart environment.

  2. #192
    Join Date
    Aug 2006
    Posts
    37
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    Now is the day that I release the EZPages Filter.

    Sadly I haven't made the admin tool "release-ready".

    ezpages_filter_multisite_expansion_by_streetglow.zip

    All the shops must use the same currency.
    Hmm... really?!
    I don't really believe so.
    I have made a kind of simulation mode which I can turn on or off in every shop connected to the same database.
    This simulation mode simulates array containing the input I want for that shop.
    Try debugging a few things...

    For example:
    What is the currencies variable?
    All the info is pumped into this currencies variable by an array.
    Simply use the function "print_r();" to see what's inside the array, with this data you can "simulate" the array but now with other data.
    Give it a try :-)

  3. #193
    Join Date
    Jul 2007
    Location
    Stockholm, Sweden and Palermo, Italy
    Posts
    6
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    Hi Streetglow,

    Perhaps you should post your contribution at http://www.zen-cart.com/index.php?main_page=add_contrib? If you change your module name to begin with "Multisite" and you store it in the "Other modules" category it will end up next to the Multisite Module itself.

    Regarding the currency in the shopping basket: all multisite shops share the same shopping basket. I don't believe it's safe to mix currencies in a shopping basket. At least I'm pretty sure that most backend systems haven't been tested for that. That's why I said that all shops should use the same currency. I don't know if it works technically anyway, but I believe it should be avoided.

  4. #194
    Join Date
    Oct 2004
    Posts
    50
    Plugin Contributions
    1

    Default Re: MultiSite Module Support Thread

    What's New Scrollbox 1.3 xhtml Filter

    You can get it from here

    After download the sidebox

    Oen File: tpl_whats_new.php

    Line 54
    Find
    Code:
      $random_product_query = "select products_id, products_image, products_tax_class_id, products_price
                               from " . TABLE_PRODUCTS . "
                               where products_status = '1'
                               order by products_date_added desc
                               limit " . MAX_RANDOM_SELECT_NEW;
    
    	//var_export($random_product);
    	
    	$random_product = $db->Execute($random_product_query);
    and replace with
    Code:
      $random_product_query = "select p.products_id, p.products_image, p.products_tax_class_id, p.products_price
                               from " . TABLE_PRODUCTS . " p
                               where p.products_status = '1'
                               order by p.products_date_added desc
                               limit " . MAX_RANDOM_SELECT_NEW;
    
    	//var_export($random_product);
    	
    	$random_product = $db->Execute(cat_filter($random_product_query));

  5. #195
    Join Date
    Aug 2006
    Posts
    37
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    At least I'm pretty sure that most backend systems haven't been tested for that.
    I agree with that, but as I always say:
    "A code that hasn't been tested yet, doesn't and will not work".

    I've been modifieing Zen Cart since 2006, so I pretty well know what I'm doing. So I agree with the fact if you don't know what you are doing, don't try it.

    My currency modification only shows the customer in the currency he want.
    For example there are 2 different shops, one for in Brittain and the other for the rest of the EU who has the Euro.
    In the UK shop it shows pounds, in the EU shop it shows Euro. But in the backend system it shows the currency where the shop owner is from, in my case it will be euro.

    It is possible to have different currencies, but not supported by this module (yet). Believe me... it will take a lot modification and time to archieve supporting different currencies.

  6. #196
    Join Date
    Jul 2006
    Location
    Toronto, ON
    Posts
    87
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    I've been able intigrate the MultiSite Module quite well with my online test stores: 1 2.

    The only ability I'm still struggling with is trying to filter customers. All customers should be able to access store1, and only authorized customers should be able to access store2.

    In Post 121 I was given this lead:
    Quote Originally Posted by Gerome View Post
    constants define tables; you can override these constants (TABLE_CUSTOMERS, ...) from the confg files of your sites, and then have different tables for different sites
    Basically what I'm looking for is 1 of two things, either we are able to manually enter the authoized customer's email/ID No. or automatically authorizing anyone with a specific e-mail address ending (ex. ##########################).

    Any and all help is greatly appreciated as this will help our various locations around the country. And we are always kept on a tight budget being a charity.

    Blessings,

  7. #197
    Join Date
    Aug 2006
    Posts
    37
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    jvoce:

    I will have to do out of my head since I'm at home now and not even willing to think about accessing my work's FTP, so sorry if I'm wrong about something...

    This is exactly an aspect which I will have to work out very soon.
    It can't be that hard tho, I believe if you make another field in the table customers called "customers_allowance" with the option "TEXT".

    Then you will have to search the query which logs the customer on your site.
    Also not that hard to locate "includes/modules/pages/login/header_php.php".
    Edit the query which verifies the customer with the data inside the table.
    Add " AND customers_allowance = '-%".SITE_NAME."%-' to it.

    All that's left is creating an admin tool.
    I can't help you with that yet...

  8. #198
    Join Date
    Jul 2006
    Location
    Toronto, ON
    Posts
    87
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    streetglow:

    So what I've done thus far:

    1) SQL Command: ALTER TABLE customers ADD customers_allowance TEXT NOT NULL;

    2)Added red text below to includes/modules/pages/login/header_php.php
    Code:
      $check_customer_query = "SELECT customers_id, customers_firstname,  customers_password,
                                              customers_email_address, customers_default_address_id,
                                              customers_authorization, customers_referral
                                              FROM " . TABLE_CUSTOMERS . "
                                              WHERE customers_email_address = :email
    	   AND customers_allowance = '-%".SITE_NAME."%-'";
    Now obviously, I assume I'll need to place text in the database to allow some customers complete access. Something as simple as Yes or No should do?

    The next question is how would I go about setting the site switch for that?
    Last edited by jvoce; 21 Aug 2007 at 02:33 PM.

  9. #199
    Join Date
    Aug 2006
    Posts
    37
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    Sorry my bad, ofcourse it shouldn't be "=" but "LIKE".

    Code:
    $check_customer_query = "SELECT customers_id, customers_firstname, customers_password,
    customers_email_address, customers_default_address_id,
    customers_authorization, customers_referral
    FROM " . TABLE_CUSTOMERS . "
    WHERE customers_email_address = :email
    AND customers_allowance LIKE '-%".SITE_NAME."%-'";
    In the text field you should add the names of your sites delimited by "--".
    Example:

    --domain1.com--domain2.com--domain3.com--

    Thats it.

  10. #200
    Join Date
    Jul 2006
    Location
    Toronto, ON
    Posts
    87
    Plugin Contributions
    0

    Default Re: MultiSite Module Support Thread

    Quote Originally Posted by streetglow View Post
    In the text field you should add the names of your sites delimited by "--".
    Example:

    --domain1.com--domain2.com--domain3.com--
    Okay just a couple of more questions for you.
    I don't have access to the database admin screen, so I sometimes feel a little limited not being able to really edit or experiement with the tables.

    I'd like to set a default for the customers_allowance field to access one or two of the sites. What would I need to add to the previously used SQL command?
    Code:
    ALTER TABLE customers ADD customers_allowance TEXT NOT NULL;
    Second question is what SQL Command would I need to enter when someone is given permission to access the more restricted site?

    Thanks again for your patience and help. It's grealy appreciated!

 

 

Similar Threads

  1. v154 WorldPay Module version 3.0 - Support thread
    By countrycharm in forum Addon Payment Modules
    Replies: 115
    Last Post: 20 Jul 2021, 04:00 PM
  2. Bambora/Beanstream Payment Module Support Thread
    By swguy in forum Addon Payment Modules
    Replies: 127
    Last Post: 26 Mar 2021, 04:13 PM
  3. WorldPay Module version 2.0 - Support thread
    By philip_clarke in forum Addon Payment Modules
    Replies: 729
    Last Post: 4 Nov 2017, 08:23 AM
  4. PC Configurator Module [Support Thread]
    By lebrand2006 in forum All Other Contributions/Addons
    Replies: 254
    Last Post: 22 Aug 2012, 03:52 PM

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