peterr
Archived-
Posts
1,549 -
Joined
-
Last visited
Everything posted by peterr
-
Hi, I think a lot will depend on whether or not the 10 sites (domains) are all on the same server or not. Peter
-
Hi, I have spent a while searching through the contributions forums, for any comments on the Product Sort contribution. I wanted something to force the sort sequence, similar to the method used by categories. As you can see by the following: http://theheadlighthospital.com.au/index.php?cPath=33_2_20 (Sites still being loaded/built). :D All the (Ford/Falcon) headlights are in product description sequence, but we need it like this: XF EA EB ED etc,etc I assume if I use this contribution, that we will be able to have the products appear in any order we require ? Thanks, :) Peter
-
Hi, Also, looking at this: <?php echo " Your IP Address is: " . $rmtIP; ?> </td> </tr> </table> < /tr> ?> The PHP syntax has already been closed/completed, just after the " . $rmtIP;" , and then you have closed it again, by the last line ?? Peter
-
Hi, Do you have any characters after the very last line ? That is, after this ....... ?> Peter
-
Hi John, Thanks for clarifying this for me, I had no idea there was a seperate contribution. So, the contribution you mentioned above is v 2.61 "with images" (no model showing). The All Prods contribution has 2 different formats: 1. New format - v 3.0 and v 3.0.a * Sorted by product name within category name, only displays product name. 2. Previous format - latest version is 2.71 * Sorted by product name, displays product name (..doh), price, make,model. I think I get it now. :D Peter
-
Hi, I'm using version 3.0.a of this contribution, and only just realised (after checking out some site examples from earlier posts), that there are two different formats. I'm using the (new) simplr format, sorted by product name within category name with the file as all_products.php The previous releases were called allprods.php (... doh), as an example here shows. I guess no-one has a solution to the problem with the new release, when the category name is rather long, it overlays the product description in Mozilla/Netscape, and in IE, it doesn't look too good either. I've tried addding breaks (<br>) and also 'blank' rows to force it to space, but can't fix it. Any suggestions would be appreciated. I may try the other version also. Peter
-
Hi, Do lines 91 to 99 of /all_products.php while($products = tep_db_fetch_array($products_query)) { echo " <tr>\n" . ' <td width="33%" class="pageheading"><h1>' . (($memory == $products['categories_id'])? '': $cat_info[$products['categories_id']]['link']) . "</h1></td>\n" . ' <td class="pageheading"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products['products_id'] . (($language_code == DEFAULT_LANGUAGE) ? '' : ('&language=' . $language_code))) . '"><h1>' . $products['products_name'] . "</h1></a></td>\n" . " </tr>\n"; $memory = $products['categories_id']; } ?> need to be modified to just place a 'break' at the right point/s ? Maybe ..................... while($products = tep_db_fetch_array($products_query)) { echo " <tr>\n" . ' <td width="33%" class="pageheading"><h1>' . (($memory == $products['categories_id'])? '': $cat_info[$products['categories_id']]['link']) . "</h1></td><br>\n" . ' <td class="pageheading"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products['products_id'] . (($language_code == DEFAULT_LANGUAGE) ? '' : ('&language=' . $language_code))) . '"><h1>' . $products['products_name'] . "</h1></a></td>\n" . " </tr>\n"; $memory = $products['categories_id']; } ?> or remove the ......... <nobr>"Category description"</nobr> Peter
-
Hi, I haven't got any of the links to the "All Products" contribution as yet, as I wanted to test it before going any further. Please check it out at: http://christianaudioandvideo.com.au/all_products.php No offense, but it doesn't look too 'nice', a space after the product category would make it look better, when the category name is rather long. Also, some posts in this thread talked about prices showing, but I don't see any ?? Is there something I'm missing ? The only parts of the install I didn't do are adding the links. Thanks, Peter
-
Hi, Here are the mod_rewites need to do the 3 stores on the one domain ........... Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?example1\.com$ [NC] RewriteRule !^shop1/.*$ /shop1%{REQUEST_URI} [NC,L] RewriteCond %{HTTP_HOST} ^(www\.)?example2\.com$ [NC] RewriteRule !^shop2/.*$ /shop2%{REQUEST_URI} [NC,L] RewriteCond %{HTTP_HOST} ^(www\.)?example3\.com$ [NC] RewriteRule !^shop3/.*$ /shop3%{REQUEST_URI} [NC,L] Peter
-
Hi Ryan, For each domain to have it's own install, would indicate each domain on a seperate website though, or same website, and different databases, I think ?? Yes, I agree, I prefer the osC to be in the root directory, less confusing for me. Local testing is out, I don't have the computer "grunt" or correct OS to do anything like that. Looked at doing 'phpdev' and other things, looked at setting up my own Linux box, the bottom line is lack of resources. Yes, I could just simply setup: http://domain1.com.au/shop1 http://domain2.com.au/shop2 http://domain3.com.au/shop3 which all simply resolve to: /home/username/public_html/shop1 /home/username/public_html/shop2 /home/username/public_html/shop3 whereas, the current "live" (3 domains setup) resides at: /home/username/public_html/ and use/load a copy of the other website, add the Multiple Stores contribution to that, and then do the testing. The mod_rewite side is the last thing to do, and I've had some help in an Apache forum for that, so I know that will work later on. Regards, contributions, there are already 4 or 5 that I would like to use, plus yours, so really, the 'test site' would be ideal, to thoroughly test any contribs, or osC mods I make, before installing them to any production websites. The more I think about just setting up a test website/domain, the easier I feel about this. :D Thanks, I see now how you use that to filter everything. I searched through the contrib., and noticed that in addition to the table column reference to STORES_ID, there is also a constant called by that name. No doubt, in the testing I do, I may look at simply setting that (the constant) by domain name, assuming of course I have the 3 stores data loaded in the dd, and the 3 installs done. Thanks very much for clarifying that for me, much appreciated. :) Peter
-
Hi Ryan, Jason (jpf) has sent me a PM about doing this, because I noticed in this thread, it seemed he had done it. His reply is very helpful, especially about using mod_rewrite and other ways to do this. Possibly you can consider using the "URL" parameter to control this type of thing in a future release of this contribution. Sorry, I'm confused, don't you mean, each domain shop to have its' own 'catalog' directory ? Okay, so in theory it seems it can be done. I _think_ Jason has been able to do it this way. Just 3 domains, one cart, and the ability to have 3 distinct content & design. In regards to hosting, I supply the hosting, the client only wants to pay for one lot of hosting for the 3 domains (and why should he pay more ?), and osC, plus my minor mods have made it possible to do this. It's simply that people in other threads kept asking me , 'why don't you use the "Multiple Stores" contribution ?', so here I am, asking away. :D All 3 domains are now "live", so I'm not 100% certain that I would be in a position to "test" the contribution on a live site, unless there was a 100% guarantee that none of the testing would interfere in any way with the production website. I have used the SQL code to modify the db, because I knew the contrib's (PHP) code would be needed to access any of the new/changed tables/columns, so simply having the db changes is okay, they are not being used. But as I said, I have no idea if testing the contribution would interfere with the production website. It's only just gone live and is stable, a new client, the last thing I need is scripts crashing, or other problems. If the contrib. runs/relies on, the STORES_ID, to reference (no doubt) a path, then wouldn't it be a minor modification for the STORES_ID to reference a domain ? I guess that is what you had in mind with the "URL" , that I think you said isn't used as yet. If I created a test store like: http://domainname1.com.au/store1 and loaded/installed this contribution, would: (i) The current osC website (3 domains) remain unaffected ? (ii) I be able to add/change any contents of store1, independently ? Yes, hands on experience is the best way to learn, but not for a production website. It needs to be in a completely seperate test environment (seperate domain). Maybe I should just buy another domain, and do all the testing on my website, that way, there will be 2 domains on the one site, the new clients site remains 'alive and well', and my site needs a complete "make-over" anyway (I was chewing on using osC for it ??). Thanks for your replies and your time. I'm sure this is a great contribution, unfortunately I learnt of it too late, as the site was about to go live. Doing the testing on my website seems like a good idea (hey, a domain is about USD $9), and the tips Jason gave me on mod_rewrite _should_ do the trick. Thanks a lot, Peter
-
Hi Ryan, Thanks for your replies. If you read my other thread in the 'Development' forum, you will see this is "11th hr" considerations. There is no 'readme.txt'' date=' I assume you mean [i']install.txt[/i] ? Okay, so the url is not used in the contribution, but I could obviously make use of it, if needed. All 3 domains are on the same server, and have connectivity to the same db. There is _really_ only one domain, the other two are "parked" domains. In short, all 3 resolve to the same IP address, same server, same website. But, if I use this contribution, can I definitely have the 3 stores setup like this: http://domainame1.com.au http://domainame2.com.au http://domainame3.com.au they must be setup like above, they cannot be setup like ........... http://domainame1.com.au/shop1 http://domainame2.com.au/shop2 http://domainame3.com.au/shop3 Can the contrib. do this ? I understand to use multiple stores, there is duplication from the top level , ... /catalog. At present, that path resides like this ....... /home/username/public_html and all three domains point to that path. Will the contrib. work this way or not ? I guess I could use mod_rewrite, we have shell acess and are allowed to do that. I'm just thinking of where/how the path structure has to "sit" with your contribution, possibly 3 mod_rewites, so that: http://domainame1.com.au --> mod_rewrite --> http://domainname1.com.au/store1 http://domainame2.com.au --> mod_rewrite --> http://domainname2.com.au/store2 http://domainame3.com.au --> mod_rewrite --> http://domainname3.com.au/store3 What do you think ?? Okay' date=' I guess as logo is defined for each store, I could still get the db row, and display the right logo. That said, the only file I had to change for logos was [i']/catalog/includes/header.php[/i] , so as I understand the stock/std path structure of this contribution has seperate "/catalog" paths, you just mod 3 files for 3 stores, manually. This is how I have been able to control the content and other things on the 3 domains at present (excuse the novive/amateur code) <?php // Constants prefixed with string "JSC" indicate Jehoshua Systems Constants ini_set('display_errors', 0); //set this to zero when in production // If user comes to site with preceeding string "www." , remove it, not required $httphostname = $_SERVER['HTTP_HOST']; $hostname = str_replace("www.", "", $httphostname); define('JSC_HOSTNAME', $hostname); $domains['allesind.com.au'] = array( 'directory'=>'alles', 'domain_no'=>'1', 'email_from' => 'Alles Industries Pty Ltd <[email protected]>', 'logo'=>'logo_alles.jpg', 'store_name' => 'Alles Industries Pty Ltd', 'store_owner_email_address' => '[email protected]', 'title'=>'Alles Industries Pty Ltd' ); $domains['allesindustries.com.au'] = array( 'directory'=>'alles', 'domain_no'=>'1', 'email_from' => 'Alles Industries Pty Ltd <[email protected]>', 'logo'=>'logo_alles.jpg', 'store_name' => 'Alles Industries Pty Ltd', 'store_owner_email_address' => '[email protected]', 'title'=>'Alles Industries Pty Ltd' ); $domains['christianaudioandvideo.com.au'] = array( 'directory'=>'cav', 'domain_no' => '2', 'email_from' => 'Christian Audio & Video <[email protected]>', 'logo' => 'logo_cav.gif', 'store_name' => 'Christian Audio & Video', 'store_owner_email_address' => '[email protected]', 'title' => 'Christian Audio & Video' ); if (isset($domains[$hostname]['directory'])) { $directory = $domains[$hostname]['directory']; $domain_number = $domains[$hostname]['domain_no']; $email_from = $domains[$hostname]['email_from']; $logo = $domains[$hostname]['logo']; $store_name = $domains[$hostname]['store_name']; $store_owner_email_address = $domains[$hostname]['store_owner_email_address']; $title = $domains[$hostname]['title']; } else { $domain_number = '0'; //replace this later with an error function (emails to me) $email_from = ''; $logo = ''; $store_name = ''; $store_owner_email_address = ''; $title = 'Unknown site'; } define('JSC_DIRECTORY', $directory); define('JSC_DOMAIN_NUMBER', $domain_number); define('JSC_EMAIL_FROM', $email_from); define('JSC_LOGO', $logo); define('JSC_STORE_NAME', $store_name); define('JSC_STORE_OWNER_EMAIL_ADDRESS', $store_owner_email_address); define('JSC_TITLE', $title); $title_uppercase = strtoUpper($title); That's good' date=' some more pros for using this. :) Right' date=' have read through that now, thanks. Is it easy to replicate a product for different sotores (say, copy/paste in admin ??) Okay' date=' so I could use that if needed. Do you see any other problems I might encounter, considering I basically want 3 stores, but [b']really[/b] need them "hidden" behind the domain names. Thanks for all your help, :) Peter
-
Hi, Just a few questions about this contribution please. :) 1. Does the url in the db work like this: www.domainname.com == domainname.com 2. Can this contribution definitely use one database for 3 "stores", when the "stores" are different domain names, like: http://domainame1.com.au http://domainame2.com.au http://domainame3.com.au (the domains obviously reside on the same server). 3. I notice the contribution uses a different logo for each "store". Does it also change the page title and any other content ? 4. Do emails ("contact us") from each domain(store) go to the relevant 'store owner email address' ? 5. Can you have different categories/products in each store ? 6. Are there constants set by this contribution, that can be used elsewhere in the osC code, to indentify domain (store) ? Thanks, :) Peter
-
Hi, Looking at the SQL code, there would appear to be no harm in just adding the new tables and data, it would not affect the current site, that is ........ 1. Backup the db 2. Use the SQL code with this contrib to update the db 3. Don't install the rest of the contribution (until I have had a bit of time to check some stuff first) Does that sound okay ? ? Peter
-
Hi, Would someone please have look at this thread, at http://www.oscommerce.com/forums/index.php?sho...10entry316899 , especially the post I just made. Thanks, :) Peter